/* FOA — Linear-inspired dark design system */
:root {
  --bg: #08090a;
  --panel: #0f1011;
  --elev: #191a1b;
  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --muted: #8a8f98;
  --faint: #62666d;
  --accent: #5e6ad2;
  --accent-2: #7170ff;
  --accent-3: #8f9bff;
  --ok: #10b981;
  --err: #ff6363;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.05);
  --surf-1: rgba(255,255,255,.02);
  --surf-2: rgba(255,255,255,.04);
  --font: 'Inter Variable','Inter',system-ui,-apple-system,'Segoe UI',Roboto,'PingFang SC','Microsoft YaHei',sans-serif;
  --mono: 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-feature-settings: "cv01","ss03";
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; letter-spacing: .01em;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent-3); text-decoration: none; }
a:hover { color: #a5b0ff; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--elev); padding: 8px 12px; border-radius: 6px; z-index: 99; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(8,9,10,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
header.site .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { font-weight: 590; font-size: 17px; letter-spacing: -.01em; color: var(--text); }
.logo:hover { color: #fff; }
.logo-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }
nav.nav { margin-left: auto; display: flex; gap: 22px; }
nav.nav a { color: var(--muted); font-size: 14px; font-weight: 510; white-space: nowrap; }
section { scroll-margin-top: 96px; }
nav.nav a:hover { color: var(--text); }
.header-cta { flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 510; font-size: 15px; border: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.4); transition: background .15s ease, transform .1s ease; }
.btn:hover { background: #6b77dd; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.alt { background: var(--surf-1); color: var(--text-2); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.btn.alt:hover { background: var(--surf-2); color: #fff; }
.btn.btn--sm { padding: 7px 13px; font-size: 13.5px; border-radius: 6px; }
.btn.off { background: var(--surf-2); color: var(--faint); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(52% 46% at 50% 0%, rgba(94,106,210,.16), transparent 70%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); gap: 56px; align-items: start; position: relative; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 510; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-3); }
.eyebrow__n { color: var(--faint); font-family: var(--mono); font-size: 12px; margin-right: 8px; }
h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 510; line-height: 1.04; letter-spacing: -.028em; margin: 0 0 22px; color: var(--text); }
h1 .mark { color: var(--accent-3); }
.lede, .hero .lede { font-size: 18px; line-height: 1.65; color: #9aa1ab; margin: 0 0 30px; max-width: 56ch; }
.lede em, .hero .lede em { color: var(--text-2); font-style: normal; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.hero__meta span { font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surf-1); }

.spec { background: var(--surf-1); border: 1px solid var(--line); border-radius: 12px; padding: 6px 22px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.spec__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 510; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 16px 0 12px; border-bottom: 1px solid var(--line-2); }
.spec__head span:last-child { font-family: var(--mono); font-size: 11px; color: var(--faint); text-transform: none; letter-spacing: 0; }
.spec dl { margin: 0; }
.spec__row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.spec__row dt { color: var(--muted); font-size: 13.5px; flex-shrink: 0; }
.spec__row dd { margin: 0; color: var(--text-2); font-size: 13.5px; text-align: right; }
.spec__foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.spec__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(16,185,129,.6); flex-shrink: 0; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.sec-head { margin-bottom: 36px; max-width: 640px; }
.sec-head h2, .posture h2, #trial h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 510; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
.sec-head .lead { font-size: 17px; color: var(--muted); margin: 0; }
.sec-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.sec-head--split p.lead { max-width: 44ch; padding-bottom: 4px; }

/* ---------- signal diagram ---------- */
.signal { margin: 0 0 56px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.signal__bar { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--muted); font-weight: 510; }
.signal__hint { color: var(--faint); font-size: 12px; }
.signal__scroll { overflow-x: auto; }
.dg { display: block; width: 100%; min-width: 760px; height: auto; }
/* diagram restyle — CSS overrides SVG presentation attributes */
.dg text { font-family: var(--font); }
.dg-panel { fill: rgba(255,255,255,.015); stroke: var(--line-2); stroke-width: 1.5; }
.dg-block { fill: rgba(255,255,255,.03); stroke: var(--line); stroke-width: 1.5; }
.dg-block-key { fill: rgba(94,106,210,.12); stroke: rgba(130,143,255,.4); stroke-width: 1.5; }
.dg-screen { fill: #101113; stroke: var(--line); }
.dg-plabel { fill: var(--text-2); font-size: 13px; font-weight: 590; letter-spacing: .06em; }
.dg-dim { fill: var(--faint); font-weight: 400; }
.dg-title { fill: var(--text); font-size: 15.5px; font-weight: 590; letter-spacing: -.01em; }
.dg-sub { fill: var(--text-2); font-size: 13px; }
.dg-micro, .dg-mini { fill: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
.dg-mlabel { fill: var(--muted); font-size: 12px; letter-spacing: .08em; }
.dg-note { fill: var(--muted); font-size: 12.5px; }
.dg-tag { font-size: 11.5px; letter-spacing: .1em; }
.dg-acc { fill: var(--accent-3); }
.dg-red { fill: #ff8a80; }
.dg-wire { fill: none; stroke: var(--accent-3); stroke-width: 1.8; opacity: .85; }
.dg [stroke="#c9f45f"] { stroke: var(--accent-3); }
.dg [fill="#c9f45f"] { fill: var(--accent-3); }
.dg [stroke="#55663a"] { stroke: rgba(130,143,255,.45); }
.dg [stroke="#ff7061"] { stroke: #ff8a80; }
.dg-legend text { fill: var(--faint); font-size: 12px; letter-spacing: .05em; }
.dg-legend path { stroke-width: 2; }
.dg-legend [stroke="#c9f45f"] { stroke: var(--accent-3); }
.dg-legend [stroke="#ff7061"] { stroke: #ff8a80; }
.only-sm { display: none; }

/* ---------- interface screenshot figure ---------- */
.shot { display:grid; gap:14px; justify-items:center; background:linear-gradient(180deg, rgba(94,106,210,.09), var(--surf-1) 72%); border:1px solid rgba(130,143,255,.18); border-radius:14px; padding:30px; margin:30px 0 6px; }
.shot img { width:min(100%, 560px); height:auto; border:1px solid rgba(255,255,255,.14); border-radius:10px; box-shadow:0 16px 44px rgba(0,0,0,.55); }
.shot figcaption { text-align:center; }

/* ---------- steps & cues ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 16px; }
.step { background: var(--surf-1); border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; transition: background .15s ease, border-color .15s ease; }
.step:hover { background: var(--surf-2); border-color: var(--line); }
.step__n { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; color: var(--accent-3); }
.step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 590; letter-spacing: -.01em; }
.step p { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); }
.step__meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin: 0; }
.cues { display: flex; flex-wrap: wrap; gap: 8px 30px; padding: 20px 2px 0; }
.cue { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.cue b { font-weight: 510; color: var(--text-2); }
.cue span { color: var(--faint); font-size: 12.5px; }
.cue::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); align-self: center; }

/* ---------- posture ---------- */
.posture { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.9fr); gap: 48px; align-items: start; }
.posture .lead { font-size: 16.5px; }
.fine { font-size: 13px; color: var(--faint); line-height: 1.55; }
.posture__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: var(--surf-1); border: 1px solid var(--line-2); border-radius: 12px; padding: 24px; }
.list-h { margin: 0 0 12px; font-size: 12px; font-weight: 590; letter-spacing: .08em; text-transform: uppercase; }
.list-h--no { color: #ff8a80; }
.list-h--yes { color: var(--ok); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { position: relative; padding: 6px 0 6px 20px; font-size: 14px; color: var(--text-2); }
.plain li::before { content: "×"; position: absolute; left: 2px; color: var(--faint); font-size: 13px; }
.plain--yes li::before { content: "✓"; color: var(--ok); }
.req { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.req__k { display: inline-block; margin-right: 10px; font-size: 11px; font-weight: 590; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); }

/* ---------- pricing ---------- */
.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sheet__col { background: var(--surf-1); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px 24px 14px; transition: border-color .15s ease; }
.sheet__col:hover { border-color: var(--line); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 14px; border-bottom: 1px solid var(--line-2); }
.sheet__id { display: flex; align-items: center; gap: 12px; }
.sheet__idx { font-family: var(--mono); font-size: 12px; color: var(--accent-3); }
.sheet__head h3 { margin: 0; font-size: 19px; font-weight: 590; letter-spacing: -.015em; }
.sheet__head h3 a { color: var(--text); }
.sheet__head h3 a:hover { color: var(--accent-3); }
.mono { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .05em; }
table { width: 100%; border-collapse: collapse; }
.tiers th { text-align: left; font-size: 11px; font-weight: 590; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 12px 8px 8px; }
.tiers td { padding: 14px 8px; border-bottom: 1px solid var(--line-2); font-size: 15px; color: var(--text-2); }
.tiers tr:last-child td { border-bottom: 0; }
.tiers .term { font-weight: 510; color: var(--text); }
.tiers .amt { font-weight: 590; color: var(--text); white-space: nowrap; letter-spacing: -.01em; }
.tiers td.act, th.act { text-align: right; }
.act-row { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tiers tbody tr:nth-child(2) { background: rgba(94,106,210,.06); }
.sheet__fine { margin-top: 18px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
details { background: var(--surf-1); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 20px; }
details[open] { background: var(--surf-2); border-color: var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-size: 15.5px; font-weight: 510; color: var(--text); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 18px; font-weight: 400; transition: transform .15s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- trial ---------- */
.cta { background: linear-gradient(180deg, rgba(94,106,210,.10), var(--surf-1) 60%); border: 1px solid rgba(130,143,255,.25); border-radius: 16px; padding: 40px 36px; box-shadow: 0 0 80px rgba(94,106,210,.10); }
.cta h2 { max-width: 20ch; }
.trial-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 22px 0 6px; }
.trial-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 590; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trial-form input, .trial-form select { padding: 10px 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; color: var(--text); font: inherit; font-size: 15px; min-width: 230px; }
.trial-form input::placeholder { color: var(--faint); }
.trial-form input:focus, .trial-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94,106,210,.25); }
.trial-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.trial-msg { min-height: 1.4em; font-weight: 510; margin: 12px 0 4px; }
.trial-msg.ok { color: var(--ok); }
.trial-msg.err { color: var(--err); }

/* ---------- footer ---------- */
footer.site { margin-top: 60px; border-top: 1px solid var(--line-2); padding: 40px 0 34px; background: var(--panel); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 36ch; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.footer-nav a { color: var(--muted); font-size: 13.5px; }
.footer-nav a:hover { color: var(--text); }
.footer-legal { margin-top: 30px; display: grid; gap: 8px; }
.footer-legal p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-legal .fine { color: var(--faint); font-size: 12px; max-width: 90ch; }
.footer-bottom { margin-top: 22px; display: flex; justify-content: space-between; color: var(--faint); font-size: 12.5px; }

/* ---------- legal pages ---------- */
.legal { max-width: 720px; padding: 64px 24px 40px; }
.legal h1 { font-size: 30px; font-weight: 510; letter-spacing: -.02em; margin: 0 0 26px; }
.legal h2 { font-size: 19px; font-weight: 590; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 15px; color: var(--text-2); }
.legal .fine { margin-top: 30px; }

/* ---------- misc kept classes ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--surf-1); border: 1px solid var(--line-2); border-radius: 12px; padding: 20px 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 590; }
ul.feat { padding-left: 20px; }
ul.feat li { margin: 7px 0; color: var(--text-2); font-size: 14.5px; }
.price { color: var(--text); font-weight: 590; white-space: nowrap; }
.sub { color: var(--muted); font-size: 16px; }
.note { background: rgba(94,106,210,.10); border: 1px solid rgba(130,143,255,.3); border-radius: 10px; padding: 14px 18px; font-size: 14px; color: var(--text-2); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- download page tables ---------- */
main table th { color: var(--faint); font-size: 12px; font-weight: 590; text-align: left; padding: 10px 8px; }
main table td { color: var(--text-2); border-bottom: 1px solid var(--line-2); padding: 10px 8px; font-size: 14px; }
main table code, .legal code { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); word-break: break-all; background: var(--surf-1); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .posture { grid-template-columns: 1fr; gap: 32px; }
  .sec-head--split { flex-direction: column; align-items: start; gap: 16px; }
}
@media (max-width: 720px) {
  header.site .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; row-gap: 10px; }
  nav.nav { width: 100%; order: 3; margin-left: 0; overflow-x: auto; gap: 18px; padding-bottom: 4px; }
  .header-cta { margin-left: auto; }
  .section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: 1fr; }
  .posture__lists { grid-template-columns: 1fr; }
  .cta { padding: 28px 22px; }
  .trial-form input, .trial-form select { min-width: 0; width: 100%; }
  .trial-form label { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .tiers td { padding: 12px 4px; font-size: 14px; }
  .tiers td.act { text-align: left; padding-top: 4px; }
  .tiers th.act { display: none; }
  .act-row { justify-content: flex-start; width: 100%; }
  .btn.btn--sm { padding: 8px 13px; }
  .tiers td { vertical-align: middle; }
  .only-sm { display: inline; } .hide-sm { display: none; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ---------- motion & focus ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, details[open] summary::after { transition: none; }
}
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; border-radius: 4px; }
