:root{
  --bg-page:#FBFBFB; --bg-surface:#FFFFFF; --bg-raised:#ECEEF1; --bg-tinted:#FBFAFF; --bg-brand:#30266C;
  --text-primary:#222222; --text-secondary:#444444; --text-muted:#555555; --text-on-brand:#FBFBFB;
  --text-accent:#5241B7; --accent-fill:#5241B7; --chip-bg:#ECE9FF; --chip-text:#5241B7;
  --on-brand-accent:#A394F9; --on-brand-muted:#CCCCCC; --on-brand-line:rgba(251,251,251,.18);
  --border-default:#CCCCCC; --border-subtle:#EEEEEE; --decorative:#AAAAAA;
  --dot-base:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect width='2' height='2' fill='%23ECE9FF'/></svg>"); --dot-hot:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect width='2' height='2' fill='%235241B7'/></svg>");
  --chip-hover:#D6CFFF;
  --sans:"Plus Jakarta Sans","Helvetica Neue",Arial,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;
  --gutter:max(3%, env(safe-area-inset-left,0px));
  --radius:12px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --chip-hover:#3E3290;
  --dot-base:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect width='2' height='2' fill='%232B2B2B' fill-opacity='.85'/></svg>"); --dot-hot:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect width='2' height='2' fill='%23A394F9'/></svg>");
  --bg-page:#0F0F0F; --bg-surface:#222222; --bg-raised:#2B2B2B; --bg-tinted:#1C163B;
  --text-primary:#FBFBFB; --text-secondary:#CCCCCC; --text-muted:#AAAAAA;
  --text-accent:#A394F9; --chip-bg:#30266C; --chip-text:#ECE9FF;
  --border-default:#666666; --border-subtle:#2B2B2B; --decorative:#666666; color-scheme:dark }}
