/* ===== TaoFlow — Shared Stylesheet ===== */

/* --- 1. Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=DM+Mono:wght@300;400;500&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* --- 2. CSS Variables (Light Theme — default) --- */
:root {
  --bg: #f0f6fc;
  --card: #e6eef8;
  --ink: #0d2540;
  --muted: #4a6e8a;
  --accent: #0077cc;
  --accent-hover: #005fa0;
  --accent-subtle: rgba(0,120,200,0.08);
  --line: #c8d8e8;
  --shadow: 0 1px 4px rgba(0,20,60,0.07);
  --radius: 12px;
  --font: 'Lora', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, monospace;
  --nav-height: 64px;
  /* TaoFlow Homepage Design Tokens (light defaults) */
  --c-void:    #f0f6fc;
  --c-deep:    #e6eef8;
  --c-mid:     #dce8f4;
  --c-surface: #d0e2f0;
  --c-border:  rgba(0,100,160,0.14);
  --c-border2: rgba(0,100,160,0.07);
  --c-cyan:    #0077cc;
  --c-teal:    #007a6a;
  --c-blue:    #005fbb;
  --c-dim:     #5090b8;
  --c-muted-tf:#4a7898;
  --c-ghost:   #b0cce0;
  --c-text:    #0d2540;
  --c-text2:   #3a6080;
  --c-text3:   #7aaac8;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg: #050d18;
  --card: #0a1828;
  --ink: #c8e0f0;
  --muted: #6a94b0;
  --accent: #00d4f0;
  --accent-hover: #00e5ff;
  --accent-subtle: rgba(0,180,220,0.1);
  --line: #142838;
  --shadow: 0 1px 4px rgba(0,0,0,0.35);
  /* TaoFlow Homepage Design Tokens (dark) */
  --c-void:    #020810;
  --c-deep:    #050e1c;
  --c-mid:     #0a1828;
  --c-surface: #0e2035;
  --c-border:  rgba(0,180,220,0.12);
  --c-border2: rgba(0,180,220,0.06);
  --c-cyan:    #00e5ff;
  --c-teal:    #00c4a7;
  --c-blue:    #0077ff;
  --c-dim:     #2a6080;
  --c-muted-tf:#3a7090;
  --c-ghost:   #1a3a4a;
  --c-text:    #c8e8f4;
  --c-text2:   #6a9ab0;
  --c-text3:   #3a6070;
}

/* --- 3. Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 300ms ease, color 300ms ease;
}
/* Subtle atmospheric background for content pages */
body:not(.home-page)::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(0,80,160,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(0,60,120,0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] body:not(.home-page)::before {
  background:
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(0,40,80,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(0,30,60,0.2) 0%, transparent 55%);
}
body:not(.home-page) > * { position: relative; z-index: 1; }
h1, h2, h3, h4 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--accent-subtle);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* --- 4. Navigation Bar --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(230,238,248,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-height);
  transition: background 300ms ease, border-color 300ms ease;
}
[data-theme="dark"] .site-nav {
  background: rgba(10,24,40,0.88);
}
.site-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}
.site-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.site-nav .nav-brand:hover { text-decoration: none; color: var(--ink); }
.site-nav .nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  filter: drop-shadow(0 0 6px rgba(0,180,220,0.3));
}
.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
}
.site-nav .nav-links a {
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}
.site-nav .nav-links a:hover {
  color: var(--accent);
  background: var(--accent-subtle);
  text-decoration: none;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 150ms ease, background 150ms ease;
}
.nav-dropdown-btn:hover {
  color: var(--accent);
  background: var(--accent-subtle);
  transform: none;
  box-shadow: none;
}
.nav-dropdown-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
}
.nav-dropdown.open .nav-dropdown-btn svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 0.35rem;
  min-width: 200px;
  z-index: 200;
}
[data-theme="dark"] .nav-dropdown-menu {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}
.nav-dropdown-menu a:hover {
  color: var(--accent);
  background: var(--accent-subtle);
  text-decoration: none;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--ink);
  background: var(--accent-subtle);
  transform: none;
  box-shadow: none;
}
.theme-toggle svg { width: 18px; height: 18px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
}
.nav-hamburger:hover {
  color: var(--ink);
  transform: none;
  box-shadow: none;
}
.nav-hamburger svg { width: 20px; height: 20px; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: rgba(230,238,248,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: 1rem 1.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  transition: background 300ms ease, border-color 300ms ease;
}
[data-theme="dark"] .mobile-nav {
  background: rgba(10,24,40,0.98);
}
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav-section-title {
  display: block;
  padding: 0.7rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  border-bottom: 1px solid var(--accent-subtle);
}
.mobile-nav a:hover {
  color: var(--accent);
  background: var(--accent-subtle);
  text-decoration: none;
}
.mobile-nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  opacity: 0.6;
  margin-top: 0.8rem;
  border-bottom: none;
  cursor: default;
}

