/* Layout: wave-capped header band, single 1080px column, panels only where content is a distinct object */
:root{
  --bg:#071c22; --surface:#0d2b33; --surface2:#123a44; --line:#24535c;
  --text:#e9f3f1; --muted:#93b5b2; --high:#ffd23f; --low:#5ec8e5; --water:#1b7f93;
  --on-high:#231a00; --head-top:#0b3b47;
  --display:"Barlow Condensed","Arial Narrow",Impact,sans-serif;
  --body:"Atkinson Hyperlegible","Segoe UI",Verdana,sans-serif;
  color-scheme:dark;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg:#eaf2ef; --surface:#ffffff; --surface2:#dcebe7; --line:#a9c9c4;
    --text:#0a2a30; --muted:#4a6d6b; --high:#9a6b00; --low:#0a7692; --water:#3fa3b8;
    --on-high:#fff8de; --head-top:#b9dcd8; color-scheme:light;
  }
}
:root[data-theme="light"]{
  --bg:#eaf2ef; --surface:#ffffff; --surface2:#dcebe7; --line:#a9c9c4;
  --text:#0a2a30; --muted:#4a6d6b; --high:#9a6b00; --low:#0a7692; --water:#3fa3b8;
  --on-high:#fff8de; --head-top:#b9dcd8; color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#071c22; --surface:#0d2b33; --surface2:#123a44; --line:#24535c;
  --text:#e9f3f1; --muted:#93b5b2; --high:#ffd23f; --low:#5ec8e5; --water:#1b7f93;
  --on-high:#231a00; --head-top:#0b3b47; color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:17px;line-height:1.55}
a{color:var(--high)}
:focus-visible{outline:3px solid var(--high);outline-offset:2px}
h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.05;text-wrap:balance;margin:0}
.in{max-width:1080px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}

/* Header + nav */
header.top{position:relative;overflow:hidden;background:linear-gradient(180deg,var(--head-top) 0%,var(--bg) 100%);border-bottom:1px solid var(--line)}
header.top .in{position:relative;z-index:2;padding-block:20px 76px}
header.top.short .in{padding-block:20px 60px}
nav.bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 20px}
.brand{font-family:var(--display);font-weight:700;font-size:1.1rem;letter-spacing:.05em;color:var(--text);text-decoration:none;text-transform:uppercase}
.brand span{color:var(--high)}
.links{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.links a{color:var(--muted);text-decoration:none;font-weight:700;font-size:.95rem;padding:6px 10px;border-radius:8px}
.links a:hover,.links a[aria-current="page"]{color:var(--text);background:var(--surface2)}
.themebtn{background:transparent;color:var(--text);border:1px solid var(--line);border-radius:999px;padding:6px 14px;font:inherit;font-size:.9rem;cursor:pointer}
.waves{position:absolute;left:0;right:0;bottom:-1px;height:64px;z-index:1;overflow:hidden}
.waves svg{width:200%;height:100%;display:block}
@media (prefers-reduced-motion:no-preference){.waves svg{animation:drift 26s linear infinite}}
@keyframes drift{to{transform:translateX(-50%)}}

/* Hero */
.hero{display:grid;grid-template-columns:1fr;gap:28px;align-items:center;margin-top:30px}
@media(min-width:900px){.hero{grid-template-columns:1.15fr 1fr}}
.hero>*{min-width:0}
.eyebrow{font-family:var(--display);font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--low);font-size:1rem;margin:0 0 10px}
.hero h1{font-size:clamp(2.7rem,8.5vw,5.2rem);line-height:.93;max-width:11ch;margin-bottom:16px}
.hero h1 em{font-style:normal;color:var(--high)}
.lede{color:var(--muted);max-width:50ch;margin:0 0 24px;font-size:1.08rem}
.ctas{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-block;font-family:var(--display);font-weight:700;font-size:1.25rem;letter-spacing:.04em;text-decoration:none;padding:12px 22px;border-radius:10px;border:2px solid var(--high);cursor:pointer}
.btn.primary{background:var(--high);color:var(--on-high)}
.btn.ghost{background:transparent;color:var(--text);border-color:var(--line)}
.btn.ghost:hover{border-color:var(--high)}
.page-title{font-size:clamp(2.4rem,7vw,4rem);margin:28px 0 10px;max-width:16ch}

