/* Sabi public site. Dark-first, editorial: sticky nav, split hero with a CSS phone, quiet full-width sections on hairlines. Palette and type from the Sabi brand guidelines. */
:root{
  /* Brand palette: Sabi Black #090A0A, Graphite #171919, Silver #C7CBC9, Porcelain #F7F8F7, Signal Green #5FD38A, Alert Red #E56B6F.
     Secondary greys are tints of Porcelain or Sabi Black, never new colours. */
  --bg:#090A0A; --surface:#171919; --raised:rgba(247,248,247,.08); --fg:#F7F8F7; --muted:rgba(247,248,247,.62); --silver:#C7CBC9;
  --line:rgba(247,248,247,.12); --line-strong:rgba(247,248,247,.26);
  --green:#5FD38A; --danger:#E56B6F; --btn-bg:linear-gradient(180deg,#F7F8F7,#C7CBC9); --btn-fg:#090A0A;
  --mark-filter:none;
  --display:'Sora',system-ui,sans-serif; --body:'Manrope',system-ui,sans-serif;
  color-scheme:dark;
}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){
  --bg:#F7F8F7; --surface:rgba(9,10,10,.035); --raised:rgba(9,10,10,.07); --fg:#090A0A; --muted:rgba(9,10,10,.66); --silver:rgba(9,10,10,.58);
  --line:rgba(9,10,10,.16); --line-strong:rgba(9,10,10,.34);
  --green:#5FD38A; --danger:#E56B6F; --btn-bg:#090A0A; --btn-fg:#F7F8F7;
  --mark-filter:invert(1); color-scheme:light}}
:root[data-theme="light"]{
  --bg:#F7F8F7; --surface:rgba(9,10,10,.035); --raised:rgba(9,10,10,.07); --fg:#090A0A; --muted:rgba(9,10,10,.66); --silver:rgba(9,10,10,.58);
  --line:rgba(9,10,10,.16); --line-strong:rgba(9,10,10,.34);
  --green:#5FD38A; --danger:#E56B6F; --btn-bg:#090A0A; --btn-fg:#F7F8F7;
  --mark-filter:invert(1); color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--fg);font-family:var(--body);font-size:16px;line-height:1.6;margin:0}
a{color:inherit}
img{max-width:100%}
.wrap{max-width:1120px;margin:0 auto;padding-inline:24px}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance;letter-spacing:0}
p{margin:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.eyebrow{font-size:11.5px;font-weight:600;letter-spacing:0;text-transform:uppercase;color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 24px;border-radius:999px;font:600 14.5px var(--body);border:1px solid transparent;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn-primary{background:var(--btn-bg);color:var(--btn-fg)}
.btn-outline{background:transparent;border-color:var(--line-strong);color:var(--fg)}
.btn[disabled]{opacity:.6;cursor:progress}
.btn:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,.tgl:focus-visible,a:focus-visible,.seg button:focus-visible{outline:2px solid var(--silver);outline-offset:3px}
.mark{display:block;filter:var(--mark-filter)}

/* nav */
body>nav{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px;gap:16px}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none}
.logo .mark{width:26px;height:26px}
.logo b{font:700 22px var(--display);letter-spacing:0}
.links{display:flex;gap:28px;font-size:14px;color:var(--muted)}
.links a{text-decoration:none}.links a:hover{color:var(--fg)}
.navr{display:flex;align-items:center;gap:10px}
.tgl{width:44px;height:44px;border-radius:999px;border:1px solid var(--line-strong);background:transparent;color:var(--fg);display:grid;place-items:center;cursor:pointer}
.nav .btn{height:44px;padding:0 20px;font-size:13.5px}

/* hero */
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center;padding-block:88px 96px}
.hero h1{font-size:clamp(38px,5.4vw,64px);font-weight:600;line-height:1.04;margin:18px 0 22px}
.hero h1 span{color:var(--silver)}
.lede{font-size:18px;color:var(--muted);max-width:46ch}
.seg{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;margin-top:30px}
.seg button{height:44px;padding:0 16px;border-radius:999px;border:0;background:transparent;color:var(--muted);font:600 13px var(--body);cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--raised);color:var(--fg)}
.signup{display:flex;gap:10px;margin-top:14px;max-width:460px}
.signup .field{flex:1}
.field{width:100%;min-width:0;height:48px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--fg);padding:0 20px;font:500 15px var(--body)}
.field::placeholder{color:var(--muted)}
textarea.field{height:auto;min-height:96px;border-radius:18px;padding:14px 20px;resize:vertical;font:500 15px/1.5 var(--body)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.formnote{font-size:13px;color:var(--muted);margin-top:12px;min-height:20px}
.formnote.ok{color:var(--fg)}
.formnote.ok::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:8px;vertical-align:1px}
.formnote.err{color:var(--danger)}
.stores{display:flex;gap:10px;margin-top:30px;flex-wrap:wrap}
.store{display:flex;align-items:center;gap:10px;height:46px;padding:0 16px;border-radius:12px;border:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.2}
.store b{display:block;color:var(--fg);font:600 14px var(--body)}
.store svg{width:20px;height:20px;flex:0 0 auto}