/* --- 5. Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
  transition: border-color 300ms ease;
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.site-footer h4 {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.7;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 200ms ease;
}
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--accent); }

/* --- 6. Layout Utilities --- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem;
}
.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem;
}
.grid-2col {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.5rem;
}
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* --- 7. Cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.card:hover {
  border-color: rgba(0,120,200,0.2);
}
[data-theme="dark"] .card:hover {
  border-color: rgba(0,180,220,0.2);
}
.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.card a { color: var(--accent); text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* --- 8. Hero Sections --- */
.hero {
  padding: 3rem 0 2rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 65ch;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* --- 9. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, #00a8c4 0%, #0066cc 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(0,150,200,0.2), 0 2px 12px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* Action button (for checkout forms) */
button.btn-action {
  background: linear-gradient(135deg, #00a8c4 0%, #0066cc 100%);
  border: none;
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 0 20px rgba(0,150,200,0.2), 0 2px 12px rgba(0,0,0,0.15);
}
button.btn-action:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0,150,200,0.25), 0 4px 16px rgba(0,0,0,0.2);
}
button.btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
button.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* --- 10. Forms --- */
select, input[type="text"] {
  font-family: var(--mono);
  font-size: 0.82rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
  background: var(--card);
  color: var(--ink);
  transition: border-color 200ms ease, background 200ms ease;
}
select:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}
label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* --- 11. Checkout-Specific --- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: background 300ms ease, border-color 300ms ease;
}
.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.small {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Plan cards */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.plan:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,120,200,0.1);
}
.plan h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.plan p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.plan button {
  margin-top: auto;
  width: 100%;
}

/* Setup grid */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}
.setup-field {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.9rem;
}
.setup-field select, .setup-field input { width: 100%; }
.method-tools {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}
.method-tools label {
  margin: 0;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.04em;
}
.method-tools input[type="text"] { max-width: 280px; }

/* Payment display */
.mono {
  font-family: var(--mono);
  font-size: 0.85rem;
  word-break: break-all;
  background: var(--accent-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}
.hidden { display: none !important; }
.row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1rem;
}
.qr {
  width: 200px;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.row p { margin: 0.35rem 0 0.3rem; }

/* Status flow */
.status-flow {
  margin: 0.2rem 0 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.status-steps {
  display: flex;
  align-items: center;
  gap: 0.36rem;
  flex-wrap: wrap;
}
.status-step {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}
.status-step.done { color: var(--accent); }
.status-step.active {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-subtle);
}
.status-arrow {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.status-arrow.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: flow-strip 1.1s linear infinite;
}
.status-arrow.done { background: var(--accent); opacity: 0.5; }
.status-meta {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}
@keyframes flow-strip {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

/* Payment notice */
.payment-notice {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}
.payment-notice.notice-progress {
  border-left-color: #f59e0b;
  background: color-mix(in srgb, #f59e0b 8%, var(--card));
}
.payment-notice.notice-success {
  border-left-color: #22c55e;
  background: color-mix(in srgb, #22c55e 8%, var(--card));
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  background: var(--card);
  transition: border-color 200ms ease;
}
.info-card:hover { border-color: var(--accent); }
.info-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}
.info-card a { color: var(--accent); text-decoration: none; font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

/* Controls */
.controls {
  display: flex;
  gap: 0.9rem;
  align-items: end;
  flex-wrap: wrap;
}

/* Steps list (homepage) */
.steps-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}
.steps-list li { margin: 0.25rem 0; }

/* FAQ items */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.75rem 1rem;
  margin-top: 0.6rem;
  transition: border-color 300ms ease;
}
.faq-item:hover { border-color: rgba(0,120,200,0.2); }
[data-theme="dark"] .faq-item:hover { border-color: rgba(0,180,220,0.2); }
.faq-item summary {
  cursor: pointer;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-size: 0.88rem;
}
.faq-item p {
  margin: 0.5rem 0 0.1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* --- 12. Content Page Styles --- */
/* Typography */
p, li {
  color: var(--muted);
  line-height: 1.6;
}
h2 {
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
ul, ol {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

/* TOC sidebar */
.toc a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  transition: color 200ms ease;
}
.toc a:hover { color: var(--accent); text-decoration: none; }
.toc li { margin: 0.3rem 0; }

/* Details / FAQ */
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.75rem 1rem;
  margin-top: 0.65rem;
  transition: border-color 300ms ease, background 300ms ease;
}
details:hover { border-color: rgba(0,120,200,0.25); }
[data-theme="dark"] details:hover { border-color: rgba(0,180,220,0.25); }
details[open] { border-color: var(--accent); }
summary {
  cursor: pointer;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-size: 0.88rem;
}
details p {
  margin: 0.5rem 0 0.2rem;
  font-size: 0.875rem;
}

/* Note / Warning callouts */
.note {
  border-left: 2px solid var(--accent);
  background: var(--accent-subtle);
  padding: 0.85rem 1rem;
  border-radius: 0 4px 4px 0;
  color: var(--muted);
  margin-top: 0.8rem;
  font-size: 0.88rem;
  font-style: italic;
}
.warn {
  border-left: 2px solid #f59e0b;
  background: rgba(245,158,11,0.08);
  padding: 0.85rem 1rem;
  border-radius: 0 4px 4px 0;
  color: var(--muted);
  margin-top: 0.8rem;
  font-size: 0.88rem;
  font-style: italic;
}

/* Info callout */
.info {
  border-left: 2px solid var(--accent);
  background: var(--accent-subtle);
  padding: 0.85rem 1rem;
  border-radius: 0 4px 4px 0;
  color: var(--muted);
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-style: italic;
}

/* Policy pages — section separators instead of heavy cards */
.section-separator {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

/* --- Landing Page Sections --- */
.hero-bullets {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}
.hero-bullets li {
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.15rem;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.landing-section {
  padding: 2.5rem 0 0;
}
.landing-heading {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}
.landing-subtext {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  max-width: 60ch;
}

/* Audience grid */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.audience-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--card);
  transition: border-color 200ms ease;
}
.audience-item:hover { border-color: var(--accent); }
.audience-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.audience-item span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--card);
  transition: border-color 200ms ease;
}
.step-card:hover { border-color: var(--accent); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a8c4 0%, #0066cc 100%);
  color: #fff;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}
.step-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Landing CTA */
.landing-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 2rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.landing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,120,200,0.04) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .landing-cta::before {
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,150,200,0.06) 0%, transparent 70%);
}
.landing-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  position: relative;
}
.landing-cta p {
  margin: 0 auto 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 50ch;
  font-style: italic;
  position: relative;
}

