:root {
  --text: #2C2C2B;
  --muted: #7D7A75;
  --canvas: #FFFFFF;
  --soft: #F9F8F7;
  --surface: #F0EFED;
  --border: #E6E5E3;
  --accent: #2E2D59;
  --accent-soft: #ECECF4;
  --green: #46A171;
  --green-soft: #E8F1EC;
  --orange: #D5803B;
  --orange-soft: #FBEBDE;
  --red: #E56458;
  --red-soft: #FCE9E7;
  --radius: 8px;
  --radius-lg: 12px;
  --maxw: 1080px;
  --readw: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #FFFFFF;
    --muted: rgba(255,255,255,.65);
    --canvas: #191919;
    --soft: #202020;
    --surface: #202020;
    --border: rgba(255,255,255,.20);
    --accent: #9A98D8;
    --accent-soft: rgba(154,152,216,.14);
    --green: #72BC8F;
    --green-soft: rgba(114,188,143,.12);
    --orange: #DE9255;
    --orange-soft: rgba(222,146,85,.12);
    --red: #E97366;
    --red-soft: rgba(233,115,102,.12);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

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

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff;
  padding: 12px 16px; border-radius: var(--radius); z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------- topbar */
.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
  position: sticky; top: 0; z-index: 50;
}
.topbar-in {
  display: flex; align-items: center; gap: 24px;
  min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; color: var(--text); letter-spacing: -.01em;
  font-size: 17px; flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--canvas), inset 0 0 0 5px var(--accent);
}
.nav {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-right: auto; font-size: 15px;
}
.nav a { color: var(--muted); padding: 4px 0; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] {
  color: var(--text); font-weight: 550;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  background: var(--accent); color: #fff; font-weight: 550;
  border-radius: var(--radius); border: 1px solid transparent;
}
.btn:hover { text-decoration: none; filter: brightness(.94); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}

@media (max-width: 860px) {
  .topbar { position: static; }
  .topbar-in { padding-top: 12px; padding-bottom: 12px; }
  .nav { order: 3; width: 100%; gap: 14px; }
}

/* ---------------------------------------------------------- page head */
.crumbs {
  font-size: 14px; color: var(--muted);
  margin: 24px 0 0;
}
.crumbs .sep { margin: 0 8px; opacity: .5; }

.page-head {
  padding: 48px 0 32px;
  max-width: var(--readw);
}
.kicker {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
h1 {
  margin: 0;
  font-size: 42px; line-height: 1.15; letter-spacing: -.022em;
  font-weight: 660;
}
.lede {
  margin: 20px 0 0;
  font-size: 19px; line-height: 1.55; color: var(--muted);
}

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .lede { font-size: 17px; }
  .page-head { padding: 32px 0 24px; }
}

/* ---------------------------------------------------------- sections */
.sec {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  max-width: var(--readw);
}
.sec.wide { max-width: none; }
.sec > h2 {
  margin: 0 0 20px;
  font-size: 27px; line-height: 1.25; letter-spacing: -.015em;
  font-weight: 640;
}
.sec h3 {
  margin: 28px 0 8px;
  font-size: 19px; line-height: 1.35; font-weight: 620;
}
.sec h4 {
  margin: 20px 0 6px; font-size: 16px; font-weight: 620;
}
p { margin: 0 0 16px; }
.sec > p:last-child, .answer > p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.lead { font-size: 18px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 8px; }
li > ul, li > ol { margin-top: 8px; }

strong { font-weight: 620; }

code {
  font-family: Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface);
  padding: 2px 6px; border-radius: 4px;
}

blockquote {
  margin: 0 0 16px; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--border); color: var(--muted);
}

hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* ---------------------------------------------------------- cards */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0 0 8px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--soft);
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .big {
  display: block; font-size: 30px; font-weight: 660;
  letter-spacing: -.02em; color: var(--text); margin-bottom: 4px;
}

