/* ==========================================================================
   AdeptShare — static site styles
   Lightweight, responsive, no external dependencies.
   ========================================================================== */

:root {
  --bg: #f7f8fb;
  --bg-soft: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #5b6b82;
  --muted-2: #7c8aa0;
  --line: #dbe3ee;
  --line-strong: #c8d3e2;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --accent-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --white: #ffffff;
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --max: 1120px;
  --max-prose: 780px;
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 720; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 680; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin: 0.35em 0; }
strong { font-weight: 680; }
small { font-size: 0.875rem; }

::selection { background: #c7d2fe; color: var(--ink); }

:focus-visible {
  outline: 3px solid #818cf8;
  outline-offset: 3px;
  border-radius: 4px;
}

.icon { width: 20px; height: 20px; flex: none; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}
.container-narrow { width: min(100% - 40px, var(--max-prose)); margin-inline: auto; }

.section { padding: 76px 0; }
.section-sm { padding: 48px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(79, 70, 229, 0.30), transparent 60%),
    radial-gradient(700px 360px at 85% 20%, rgba(13, 148, 136, 0.22), transparent 60%),
    #0b1220;
  color: #e5edf7;
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #c7d3e3; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-dark .eyebrow { color: #5eead4; }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 66ch;
}
.muted { color: var(--muted); }
.section-dark .lede { color: #c7d3e3; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: 18px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Migration banner
   -------------------------------------------------------------------------- */

.migration-banner {
  background: #0b1220;
  color: #dbe7f5;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.migration-banner[hidden] { display: none; }
.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}
.banner-inner p { margin: 0; }
.banner-inner strong { color: var(--white); }
.banner-inner a { color: #a5b4fc; font-weight: 650; }
.banner-close {
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  color: #dbe7f5;
  font-size: 18px;
  line-height: 1;
  display: grid; place-items: center;
}
.banner-close:hover { background: rgba(255, 255, 255, 0.12); }

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(14px);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
}
.primary-nav a {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
}
.primary-nav a:hover { background: var(--surface-2); color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.primary-nav .btn { margin-left: 8px; }

/* The header CTA must stay white in every state, including the order page's aria-current state. */
.primary-nav a.btn-primary,
.primary-nav a.btn-primary[aria-current="page"] {
  color: var(--white);
  background: var(--brand);
  border-color: transparent;
}
.primary-nav a.btn-primary:hover,
.primary-nav a.btn-primary[aria-current="page"]:hover {
  color: var(--white);
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 44px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons and badges
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 680;
  font-size: 0.96rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.22); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: #a5b4fc; color: var(--ink); background: #fbfcff; }
.btn-ghost { background: transparent; color: #e5edf7; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.10); color: var(--white); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.88rem; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 18px; height: 18px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-neutral { background: var(--surface-2); color: var(--muted); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  color: #c7d3e3;
  font-size: 0.88rem;
}
.trust-row li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.trust-row .icon { width: 16px; height: 16px; color: #5eead4; }
.trust-row-dark { color: var(--muted); }
.trust-row-dark .icon { color: var(--accent); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 72px;
  background:
    radial-gradient(1000px 480px at 10% 0%, rgba(79, 70, 229, 0.40), transparent 62%),
    radial-gradient(760px 420px at 90% 18%, rgba(13, 148, 136, 0.25), transparent 62%),
    #0b1220;
  color: #e5edf7;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 85%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
}
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
.hero .lede { color: #c7d3e3; max-width: 58ch; }
.hero .btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.page-hero {
  padding: 44px 0 52px;
  background:
    radial-gradient(800px 360px at 12% 0%, rgba(79, 70, 229, 0.10), transparent 65%),
    radial-gradient(600px 300px at 88% 10%, rgba(13, 148, 136, 0.08), transparent 65%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); }
.page-hero .lede { max-width: 62ch; }

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 6px;
}
.price {
  font-size: 2rem;
  font-weight: 780;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.price-note { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   App mockup
   -------------------------------------------------------------------------- */

.app-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
}
.app-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.app-dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.app-dot:nth-child(1) { background: #fca5a5; }
.app-dot:nth-child(2) { background: #fcd34d; }
.app-dot:nth-child(3) { background: #86efac; }
.app-title { margin-left: 6px; font-weight: 680; color: var(--ink-2); font-size: 0.78rem; }
.app-body { padding: 16px; }
.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.app-toolbar strong { font-size: 0.82rem; }
.app-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
}
.app-file-name { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-file-meta { color: var(--muted-2); font-size: 0.72rem; }
.app-file-target {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.app-progress {
  grid-column: 1 / -1;
  height: 6px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}
.app-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
}
.app-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d2fe; }

.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.product-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  flex: none;
}
.product-icon .icon { width: 24px; height: 24px; }
.product-card h3 { margin-bottom: 4px; }
.product-card .product-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.product-card p { color: var(--ink-2); font-size: 0.94rem; }
.product-card .price { font-size: 1.55rem; margin: 4px 0 16px; }
.product-card .btn { margin-top: auto; }
.product-card ul { padding-left: 1.1em; font-size: 0.92rem; color: var(--ink-2); }
.product-card li { margin: 0.3em 0; }

.bundle-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #134e4a;
  font-size: 0.86rem;
  line-height: 1.5;
}
.bundle-note strong { color: #064e3b; }

.guide-card { display: flex; flex-direction: column; height: 100%; }
.guide-card .badge { align-self: flex-start; margin-bottom: 14px; }
.guide-card h3 { margin-bottom: 8px; }
.guide-card p { color: var(--muted); font-size: 0.92rem; }
.guide-card .guide-meta { margin-top: auto; padding-top: 14px; color: var(--muted-2); font-size: 0.78rem; }
.guide-card a { text-decoration: none; color: inherit; }
.guide-card a:hover h3 { color: var(--brand); }

.feature { padding: 22px; }
.feature .icon-wrap {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}
thead th {
  text-align: left;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcff; }
td strong { color: var(--ink); }
.table-note { color: var(--muted); font-size: 0.82rem; margin-top: 12px; }

.yes { color: var(--accent-dark); font-weight: 750; }
.no { color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Callouts, prose and guides
   -------------------------------------------------------------------------- */

.prose {
  max-width: var(--max-prose);
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.78;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.7em; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.45em 0; }
.prose img { border-radius: var(--radius-md); border: 1px solid var(--line); }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
}
.prose pre {
  background: #0b1220;
  color: #e5edf7;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
}
.prose pre code { background: transparent; padding: 0; color: inherit; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-left: 4px solid var(--brand);
  color: var(--muted);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

.callout {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 1.4em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--ink); margin-bottom: 6px; }
.callout-title .icon { width: 18px; height: 18px; color: var(--accent-dark); }

.quick-answer {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0 8px;
}
.quick-answer .eyebrow { color: var(--accent-dark); margin-bottom: 8px; }
.quick-answer p { margin-bottom: 0; color: #134e4a; }
.quick-answer strong { color: #064e3b; }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 26px 0;
}
.toc strong { display: block; margin-bottom: 8px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 0.25em 0; font-size: 0.92rem; }

.step-list { counter-reset: step; list-style: none; padding: 0; margin: 1.4em 0; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 46px;
  margin: 0 0 1.15em;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 780;
  display: grid; place-items: center;
}
.step-list strong { display: block; margin-bottom: 2px; }

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 16px;
}
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.meta-line .icon { width: 15px; height: 15px; color: var(--muted-2); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs .sep { color: var(--line-strong); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 680;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.faq details[open] summary::after { content: "−"; background: var(--brand); border-color: var(--brand); color: #fff; }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(79, 70, 229, 0.36), transparent 65%),
    radial-gradient(600px 280px at 85% 30%, rgba(13, 148, 136, 0.28), transparent 65%),
    #0b1220;
  color: #e5edf7;
  border-radius: var(--radius);
  padding: 40px;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #c7d3e3; max-width: 62ch; }
.cta-band .btn-row { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #0b1220;
  color: #b9c6d8;
  padding: 56px 0 26px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 760; font-size: 1.08rem; margin-bottom: 12px; }
.footer-brand img { width: 34px; height: 34px; }
.site-footer p { color: #9fb0c6; font-size: 0.88rem; }
.site-footer h2 {
  color: #e5edf7;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.5em 0; }
.site-footer a { color: #b9c6d8; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom p { margin: 0; font-size: 0.78rem; color: #8fa1b8; }

/* --------------------------------------------------------------------------
   Utilities for pages
   -------------------------------------------------------------------------- */

.notice {
  border: 1px solid #fde68a;
  background: var(--warn-soft);
  color: #78350f;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.92rem;
}
.notice strong { color: #78350f; }

.kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  background: var(--surface);
}

.anchor-link { color: var(--muted-2); text-decoration: none; font-weight: 400; margin-left: 6px; }
.anchor-link:hover { color: var(--brand); }

.hash {
  font-family: var(--mono);
  font-size: 0.76rem;
  word-break: break-all;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 56px 0 54px; }
  .hero .app-mock { max-width: 620px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 20px 18px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { display: block; padding: 12px 10px; border-radius: 9px; }
  .primary-nav .btn { margin: 10px 0 0; }
  .site-header { position: sticky; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container, .container-narrow { width: min(100% - 28px, var(--max)); }
  .section { padding: 54px 0; }
  .section-sm { padding: 36px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 46px; }
  .hero h1 { font-size: clamp(2.05rem, 9vw, 3rem); }
  .page-hero { padding: 30px 0 38px; }
  .page-hero h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .card { padding: 22px; }
  .cta-band { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .banner-inner { align-items: flex-start; }
  .banner-inner p { font-size: 0.82rem; }
  .app-body { padding: 13px; }
  .app-file { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-bottom { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .price { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .migration-banner, .site-footer, .cta-band, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
