/* ============================================================
   AfroDocs — marketing site
   Clean, professional, restrained SaaS. Dark neutral canvas,
   one blue accent, square-ish buttons, conventional layout.
   ============================================================ */

:root {
  /* neutral dark canvas */
  --bg:      #0A0A0C;
  --bg-1:    #100F13;
  --bg-2:    #151419;
  --surface: #131217;
  --surface-2: #1A191F;
  --border:  rgba(255,255,255,0.09);
  --border-2: rgba(255,255,255,0.15);

  /* text */
  --text:    #F3F3F5;
  --text-2:  #9B9BA6;
  --text-3:  #6A6A75;

  /* single accent — AfroDocs blue, used sparingly */
  --brand:   #2F6DF6;
  --brand-2: #5B8DEF;
  --brand-dim: rgba(47,109,246,0.14);
  --ok:      #35C08A;

  /* light product surfaces (real screenshots / recreations) */
  --paper:   #F7FAFE;
  --paper-2: #FFFFFF;
  --paper-line: #E4EAF2;
  --paper-ink: #14233B;
  --paper-mut: #63768F;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r:    6px;    /* buttons, chips */
  --r-md: 10px;   /* inputs, small cards */
  --r-lg: 14px;   /* panels, media frames */

  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: rgba(47,109,246,0.3); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* faint top ambience only — keep it calm */
.bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 460px at 78% -6%, rgba(47,109,246,0.10), transparent 60%),
    var(--bg);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section.tight { padding: clamp(44px, 5vw, 72px) 0; }