.callout {
  display: flex; gap: 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px; margin: 0 0 20px;
}
.callout.good { border-left-color: var(--green); background: var(--green-soft); }
.callout.warn { border-left-color: var(--orange); background: var(--orange-soft); }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout .ico { font-size: 18px; line-height: 1.4; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps > li {
  counter-increment: s;
  position: relative;
  padding: 0 0 24px 48px;
  margin: 0;
  border-left: 1px solid var(--border);
  margin-left: 15px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(s);
  position: absolute; left: -16px; top: 0;
  width: 31px; height: 31px; border-radius: 50%;
  background: var(--canvas); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 620;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 2px 0 6px; }
.steps p { margin: 0; }

/* ---------------------------------------------------------- table */
.tw {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 0 20px;
  -webkit-overflow-scrolling: touch;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15px;
}
caption {
  text-align: left; padding: 16px 20px 0;
  color: var(--muted); font-size: 14px;
}
th, td {
  text-align: left;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--soft);
  font-weight: 620; font-size: 14px;
  white-space: nowrap;
}
tbody th { font-weight: 570; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------- FAQ */
.qa { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.qa details { border-bottom: 1px solid var(--border); }
.qa details:last-child { border-bottom: 0; }
.qa summary {
  cursor: pointer; list-style: none;
  padding: 16px 20px; min-height: 44px;
  display: flex; align-items: center; gap: 12px;
  background: var(--canvas);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; margin-left: auto; flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s ease;
}
.qa details[open] summary::after { transform: rotate(225deg); }
.qa summary:hover { background: var(--soft); }
.qa summary h3 {
  margin: 0; font-size: 16.5px; font-weight: 570; line-height: 1.45;
}
.qa .answer {
  padding: 0 20px 20px;
  color: var(--muted);
  max-width: 640px;
}
.qa .answer strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------- verdict */
.verdict {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--soft);
  margin: 0 0 24px;
}
.verdict h3 { margin: 0 0 10px; }
.verdict p:last-child { margin-bottom: 0; }

.pill {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
}
.pill.yes { background: var(--green-soft); color: var(--green); }
.pill.no  { background: var(--red-soft); color: var(--red); }

.cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center; margin: 24px 0 0;
}

