:root {
  --bg: #0e1116;
  --bg-raised: #151a22;
  --bg-card: #1a2029;
  --border: #242c38;
  --border-strong: #324054;
  --text: #e6ecf3;
  --text-dim: #9aa6b8;
  --text-muted: #6b7a90;
  --blue: #5b9aff;
  --blue-strong: #2f7bff;
  --blue-deep: #1f63d8;
  --grad: linear-gradient(135deg, #6aa9ff 0%, #1f63d8 100%);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 10px 30px -10px rgba(31, 99, 216, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 123, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(106, 169, 255, 0.08), transparent 60%);
  background-repeat: no-repeat;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a {
  color: var(--text);
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(91, 154, 255, 0.1);
  color: #b8d2ff;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.92em;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(12px);
  background: rgba(14, 17, 22, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-bolt {
  width: 22px;
  height: 28px;
  filter: drop-shadow(0 4px 10px rgba(47, 123, 255, 0.35));
}
.logo-text {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  font-weight: 600;
}
.logo-text strong {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.logo-sub {
  color: var(--text-muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover {
  color: var(--text);
}
.nav .btn {
  margin-left: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(47, 123, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -8px rgba(47, 123, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: rgba(91, 154, 255, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(91, 154, 255, 0.2);
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 20px 0 32px;
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 560px;
}

.signup-form {
  margin-top: 8px;
}
.input-group {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  gap: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(91, 154, 255, 0.15);
}
.input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
}
.input-group input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  padding: 12px 4px;
}
.input-group input::placeholder {
  color: var(--text-muted);
}
.input-group .btn {
  margin-left: 4px;
}

.form-hint {
  margin: 12px 2px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.form-status {
  margin: 12px 2px 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: #5eead4; }
.form-status.error { color: #ff8a8a; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.check {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  margin-right: 6px;
}

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
}
.mock-window {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #0f141b;
  border-bottom: 1px solid var(--border);
}
.mock-titlebar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.dot-r { background: #ff6057; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c940; }
.mock-url {
  margin-left: 14px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 360px;
}
.mock-sidebar {
  background: #12171f;
  padding: 16px 10px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-folder {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-radius: 6px;
}
.mock-folder span {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--border);
  padding: 1px 6px;
  border-radius: 999px;
}
.mock-folder.active {
  background: rgba(91, 154, 255, 0.14);
  color: var(--blue);
}
.mock-folder.active span { background: rgba(91, 154, 255, 0.25); color: var(--blue); }

.mock-list { padding: 6px 0; }
.mock-msg {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.mock-msg:last-child { border-bottom: none; }
.mock-msg.unread { background: rgba(47, 123, 255, 0.04); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.av-1 { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.av-2 { background: linear-gradient(135deg,#06b6d4,#0891b2); }
.av-3 { background: linear-gradient(135deg,#f59e0b,#d97706); }
.av-4 { background: linear-gradient(135deg,#10b981,#059669); }
.msg-body { flex: 1; min-width: 0; }
.msg-top {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--text);
}
.msg-top span { color: var(--text-muted); font-size: 0.78rem; }
.msg-subject {
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 2px;
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-preview {
  font-size: 0.82rem; color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-msg.unread .msg-subject { color: #fff; font-weight: 600; }

/* ---------- Logos ---------- */
.logos {
  padding: 40px 0 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
}
.logo-strip span {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ---------- Sections ---------- */
.features, .pricing, .faq {
  padding: 96px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { max-width: 720px; margin: 0 auto; }
.section-sub {
  margin: 14px auto 0;
  color: var(--text-dim);
  max-width: 560px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(91, 154, 255, 0.12);
  border: 1px solid rgba(91, 154, 255, 0.2);
  border-radius: 10px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: rgba(91, 154, 255, 0.5);
  background: linear-gradient(180deg, rgba(47, 123, 255, 0.08), var(--bg-card) 60%);
  box-shadow: 0 20px 60px -30px rgba(47, 123, 255, 0.5);
}
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card h3 {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.billing-toggle {
  display: inline-flex;
  margin: 28px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.billing-option {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.billing-option:hover { color: var(--text); }
.billing-option.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(47, 123, 255, 0.6);
}
.save-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.billing-option:not(.active) .save-pill {
  background: rgba(91, 154, 255, 0.15);
  color: var(--blue);
}

.price {
  margin: 16px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-billed {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  min-height: 1.1em;
}
.price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price .per {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.price-desc {
  color: var(--text-dim);
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 24px;
  color: var(--text-dim);
  font-size: 0.94rem;
}
.price-features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--blue);
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq-inner { max-width: 800px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  transition: border-color 0.2s ease;
}
details[open] { border-color: var(--border-strong); }
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--text-muted);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
details[open] summary::after { content: "−"; }
details p {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 80px 0;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(91, 154, 255, 0.18), transparent 70%),
    var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 {
  margin-bottom: 10px;
}
.cta-inner p {
  color: var(--text-dim);
  margin: 0 0 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 28px;
  color: var(--text-dim);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-tag {
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 320px;
  font-size: 0.95rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols h4 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  color: var(--text-dim);
  font-size: 0.93rem;
  padding: 5px 0;
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Nav active ---------- */
.nav-active {
  color: var(--blue) !important;
  position: relative;
}
.nav-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* ---------- Sign-in page ---------- */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(900px 500px at 50% 10%, rgba(47, 123, 255, 0.22), transparent 60%),
    radial-gradient(700px 400px at 85% 90%, rgba(106, 169, 255, 0.1), transparent 60%);
}
.auth-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 17, 22, 0.6);
  backdrop-filter: blur(8px);
}
.auth-header .header-inner {
  height: auto;
}
.auth-back {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.auth-back:hover { color: var(--text); }

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  gap: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-head {
  text-align: center;
  margin-bottom: 28px;
}
.auth-head h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.auth-head p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.95rem;
}

.btn-sso {
  width: 100%;
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  font-weight: 600;
  padding: 12px 16px;
}
.btn-sso:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0 12px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.field-link {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 500;
}
.field-link:hover { text-decoration: underline; }

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa6b8' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(91, 154, 255, 0.15);
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.password-toggle:hover { color: var(--text); background: rgba(91,154,255,0.1); }

.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}
.remember input {
  width: 16px; height: 16px;
  accent-color: var(--blue-strong);
}

.auth-alt {
  text-align: center;
  color: var(--text-dim);
  margin: 24px 0 0;
  font-size: 0.92rem;
}
.auth-alt a { color: var(--blue); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

.auth-footnote {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  margin: 0;
}
.auth-footnote a { color: var(--text-dim); text-decoration: underline; }

/* ---------- Doc-style pages (legal, about, security, changelog) ---------- */
.doc-hero {
  padding: 80px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.doc-hero .eyebrow { margin-bottom: 14px; }
.doc-hero h1 { max-width: 720px; margin: 0 auto; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.doc-hero p { max-width: 600px; margin: 16px auto 0; color: var(--text-dim); }
.doc-meta { color: var(--text-muted); font-size: 0.88rem; margin-top: 12px; }

.doc-body {
  padding: 56px 0 80px;
}
.doc-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}
.doc-toc a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-dim);
  font-weight: 500;
}
.doc-toc a:hover { background: rgba(91, 154, 255, 0.08); color: var(--text); }
.doc-toc .toc-head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  margin-bottom: 6px;
}

.doc-content {
  max-width: 760px;
  color: var(--text-dim);
  line-height: 1.75;
  font-size: 1rem;
}
.doc-content h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.doc-content h2:first-child { margin-top: 0; }
.doc-content h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin: 24px 0 8px;
}
.doc-content p { margin: 0 0 14px; }
.doc-content ul, .doc-content ol { padding-left: 22px; margin: 0 0 14px; }
.doc-content li { margin-bottom: 6px; }
.doc-content a { color: var(--blue); text-decoration: underline; }
.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.92rem;
}
.doc-content table th,
.doc-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.doc-content table th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-toc { position: static; flex-direction: row; overflow-x: auto; }
}

/* Changelog specific */
.changelog-entry {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.changelog-version {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(91, 154, 255, 0.14);
  color: var(--blue);
}
.changelog-date { color: var(--text-muted); font-size: 0.85rem; }
.changelog-entry h3 { font-size: 1.1rem; margin: 0 0 8px; }
.changelog-tags {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.changelog-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}
.changelog-tag-new { background: rgba(94, 234, 212, 0.15); color: #5eead4; }
.changelog-tag-fix { background: rgba(91, 154, 255, 0.15); color: var(--blue); }
.changelog-tag-improve { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* Status page */
.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 14px;
}
.status-overall {
  text-align: center;
  padding: 32px;
}
.status-dot-big {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5eead4;
  display: inline-block;
  margin-right: 10px;
  box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.15);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0.05); }
}
.status-overall h2 {
  display: inline-flex;
  align-items: center;
  font-size: 1.6rem;
  margin: 0;
}
.status-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.status-grid li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.status-grid li:last-child { border-bottom: none; }
.status-name { color: var(--text); font-weight: 500; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #5eead4;
  font-weight: 600;
}
.status-pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.uptime-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
}
.uptime-bar {
  flex: 1;
  height: 20px;
  background: #5eead4;
  border-radius: 2px;
  opacity: 0.85;
}
.uptime-bar.down { background: #ff8a8a; }
.uptime-bar.degraded { background: #fbbf24; }

/* About page */
.about-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 40px auto 0;
}
.about-stat {
  text-align: center;
  padding: 20px;
}
.about-stat .n { font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stat .l { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.team-member { text-align: center; }
.team-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .about-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Password strength meter + requirements (reset-password.html) */
.strength-meter { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.strength-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; transition: width 0.2s ease, background 0.2s ease; }
.strength-fill.weak { background: #ff8a8a; }
.strength-fill.fair { background: #fbbf24; }
.strength-fill.good { background: #5eead4; }
.strength-fill.strong { background: linear-gradient(90deg, #5eead4, #14b8a6); }
.strength-label { font-size: 0.82rem; color: var(--text-muted); min-width: 50px; text-align: right; }
.pw-requirements {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pw-requirements li { display: flex; align-items: center; gap: 8px; }
.pw-requirements li i { font-size: 1rem; }
.pw-requirements li.ok { color: #5eead4; }

.auth-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 12px 0 0;
}
.auth-hint a { color: var(--blue); text-decoration: underline; }
.auth-hint a:hover { text-decoration: none; }

.auth-demo { margin-top: 8px !important; }
.auth-demo a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  font-size: 0.88rem;
}
.auth-demo a:hover { color: var(--blue) !important; }

/* ---------- Setup page ---------- */
.setup-hero {
  padding: 64px 0 32px;
  text-align: center;
}
.setup-hero .eyebrow { margin-bottom: 16px; }
.setup-hero h1 { max-width: 760px; margin: 0 auto; }
.setup-hero .lede {
  margin: 20px auto 0;
  max-width: 640px;
  text-align: center;
}

.setup-body {
  padding: 32px 0 96px;
}
.setup-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.setup-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.platform-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}
.plat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.plat:hover { background: rgba(91, 154, 255, 0.08); color: var(--text); }
.plat.active {
  background: rgba(91, 154, 255, 0.14);
  color: var(--blue);
}
.plat-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}
.plat-icon.lg { font-size: 1.6rem; width: auto; }

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.server-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.server-list > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.server-list dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.server-list dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.server-list dd.dim { color: var(--text-dim); font-size: 0.85rem; }
.server-list dd code { flex: 1; }

.copy-btn {
  background: rgba(91, 154, 255, 0.12);
  border: 1px solid rgba(91, 154, 255, 0.25);
  color: var(--blue);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.copy-btn:hover { background: rgba(91, 154, 255, 0.22); }
.copy-btn.copied {
  background: rgba(94, 234, 212, 0.15);
  border-color: rgba(94, 234, 212, 0.3);
  color: #5eead4;
}

.setup-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  scroll-margin-top: 96px;
}
.setup-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.setup-card-head h2 { font-size: 1.4rem; margin-bottom: 2px; }
.setup-card-head p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  color: var(--text-dim);
  line-height: 1.6;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px; height: 30px;
  background: rgba(91, 154, 255, 0.14);
  border: 1px solid rgba(91, 154, 255, 0.3);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { color: var(--text); font-weight: 600; }

.inline-settings {
  margin: 10px 0 0;
  padding: 12px 16px;
  list-style: none;
  background: rgba(91, 154, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.settings-grid > div {
  background: rgba(91, 154, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.setting-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.settings-grid code { background: transparent; padding: 0; color: var(--text); font-size: 0.95rem; }

.muted { color: var(--text-dim); margin: 0; }

.help-card {
  background:
    radial-gradient(400px 150px at 0% 0%, rgba(91, 154, 255, 0.15), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}
.help-card h3 { margin-bottom: 8px; }
.help-card p { color: var(--text-dim); margin: 0 0 18px; }

/* ---------- Phosphor icon defaults ---------- */
.ph, .ph-bold, .ph-fill, .ph-duotone, .ph-light, .ph-thin {
  display: inline-block;
  line-height: 1;
  vertical-align: -0.08em;
}
.btn i[class^="ph"],
.btn i[class*=" ph"] {
  font-size: 1.05em;
  vertical-align: -0.12em;
}
.auth-back i[class^="ph"] { vertical-align: -0.15em; }
.trust-row .check { margin-right: 4px; font-size: 1em; }
.feature-icon i[class^="ph"] { font-size: 1.5rem; color: var(--blue); }
.setup-icon i, i.setup-icon { color: var(--blue); }
.plat-icon { color: currentColor; font-size: 1.25rem; width: 24px; text-align: center; }
.plat-icon.lg { font-size: 2rem; width: auto; color: var(--blue); }
.password-toggle i[class^="ph"] { font-size: 1.1rem; }
.dns-row .copy-btn i[class^="ph"] { margin-right: 2px; }
.success-icon i[class^="ph"] { font-size: 2rem; }

/* ---------- Signup wizard ---------- */
.wizard-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(1000px 500px at 20% -5%, rgba(47, 123, 255, 0.18), transparent 60%),
    radial-gradient(800px 400px at 90% 100%, rgba(106, 169, 255, 0.08), transparent 60%);
}
.wizard-main {
  flex: 1;
  padding: 40px 0 80px;
}

.stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.step-dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.step-dot span {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step-dot.active {
  color: var(--text);
  border-color: rgba(91, 154, 255, 0.4);
  background: rgba(91, 154, 255, 0.08);
}
.step-dot.active span {
  background: var(--grad);
  color: #fff;
}
.step-dot.done {
  color: var(--blue);
  border-color: rgba(91, 154, 255, 0.3);
}
.step-dot.done span {
  background: rgba(91, 154, 255, 0.2);
  color: var(--blue);
}
.step-dot.done span::before { content: "✓"; }
.step-dot.done span > * { display: none; }

.wizard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.wizard-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
}

.step { display: none; }
.step.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.step h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.step .lede {
  font-size: 1rem;
  margin: 0 0 28px;
}

.wizard-form { display: flex; flex-direction: column; gap: 18px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field .hint {
  margin: 6px 2px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 400;
}
.field label .hint {
  display: inline;
  margin: 0 0 0 4px;
  font-weight: 400;
  color: var(--text-muted);
}

.input-group.compact {
  padding: 4px;
  border-radius: 10px;
}
.input-group.compact input {
  font-family: inherit;
  padding: 10px 4px;
}
.input-group.compact .input-prefix {
  padding: 0 10px;
  font-size: 0.92rem;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.primary-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--text); }
.btn-skip {
  font-size: 0.88rem;
  padding: 4px 8px;
}

/* Plan choice cards */
.signup-billing { margin: 0 0 24px; }
.plan-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.plan-choice { cursor: pointer; position: relative; }
.plan-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.plan-choice:hover .plan-card {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.plan-choice input:checked + .plan-card {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(47, 123, 255, 0.08), var(--bg) 80%);
  box-shadow: 0 0 0 3px rgba(91, 154, 255, 0.15);
}
.plan-head h3 {
  font-size: 0.92rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.plan-price .amount {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan-price .per {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.plan-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-dim);
}
.plan-card ul li::before {
  content: "✓ ";
  color: var(--blue);
  font-weight: 700;
}
.plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.mailbox-count { margin-bottom: 20px; }
.stepper-input {
  display: inline-flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
}
.stepper-input input {
  width: 80px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  padding: 10px 0;
  -moz-appearance: textfield;
  outline: none;
}
.stepper-input input::-webkit-outer-spin-button,
.stepper-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stepper-btn {
  width: 42px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.stepper-btn:hover { background: rgba(91, 154, 255, 0.12); color: var(--blue); }

/* Trial note */
.trial-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(91, 154, 255, 0.08);
  border: 1px solid rgba(91, 154, 255, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 8px 0 24px;
}
.trial-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.2);
  flex-shrink: 0;
}
.trial-note strong { color: var(--text); }

/* Setup choice cards */
.setup-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.setup-choice { cursor: pointer; position: relative; }
.setup-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.setup-card-pick {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.setup-choice:hover .setup-card-pick {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.setup-choice input:checked + .setup-card-pick {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(47, 123, 255, 0.08), var(--bg) 80%);
  box-shadow: 0 0 0 3px rgba(91, 154, 255, 0.15);
}
.setup-pick-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.setup-icon {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 154, 255, 0.12);
  border: 1px solid rgba(91, 154, 255, 0.2);
  border-radius: 10px;
}
.setup-pick-head h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.setup-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text);
  font-weight: 700;
}
.setup-price.free { color: #5eead4; }
.setup-price .amount { font-size: 1.3rem; }
.setup-price .per {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}
.setup-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.setup-card-pick p { color: var(--text-dim); margin: 0; font-size: 0.92rem; }
.setup-card-pick ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
  flex: 1;
}
.setup-card-pick ul li { padding-left: 22px; position: relative; }
.setup-card-pick ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--blue);
  font-weight: 700;
}
.setup-pick-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Payment */
.pay-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  color: #b2f3e5;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.pay-notice strong { color: #5eead4; display: block; margin-bottom: 2px; }
.pay-notice > i {
  color: #5eead4;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.pay-notice.concierge-only {
  background: rgba(91, 154, 255, 0.08);
  border-color: rgba(91, 154, 255, 0.2);
  color: #cfe0ff;
}
.pay-notice.concierge-only strong { color: #fff; }
.pay-notice.concierge-only > i { color: var(--blue); }

.card-input {
  position: relative;
  display: flex;
  align-items: center;
}
.card-input input { padding-right: 140px; }
.card-brands {
  position: absolute;
  right: 10px;
  display: flex;
  gap: 6px;
}
.card-brands span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 6px;
  border-radius: 4px;
}
.field-row:has(> .field:nth-child(3)) {
  grid-template-columns: 1fr 1fr 1fr;
}
.pay-foot { margin-top: 4px; }
.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.lock { opacity: 0.8; }

/* Success state */
.success-header { text-align: center; margin-bottom: 32px; }
.success-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  border-radius: 50%;
  color: #0a1f1a;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 8px rgba(94, 234, 212, 0.1),
    0 20px 40px -10px rgba(20, 184, 166, 0.4);
}
.success-header h1 { font-size: 2rem; margin-bottom: 10px; }

.done-path { display: none; }
.done-path.active { display: block; animation: fadeIn 0.3s ease; }
.done-path h2 { font-size: 1.3rem; margin-bottom: 8px; }
.done-path > p { color: var(--text-dim); margin: 0 0 20px; }

.dns-table {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0 24px;
}
.dns-row {
  display: grid;
  grid-template-columns: 70px 110px 1fr 80px;
  gap: 12px;
  padding: 12px 14px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.dns-row:last-child { border-bottom: none; }
.dns-row.dns-head {
  background: rgba(91, 154, 255, 0.06);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dns-type {
  display: inline-block;
  background: rgba(91, 154, 255, 0.14);
  color: var(--blue);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.78rem;
  text-align: center;
}
.dns-row code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.dns-row span:nth-child(3) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.concierge-next {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-dim);
}
.concierge-next li { padding-left: 24px; position: relative; }
.concierge-next li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: var(--blue);
  font-weight: 700;
}

.done-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Order summary sidebar */
.order-summary {
  position: sticky;
  top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.summary-trial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #5eead4;
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text);
}
.summary-row span:first-child { color: var(--text-dim); }
.summary-row.subtle { color: var(--text-muted); font-size: 0.85rem; }
.summary-row.subtle span { color: var(--text-muted); }
.summary-row.total {
  font-size: 1.05rem;
  font-weight: 700;
}
.summary-row.total span:first-child { color: var(--text); }
.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.summary-foot {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Trial type picker (step 4) */
.trial-picker { margin-bottom: 24px; }
.trial-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.trial-pick { cursor: pointer; position: relative; display: block; }
.trial-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.trial-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.trial-pick:hover .trial-card {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.trial-pick input:checked + .trial-card {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(47, 123, 255, 0.08), var(--bg) 80%);
  box-shadow: 0 0 0 3px rgba(91, 154, 255, 0.15);
}
.trial-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.trial-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.trial-head > i {
  font-size: 1.5rem;
  color: var(--blue);
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 154, 255, 0.12);
  border: 1px solid rgba(91, 154, 255, 0.2);
  border-radius: 10px;
  flex-shrink: 0;
}
.trial-head h3 { font-size: 1.02rem; margin: 0; }
.trial-tag {
  font-size: 0.82rem;
  color: #5eead4;
  font-weight: 600;
  margin-top: 2px;
}
.trial-tag.muted { color: var(--text-muted); font-weight: 500; }
.trial-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.87rem;
  color: var(--text-dim);
}
.trial-card ul li {
  padding-left: 18px;
  position: relative;
}
.trial-card ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--text-muted);
}

/* Visibility toggles for DIY vs Concierge */
.setup-is-concierge .diy-only { display: none; }
.setup-is-diy .concierge-only { display: none; }
.done-path.diy-path.active,
.done-path.concierge-path.active { display: block; }

/* ---------- Support page ---------- */
.support-notice {
  display: flex;
  gap: 14px;
  background: rgba(91, 154, 255, 0.08);
  border: 1px solid rgba(91, 154, 255, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 28px;
}
.support-notice i {
  color: var(--blue);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.support-notice strong { color: var(--text); }
.support-notice em { color: var(--blue); font-style: normal; font-weight: 600; }

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
  align-items: start;
}
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.support-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.support-icon {
  font-size: 1.6rem;
  color: var(--blue);
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 154, 255, 0.12);
  border: 1px solid rgba(91, 154, 255, 0.2);
  border-radius: 10px;
  flex-shrink: 0;
}
.support-card-head h2 { font-size: 1.2rem; margin: 0 0 2px; }
.support-card-head p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }

.priority-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.priority-pick { cursor: pointer; position: relative; }
.priority-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.priority-pick span {
  display: block;
  text-align: center;
  padding: 10px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}
.priority-pick:hover span { color: var(--text); }
.priority-pick input:checked + span {
  border-color: var(--blue);
  background: rgba(91, 154, 255, 0.1);
  color: var(--blue);
}

.resources-grid { margin-top: 40px; }
.resources-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.resources-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.15s ease;
  display: block;
}
.resource-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.resource-card > i {
  font-size: 1.7rem;
  color: var(--blue);
  margin-bottom: 12px;
  display: inline-block;
}
.resource-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.resource-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .support-grid { grid-template-columns: 1fr; }
  .resources-row { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 560px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .setup-grid { grid-template-columns: 1fr; gap: 24px; }
  .setup-sidebar { position: static; }
  .platform-nav { flex-direction: row; flex-wrap: wrap; }
  .plat { flex: 1 1 140px; }
  .wizard-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; order: -1; }
  .plan-choices { grid-template-columns: 1fr; }
  .setup-choices { grid-template-columns: 1fr; }
  .trial-options { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .nav .nav-login { display: inline; }
  .hero { padding: 48px 0 40px; }
  .features, .pricing, .faq { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .input-group { flex-wrap: wrap; }
  .input-group .btn { width: 100%; margin: 4px 0 0; }
  .mock-window { transform: none; }
  .auth-card { padding: 28px 22px; }
  .setup-card { padding: 22px; }
  .settings-grid { grid-template-columns: 1fr; }
  .wizard-content { padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .stepper li span { display: none; }
  .stepper { gap: 6px; }
  .step-dot { padding: 6px 12px; font-size: 0.78rem; }
  .dns-row { grid-template-columns: 1fr; gap: 4px; padding: 14px; border-bottom: 1px solid var(--border); }
  .dns-row.dns-head { display: none; }
  .dns-row span:nth-child(3) { flex-wrap: wrap; }
  .wizard-actions { flex-direction: column; align-items: stretch; }
  .primary-stack { align-items: stretch; }
  .wizard-actions .btn { width: 100%; }
}