/* ============ TYPE ============ */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2);
}
.eyebrow-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2);
  margin-bottom: 14px;
}
.eyebrow-row .free-tag { color: var(--ok); }
.h-hero { font-size: clamp(38px, 5.6vw, 62px); letter-spacing: -0.03em; line-height: 1.04; }
.h-sec  { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.028em; }
.h-sub  { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.lead   { color: var(--text-2); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; }
.muted  { color: var(--text-2); }
.dim    { color: var(--text-3); }
.accent { color: var(--brand-2); }

/* ============ BUTTONS — square with a little radius ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r); font-weight: 550; font-size: 14.5px;
  border: 1px solid transparent; transition: background .15s var(--ease), border-color .15s, color .15s, transform .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #2A62DF; }
.btn-outline { border-color: var(--border-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-outline:hover { border-color: #45454f; background: rgba(255,255,255,0.05); }
.btn-ghost { color: var(--text-2); padding: 10px 12px; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 13px 22px; font-size: 15.5px; }
.btn .i { width: 15px; height: 15px; }

/* download chip */
.dl {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 15px; border-radius: var(--r); border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.02); transition: border-color .15s, background .15s;
}
.dl:hover { border-color: #45454f; background: rgba(255,255,255,0.05); }
.dl svg { flex: none; opacity: .85; }
.dl small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.dl b { font-weight: 600; font-size: 13.5px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px;
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.nav.stuck { background: rgba(10,10,12,0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.nav-in { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 2px; margin-right: auto; }
.nav-links a { font-size: 14px; color: var(--text-2); padding: 8px 12px; border-radius: var(--r); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-r { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--border-2); border-radius: var(--r); align-items: center; justify-content: center; }

.sheet {
  position: fixed; inset: 0; z-index: 45; background: rgba(10,10,12,0.98); backdrop-filter: blur(16px);
  padding: 84px var(--pad) 32px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet a { font-size: 20px; font-weight: 500; padding: 15px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.sheet .row { display: flex; gap: 10px; margin-top: 20px; }
.sheet .row .btn { flex: 1; }

/* ============ HERO ============ */
.hero { padding: clamp(104px, 15vh, 150px) 0 clamp(56px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.hero h1 { margin: 18px 0 18px; }
.hero .lead { max-width: 34ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 20px; }
.hero-dl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-dl .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero .lead { max-width: 46ch; } }

/* ============ MEDIA FRAME (screenshots / uploaded videos / demos) ============ */
.media {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
}
.media-chrome { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.media-chrome .d { width: 9px; height: 9px; border-radius: 50%; background: #34343c; }
.media-chrome .addr { margin-left: 10px; flex: 1; max-width: 300px; font-family: var(--mono); font-size: 11px; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-stage { position: relative; background: var(--paper); }
.media video, .media-stage > img { width: 100%; display: block; }

/* placeholder shown until the admin uploads a recording (Cloudflare URL) */
.media-ph {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(47,109,246,0.05) 0 12px, transparent 12px 24px),
    var(--bg-1);
  color: var(--text-2); text-align: center; padding: 24px;
}
.media-ph .play { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--brand-2); background: rgba(255,255,255,0.02); }
.media-ph b { font-size: 14px; font-weight: 600; color: var(--text); }
.media-ph small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--text-3); }
.media.on-dark .media-stage { background: var(--bg-1); }

/* ============ TRUST STRIP ============ */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-in { padding: 26px 0; }
.trust .cap { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.trust-uni { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); }
.trust-uni .mk { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--brand-2); }
.trust-uni b { font-weight: 550; font-size: 14.5px; color: var(--text); letter-spacing: -0.01em; }

/* ============ SECTION HEAD ============ */
.head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head .eyebrow { display: inline-block; margin-bottom: 14px; }
.head .lead { margin-top: 14px; }

/* ============ STEPS (few clicks. done.) ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.step { background: var(--bg); padding: 30px 28px; }
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: var(--brand-dim); color: var(--brand-2); font-family: var(--mono); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 760px){ .steps { grid-template-columns: 1fr; } }

/* ============ FEATURE ROWS (split) ============ */
.feature { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 8vw, 110px); }
.feature.rev .feature-copy { order: 2; }
.feature-copy .eyebrow { display: inline-block; margin-bottom: 14px; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy p { color: var(--text-2); font-size: 16.5px; margin-bottom: 18px; max-width: 46ch; }
.feature-copy .more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-2); font-weight: 550; font-size: 14.5px; }
.feature-copy .more svg { transition: transform .15s var(--ease); }
.feature-copy .more:hover svg { transform: translateX(3px); }
.feature-points { list-style: none; margin: 0 0 22px; display: flex; flex-direction: column; gap: 11px; }
.feature-points li { display: flex; gap: 11px; color: var(--text-2); font-size: 15px; align-items: flex-start; }
.feature-points li .mk { flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); margin-top: 8px; }
@media (max-width: 900px){ .feature, .feature.rev { grid-template-columns: 1fr; gap: 32px; } .feature.rev .feature-copy { order: 0; } }

/* ============ PRODUCT PANELS (real app recreations, light) ============ */
.panel { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9); color: var(--paper-ink); }
.panel-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--paper-2); border-bottom: 1px solid var(--paper-line); }
.panel-bar .d { width: 9px; height: 9px; border-radius: 50%; }
.panel-bar .d.r { background: #FF6159; } .panel-bar .d.y { background: #FFBD2E; } .panel-bar .d.g { background: #28C840; }
.panel-bar .addr { margin-left: 10px; flex: 1; max-width: 300px; font-family: var(--mono); font-size: 11px; color: var(--paper-mut); background: var(--paper); border: 1px solid var(--paper-line); border-radius: 6px; padding: 4px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-body { padding: 22px 24px; }

.app { display: grid; grid-template-columns: 178px 1fr; min-height: 340px; }
.app-side { background: var(--paper-2); border-right: 1px solid var(--paper-line); padding: 14px 11px; }
.app-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; }
.app-brand img { width: 20px; height: 20px; }
.app-brand span { font-weight: 700; font-size: 13px; }
.side-label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-mut); padding: 11px 8px 5px; }
.side-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; font-size: 12px; color: #48607C; font-weight: 500; }
.side-item .gi { width: 17px; height: 17px; opacity: .7; flex: none; }
.side-item.on { background: var(--brand-dim); color: var(--brand); }
.side-item.on .gi { opacity: 1; }
.app-main { padding: 20px 22px; }
@media (max-width: 560px){ .app { grid-template-columns: 1fr; } .app-side { display: none; } }

