/* Happy Heads Apps. One bold idea: the heads. Everything else stays quiet. */
:root{
  --page:#F2F5FC; --paper:#FFFFFF; --ink:#1F2A5A; --muted:#56608A; --line:#D9DFEE;
  --sun:#FFC23C; --focus:#2F7CC4; --face:#1F2A5A;
  --display:"Bricolage Grotesque",ui-rounded,system-ui,sans-serif;
  --body:"Atkinson Hyperlegible",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --page:#121833; --paper:#1B2347; --ink:#EEF1FA; --muted:#A9B2D3; --line:#2C3663; --focus:#8CC4F2;
  color-scheme:dark;
}}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--page);color:var(--ink);font:18px/1.6 var(--body);-webkit-font-smoothing:antialiased}
img{max-width:100%}
a{color:inherit;text-decoration-thickness:2px;text-underline-offset:3px}
a:hover{text-decoration-color:var(--sun)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.narrow{max-width:760px}
.skip{position:absolute;left:-999px;top:8px;background:var(--paper);padding:8px 14px;border-radius:8px;z-index:9}
.skip:focus{left:12px}
h1,h2,h3{font-family:var(--display);line-height:1.05;letter-spacing:-.02em;margin:0}
h2{font-size:clamp(30px,4vw,44px);font-weight:800;margin-bottom:28px}
h3{font-size:22px;font-weight:700}
.lede{font-size:clamp(19px,2vw,22px);color:var(--muted);max-width:34em;margin:18px 0 0}
.head{color:var(--face);display:block;flex:none}

/* header / footer */
.top{padding:18px 0}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font:800 20px var(--display);letter-spacing:-.01em}
.top nav{display:flex;gap:22px}
.top nav a{text-decoration:none;color:var(--muted);font-weight:700}
.top nav a:hover{color:var(--ink)}
.foot{border-top:1px solid var(--line);margin-top:40px;padding:28px 0 40px;color:var(--muted);font-size:16px}
.foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.foot p{margin:0;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.foot-brand{font:700 17px var(--display);color:var(--ink)}
.foot-brand .head{margin-right:-8px}

/* hero */
.hero{padding:40px 0 72px}
.hero-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:40px;align-items:center}
.hero h1{font-size:clamp(46px,7.6vw,96px);font-weight:800;line-height:.95;letter-spacing:-.035em}
.btn{display:inline-block;margin-top:28px;background:var(--ink);color:var(--page);padding:14px 24px;border-radius:999px;font-weight:700;text-decoration:none}
.btn:hover{background:var(--focus);color:#fff}
.crowd{position:relative;height:360px}
.crowd .head{position:absolute;width:var(--s);height:var(--s)}
.crowd .h0{--s:170px;left:6%;top:4%;rotate:-8deg}
.crowd .h1{--s:130px;left:52%;top:0;rotate:6deg}
.crowd .h2{--s:190px;left:30%;top:36%}
.crowd .h3{--s:110px;left:2%;top:62%;rotate:10deg}
.crowd .h4{--s:140px;left:70%;top:48%;rotate:-5deg}
@media (prefers-reduced-motion:no-preference){
  .crowd .head{animation:pop .7s cubic-bezier(.34,1.56,.64,1) both}
  .crowd .h1{animation-delay:.08s}.crowd .h2{animation-delay:.16s}.crowd .h3{animation-delay:.24s}.crowd .h4{animation-delay:.32s}
  @keyframes pop{from{opacity:0;translate:0 40px;scale:.6}to{opacity:1;translate:0 0;scale:1}}
}

/* app list: works for 1 app and for 20 */
.section{padding:28px 0 56px}
.kind{font-size:26px;margin:8px 0 18px;color:var(--muted)}
.apps{list-style:none;margin:0 0 32px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:22px}
.app-link{display:flex;flex-direction:column;height:100%;text-decoration:none;background:var(--paper);border:1px solid var(--line);border-radius:26px;overflow:hidden}
.app-swatch{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;background:var(--app)}
.app-swatch .app-icon{width:88px;height:88px;border-radius:22px;box-shadow:0 10px 24px -12px rgba(20,25,60,.55)}
.app-text{display:flex;flex-direction:column;gap:6px;padding:18px 20px 22px}
.app-name{font:800 24px var(--display);letter-spacing:-.02em}
.app-line{color:var(--muted);font-size:16px;line-height:1.45}
.app-status{margin-top:auto;padding-top:10px;font-size:14px;font-weight:700}
.app-link:hover .app-name{text-decoration:underline;text-decoration-color:var(--app)}
/* a single app gets a wide, side-by-side card instead of a lonely tile */
.apps:has(> li:only-child){grid-template-columns:1fr}
.apps > li:only-child .app-link{flex-direction:row}
.apps > li:only-child .app-swatch{aspect-ratio:auto;flex:0 0 42%;min-height:280px}
.apps > li:only-child .app-swatch .app-icon{width:132px;height:132px;border-radius:30px}
.apps > li:only-child .app-text{justify-content:center;padding:36px 40px}
.apps > li:only-child .app-name{font-size:40px}
.apps > li:only-child .app-line{font-size:20px;max-width:26em}

/* promises */
.promises-sec{background:var(--paper);border-block:1px solid var(--line)}
.promises{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:36px}
.promises .head{margin-bottom:16px}
.promises p{color:var(--muted);margin:8px 0 0}

/* app page */
.app-hero{background:color-mix(in srgb,var(--app) 26%,var(--page));padding:56px 0}
.app-hero-grid{display:grid;grid-template-columns:auto 1fr;gap:36px;align-items:center}
.app-hero .app-icon{width:128px;height:128px;border-radius:30px;box-shadow:0 14px 30px -16px rgba(20,25,60,.6)}
.app-hero h1{font-size:clamp(44px,6vw,76px);font-weight:800}
.stores{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.store{background:var(--ink);color:var(--page);padding:12px 20px;border-radius:14px;font-weight:700;text-decoration:none}
.soon{display:inline-block;margin:24px 0 0;align-self:center;padding:8px 16px;border-radius:999px;border:2px solid var(--ink);font-weight:700;font-size:16px}
.shots{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 2px 18px;margin-bottom:36px}
.shots img{height:min(540px,70vh);width:auto;border-radius:22px;scroll-snap-align:start;border:1px solid var(--line)}
.feats{list-style:none;padding:0;margin:0;display:grid;gap:14px;max-width:44em}
.feats li{position:relative;padding-left:30px}
.feats li::before{content:"";position:absolute;left:0;top:.45em;width:14px;height:14px;border-radius:50%;background:var(--app,var(--sun))}
.app-legal{display:flex;gap:22px;margin-top:40px;font-weight:700}

/* legal docs */
.doc-head{background:color-mix(in srgb,var(--app) 20%,var(--page));padding:22px 0}
.doc-head .wrap{display:flex;align-items:center;gap:16px}
.doc-head .app-icon{width:56px;height:56px;border-radius:14px}
.doc-head p{margin:0;line-height:1.4;font-weight:700}
.doc-head p a:last-child{font-weight:400;color:var(--muted)}
.doc{max-width:780px;padding-top:36px}
.doc h1{font-size:clamp(34px,5vw,52px);font-weight:800;margin-bottom:20px}
.doc h2{font-size:26px;margin:36px 0 10px}
.doc h3{font-size:20px;margin:24px 0 8px}
.doc p,.doc li{max-width:68ch}
.table{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:15px}
th,td{border:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top}
code{font-size:.88em;background:var(--line);padding:1px 5px;border-radius:5px}

/* support + 404 */
.support-hero{padding:40px 0 20px}
.support-hero .wrap{display:flex;align-items:center;gap:28px}
.support-hero h1{font-size:clamp(40px,6vw,68px);font-weight:800}
.support-hero .lede a{color:var(--ink);font-weight:700}
details{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:16px 20px;margin-bottom:12px}
summary{cursor:pointer;font-weight:700;font-size:19px}
details p{margin:10px 0 2px;color:var(--muted)}
.legal-list{list-style:none;padding:0;margin:0}
.legal-list li{display:flex;flex-wrap:wrap;gap:18px;padding:12px 0;border-bottom:1px solid var(--line)}
.legal-list strong{min-width:10em}

/* phones */
@media (max-width:760px){
  body{font-size:17px}
  .hero{padding:12px 0 40px}
  .hero-grid{grid-template-columns:1fr;gap:8px}
  .crowd{height:210px;order:-1}
  .crowd .h0{--s:100px}.crowd .h1{--s:78px}.crowd .h2{--s:112px}.crowd .h3{--s:66px}.crowd .h4{--s:84px}
  .apps > li:only-child .app-link{flex-direction:column}
  .apps > li:only-child .app-swatch{min-height:190px}
  .apps > li:only-child .app-text{padding:22px}
  .apps > li:only-child .app-name{font-size:30px}
  .promises{grid-template-columns:1fr;gap:28px}
  .app-hero{padding:36px 0}
  .app-hero-grid{grid-template-columns:1fr;gap:20px}
  .app-hero .app-icon{width:96px;height:96px;border-radius:24px}
  .shots img{height:420px}
  .support-hero .wrap{flex-direction:column;align-items:flex-start;gap:16px}
  .top nav{gap:16px}
  .brand span{font-size:18px}
}

/* review fixes */
.apps > li:only-child .app-status{margin-top:18px}
.promises-sec{padding:64px 0 72px;border-bottom:0}
.foot{margin-top:0}
.narrow h2:not(:first-child){margin-top:52px}
@media (max-width:760px){.legal-list strong{min-width:0;width:100%}}