/* Returning users */
.returning-section {
  padding: 2.5rem 0 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

/* FAQ list (no outer card) */
.faq-list {
  max-width: 720px;
}

/* --- 13. Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex !important; }

  .grid-2col { grid-template-columns: 1fr; }
  .grid-3col { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .setup-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .qr { width: 180px; height: 180px; }
  .audience-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .hero { padding: 2rem 0 1.25rem; }
  .hero h1 { font-size: 1.5rem; }

  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .wrap, .wrap-narrow { padding: 1.5rem 1.25rem; }
}

/* --- 14. Transitions --- */
.card, .panel, .info-card, .plan, details, .faq-item, .note, .warn, .info,
.site-nav, .site-footer, .mobile-nav, .mono, .setup-field, .status-flow {
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

/* --- 15. Blog / Articles --- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .article-grid { grid-template-columns: 1fr 1fr; }
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: box-shadow 200ms ease, transform 100ms ease;
}
.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.article-card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.article-card-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.4;
}
.article-card-summary {
  color: var(--muted, #64748b);
  font-size: 0.92rem;
  margin: 0 0 auto;
  line-height: 1.5;
}
.article-card-meta {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted, #64748b);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.article-empty {
  text-align: center;
  color: var(--muted, #64748b);
  padding: 3rem 1rem;
}

/* Article detail page */
.article-detail {
  max-width: 760px;
  margin: 0 auto;
}
.article-header {
  margin-bottom: 2rem;
}
.article-header h1 {
  margin: 0 0 0.75rem;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted, #64748b);
  margin-bottom: 1.25rem;
}
.article-cover {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.article-tag {
  display: inline-block;
  background: var(--accent-subtle);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.15em 0.6em;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-content h2 { font-family: 'Cinzel', Georgia, serif; font-size: 1.4rem; font-weight: 400; letter-spacing: 0.02em; margin: 2rem 0 0.75rem; }
.article-content h3 { font-family: 'Cinzel', Georgia, serif; font-size: 1.2rem; font-weight: 400; letter-spacing: 0.02em; margin: 1.5rem 0 0.5rem; }
.article-content p { margin: 0 0 1.25rem; }
.article-content ul, .article-content ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 0 0 1.25rem;
  padding: 0.5rem 1rem;
  color: var(--muted, #64748b);
  background: var(--bg);
  border-radius: 0 6px 6px 0;
}
.article-content pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}
.article-content code {
  background: var(--bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: var(--mono);
}
.article-content pre code {
  background: none;
  padding: 0;
}
.article-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1rem 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
}
.article-content th, .article-content td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.article-content th {
  background: var(--bg);
  font-weight: 600;
}
.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.article-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.article-share-x {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.article-share-x svg {
  flex-shrink: 0;
}

/* ===================================================================
   16. HOMEPAGE — TaoFlow Redesign
   =================================================================== */

/* -- Body overrides -- */
.home-page {
  background: var(--c-void);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
  transition: background 0.4s ease, color 0.4s ease;
}
.home-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(0,40,80,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 80%, rgba(0,30,60,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(0,20,45,0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.home-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,220,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,220,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.page-wrap {
  position: relative;
  z-index: 1;
}

/* -- Typography overrides -- */
.home-page h1, .home-page h2, .home-page h3, .home-page h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.home-page p, .home-page li { color: var(--c-text2); }
.home-page a { color: var(--c-cyan); text-decoration: none; transition: color 0.2s; }
.home-page a:hover { color: #fff; text-decoration: none; }

.display {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, #00e5ff 0%, #80d8ff 45%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -- Nav -- */
.home-page nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  filter: drop-shadow(0 0 8px rgba(0,229,255,0.4));
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
}
.home-page .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  flex: none;
  padding: 0;
  margin: 0;
}
.home-page .nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text2);
  transition: color 0.2s;
  padding: 0;
  border-radius: 0;
  font-weight: 400;
  background: none;
}
.home-page .nav-links a:hover { color: var(--c-cyan); background: none; }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 9px 22px;
  background: transparent;
  border: 1px solid var(--c-cyan);
  color: var(--c-cyan) !important;
  border-radius: var(--r-sm);
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: var(--c-cyan) !important;
  color: var(--c-void) !important;
}
.home-page .nav-links .theme-toggle { margin-left: 8px; }
#theme-toggle-mobile { display: none; }

/* -- Theme Toggle (pill style) -- */
.home-page .theme-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--c-mid);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
  color: inherit;
}
.home-page .theme-toggle:hover { transform: none; box-shadow: none; }
.theme-toggle-knob {
  position: absolute;
  left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c4d4, #0066cc);
  box-shadow: 0 2px 8px rgba(0,150,220,0.4);
  transition: transform 0.35s var(--ease-out), background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle-icon {
  font-size: 11px;
  line-height: 1;
  user-select: none;
}

/* -- Hamburger -- */
.home-page .nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  color: inherit;
}
.home-page .nav-hamburger:hover { transform: none; box-shadow: none; }
.home-page .nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--c-text2);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.home-page .nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--c-cyan); }
.home-page .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.home-page .nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--c-cyan); }