/* phone: the app's real landing screen, modern iPhone proportions (thin bezel, small Dynamic Island) */
.phone-wrap{display:flex;justify-content:center}
.phone{width:290px;aspect-ratio:9/17.5;border-radius:48px;border:1px solid var(--line-strong);background:#171919;padding:5px;box-shadow:0 40px 80px -30px rgba(0,0,0,.6)}
.screen{height:100%;border-radius:43px;background:#090A0A;overflow:hidden;position:relative}
.screen img{width:100%;height:100%;object-fit:cover;object-position:center 30%;display:block}
.island{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:76px;height:22px;border-radius:999px;background:#000;z-index:1}

/* sections */
section{border-top:1px solid var(--line);padding-block:88px}
.sec-head{display:grid;grid-template-columns:1fr 1.2fr;gap:40px;align-items:end;margin-bottom:48px}
.sec-head h2{font-size:clamp(28px,3.4vw,40px);font-weight:600;line-height:1.1;margin-top:12px}
.sec-head p{color:var(--muted);max-width:52ch}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.pillar{background:var(--bg);padding:32px 28px 36px;display:flex;flex-direction:column;gap:12px;min-width:0}
.pillar .k{font:600 12px var(--body);color:var(--muted);letter-spacing:0}
.pillar h3{font-size:26px;font-weight:600}
.pillar p{color:var(--muted);font-size:15px}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;counter-reset:s}
.step{border-top:1px solid var(--line-strong);padding-top:20px;display:flex;flex-direction:column;gap:8px;min-width:0}
.step::before{counter-increment:s;content:"0" counter(s);font:600 12px var(--body);color:var(--muted);letter-spacing:0}
.step h3{font-size:18px;font-weight:600}
.step p{color:var(--muted);font-size:14.5px}
.trust{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.tcard{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:26px;display:flex;gap:16px;min-width:0}
.tcard svg{width:22px;height:22px;flex:0 0 auto;color:var(--silver);margin-top:2px}
.tcard h3{font-size:17px;font-weight:600;margin-bottom:6px}
.tcard p{color:var(--muted);font-size:14.5px}
.biz{display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:48px}
.biz h2{font-size:clamp(26px,3vw,36px);font-weight:600;margin:12px 0 14px}
.biz p{color:var(--muted);max-width:50ch}
.biz ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.biz li{display:flex;gap:10px;align-items:baseline;font-size:15px}
.biz li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--silver);flex:0 0 auto;transform:translateY(-2px)}
.faq{max-width:780px}
details{border-bottom:1px solid var(--line)}
summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:16px;padding:22px 0;font:600 17px var(--display)}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font:400 22px var(--body);color:var(--muted);line-height:1}
details[open] summary::after{content:"–"}
details p,details ul{color:var(--muted);padding:0 0 22px;max-width:62ch}
details p + p{padding-top:0}
.cta{text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}
.cta h2{font-size:clamp(30px,4vw,48px);font-weight:600}
.cta p{color:var(--muted)}