/* ---------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 40px 0 32px;
  background: var(--soft);
}
.foot-in {
  display: flex; gap: 32px; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 24px;
}
.foot-brand { margin: 0 0 4px; font-weight: 650; }
.foot .muted { margin: 0; font-size: 15px; }
.foot-nav {
  display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px;
}
.foot-nav a { color: var(--muted); }
.foot-nav a[aria-current="page"] { color: var(--text); box-shadow: none; }
.stamp {
  margin: 0; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted);
}

/* ---- home ---- */
.hero-lead .lead{font-size:19px;line-height:1.6;max-width:44em;color:var(--text)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:24px 0 12px}
.small{font-size:14px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.grid-4 .card{padding:20px}
.grid-4 .big{font-size:32px;font-weight:650;letter-spacing:-.02em;margin:0 0 4px}
ol.steps > li > h3{margin:0 0 4px;font-size:17px}
ol.steps > li > p{margin:0}
@media (max-width:860px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.grid-4{grid-template-columns:1fr}
  .hero-actions .btn{width:100%;text-align:center}}

/* ---- progress ---- */
:root{--st3:#46A171;--st2:#4F4D8F;--st1:#D5803B;--st0:#8E8B86}

/* at-a-glance pipeline */
.pipeline{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:28px 0 32px}
.pipe-col{border:1px solid #E6E5E3;border-radius:12px;padding:14px 16px;
  background:#FBFAF9;border-top:3px solid var(--st0)}
.pipe-col[data-stage="3"]{border-top-color:var(--st3)}
.pipe-col[data-stage="2"]{border-top-color:var(--st2)}
.pipe-col[data-stage="1"]{border-top-color:var(--st1)}
.pipe-head{display:flex;align-items:flex-start;gap:9px;margin:0 0 10px}
.pipe-head strong{display:block;font-size:14px;line-height:1.3}
.pipe-sub{display:block;font-size:12px;color:#7D7A75;line-height:1.35;margin-top:2px}
.pipe-list{list-style:none;margin:0;padding:0}
.pipe-list li{font-size:13px;line-height:1.45;padding:6px 0 6px 14px;position:relative;
  border-top:1px solid #EFEEEC}
.pipe-list li:before{content:"";position:absolute;left:0;top:12px;width:6px;height:6px;
  border-radius:50%;background:var(--st0)}
.pipe-col[data-stage="3"] .pipe-list li:before{background:var(--st3)}
.pipe-col[data-stage="2"] .pipe-list li:before{background:var(--st2)}
.pipe-col[data-stage="1"] .pipe-list li:before{background:var(--st1)}
.pipe-list li.none{color:#9C9993;font-style:italic}
.pipe-list li.none:before{display:none}

/* stage icons */
.stage-ico{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:9px;background:rgba(142,139,134,.12);
  color:var(--st0)}
.stage-ico.sm{width:24px;height:24px;border-radius:7px}
.stage-ico svg{width:16px;height:16px}
.stage-ico.sm svg{width:13px;height:13px}
[data-stage="3"] .stage-ico{background:rgba(70,161,113,.12);color:var(--st3)}
[data-stage="2"] .stage-ico{background:rgba(39,131,222,.12);color:var(--st2)}
[data-stage="1"] .stage-ico{background:rgba(213,128,59,.12);color:var(--st1)}

/* cards */
.prog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.stage-card{border:1px solid #E6E5E3;border-radius:12px;padding:20px;
  border-left:3px solid var(--st0);transition:box-shadow .15s ease,transform .15s ease}
.stage-card[data-stage="3"]{border-left-color:var(--st3)}
.stage-card[data-stage="2"]{border-left-color:var(--st2)}
.stage-card[data-stage="1"]{border-left-color:var(--st1)}
.stage-card:hover{box-shadow:0 6px 20px rgba(15,15,15,.07);transform:translateY(-1px)}
.prog-top{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.prog-top h3{margin:0;font-size:16px;line-height:1.35;flex:1 1 auto}
.prog-top .pill{white-space:nowrap;flex:0 0 auto}
.stage-track{display:flex;gap:4px;margin:0 0 6px}
.stage-track > span{flex:1;height:6px;border-radius:999px;background:#E6E5E3}
.stage-track > span.on{background:var(--st2)}
.stage-names{display:flex;gap:4px;margin:0 0 16px;font-size:12px}
.stage-names > span{flex:1;color:#A8A5A0}
.stage-names > span.on{color:var(--st2);font-weight:600}
[data-stage="3"] .stage-track > span.on{background:var(--st3)}
[data-stage="3"] .stage-names > span.on{color:var(--st3)}
[data-stage="1"] .stage-track > span.on{background:var(--st1)}
[data-stage="1"] .stage-names > span.on{color:var(--st1)}
[data-stage="0"] .stage-track > span.on{background:var(--st0)}
[data-stage="0"] .stage-names > span.on{color:var(--st0)}
.prog-line{margin:0 0 10px;font-size:15px;line-height:1.55;padding-left:12px;
  border-left:2px solid #EFEEEC}
.prog-line.today{border-left-color:rgba(70,161,113,.45)}
.prog-line.adds{border-left-color:rgba(39,131,222,.4)}
.prog-line:last-child{margin-bottom:0}

@media (max-width:980px){.pipeline{grid-template-columns:repeat(2,1fr)}}
@media (max-width:860px){.prog-grid{grid-template-columns:1fr}}
@media (max-width:560px){.pipeline{grid-template-columns:1fr}
  .prog-top{flex-wrap:wrap}}
@media (prefers-reduced-motion:reduce){
  .stage-card{transition:none}.stage-card:hover{transform:none}}
@media (prefers-color-scheme:dark){
  .pipe-col{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.15)}
  .pipe-list li{border-top-color:rgba(255,255,255,.1)}
  .pipe-sub{color:rgba(255,255,255,.55)}
  .stage-card{border-color:rgba(255,255,255,.15)}
  .stage-card:hover{box-shadow:0 6px 20px rgba(0,0,0,.4)}
  .stage-track > span{background:rgba(255,255,255,.18)}
  .stage-names > span{color:rgba(255,255,255,.45)}
  .prog-line{border-left-color:rgba(255,255,255,.15)}
}

/* ---- progress groups ---- */
.stage-group{margin:34px 0 0}
.group-head{display:flex;align-items:center;gap:10px;margin:0 0 4px;font-size:18px}
.group-count{font-size:12px;font-weight:500;color:#7D7A75;background:#F0EFED;
  border-radius:999px;padding:3px 9px}
.group-blurb{margin:0 0 16px;color:#5F5C57;font-size:15px;line-height:1.55}
.stage-group .prog-top h4{margin:0;font-size:16px;line-height:1.35;flex:1 1 auto;
  font-weight:600}
.stage-group[data-group="looks"] .stage-card{background:#FCFCFB}
@media (prefers-color-scheme:dark){
  .group-count{background:rgba(255,255,255,.1);color:rgba(255,255,255,.65)}
  .group-blurb{color:rgba(255,255,255,.7)}
  .stage-group[data-group="looks"] .stage-card{background:rgba(255,255,255,.02)}
}

/* ---- brand + motion ---- */
/* logo */
.logo-mark{width:22px;height:22px;display:inline-block;vertical-align:-4px;
  flex:0 0 auto;image-rendering:auto}
.brand{display:inline-flex;align-items:center;gap:9px}
.brand .logo-mark{transition:transform .25s ease}
.brand:hover .logo-mark{transform:rotate(-8deg) scale(1.06)}
.foot-brand{display:flex;align-items:center;gap:8px}
.foot-brand .logo-mark{width:18px;height:18px}

/* scroll reveal (only applied once JS confirms motion is allowed) */
.js-reveal .rv{opacity:0;transform:translateY(14px);
  transition:opacity .5s cubic-bezier(.22,.61,.36,1),
             transform .5s cubic-bezier(.22,.61,.36,1)}
.js-reveal .rv.in{opacity:1;transform:none}

/* stage bars fill in sequence */
.stage-track.anim > span{transform:scaleX(0);transform-origin:left center;
  transition:transform .45s cubic-bezier(.22,.61,.36,1)}
.stage-track.anim > span.lit{transform:scaleX(1)}

/* live badge quietly pulses so the eye lands on what is finished */
.stage-card[data-stage="3"] .pill.yes{position:relative}
.stage-card[data-stage="3"] .pill.yes:after{content:"";position:absolute;
  left:-3px;top:-3px;right:-3px;bottom:-3px;border-radius:999px;
  border:1px solid rgba(70,161,113,.55);animation:haloPulse 2.8s ease-out infinite}
@keyframes haloPulse{0%{opacity:.7;transform:scale(.96)}
  70%{opacity:0;transform:scale(1.12)}100%{opacity:0}}

/* hero lift */
.page-head{position:relative}
.page-head:before{content:"";position:absolute;left:-40px;top:-70px;width:380px;
  height:220px;background:radial-gradient(circle at 30% 30%,rgba(46,45,89,.13),
  rgba(46,45,89,0) 70%);pointer-events:none;z-index:-1}
.btn{transition:transform .15s ease,box-shadow .15s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(46,45,89,.26)}
.pipe-col{transition:transform .18s ease,box-shadow .18s ease}
.pipe-col:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(15,15,15,.06)}
.qa summary{transition:color .15s ease}

@media (prefers-reduced-motion:reduce){
  .js-reveal .rv,.js-reveal .rv.in{opacity:1;transform:none;transition:none}
  .stage-track.anim > span{transform:none;transition:none}
  .stage-card[data-stage="3"] .pill.yes:after{animation:none;opacity:0}
  .btn:hover,.pipe-col:hover,.brand:hover .logo-mark{transform:none}
}
@media (prefers-color-scheme:dark){
  .logo-mark{color:#9A98D8}
}

/* ---- real logo ---- */
.logo-mark{width:22px;height:22px;display:inline-block;vertical-align:-4px;
  flex:0 0 auto}
.foot-brand .logo-mark{width:18px;height:18px}
@media (prefers-color-scheme:dark){
  /* the mark is dark indigo on transparent: lift it off a dark canvas */
  .logo-mark{background:#fff;border-radius:5px;padding:2px;
    box-sizing:border-box;width:24px;height:24px}
  .foot-brand .logo-mark{width:20px;height:20px}
}

/* ---- screenshots ---- */
figure.shot{margin:22px 0 26px;padding:0}
figure.shot img{display:block;width:100%;height:auto;border:1px solid var(--border);
  border-radius:var(--radius-lg);background:#fff;
  box-shadow:0 1px 2px rgba(15,15,15,.04),0 8px 24px rgba(15,15,15,.05)}
figure.shot figcaption{margin-top:10px;font-size:.88rem;line-height:1.55;
  color:var(--muted)}
figure.shot figcaption em{color:var(--text);font-style:normal;font-weight:600}
.shot-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 26px;margin-top:6px}
.shot-grid figure.shot{margin:0}
@media (max-width:760px){.shot-grid{grid-template-columns:1fr}}
@media (prefers-color-scheme:dark){
  figure.shot img{background:#fff;border-color:rgba(255,255,255,.16)}
}