/* Preview card in hero */
.preview{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 18px 40px rgba(0,0,0,.25)}
.pv-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.pv-port{font-family:var(--display);font-weight:700;font-size:1.5rem}
.chip{font-family:var(--display);font-weight:600;background:var(--high);color:var(--on-high);padding:3px 10px;border-radius:6px;letter-spacing:.06em;font-size:1rem}
.pv-sample{color:var(--muted);font-size:.82rem;margin:2px 0 8px}
.pv-chart{width:100%;height:auto;display:block}
.pv-rows{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}
.pv-rows div{background:var(--surface2);border-radius:8px;padding:8px 12px;border-left:5px solid var(--line)}
.pv-rows .h{border-left-color:var(--high)} .pv-rows .l{border-left-color:var(--low)}
.pv-rows small{display:block;color:var(--muted);font-size:.8rem}
.pv-rows b{font-family:var(--display);font-size:1.45rem;font-variant-numeric:tabular-nums}

/* Sections */
main{padding-block:10px 50px}
section.block{margin-top:56px}
.block h2{font-size:clamp(2rem,5vw,2.8rem);margin-bottom:8px}
.block .sub{color:var(--muted);max-width:60ch;margin:0 0 22px}
.features{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:760px){.features{grid-template-columns:repeat(3,1fr)}}
.feature{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:8px}
.feature svg{width:46px;height:46px}
.feature h3{font-size:1.8rem}
.feature p{margin:0;color:var(--muted)}
.feature ul{margin:4px 0 0;padding-left:1.1em}
.feature li{margin:2px 0}

.coast{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.coast li{background:var(--surface2);border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-weight:700;font-size:.95rem}
.coast li b{font-family:var(--display);color:var(--low);letter-spacing:.06em;margin-right:6px}

.steps{display:grid;grid-template-columns:1fr;gap:14px;counter-reset:s;margin:0;padding:0;list-style:none}
@media(min-width:760px){.steps{grid-template-columns:repeat(3,1fr)}}
.steps li{counter-increment:s;border-top:3px solid var(--water);padding-top:12px}
.steps li::before{content:"Step " counter(s);display:block;font-family:var(--display);font-weight:700;color:var(--high);letter-spacing:.08em;text-transform:uppercase;font-size:.95rem}
.steps h3{font-size:1.5rem;margin:2px 0 4px}
.steps p{margin:0;color:var(--muted)}

.tip{background:var(--surface2);border-radius:12px;padding:16px 20px;border-left:6px solid var(--high);max-width:820px}
.tip p{margin:0}

.cta-band{margin-top:56px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:26px;display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between;align-items:center}
.cta-band h2{font-size:clamp(1.8rem,4.5vw,2.5rem)}
.cta-band p{margin:4px 0 0;color:var(--muted)}

/* Prose pages */
.prose{max-width:68ch}
.prose h2{font-size:1.9rem;margin:34px 0 8px}
.prose h3{font-size:1.4rem;margin:22px 0 6px}
.prose p,.prose li{color:var(--text)}
.prose ul{padding-left:1.2em}
.prose .meta{color:var(--muted)}
.ph{background:var(--surface2);border:1px dashed var(--high);border-radius:6px;padding:0 6px;font-weight:700}

/* Support */
.support-grid{display:grid;grid-template-columns:1fr;gap:22px;margin-top:20px}
@media(min-width:900px){.support-grid{grid-template-columns:1.3fr 1fr}}
.support-grid>*{min-width:0}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px}
.panel h2{font-size:1.8rem;margin-bottom:6px}
form .row{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:560px){form .row.two{grid-template-columns:1fr 1fr}}
form label{display:block;font-weight:700;font-size:.95rem;margin-bottom:6px}
form .opt{color:var(--muted);font-weight:400}
input,select,textarea{width:100%;font:inherit;color:var(--text);background:var(--bg);border:2px solid var(--line);border-radius:10px;padding:11px 13px}
textarea{min-height:150px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--high);outline:none}
.field{margin-bottom:14px}
.check{display:flex;gap:10px;align-items:flex-start;font-weight:400 !important}
.check input{width:20px;height:20px;margin-top:3px;flex:none}
.formmsg{margin-top:12px;padding:12px 14px;border-radius:10px;background:var(--surface2);border-left:6px solid var(--low)}
.formmsg.err{border-left-color:var(--high)}
details{border-top:1px solid var(--line);padding:12px 0}
details:last-child{border-bottom:1px solid var(--line)}
summary{cursor:pointer;font-weight:700}
details p{margin:8px 0 0;color:var(--muted)}