/* document pages */
.doc{max-width:760px;padding-block:72px 96px}
.doc h1{font-size:clamp(32px,4.4vw,48px);font-weight:600;line-height:1.08;margin:14px 0 16px}
.doc .meta{color:var(--muted);font-size:14px}
.doc .intro{font-size:17px;color:var(--muted);margin-top:24px}
.doc h2{font-size:22px;font-weight:600;margin:48px 0 14px;scroll-margin-top:84px}
.doc h3{font-size:16.5px;font-weight:600;margin:26px 0 10px}
.doc p{color:var(--muted);margin:0 0 14px}
.doc ul{color:var(--muted);padding-left:20px;margin:0 0 16px}
.doc li{margin-bottom:8px}
.doc li b{color:var(--fg);font-weight:600}
.doc a{text-underline-offset:3px}
.toc{margin-top:32px;border:1px solid var(--line);border-radius:18px;padding:22px 24px}
.toc ol{margin:12px 0 0;padding-left:22px;columns:2;column-gap:32px;color:var(--muted);font-size:14.5px}
.toc li{break-inside:avoid;margin-bottom:6px}
.toc a{text-decoration:none}.toc a:hover{color:var(--fg)}
.tbl{width:100%;border-collapse:collapse;margin:6px 0 18px;font-size:14.5px}
.tbl th,.tbl td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--line)}
.tbl th{font-weight:600;color:var(--fg);font-size:13px}
.tbl td{color:var(--muted)}
.tbl-wrap{overflow-x:auto}
.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:28px;margin-top:28px}
.card h2{margin-top:0}
.stack{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.contacts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}
.contacts div{border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.contacts span{display:block;font-size:12.5px;color:var(--muted)}
.contacts a{font-weight:600;text-decoration:none}
.center{min-height:calc(100vh - 64px - 180px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px;padding-block:72px}
.center .mark{width:72px;height:72px;margin-bottom:8px}
.center h1{font-size:clamp(28px,4vw,40px);font-weight:600}
.center p{color:var(--muted);max-width:44ch}

footer{border-top:1px solid var(--line);padding-block:48px 56px;font-size:14px;color:var(--muted)}
.foot{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:32px}
.foot h4{font:600 12px var(--body);letter-spacing:0;text-transform:uppercase;color:var(--fg);margin:0 0 14px}
.foot ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:9px}
.foot a{text-decoration:none}.foot a:hover{color:var(--fg)}
.legal{margin-top:40px;padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px}

@media (max-width:900px){
  .links{display:none}
  .hero{grid-template-columns:1fr;padding-block:56px 64px;gap:48px}
  .sec-head,.biz{grid-template-columns:1fr}
  .three{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr 1fr}
  .foot{grid-template-columns:1fr 1fr}
  .biz{padding:32px 24px}
  .toc ol{columns:1}
}
@media (max-width:520px){
  .wrap{padding-inline:16px}
  .nav .btn{display:none}
  .signup{flex-direction:column}
  .signup .field{flex:0 0 auto}
  .steps,.trust,.contacts{grid-template-columns:1fr}
  .phone{width:260px}
  section{padding-block:64px}
  .doc{padding-block:48px 72px}
  .card{padding:22px 18px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

[hidden]{display:none !important}

/* /account: tighten spacing under the page title */
#acct-signin,#acct-dash{border-top:0;padding-block:24px 56px}
#acct-note:empty{display:none}
#acct-dash .intro{margin-top:0}

/* Store badges that are live links */
a.store-live{color:var(--fg);border-color:var(--line-strong);text-decoration:none;transition:border-color .15s,background .15s}
a.store-live:hover{background:var(--raised);border-color:var(--fg)}

/* Scan to install: each store's listing as a code. On a computer the two stand beside the phone picture, one
   above the other (side by side under it in a narrow window). On a phone they stay out of sight until a store
   button is tapped: see below. The codes are always dark on Porcelain, in both themes: phone cameras read that
   most reliably. At 135px each of their squares is exactly 3px, which is what keeps them sharp on a monitor. */
.phone-wrap{align-items:flex-end;gap:12px}
.scans{flex:0 0 auto;display:flex;flex-direction:column;gap:12px;margin-bottom:32px}
.scan{flex:0 0 auto;display:flex;flex-direction:column;gap:10px;padding:8px 8px 12px;border:1px solid var(--line);border-radius:16px;text-align:left}
.scan img{display:block;width:135px;height:135px;border-radius:9px}
.scan p{padding-inline:4px;font-size:13px;line-height:1.4;color:var(--muted)}
.scan b{display:block;color:var(--fg);font:600 14px var(--body)}
@media (max-width:1139px){
  /* less room beside the phone picture: it gives way, the code keeps its size */
  .phone{width:240px}
}
@media (max-width:979px){
  /* no room beside it: the codes go under the phone picture, side by side */
  .phone-wrap{flex-direction:column;align-items:center;gap:28px}
  .phone{width:290px}
  .scans{order:1;flex-direction:row;margin-bottom:0}
}
@media (max-width:900px){
  /* one column, the phone layout: no codes on the page itself */
  .scans{display:none}
}
@media (max-width:520px){
  .phone{width:260px}
}

/* On a phone each store button opens a panel under the store buttons: the direct link the button stands for,
   and the code for another phone to scan. site.js opens and closes them (one at a time) and gives the buttons
   their arrows; without scripts the panels stay shut and the buttons are simply the links. Never shown on a
   computer. */
.get{width:-webkit-fit-content;width:fit-content;max-width:100%}
.store .chev{display:none;width:16px;height:16px;margin-left:2px;color:var(--muted);transition:transform .2s ease}
.store-drop{display:none}
@media (max-width:900px){
  /* a little tighter, so both buttons and their arrows still share one row on an ordinary phone */
  .get .stores{gap:8px}
  .get .store{gap:8px;padding:0 12px}
  .get .store .chev{margin-left:0}
  .store[aria-expanded] .chev{display:block}
  .store[aria-expanded="true"] .chev{transform:rotate(180deg)}
  a.store-live[aria-expanded="true"]{background:var(--raised);border-color:var(--fg)}
  /* closed it takes no room at all; it opens by growing to its own height */
  .store-drop{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .24s ease,opacity .2s ease,visibility 0s linear .24s}
  .store-drop.open{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows .24s ease,opacity .2s ease}
  .store-drop-in{min-height:0;overflow:hidden}
  /* as wide as the row of store buttons above it, never wider (width:0 keeps its own text from widening the row) */
  .store-menu{width:0;min-width:100%;margin-top:10px;border:1px solid var(--line-strong);border-radius:16px;background:var(--surface);overflow:hidden}
  .store-go{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 16px;color:var(--fg);font:600 14.5px var(--body);text-decoration:none}
  .store-go svg{flex:0 0 auto;width:20px;height:20px}
  .store-go span{flex:1}
  .store-go svg:last-child{width:16px;height:16px;color:var(--muted)}
  .store-go:active{background:var(--raised)}
  .store-go:focus-visible{outline-offset:-3px}
  .store-scan{display:flex;align-items:center;gap:14px;padding:12px;border-top:1px solid var(--line)}
  .store-scan img{display:block;flex:0 0 auto;width:112px;height:112px;border-radius:9px}
  .store-scan p{font-size:13px;line-height:1.45;color:var(--muted)}
  .store-scan b{display:block;margin-bottom:2px;color:var(--fg);font:600 14px var(--body)}
}
@media (min-width:521px) and (max-width:900px){
  /* room for the code at the size that is sharpest on an ordinary screen */
  .store-scan img{width:135px;height:135px}
}
@media (prefers-reduced-motion:reduce){
  .store .chev,.store-drop,.store-drop.open{transition:none}
}