/* -- Mobile Menu -- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(2, 8, 16, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--c-border);
  z-index: 99;
  padding: 0;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s, background 0.4s ease, border-color 0.4s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  list-style: none;
  padding: 16px 0 20px;
  margin: 0;
}
.mobile-menu ul li a {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text2);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border2);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a:hover { color: var(--c-cyan); padding-left: 32px; }
.mobile-menu .mobile-cta {
  margin: 4px 24px 16px;
  display: block;
  padding: 13px 24px;
  text-align: center;
  background: linear-gradient(135deg, #00c4d4 0%, #0066cc 100%);
  color: #fff !important;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 500;
}

/* -- Hero -- */
.home-page .hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  padding: 120px 80px 80px;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-content { max-width: 640px; }
.home-page .hero p { color: var(--c-text2); margin: 0; max-width: none; font-size: inherit; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-cyan);
  opacity: 0.7;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--c-cyan);
  opacity: 0.5;
}
.home-page .hero h1 {
  margin-bottom: 32px;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, #00e5ff 0%, #80d8ff 45%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--c-text2);
  line-height: 1.75;
  margin-bottom: 52px;
  font-style: italic;
}
.hero-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 52px;
}
.hero-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-text2);
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px var(--c-cyan);
  flex-shrink: 0;
}
.home-page .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0;
}

/* -- Buttons (homepage) -- */
.home-page .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #00c4d4 0%, #0066cc 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 30px rgba(0,180,220,0.25), 0 4px 20px rgba(0,0,0,0.4);
  font-weight: 400;
}
.home-page .btn-primary:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.home-page .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: transparent;
  color: var(--c-text2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  font-weight: 400;
}
.home-page .btn-ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); background: transparent; }

/* -- Hero visual -- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-icon-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  animation: hp-float 7s ease-in-out infinite;
}
.hero-icon-wrap svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 50px rgba(0,229,255,0.2)) drop-shadow(0 0 100px rgba(0,100,255,0.1));
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.08);
  animation: hp-spin linear infinite;
}
.orbit-1 { width: 380px; height: 380px; top: -30px; left: -30px; animation-duration: 40s; }
.orbit-2 { width: 450px; height: 450px; top: -65px; left: -65px; animation-duration: 60s; animation-direction: reverse; }
.orbit-dot {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px var(--c-cyan);
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}
@keyframes hp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes hp-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* -- Section base -- */
.home-page section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 80px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-cyan);
  opacity: 0.55;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--c-cyan);
  opacity: 0.5;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  color: var(--c-text);
  margin-bottom: 16px;
  font-weight: 400;
}
.section-sub {
  color: var(--c-text2);
  font-size: 17px;
  max-width: 520px;
  font-style: italic;
  margin-bottom: 64px;
  line-height: 1.75;
}
.divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}
.divider hr {
  border: none;
  border-top: 1px solid var(--c-border2);
  margin: 0;
}

/* -- Audience grid (For Who) -- */
.home-page .audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--c-border2);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.audience-card {
  background: var(--c-deep);
  padding: 40px 36px;
  transition: background 0.25s;
}
.audience-card:hover { background: var(--c-mid); }
.audience-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-cyan);
  opacity: 0.4;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.audience-card h3 {
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--c-text);
  margin-bottom: 12px;
}
.audience-card p {
  font-size: 14px;
  color: var(--c-text2);
  line-height: 1.7;
  margin: 0;
}

/* -- Why grid -- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--c-border2);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.why-card {
  background: var(--c-deep);
  padding: 48px 44px;
  transition: background 0.25s;
  position: relative;
}
.why-card:hover { background: var(--c-mid); }
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--c-cyan), transparent);
  transition: height 0.4s var(--ease-out);
}
.why-card:hover::before { height: 100%; }
.why-icon {
  width: 36px; height: 36px;
  margin-bottom: 24px;
  color: var(--c-cyan);
  opacity: 0.7;
}
.why-card h3 {
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--c-text);
  margin-bottom: 14px;
}
.why-card p {
  font-size: 15px;
  color: var(--c-text2);
  line-height: 1.75;
  margin: 0;
}

/* -- Steps (How It Works) -- */
.steps-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-top: 16px;
}
.step {
  background: var(--c-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
}
.step:hover { border-color: rgba(0,220,255,0.3); background: var(--c-mid); }
.step-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 300;
  color: var(--c-ghost);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.step h3 {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--c-text);
  margin-bottom: 10px;
}
.step p {
  font-size: 13px;
  color: var(--c-text2);
  line-height: 1.7;
  margin: 0;
}
.step-arrow {
  color: var(--c-ghost);
  padding: 0 16px;
  font-size: 20px;
  font-family: var(--font-mono);
}

/* -- Checkout -- */
.checkout-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px 100px;
}
.home-page #checkout-setup {
  scroll-margin-top: 80px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  background: var(--c-border2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0,100,200,0.08);
}
.checkout-layout:has(> #payment-panel:not(.hidden)) {
  grid-template-columns: 1fr 1fr;
}
.checkout-panel {
  background: var(--c-deep);
  padding: 52px 48px;
}
.checkout-panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-muted-tf);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-panel-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* -- Form elements (homepage) -- */
.home-page label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-muted-tf);
  margin-bottom: 8px;
  font-weight: 400;
}
.home-page select,
.home-page input[type="text"],
.home-page input[type="password"],
.home-page textarea {
  width: 100%;
  background: var(--c-mid);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 16px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  margin-bottom: 24px;
}
.home-page select:focus,
.home-page input:focus,
.home-page textarea:focus {
  border-color: rgba(0,229,255,0.4);
  background: var(--c-surface);
}
.home-page select option { background: var(--c-deep); }
.field-group { margin-bottom: 8px; }