footer.site{border-top:1px solid var(--line);margin-top:40px;color:var(--muted);font-size:.92rem}
footer.site .in{padding-block:24px 34px;display:flex;flex-wrap:wrap;gap:12px 28px;justify-content:space-between}
footer.site nav{display:flex;flex-wrap:wrap;gap:16px}
footer.site p{margin:0;max-width:60ch}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* Screenshots */
.phone{background:var(--line);border-radius:34px;padding:9px;box-shadow:0 22px 50px rgba(0,0,0,.35);max-width:100%}
.phone img{display:block;width:100%;height:auto;border-radius:26px;background:#071c22}
.hero-shot{margin:0;display:flex;justify-content:center}
.hero-shot .phone{width:min(320px,82vw)}
@media(min-width:900px){.hero-shot .phone{transform:rotate(2deg)}}
@media(prefers-reduced-motion:no-preference){.hero-shot .phone{transition:transform .4s ease}.hero-shot .phone:hover{transform:rotate(0)}}
.gallery{display:grid;grid-template-columns:1fr;gap:28px;justify-items:center}
@media(min-width:700px){.gallery{grid-template-columns:repeat(3,1fr);gap:22px}}
.gallery figure{margin:0;display:flex;flex-direction:column;gap:14px;max-width:300px;min-width:0}
.gallery figcaption{color:var(--muted);font-size:.95rem}
.gallery figcaption b,.support-shot figcaption b{display:block;font-family:var(--display);font-size:1.4rem;color:var(--text);line-height:1.1;margin-bottom:2px}
.browser{margin:28px 0 0;background:var(--line);border-radius:14px;padding:0 8px 8px;box-shadow:0 22px 50px rgba(0,0,0,.3);max-width:100%}
.browser-bar{display:flex;gap:6px;padding:10px 6px}
.browser-bar span{width:11px;height:11px;border-radius:50%;background:var(--muted);opacity:.6}
.browser img{display:block;width:100%;height:auto;border-radius:8px}
.caption{color:var(--muted);font-size:.92rem;margin:10px 0 0}
.support-shot{margin:22px 0 0;display:flex;gap:18px;align-items:flex-start}
.support-shot .phone.small{flex:0 0 130px;border-radius:22px;padding:6px}
.support-shot .phone.small img{border-radius:17px}
.support-shot figcaption{color:var(--muted);font-size:.95rem;min-width:0}
.btn.store{display:inline-flex;align-items:center;gap:9px}
.btn.store .apple{width:22px;height:22px;flex:none;margin-top:-3px}
.price{margin:16px 0 0;color:var(--muted);font-size:.98rem}
.price b{font-family:var(--display);font-size:1.5rem;color:var(--high);letter-spacing:.02em;margin-right:4px}

/* v3: native app */
.phone{border-radius:44px;padding:10px}
.phone img{border-radius:35px}
.features{grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr))}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
@media(min-width:760px){.facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
.facts div{border-top:3px solid var(--water);padding-top:10px;min-width:0}
.facts dt{font-family:var(--display);font-weight:700;font-size:clamp(2.2rem,6vw,3.2rem);line-height:1;color:var(--high);font-variant-numeric:tabular-nums}
.facts dd{margin:4px 0 0;color:var(--muted);font-weight:700}
.gallery{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 4px 18px;margin:0 -4px;justify-items:initial}
.gallery figure{flex:0 0 min(240px,70vw);scroll-snap-align:start;max-width:none}
@media(min-width:900px){.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 26px;overflow:visible}.gallery figure{max-width:300px;justify-self:center}}
.ipad{display:grid;grid-template-columns:1fr;gap:26px;align-items:center}
@media(min-width:860px){.ipad{grid-template-columns:1fr 1.15fr}}
.ipad>*{min-width:0}
.ipad .btn{margin-top:4px}
.tablet{margin:0;background:var(--line);border-radius:30px;padding:14px;box-shadow:0 22px 50px rgba(0,0,0,.35);max-width:560px;justify-self:center;width:100%}
.tablet img{display:block;width:100%;height:auto;border-radius:18px;background:#071c22}
.hero h1{max-width:13ch}
.sel{user-select:all;-webkit-user-select:all;color:var(--text)}
.hero-shot .phone{width:min(290px,74vw)}