/* formatter demo bits */
.up { border: 1.5px dashed var(--paper-line); border-radius: 10px; padding: 26px 18px; text-align: center; }
.up .ic { width: 40px; height: 40px; border-radius: 10px; margin: 0 auto 10px; background: var(--brand-dim); display: flex; align-items: center; justify-content: center; }
.up .fn { font-weight: 600; font-size: 13px; }
.up .fm { font-size: 11.5px; color: var(--paper-mut); margin-top: 2px; }
.opt-chip { font-family: var(--mono); font-size: 10.5px; padding: 5px 10px; border-radius: 6px; background: var(--brand-dim); color: var(--brand); border: 1px solid rgba(47,109,246,0.2); }
.fmt-cta { margin-top: 16px; width: 100%; padding: 11px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; font-size: 13.5px; }
.fmt-step { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--paper-mut); opacity: .4; transition: opacity .15s, color .15s; }
.fmt-step.done { opacity: 1; color: var(--paper-ink); }
.fmt-step .sc { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #C6D4E5; flex: none; display: flex; align-items: center; justify-content: center; }
.fmt-step.done .sc { background: var(--brand); border-color: transparent; color: #fff; }
.fmt-bar { height: 6px; border-radius: 4px; background: #E7EEF6; overflow: hidden; margin: 16px 0 6px; }
.fmt-bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 4px; }
.fmt-pct { font-family: var(--mono); font-size: 11px; color: var(--paper-mut); text-align: right; }
.fmt-ok { text-align: center; padding: 16px 0; }
.fmt-ok .okc { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 12px; background: var(--brand); display: flex; align-items: center; justify-content: center; color: #fff; }
.fmt-ok b { display: block; font-size: 17px; }
.fmt-ok .okm { font-family: var(--mono); font-size: 11.5px; color: var(--brand); margin-top: 4px; }
.fmt-ok .okmeta { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 11px; color: var(--paper-mut); }
.fmt-ok .okmeta b { font-size: 15px; color: var(--paper-ink); }

/* real document content inside light panels */
.doc-text { font-family: "Times New Roman", Georgia, serif; font-size: 12px; line-height: 1.8; color: #24374F; text-align: justify; }
.doc-text b { font-size: 12.5px; color: #14273F; }
.doc-text .cite { color: var(--brand); }
.doc-mark { background: rgba(47,109,246,0.14); border-radius: 2px; padding: 0 2px; }
.toc { font-family: "Times New Roman", Georgia, serif; font-size: 12px; color: #24374F; }
.toc-row { display: flex; align-items: baseline; gap: 8px; padding: 3.5px 0; }
.toc-row .dots { flex: 1; border-bottom: 1px dotted #9FB4CC; transform: translateY(-3px); }
.toc-row .pg { font-variant-numeric: tabular-nums; color: #63768F; }
.toc-row.lvl2 { padding-left: 18px; font-size: 11.5px; }
.covermock { text-align: center; font-family: "Times New Roman", Georgia, serif; color: #1B2E45; border: 1px solid var(--paper-line); border-radius: 8px; padding: 18px 16px; font-size: 9px; letter-spacing: .05em; line-height: 1.75; }
.covermock .cm-state { text-transform: uppercase; color: #43587A; }
.covermock .cm-motto { font-style: italic; font-size: 8.5px; color: #63768F; }
.covermock .cm-uni { text-transform: uppercase; font-weight: 700; font-size: 10px; margin-top: 2px; }
.covermock .cm-title { font-weight: 700; font-size: 11px; line-height: 1.5; max-width: 30ch; margin: 12px auto; text-transform: uppercase; }
.covermock .cm-rule { width: 54px; height: 1px; background: #C6D4E5; margin: 9px auto; }
.covermock .cm-by { font-size: 8.5px; color: #43587A; }
.covermock .cm-by b { font-size: 9.5px; }

/* chart */
.chart { display: flex; align-items: flex-end; gap: clamp(8px,2vw,18px); height: 168px; padding: 18px 4px 0; }
.chart .bar { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--brand); transform-origin: bottom; transform: scaleY(0); position: relative; }
.chart .bar span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--paper-mut); opacity: 0; }

/* before / after compare */
.compare { position: relative; overflow: hidden; background: var(--paper-2); user-select: none; touch-action: none; }
.compare img { width: 100%; display: block; pointer-events: none; }
.compare .clip { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid var(--brand); }
.compare .clip img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; }
.compare .grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,0.4); cursor: ew-resize; }
.compare .tag { position: absolute; top: 12px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 5px; }
.compare .tag.b { left: 12px; background: rgba(9,17,27,0.82); color: #cfe0ff; }
.compare .tag.a { right: 12px; background: var(--brand); color: #fff; }

/* internship: photos + voice note -> report (looping illustration) */
.intern { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 26px 22px; }
@media (max-width: 720px){ .intern { grid-template-columns: 1fr; gap: 16px; } .intern .flowarrow { transform: rotate(90deg); justify-self: center; } }
.intern-in { display: flex; flex-direction: column; gap: 10px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo { aspect-ratio: 4/3; border-radius: 8px; border: 1px solid var(--border); position: relative; overflow: hidden;
  background: linear-gradient(135deg, #22303f, #16202c); opacity: .35; transition: opacity .2s; }
.photo.in { opacity: 1; }
.photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(91,141,239,0.35), transparent 60%); }
.photo .pi { position: absolute; bottom: 6px; left: 7px; font-family: var(--mono); font-size: 8px; color: #9db4d6; }
.voice { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; background: rgba(255,255,255,0.02); }
.voice .mic { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-dim); color: var(--brand-2); display: flex; align-items: center; justify-content: center; flex: none; }
.wave { display: flex; align-items: center; gap: 2.5px; height: 22px; flex: 1; }
.wave i { width: 2.5px; border-radius: 2px; background: var(--brand-2); height: 20%; }
.voice .vt { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.intern-doc { background: var(--paper); border-radius: 8px; padding: 13px; box-shadow: 0 24px 50px -34px rgba(0,0,0,0.8); }
.intern-doc .idh { font-family: "Times New Roman", serif; font-weight: 700; font-size: 11px; color: var(--paper-ink); margin-bottom: 8px; }
.intern-doc .il { height: 6px; border-radius: 3px; background: #E7EEF6; margin-bottom: 6px; opacity: 0; transform: translateX(-6px); }
.intern-doc .il.in { animation: ilin .3s var(--ease) forwards; }
@keyframes ilin { to { opacity: 1; transform: none; } }

/* questionnaire morph */
.morph { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(14px,2.5vw,26px); align-items: center; }
@media (max-width: 720px){ .morph { grid-template-columns: 1fr; gap: 18px; } .morph .flowarrow { transform: rotate(90deg); justify-self: center; } }
.flowarrow { color: var(--text-3); }
.mini-paper { background: var(--paper); border-radius: 10px; padding: 15px; color: var(--paper-ink); box-shadow: 0 24px 50px -34px rgba(0,0,0,0.8); font-size: 11px; }
.mini-paper .mp-h { font-weight: 700; font-size: 10.5px; margin-bottom: 10px; }
.mp-q { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--paper-line); }
.mp-q .n { font-weight: 700; color: var(--paper-mut); }
.mp-q .qtext { flex: 1; font-family: "Times New Roman", Georgia, serif; font-size: 9.5px; line-height: 1.45; color: #33475F; }
.mp-scale { display: flex; gap: 3px; margin-left: auto; }
.mp-scale i { width: 12px; height: 12px; border: 1px solid #C6D4E5; border-radius: 3px; }
.mp-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #B9CADF; flex: none; }
.mp-radio.on { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 42%, transparent 46%); }

/* ============ SPLIT INFO / OFFLINE ============ */
.band { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-1); padding: clamp(28px, 4vw, 48px); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.kv > div { background: var(--bg); padding: 26px; }
.kv .big { font-size: clamp(30px, 4vw, 44px); font-weight: 650; letter-spacing: -0.03em; }
.kv .lab { color: var(--text-2); font-size: 14px; margin-top: 4px; }
@media (max-width: 720px){ .kv { grid-template-columns: 1fr; } }

/* ============ PRICING ============ */
.price { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px){ .price { grid-template-columns: 1fr; gap: 34px; } }
.free-rows { list-style: none; margin-top: 22px; border-top: 1px solid var(--border); }
.free-rows li { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px; border-bottom: 1px solid var(--border); }
.free-rows li .nm { font-size: 16px; font-weight: 500; }
.free-rows li .fx { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.paid { border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 26px; background: var(--surface); }
.paid .k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.paid h3 { font-size: 22px; margin: 8px 0 6px; }
.paid p { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }
.packs { display: flex; flex-direction: column; margin-bottom: 20px; }
.pack { display: flex; align-items: baseline; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.pack .p-n { color: var(--text-2); }
.pack .p-c { font-family: var(--mono); color: var(--text); }
.pack .p-c b { color: var(--brand-2); }

/* ============ FAQ ============ */
.faq { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 2px; text-align: left; font-size: 17px; font-weight: 550; letter-spacing: -0.01em; }
.faq-q .x { width: 22px; height: 22px; position: relative; flex: none; }
.faq-q .x::before, .faq-q .x::after { content: ""; position: absolute; background: var(--text-2); transition: transform .2s var(--ease), opacity .2s; }
.faq-q .x::before { top: 50%; left: 2px; right: 2px; height: 1.5px; transform: translateY(-50%); }
.faq-q .x::after { left: 50%; top: 2px; bottom: 2px; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .x::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq-item.open .faq-q { color: var(--brand-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); }
.faq-a p { padding: 0 2px 24px; color: var(--text-2); font-size: 16px; max-width: 68ch; }

/* ============ CTA ============ */
.cta { text-align: center; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-1); padding: clamp(48px, 7vw, 84px) var(--pad); }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--text-2); max-width: 46ch; margin: 0 auto 26px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.foot { border-top: 1px solid var(--border); padding: 56px 0 34px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 780px){ .foot-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { color: var(--text-3); font-size: 14px; max-width: 30ch; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-2); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; font-family: var(--mono); }

/* ============ SUBPAGES ============ */
.subhero { padding: clamp(110px, 15vh, 150px) 0 clamp(36px, 5vw, 60px); }
.subhero h1 { margin: 16px 0 18px; max-width: 18ch; }
.subhero .lead { max-width: 54ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); margin: 44px 0 14px; }
.prose p { color: var(--text-2); margin-bottom: 16px; font-size: 16.5px; }
.prose .lead-p { font-size: 20px; color: var(--text); }

/* ============ REVEAL (fast) ============ */
.rise { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rise.seen { opacity: 1; transform: none; }
.rise.d1 { transition-delay: .05s; } .rise.d2 { transition-delay: .1s; } .rise.d3 { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE NAV ============ */
@media (max-width: 840px){
  .nav-links { display: none; }
  .nav-r .btn-ghost { display: none; }
  .burger { display: flex; }
}

/* ============================================================
   PRODUCTION POLISH
   ============================================================ */

/* one workspace: every product screen shares the app shell.
   The active tool's row carries a left accent bar. */
.app-main { min-height: 300px; }
.side-item { position: relative; }
.side-item.on::before { content: ""; position: absolute; left: -11px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--brand); }
.app-top { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--paper-line); }
.app-top .tt { font-weight: 600; font-size: 12.5px; color: var(--paper-ink); }
.app-top .av { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* premium micro-interactions */
.media { transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); will-change: transform; }
.media:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 44px 96px -46px rgba(0,0,0,0.95); }
.step { transition: background .2s var(--ease); }
.step:hover { background: var(--bg-1); }
.trust-uni { transition: color .2s; } .trust-uni:hover b { color: var(--brand-2); }
.pack { transition: color .15s; }
.faq-q:hover { color: var(--brand-2); }
.dl:active, .btn:active { transform: translateY(1px); }

/* premium metric cards (was a slab) */
.kv { grid-template-columns: repeat(3, 1fr); gap: 16px; background: transparent; border: 0; border-radius: 0; }
.kv > div { position: relative; overflow: hidden; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 28px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.kv > div:hover { border-color: var(--border-2); transform: translateY(-3px); }
.kv > div::before { content: ""; position: absolute; left: 28px; top: 0; width: 34px; height: 2px; background: var(--brand); }
.kv .big { font-size: clamp(30px, 4vw, 46px); font-weight: 650; letter-spacing: -0.03em; }
.kv .lab { color: var(--text-2); font-size: 14px; margin-top: 6px; max-width: 22ch; }

/* pricing: make "free" unmistakable */
.free-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.free-head .t { flex: 1 1 200px; min-width: 0; }
.free-rows li .nm { min-width: 0; }
.free-head .n { font-size: clamp(30px, 4vw, 42px); font-weight: 650; letter-spacing: -0.03em; color: var(--ok); }
.free-head .t { color: var(--text-2); font-size: 15px; }
.free-rows { margin-top: 8px; }
.free-rows li .fx { color: var(--ok); font-weight: 600; }

/* transformation motif for outcome sections — clean product copy,
   muted "before" leading to a brand-coloured "after" with a crisp arrow */
.xform { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; margin-bottom: 18px; font-size: 13.5px; line-height: 1.3; letter-spacing: -0.006em; }
.xform b { font-weight: 400; white-space: nowrap; }
.xform b:first-of-type { color: var(--text-3); }
.xform b:last-of-type { color: var(--brand-2); font-weight: 600; }
.xform .ar { display: inline-flex; align-items: center; color: var(--brand); }
.xform .ar svg { width: 15px; height: 15px; }

/* ============================================================
   MOBILE — designed for phones, not a stacked desktop
   ============================================================ */
@media (max-width: 640px){
  :root { --pad: 18px; }

  /* hero: shorter, product preview reached fast */
  .hero { padding: 84px 0 36px; }
  .hero-grid { gap: 26px; }
  .h-hero { font-size: clamp(30px, 8.6vw, 39px); line-height: 1.08; letter-spacing: -0.03em; }
  .hero .lead { font-size: 15.5px; max-width: none; }
  .hero-cta { gap: 10px; margin: 20px 0 14px; }
  .hero-cta .btn { flex: 1; padding: 12px 14px; }
  .hero-dl { gap: 8px; }
  .hero-dl .lbl { flex-basis: 100%; margin-bottom: 1px; }
  .hero-dl .dl { flex: 1; justify-content: center; padding: 9px 10px; }
  .hero-dl .dl small { display: none; }

  /* tighter section rhythm */
  .section { padding: 52px 0; }
  .section.tight { padding: 34px 0; }
  .feature + .feature { margin-top: 46px; }
  .feature { gap: 22px; }
  .head { margin-bottom: 26px; }
  .h-sec { font-size: clamp(25px, 7.6vw, 33px); }
  .h-sub { font-size: 20px; letter-spacing: -0.02em; }
  .feature-copy p { font-size: 15.5px; }

  /* metrics: 2-up grid, offline spans full width */
  .kv { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kv > div { padding: 18px 16px; }
  .kv > div::before { left: 16px; }
  .kv .big { font-size: 25px; }
  .kv > div:last-child { grid-column: 1 / -1; }

  /* pricing: compact */
  .paid { padding: 20px; }
  .free-rows li { padding: 13px 2px; }

  /* touch targets */
  .nav-links a { min-height: 42px; display: flex; align-items: center; }
  .foot-col a { padding: 8px 0; }
  .faq-q { padding: 18px 2px; font-size: 16px; }
  .btn { padding: 12px 16px; }

  /* band padding */
  .band { padding: 22px 18px; }
  .cta { padding: 44px 20px; }
}

/* larger mobile menu, premium spacing + stagger */
@media (max-width: 840px){
  .sheet { padding-top: 78px; gap: 0; }
  .sheet a { font-size: 22px; padding: 17px 4px; }
  .sheet.open a { animation: sheetIn .3s var(--ease) backwards; }
  .sheet.open a:nth-child(1){ animation-delay: .02s; } .sheet.open a:nth-child(2){ animation-delay: .05s; }
  .sheet.open a:nth-child(3){ animation-delay: .08s; } .sheet.open a:nth-child(4){ animation-delay: .11s; } .sheet.open a:nth-child(5){ animation-delay: .14s; }
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(8px); } }

/* hero grid children must be able to shrink so nothing forces overflow;
   the two CTAs share the row and only wrap on extremely narrow screens */
.hero-grid > * { min-width: 0; }
@media (max-width: 640px){
  .hero-cta .btn { min-width: 0; }
}

/* ============================================================
   DARK DEMO PANELS — dark app canvas, white document pages,
   no browser chrome. The product surface matches the site.
   ============================================================ */
.media-chrome { display: none; }                 /* remove the browser top bar */

.media-stage { background: #0C0C11; }
.media.on-dark .media-stage { background: #0C0C11; }
.media-stage .app { background: #0C0C11; }
.media-stage .app-side { background: #131319; border-right-color: rgba(255,255,255,0.07); }
.media-stage .app-brand { color: var(--text); }
.media-stage .side-label { color: var(--text-3); }
.media-stage .side-item { color: var(--text-2); }
.media-stage .side-item .gi { opacity: .75; }
.media-stage .side-item.on { background: var(--brand-dim); color: var(--brand-2); }
.media-stage .side-item.on .gi { opacity: 1; }
.media-stage .side-item.on::before { background: var(--brand); }
.media-stage .app-main { background: #0C0C11; color: var(--text); }
.app-main.wrapped { padding: 18px; }

/* document content sits on a real white page floating on the dark canvas */
.media-stage .panel-body {
  border-radius: 10px;
  box-shadow: 0 26px 60px -34px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,255,255,0.05);
}

/* hero formatter — dark upload + processing states */
#fmt-main { color: var(--text); }
#fmt-main .up { border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.02); }
#fmt-main .up .fn { color: var(--text); }
#fmt-main .up .fm { color: var(--text-3); }
#fmt-main .fmt-step { color: var(--text-3); }
#fmt-main .fmt-step.done { color: var(--text); }
#fmt-main .fmt-step .sc { border-color: rgba(255,255,255,0.28); }
#fmt-main .fmt-bar { background: rgba(255,255,255,0.09); }
#fmt-main > div > div[style*="color:var(--paper-mut)"] { color: var(--text-3) !important; }

/* formatted-document outcome — a clean document icon on the dark canvas */
.fmt-done { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 260px; padding: 20px; }
.fmt-done .fd-file { position: relative; width: 68px; height: 68px; margin-bottom: 18px; }
.fmt-done .fd-file .doc { width: 68px; height: 68px; color: var(--brand-2); }
.fmt-done .fd-file .badge { position: absolute; right: -6px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(47,109,246,0.5); border: 2px solid #0C0C11; }
.fmt-done b { font-size: 17px; font-weight: 600; color: var(--text); }
.fmt-done .fd-sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--brand-2); margin-top: 6px; }
.fmt-done .fd-dl { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); font-size: 12.5px; color: var(--text-2); }
.fmt-done .fd-dl svg { color: var(--brand-2); flex: none; }

/* ============================================================
   CONTENT UPDATES — steps icons, feat-list, pack-cards, offline
   ============================================================ */

/* hero: more breathing room between CTAs and platform badges */
.hero-cta { margin: 32px 0 24px; }
.hero-cta .btn-lg { padding: 14px 28px; }
.hero-dl { margin-top: 0; }

/* steps: icon replaces number badge */
.step-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-dim); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
.step-icon svg { width: 22px; height: 22px; stroke: var(--brand-2); }
/* focal (centre) card — slightly elevated */
.step.focal { background: linear-gradient(160deg, rgba(47,109,246,0.04) 0%, transparent 60%); }
.step.focal .step-icon { background: rgba(47,109,246,0.18); }
.step.focal h3 { color: var(--brand-2); }
/* remove old number badge when icon is used */
.step .n { display: none; }

/* feature checklist — same dots as feature-points */
.feat-list { list-style: none; margin: 14px 0 22px; display: flex; flex-direction: column; gap: 9px; }
.feat-list li { display: flex; gap: 11px; color: var(--text-2); font-size: 14.5px; align-items: flex-start; }
.feat-list li .mk { flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); margin-top: 8px; }

/* new pricing plan cards */
.pack-card { padding: 13px 15px; border-radius: var(--r-md); border: 1px solid var(--border); margin-bottom: 9px; transition: border-color .15s var(--ease); }
.pack-card:last-child { margin-bottom: 0; }
.pack-card:hover { border-color: var(--border-2); }
.pack-card.featured { border-color: rgba(47,109,246,0.30); background: rgba(47,109,246,0.03); }
.pack-row { display: flex; align-items: center; gap: 8px; }
.pack-row .p-n { flex: 1; font-weight: 600; font-size: 14px; }
.pack-row .p-c { font-family: var(--mono); font-size: 13px; }
.pack-row .p-c b { color: var(--brand-2); }
.pack-badge { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.pack-badge.pop { background: var(--brand-dim); color: var(--brand-2); }
.pack-badge.val { background: rgba(53,192,138,0.12); color: var(--ok); }
.pack-credits { font-size: 12px; color: var(--text-3); margin-top: 3px; font-family: var(--mono); }

/* offline section — single-column, no media */
.offline-block { max-width: 660px; }
.offline-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* kv cards: allow longer title text without overflow */
.kv .big { white-space: normal; word-break: break-word; }
.kv .big.lg { font-size: clamp(20px, 2.8vw, 32px); letter-spacing: -0.024em; }

/* footer: 5-column layout */
.foot-top { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1000px){ .foot-top { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 640px){ .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