/* -- Method tools (homepage) -- */
.home-page .method-tools {
  margin-top: 0;
  margin-bottom: 0;
}
.home-page .method-tools label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 0;
  color: var(--c-text2);
  cursor: pointer;
}
.home-page .method-tools input[type="text"] {
  max-width: 280px;
  margin-bottom: 0;
}
.home-page .method-tools input[type="checkbox"] {
  accent-color: var(--c-cyan);
}

/* -- Plan cards -- */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
}
.plan-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  background: var(--c-mid);
  position: relative;
}
.plan-card:hover {
  border-color: var(--c-cyan);
  background: var(--c-surface);
}
.plan-dur {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--c-muted-tf);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.plan-price {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--c-text);
  font-weight: 500;
}

/* -- Status pipeline -- */
.status-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.home-page .status-step {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ghost);
  background: var(--c-mid);
  border-right: 1px solid var(--c-border);
  transition: all 0.3s;
  font-weight: 400;
}
.home-page .status-step:last-child { border-right: none; }
.home-page .status-step.active {
  background: rgba(0,229,255,0.08);
  color: var(--c-cyan);
}
.home-page .status-step.done {
  background: rgba(0,200,160,0.06);
  color: var(--c-teal);
}

/* -- Status info -- */
.status-info {
  background: var(--c-mid);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--c-border2);
}
.status-row:last-child { border-bottom: none; }
.status-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--c-muted-tf);
  text-transform: uppercase;
  flex-shrink: 0;
}
.status-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text);
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}

/* -- QR, Address, Notice -- */
.qr-wrap {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-mid);
  margin-bottom: 20px;
}
.qr-wrap img {
  max-width: 140px;
  border-radius: var(--r-sm);
  display: block;
  margin: 0 auto;
  background: #fff;
}
.address-box {
  background: var(--c-mid);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text);
  word-break: break-all;
  margin-bottom: 20px;
  position: relative;
}
.address-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--c-muted-tf);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.home-page #payment-notice {
  background: rgba(0,180,220,0.05);
  border: 1px solid rgba(0,180,220,0.15);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--c-text2);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  border-left: none;
}
.home-page #payment-notice strong { color: var(--c-text); font-style: normal; }
.home-page #payment-notice.notice-progress {
  background: rgba(245,158,11,0.06);
  border-color: rgba(245,158,11,0.2);
}
.home-page #payment-notice.notice-success {
  background: rgba(0,200,160,0.05);
  border-color: rgba(0,200,160,0.2);
}

/* -- Config card (result) -- */
.config-card {
  background: rgba(0,200,160,0.05);
  border: 1px solid rgba(0,200,160,0.2);
  border-radius: var(--r-md);
  padding: 32px;
  text-align: center;
}
.config-card h3 {
  font-size: 16px;
  color: var(--c-teal);
  margin-bottom: 8px;
}
.config-card p {
  font-size: 13px;
  color: var(--c-text2);
  margin-bottom: 20px;
}

/* -- Recover -- */
.home-page #recover-section { scroll-margin-top: 80px; }
.recover-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--c-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 52px 48px;
}

/* -- FAQ -- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--c-border2);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.home-page .faq-item {
  background: var(--c-deep);
  padding: 32px 36px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  border: none;
  border-radius: 0;
  margin-top: 0;
}
.home-page .faq-item:hover { background: var(--c-mid); }
.faq-q {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.faq-toggle {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--c-muted-tf);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}
.home-page .faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--c-cyan); }
.faq-a {
  display: none;
  font-size: 14px;
  color: var(--c-text2);
  line-height: 1.75;
  margin-top: 14px;
}
.home-page .faq-item.open .faq-a { display: block; }

/* -- Support grid -- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--c-border2);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.support-card {
  background: var(--c-deep);
  padding: 36px 32px;
  text-decoration: none;
  transition: background 0.2s;
  display: block;
  position: relative;
  overflow: hidden;
}
.support-card::after {
  content: '\2192';
  position: absolute;
  bottom: 28px; right: 28px;
  font-family: var(--font-mono);
  color: var(--c-ghost);
  font-size: 14px;
  transition: color 0.2s, transform 0.2s;
}
.support-card:hover { background: var(--c-mid); }
.support-card:hover::after { color: var(--c-cyan); transform: translateX(4px); }
.support-card h3 {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--c-text);
  margin-bottom: 8px;
}
.support-card p {
  font-size: 13px;
  color: var(--c-text2);
  line-height: 1.65;
  margin: 0;
}

/* -- Resources grid -- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.resource-link {
  display: block;
  background: var(--c-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px 28px;
  text-decoration: none;
  transition: all 0.2s;
}
.resource-link:hover {
  border-color: rgba(0,220,255,0.3);
  background: var(--c-mid);
  transform: translateY(-2px);
}
.resource-link h3 {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--c-text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.resource-link p {
  font-size: 12px;
  color: var(--c-text3);
  line-height: 1.6;
  margin: 0;
}

/* -- CTA Band -- */
.cta-band {
  background: linear-gradient(135deg, var(--c-mid) 0%, rgba(0,30,60,0.4) 100%);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(0,150,200,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(24px, 3vw, 40px);
  color: var(--c-text);
  margin-bottom: 12px;
  position: relative;
}
.cta-band p {
  color: var(--c-text2);
  font-size: 17px;
  margin-bottom: 36px;
  font-style: italic;
  position: relative;
}
.cta-band .btn-primary { position: relative; }

/* -- Footer (homepage) -- */
.home-page footer {
  padding: 48px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--c-border2);
  max-width: 1200px;
  margin: 0 auto;
  background: none;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-text3);
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-cyan); }