:root[data-theme="dark"]{
  --chip-hover:#3E3290;
  --dot-base:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect width='2' height='2' fill='%232B2B2B' fill-opacity='.85'/></svg>"); --dot-hot:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect width='2' height='2' fill='%23A394F9'/></svg>");
  --bg-page:#0F0F0F; --bg-surface:#222222; --bg-raised:#2B2B2B; --bg-tinted:#1C163B;
  --text-primary:#FBFBFB; --text-secondary:#CCCCCC; --text-muted:#AAAAAA;
  --text-accent:#A394F9; --chip-bg:#30266C; --chip-text:#ECE9FF;
  --border-default:#666666; --border-subtle:#2B2B2B; --decorative:#666666; color-scheme:dark }

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg-page);color:var(--text-primary);font-family:var(--sans);font-size:16px;line-height:24px}
a{color:inherit}
:focus-visible{outline:2px solid var(--text-accent);outline-offset:3px}
.wrap{max-width:114rem;margin:0 auto;padding-left:var(--gutter);padding-right:max(3%, env(safe-area-inset-right,0px))}
h1,h2,h3{text-wrap:balance;margin:0;font-weight:500;letter-spacing:-.04em}
h1 em,h2 em{font-style:normal;font-weight:600;color:var(--text-accent)}
p{margin:0}
.skip{position:absolute;left:-999px;top:8px}.skip:focus{left:16px;z-index:50;background:var(--bg-surface);padding:8px 12px}
.eyebrow{font-weight:700;font-size:14px;line-height:22px;letter-spacing:-.02em;text-transform:lowercase;color:var(--text-accent)}
.mono-tag{font-family:var(--mono);font-size:12px;line-height:16px;letter-spacing:-.02em;text-transform:uppercase}
/* Header (same as the homepage) */
header{position:relative;z-index:10;padding-top:calc(1.5rem + env(safe-area-inset-top,0px))}
@media (max-width:700px){header{padding-top:calc(1rem + env(safe-area-inset-top,0px))}}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px}
.logo{display:inline-flex;align-items:center;gap:14px;color:var(--text-primary);text-decoration:none;white-space:nowrap;letter-spacing:-.02em}
.logo .cube{width:28px;height:28px;flex:none}
.logo .lt{display:flex;align-items:baseline;gap:8px;font-size:15px;line-height:24px}
.logo b{font-weight:600}
.logo .long{font-weight:400;color:var(--text-secondary)}
@media (max-width:479px){.logo{gap:10px}.logo .lt{font-size:14px;line-height:22px}.logo .long{display:none}.top-right .clock{display:none}.bar .top-right{gap:12px}}
.top-right{display:flex;align-items:center;gap:8px 40px}
header .mono-tag{letter-spacing:0;text-transform:none}
.clock,.open{display:inline-flex;align-items:center;gap:8px;color:var(--text-secondary);white-space:nowrap}
.open{color:var(--text-primary);gap:calc(.5rem + 8px)}   /* 0.5rem between the pulse ring (8px) and the text */
@media (max-width:360px){.bar .top-right{gap:4px}.open{gap:10px}}   /* iPhone SE: keeps the top bar inside the screen */
html,body{overflow-x:clip}   /* a Figma handle poking 1px past the edge never makes the page scroll sideways */
.open i{width:8px;height:8px;border-radius:50%;background:var(--accent-fill);box-shadow:0 0 0 0 rgba(82,65,183,.5);animation:ping 2.4s ease-out infinite}
@keyframes ping{0%{box-shadow:0 0 0 0 rgba(82,65,183,.45)}70%,100%{box-shadow:0 0 0 8px rgba(82,65,183,0)}}
.clock .zone{display:none}
@media (min-width:560px){.clock .zone{display:inline}}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;border:1px solid var(--border-default);background:transparent;color:var(--text-primary);border-radius:8px;padding:0 12px;font:400 14px/14px var(--mono);letter-spacing:0;cursor:pointer;text-decoration:none}
/* Light/dark switch: sun and moon in a track, the knob slides to the active one */
.switch{position:relative;display:inline-flex;align-items:center;justify-content:space-between;width:80px;height:40px;padding:0 12px;border:0;border-radius:0;background:var(--bg-page);box-shadow:inset 0 0 0 1px var(--border-default);color:var(--text-primary);cursor:pointer;flex:none}   /* the unselected side looks like the outlined (tertiary) button */
.switch svg{position:relative;z-index:1;width:16px;height:16px;transition:color .25s ease}
.switch .knob{position:absolute;top:0;left:0;width:40px;height:40px;border-radius:0;background:var(--accent-fill);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.switch .sun{color:#FBFBFB}
.switch[aria-checked="true"] .knob{transform:translateX(40px)}
.switch[aria-checked="true"] .sun{color:var(--text-primary)}
.switch[aria-checked="true"] .moon{color:#FBFBFB}
/* Buttons */
.btn{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:0 16px;background:var(--accent-fill);color:#FBFBFB;font:400 14px/1 var(--mono);letter-spacing:-.04em;text-decoration:none;white-space:nowrap;transition:background-color .2s ease}
.btn:hover,.btn:focus-visible{background:#30266C}
.btn .dash{display:inline-block;width:5px;height:1.5px;background:currentColor;transition:width .3s cubic-bezier(.2,.7,.2,1)}   /* same dash as the footer and homepage buttons */
.btn:hover .dash,.btn:focus-visible .dash{width:16px}
.btn-2{background:var(--chip-bg);color:var(--text-primary);transition:background-color .3s ease,padding .3s cubic-bezier(.2,.7,.2,1)}
.btn-2:hover,.btn-2:focus-visible{background:var(--chip-hover);padding-left:21px;padding-right:11px}
:root[data-theme="dark"] .btn-2{color:var(--chip-text)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .btn-2{color:var(--chip-text)}}
/* Case hero */
.back{display:inline-flex;align-items:center;gap:8px;color:var(--text-secondary);text-decoration:none;margin-top:48px}
.back:hover{color:var(--text-accent)}
.c-hero{padding:40px 0 64px;display:grid;gap:24px}
.c-hero h1{font-size:47px;line-height:52px;max-width:18ch}
.c-lead{font-size:18px;line-height:28px;letter-spacing:-.04em;font-weight:500;color:var(--text-secondary);max-width:612px}
.c-meta{display:flex;flex-wrap:wrap;gap:8px 24px;color:var(--text-secondary);margin-top:8px}
.c-meta span:first-child{color:var(--text-accent)}
@media (min-width:901px){.c-hero{padding:72px 0 96px}.c-hero h1{font-size:78px;line-height:86px}.c-lead{font-size:24px;line-height:37px}}
.kpis{list-style:none;margin:0;padding:0;display:grid;gap:0;border-top:1px solid var(--border-default);border-bottom:1px solid var(--border-default)}
.kpis li{padding:24px 0;display:grid;gap:4px}
.kpis li+li{border-top:1px solid var(--border-default)}
.kpis b{font-size:45px;line-height:56px;font-weight:600;letter-spacing:-.04em;color:var(--text-accent)}
.kpis span{color:var(--text-secondary);max-width:28ch}
@media (min-width:700px){.kpis{grid-template-columns:repeat(3,1fr)}.kpis li{padding:32px 24px 32px 0}.kpis li+li{border-top:0;border-left:1px solid var(--border-default);padding-left:24px}}
/* Screens placeholder until the real screenshots arrive */
.shot{margin:64px 0 0;aspect-ratio:16/9;background:var(--chip-bg);display:grid;place-items:center;color:var(--chip-text)}
/* Story sections */
.sec{display:grid;gap:16px;padding:64px 0;border-bottom:1px solid var(--border-subtle)}
.sec h2{font-size:31px;line-height:41px}
.sec .body{display:grid;gap:16px;max-width:612px}
.sec p{color:var(--text-secondary);font-size:16px;line-height:26px}
.sec p strong{color:var(--text-primary);font-weight:600}
@media (min-width:901px){.sec{grid-template-columns:minmax(0,1fr) minmax(0,612px);column-gap:64px;padding:96px 0}.sec .sh{position:sticky;top:32px;align-self:start;display:grid;gap:16px}.sec h2{font-size:45px;line-height:56px}.sec p{font-size:18px;line-height:30px}}
/* Next case */
.next{display:grid;gap:16px;padding:96px 0;text-decoration:none}
.next h2{font-size:47px;line-height:52px;transition:color .2s ease}
.next:hover h2{color:var(--text-accent)}
.next .arr{display:inline-block;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.next:hover .arr{transform:translateX(12px)}
@media (min-width:901px){.next h2{font-size:78px;line-height:86px}}
button.btn{border:0;border-radius:0;cursor:pointer}

/* primary buttons: light weight */
.btn:not(.btn-2):not(.btn-3){font-weight:300}