/* -- Animations -- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s var(--ease-out) both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.55s; }
.fade-up-5 { animation-delay: 0.7s; }

/* -- Smooth transitions for homepage components -- */
.home-page nav, .audience-card, .why-card, .home-page .faq-item, .support-card,
.step, .checkout-panel, .recover-card, .resource-link,
.plan-card, .status-info, .address-box,
.qr-wrap, .cta-band, .mobile-menu,
.home-page select, .home-page input, .home-page .status-step, .status-pipeline {
  transition: background 0.4s ease, border-color 0.4s ease, color 0.3s ease;
}

/* -- Light theme overrides for homepage -- */
[data-theme="light"] .home-page::before {
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(180,220,255,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 80%, rgba(160,210,255,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(200,230,255,0.15) 0%, transparent 70%);
}
[data-theme="light"] .home-page::after {
  background-image:
    linear-gradient(rgba(0,120,180,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,120,180,0.05) 1px, transparent 1px);
}
[data-theme="light"] .home-page nav {
  background: rgba(240,246,252,0.92);
  border-bottom-color: rgba(0,100,160,0.12);
}
[data-theme="light"] .mobile-menu {
  background: rgba(240,246,252,0.98);
  border-bottom-color: rgba(0,100,160,0.12);
}
[data-theme="light"] .mobile-menu ul li a {
  border-bottom-color: rgba(0,100,160,0.08);
}
[data-theme="light"] .display,
[data-theme="light"] .home-page .hero h1 {
  background: linear-gradient(135deg, #005fa0 0%, #0077cc 45%, #003d80 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] .audience-card,
[data-theme="light"] .why-card,
[data-theme="light"] .home-page .faq-item,
[data-theme="light"] .support-card,
[data-theme="light"] .step,
[data-theme="light"] .checkout-panel,
[data-theme="light"] .recover-card,
[data-theme="light"] .resource-link,
[data-theme="light"] .plan-card,
[data-theme="light"] .status-info,
[data-theme="light"] .address-box,
[data-theme="light"] .qr-wrap {
  background: var(--c-deep);
}
[data-theme="light"] .checkout-panel:nth-child(2) {
  background: var(--c-mid);
}
[data-theme="light"] .audience-card:hover,
[data-theme="light"] .why-card:hover,
[data-theme="light"] .home-page .faq-item:hover,
[data-theme="light"] .support-card:hover,
[data-theme="light"] .step:hover,
[data-theme="light"] .resource-link:hover {
  background: var(--c-surface);
}
[data-theme="light"] .home-page select,
[data-theme="light"] .home-page input[type="text"],
[data-theme="light"] .home-page input[type="password"] {
  background: var(--c-surface);
  color: var(--c-text);
}
[data-theme="light"] .home-page select option {
  background: var(--c-deep);
  color: var(--c-text);
}
[data-theme="light"] .home-page #payment-notice {
  background: rgba(0,100,160,0.06);
  border-color: rgba(0,100,160,0.2);
}
[data-theme="light"] .home-page .status-step { background: var(--c-mid); border-right-color: var(--c-border); }
[data-theme="light"] .home-page .status-step.active { background: rgba(0,120,200,0.1); }
[data-theme="light"] .home-page .status-step.done { background: rgba(0,120,100,0.08); }
[data-theme="light"] .config-card {
  background: rgba(0,100,80,0.06);
  border-color: rgba(0,120,100,0.2);
}
[data-theme="light"] .cta-band {
  background: linear-gradient(135deg, var(--c-mid) 0%, rgba(180,220,255,0.3) 100%);
  border-color: var(--c-border);
}
[data-theme="light"] .cta-band::before {
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(0,120,200,0.08) 0%, transparent 70%);
}
[data-theme="light"] .nav-logo-text { color: var(--c-text); }
[data-theme="light"] .home-page .nav-hamburger span { background: var(--c-text2); }
[data-theme="light"] .home-page .btn-ghost {
  color: var(--c-text2);
  border-color: var(--c-border);
}
[data-theme="light"] .home-page .btn-ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
[data-theme="light"] .theme-toggle-knob {
  transform: translateX(24px);
  background: linear-gradient(135deg, #f5c518, #ff8800);
  box-shadow: 0 2px 8px rgba(255,150,0,0.4);
}
[data-theme="light"] .status-pipeline { border-color: var(--c-border); }

/* -- Homepage Responsive: Tablet (<=1024px) -- */
@media (max-width: 1024px) {
  .home-page .hero { padding: 100px 48px 80px; gap: 48px; }
  .home-page section { padding: 80px 48px; }
  .divider { padding: 0 48px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .steps-wrap { grid-template-columns: 1fr; gap: 12px; }
  .step-arrow { display: none; }
  .checkout-layout:has(> #payment-panel:not(.hidden)) { grid-template-columns: 1fr; }
  .checkout-panel { padding: 40px 36px; }
  .checkout-wrap { padding: 0 48px 80px; }
  .cta-band { padding: 80px 48px; }
  .home-page footer { padding: 40px 48px; }
}

/* -- Homepage Responsive: Mobile (<=768px) -- */
@media (max-width: 768px) {
  .home-page nav { padding: 0 20px; height: 56px; }
  .home-page .nav-links { display: none !important; }
  .home-page .nav-hamburger { display: flex; }
  #theme-toggle-mobile { display: flex; }
  .mobile-menu { display: block; top: 56px; }
  .nav-logo-text { font-size: 14px; }
  .nav-logo-mark { width: 28px; height: 28px; }
  .home-page .hero {
    grid-template-columns: 1fr;
    padding: 88px 20px 56px;
    gap: 0;
    min-height: auto;
  }
  .hero-visual { display: none; }
  .hero-eyebrow { font-size: 10px; }
  .display { font-size: clamp(30px, 9vw, 48px); }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-pills { margin-bottom: 36px; gap: 8px; }
  .hero-pill { font-size: 11px; }
  .home-page .hero-actions { flex-direction: column; gap: 12px; }
  .home-page .hero-actions .btn-primary,
  .home-page .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .home-page section { padding: 56px 20px; }
  .divider { padding: 0 20px; }
  .section-title { font-size: clamp(20px, 6vw, 28px); }
  .section-sub { font-size: 15px; margin-bottom: 40px; }
  .home-page .audience-grid,
  .why-grid,
  .faq-grid,
  .support-grid { grid-template-columns: 1fr; gap: 2px; }
  .resources-grid { grid-template-columns: 1fr; gap: 8px; }
  .audience-card { padding: 28px 24px; }
  .why-card { padding: 32px 28px; }
  .why-card h3 { font-size: 16px; }
  .why-card p { font-size: 14px; }
  .steps-wrap { grid-template-columns: 1fr; gap: 10px; }
  .step-arrow { display: none; }
  .step { padding: 28px 24px; }
  .step-num { font-size: 36px; margin-bottom: 14px; }
  .checkout-layout { grid-template-columns: 1fr !important; }
  .checkout-panel { padding: 36px 28px; }
  .checkout-wrap { padding: 0 20px 56px; }
  .plans-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .plan-price { font-size: 15px; }
  .plan-dur { font-size: 9px; }
  .status-pipeline { flex-wrap: wrap; }
  .home-page .status-step { flex: none; width: calc(33.33% - 0.5px); border-right: none; border-bottom: 1px solid var(--c-border); font-size: 8px; padding: 8px 4px; }
  .status-val { font-size: 11px; }
  .recover-card { padding: 32px 24px; }
  .support-card { padding: 28px 24px; }
  .support-card::after { display: none; }
  .resource-link { padding: 20px 24px; }
  .cta-band { padding: 56px 20px; }
  .cta-band h2 { font-size: clamp(20px, 6vw, 28px); }
  .cta-band p { font-size: 15px; margin-bottom: 28px; }
  .cta-band .btn-primary { width: 100%; justify-content: center; }
  .home-page footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 20px;
  }
  .footer-links { flex-wrap: wrap; gap: 16px 24px; }
  .home-page .checkout-panel .btn-primary,
  .home-page .checkout-panel .btn-ghost { font-size: 11px; padding: 13px 16px; }
  .home-page .faq-item { padding: 24px 20px; }
}

/* -- Homepage Responsive: Small Mobile (<=380px) -- */
@media (max-width: 380px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 12px; }
  .home-page .hero-actions .btn-primary,
  .home-page .hero-actions .btn-ghost { padding: 13px 20px; font-size: 11px; }
  .display { font-size: 28px; }
}

/* ===================================================================
   17. GLOBAL SHELL — Unified Header + Footer
   =================================================================== */

body.has-global-shell:not(.home-page) {
  padding-top: 64px;
}

body.has-global-shell > .global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: rgba(2, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] body.has-global-shell > .global-header {
  background: rgba(240, 246, 252, 0.92);
  border-bottom-color: rgba(0, 100, 160, 0.12);
}

.global-nav {
  height: 64px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.global-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.global-nav-logo:hover {
  text-decoration: none;
}

.global-nav-logo-mark {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.global-nav-logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
}

[data-theme="light"] .global-nav-logo-text {
  color: var(--c-text);
}

.global-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.global-nav-links > li {
  position: relative;
}

.global-nav-links > li > a,
.global-nav-dropdown-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text2);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}

.global-nav-links > li > a:hover,
.global-nav-dropdown-btn:hover {
  color: var(--c-cyan);
  text-decoration: none;
}

.global-nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 9px 22px !important;
  border: 1px solid var(--c-cyan);
  border-radius: var(--r-sm);
  color: var(--c-cyan) !important;
  transition: background 0.2s, color 0.2s !important;
}

.global-nav-cta:hover {
  background: var(--c-cyan);
  color: var(--c-void) !important;
}

.global-nav-dropdown {
  position: relative;
}

.global-nav-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s var(--ease-out);
}

.global-nav-dropdown.open .global-nav-chevron {
  transform: rotate(-135deg) translateY(0);
}

.global-nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 290px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  position: absolute;
  top: calc(100% + 14px);
  left: -10px;
  background: rgba(5, 14, 28, 0.98);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  z-index: 130;
}

[data-theme="light"] .global-nav-dropdown-menu {
  background: rgba(230, 238, 248, 0.98);
}

.global-nav-dropdown.open .global-nav-dropdown-menu {
  display: block;
}

.global-nav-dropdown-menu li {
  margin: 0;
}

.global-nav-dropdown-heading {
  padding: 8px 12px 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text3);
}

.global-nav-dropdown-menu li + .global-nav-dropdown-heading {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border2);
}

.global-nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--c-text2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.global-nav-dropdown-menu a:hover {
  background: var(--c-border2);
  color: var(--c-cyan);
  text-decoration: none;
}

.global-theme-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--c-mid);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}

.global-theme-toggle:hover {
  transform: none;
  box-shadow: none;
}

.global-theme-toggle-knob {
  position: absolute;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c4d4, #0066cc);
  box-shadow: 0 2px 8px rgba(0, 150, 220, 0.4);
  transition: transform 0.35s var(--ease-out), background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .global-theme-toggle-knob {
  transform: translateX(24px);
  background: linear-gradient(135deg, #f5c518, #ff8800);
  box-shadow: 0 2px 8px rgba(255, 150, 0, 0.4);
}

.global-theme-icon {
  font-size: 11px;
  line-height: 1;
  user-select: none;
}

.global-nav-mobile-tools {
  display: none;
  align-items: center;
  gap: 12px;
}

.global-nav-balance {
  flex-shrink: 0;
}

.global-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.global-nav-hamburger:hover {
  transform: none;
  box-shadow: none;
}

.global-nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-text2);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.global-nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--c-cyan);
}

.global-nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.global-nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--c-cyan);
}

.global-mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  max-height: calc(100vh - 64px);
  background: rgba(2, 8, 16, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--c-border);
  z-index: 119;
  padding: 0;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s, background 0.4s ease, border-color 0.4s ease;
  pointer-events: none;
  overflow-y: auto;
}

[data-theme="light"] .global-mobile-menu {
  background: rgba(240, 246, 252, 0.98);
  border-bottom-color: rgba(0, 100, 160, 0.12);
}

.global-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.global-mobile-list {
  list-style: none;
  padding: 14px 0 10px;
  margin: 0;
}

.global-mobile-section {
  padding: 14px 24px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text3);
}

.global-mobile-link {
  display: block;
  padding: 13px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text2);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border2);
  transition: color 0.2s, padding-left 0.2s;
}

.global-mobile-link:hover {
  color: var(--c-cyan);
  text-decoration: none;
  padding-left: 32px;
}

.global-mobile-cta {
  margin: 8px 24px 20px;
  padding: 13px 24px;
  text-align: center;
  background: linear-gradient(135deg, #00c4d4 0%, #0066cc 100%);
  color: #fff !important;
  border-radius: var(--r-sm);
  border-bottom: none;
  font-weight: 500;
}

.global-mobile-cta:hover {
  color: #fff !important;
  padding-left: 24px;
}

.global-footer {
  padding: 48px 80px;
  border-top: 1px solid var(--c-border2);
  max-width: 1200px;
  margin: 0 auto;
  background: none;
}

body.has-global-shell:not(.home-page) .global-footer {
  margin-top: 56px;
}

.global-footer-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-text3);
}

.global-footer-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.global-footer-group h4 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text3);
}

.global-footer-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.global-footer-group li {
  margin: 0 0 8px;
}

.global-footer-group a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text2);
  text-decoration: none;
  transition: color 0.2s;
}

.global-footer-group a:hover {
  color: var(--c-cyan);
}

@media (max-width: 1024px) {
  .global-nav {
    padding: 0 32px;
  }

  .global-nav-links {
    gap: 22px;
  }

  .global-footer {
    padding: 40px 48px;
  }

  .global-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.has-global-shell:not(.home-page) {
    padding-top: 56px;
  }

  .global-nav {
    height: 56px;
    padding: 0 20px;
  }

  .global-nav-links {
    display: none;
  }

  .global-nav-logo-text {
    font-size: 14px;
  }

  .global-nav-logo-mark {
    width: 28px;
    height: 28px;
  }

  .global-nav-mobile-tools {
    display: flex;
  }

  .global-nav-balance {
    display: none;
  }

  .global-nav-hamburger {
    display: flex;
  }

  .global-mobile-menu {
    top: 56px;
    max-height: calc(100vh - 56px);
  }

  .global-footer {
    padding: 32px 20px;
  }

  .global-footer-grid {
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .global-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* -- Homepage: .mono override -- */
.home-page .mono {
  font-family: var(--font-mono);
}

/* --- Self-hosted WireGuard Tool (scoped) --- */
.tool-page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 1.2rem) 1rem 2rem;
  display: grid;
  gap: 1rem;
}
.tool-kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text2);
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}
.tool-hero h1 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
}
.tool-hero p {
  color: var(--c-text2);
}
.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.tool-form-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--c-text2);
  font-size: 0.95rem;
}
.tool-form-grid input,
.tool-form-grid select {
  width: 100%;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-mid);
  color: var(--c-text);
  font-family: var(--font-mono);
}
.tool-form-submit {
  grid-column: 1 / -1;
}
.tool-form-error {
  margin-top: 0.5rem;
  color: #d84b5a;
  min-height: 1.2rem;
}
.tool-output h3 {
  margin-bottom: 0.45rem;
}
.tool-code-block {
  margin: 0;
  padding: 0.85rem;
  background: var(--c-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: auto;
  font-family: var(--font-mono);
  color: var(--c-text);
  font-size: 0.84rem;
  line-height: 1.6;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.tool-diagnostics p {
  color: var(--c-text2);
}
.tool-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.tool-compare-grid article {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-mid);
  padding: 0.9rem;
}
.tool-compare-grid h3 {
  margin-top: 0;
}
@media (max-width: 920px) {
  .tool-page-wrap { padding-top: calc(var(--nav-height) + 0.9rem); }
  .tool-form-grid,
  .tool-compare-grid {
    grid-template-columns: 1fr;
  }
}
