/* /phone install page.

   Same tokens the other static pages inline, so a theme switch on any page
   carries here. Design constraints from promo-video/README.md apply: no glow,
   no coloured bar down one edge of a block, small radii, Space Grotesk for
   headings at the site's -0.03em, Inter for text, JetBrains Mono for labels
   and anything a reader is meant to copy. */
*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#F5F5FA;--bg-card:#FFFFFF;--bg-soft:#FAFAFD;
  --border:#E0E0E8;--border-lt:#EDEDF2;
  --text:#1A1A2E;--text-dim:#555570;--text-mute:#8A8AA0;
  --orange:#FF6600;--orange-dim:#E55A00;--orange-faint:rgba(255,102,0,.07);
  --font:"Inter",system-ui,sans-serif;
  --head:"Space Grotesk","Inter",system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,monospace;
  --shadow:0 2px 16px rgba(0,0,0,.07);
}
[data-theme=dark]{
  --bg:#0B0B14;--bg-card:#12121F;--bg-soft:#15152400;
  --border:#1E1E32;--border-lt:#191929;
  --text:#F0F0F8;--text-dim:#8888AA;--text-mute:#6F6F8C;
  --shadow:0 2px 16px rgba(0,0,0,.4);
}
/* The hero wash bleeds past the container with a negative viewport inset, and a
   negative inset makes a box wider than the viewport: measured 160px of
   horizontal scroll at 360px. body already clips, but the scrollbar is owned by
   the root element, so the root has to clip too. `clip` rather than `hidden`
   because `hidden` would make this a scroll container and break the sticky nav. */
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;
  min-height:100vh;overflow-x:hidden;overflow-wrap:break-word}
a{color:var(--orange);text-decoration:none;transition:opacity .2s}
a:hover{opacity:.8}

.breadcrumb{max-width:1000px;margin:0 auto;padding:.75rem 1.25rem 0;font-size:.8rem;
  color:var(--text-mute);font-family:var(--mono)}
.breadcrumb a{color:var(--text-mute)}
.breadcrumb a:hover{color:var(--orange)}

.wrap{max-width:1060px;margin:0 auto;padding:1.5rem 1.25rem 4rem}

/* ── hero ─────────────────────────────────────────────────────────────── */
/* The site's own treatment, not a new one: the home page opens on a warm wash
   over the dotted world map, and a page that skipped it read as a blank
   template sitting on flat grey. The map is the same asset the home page uses. */
.hero{position:relative;padding:2.5rem 0 3rem;margin-bottom:.5rem}
.hero:before{content:"";position:absolute;inset:-2rem -50vw 0;pointer-events:none;z-index:0;
  background:
    url("/img/world-dots.svg") center 2rem / 900px auto no-repeat,
    linear-gradient(180deg,rgba(255,102,0,.10) 0%,rgba(255,102,0,.03) 45%,transparent 80%);
  opacity:.85}
[data-theme=dark] .hero:before{opacity:.5}
.hero>*{position:relative;z-index:1}

.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:3rem;align-items:center}

.kicker{font-family:var(--mono);font-size:.76rem;font-weight:500;letter-spacing:.18em;
  text-transform:uppercase;color:var(--text-mute);margin-bottom:.9rem}
.kicker b{color:var(--orange);font-weight:700}
.hero h1{font-family:var(--head);font-weight:800;font-size:clamp(2.1rem,5.5vw,3.2rem);
  line-height:1.03;letter-spacing:-.03em;margin-bottom:1rem}
.hero h1 em{font-style:normal;color:var(--orange)}
.lead{font-size:1.08rem;color:var(--text-dim);max-width:56ch;line-height:1.7}

/* One honest shadow under the screenshot, and nothing else. It is a real
   capture of the app on a real handset, so it carries the page on its own. */
.hero-shot{margin:0;position:relative;display:flex;flex-direction:column;align-items:center}
/* Capped by HEIGHT, not width. A 1170x2532 capture at full column width makes
   the hero about 800px tall and leaves a field of dead white beside the text. */
.hero-shot img{max-height:400px;width:auto;max-width:100%;height:auto;display:block;
  border-radius:22px;border:1px solid var(--border);box-shadow:0 12px 44px rgba(17,17,34,.16)}
[data-theme=dark] .hero-shot img{box-shadow:0 12px 44px rgba(0,0,0,.55)}
.hero-shot figcaption{margin-top:.7rem;font-family:var(--mono);font-size:.68rem;
  letter-spacing:.13em;text-transform:uppercase;color:var(--text-mute);text-align:center}

/* An inline mark beside a brand name in running text. */
.brand{display:inline-flex;align-items:center;gap:.34em;white-space:nowrap}
.brand img{width:1.05em;height:1.05em;border-radius:3px;display:inline-block;
  vertical-align:-.15em}

@media(max-width:840px){
  .hero-grid{grid-template-columns:1fr;gap:2rem}
  .hero-shot{max-width:250px;margin:0 auto}
  .hero:before{background-size:700px auto}
}

/* ── the four facts, as a spec strip rather than four cards ───────────── */
.req{display:flex;flex-wrap:wrap;gap:0;margin:2.25rem 0 0;
  border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.req-item{flex:1 1 160px;padding:.95rem 1.1rem .95rem 0;display:flex;flex-direction:column;gap:.3rem}
.req-item+.req-item{padding-left:1.1rem;border-left:1px solid var(--border-lt)}
.req-k{font-family:var(--mono);font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--text-mute)}
.req-v{font-size:.95rem;font-weight:600}

.sec-h{font-family:var(--head);font-weight:700;font-size:1.3rem;letter-spacing:-.02em;
  margin:2.75rem 0 1.1rem}

/* ── method cards ─────────────────────────────────────────────────────── */
/* Two by two, not auto-fit. There are exactly four methods, and auto-fit gave
   three across at desktop width with the fourth stranded alone on its own row. */
.methods{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
@media(max-width:820px){.methods{grid-template-columns:1fr}}
.method{background:var(--bg-card);border:1px solid var(--border);border-radius:6px;
  padding:1.35rem 1.4rem 1.4rem;display:flex;flex-direction:column}
.method-top{display:flex;align-items:center;gap:.7rem;margin-bottom:.7rem}
.method-logo{width:34px;height:34px;border-radius:8px;display:block;flex:none;
  border:1px solid var(--border-lt);background:#fff}
/* Same footprint as a tool logo, so the four card headers line up whether the
   mark is a vendor's or ours. */
.method-icon{width:34px;height:34px;border-radius:8px;flex:none;display:flex;
  align-items:center;justify-content:center;border:1px solid var(--border-lt);
  background:var(--bg-soft);color:var(--text-dim)}
.method-icon svg{width:20px;height:20px;display:block}
.method h3{font-family:var(--head);font-weight:700;font-size:1.16rem;letter-spacing:-.02em}
.tag{margin-left:auto;font-family:var(--mono);font-size:.63rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;color:var(--text-mute);
  border:1px solid var(--border);border-radius:5px;padding:.25rem .5rem;white-space:nowrap}
.tag-best{color:var(--orange);border-color:rgba(255,102,0,.4);background:var(--orange-faint)}
.tag-warn{color:var(--text-dim)}
.method>p{color:var(--text-dim);font-size:.95rem;margin-bottom:.9rem}
.method-facts{list-style:none;margin:0 0 1.15rem;padding:0;display:flex;flex-direction:column;gap:.4rem}
.method-facts li{font-size:.87rem;color:var(--text-dim);padding-left:1.05rem;position:relative}
.method-facts li:before{content:"";position:absolute;left:0;top:.62em;width:5px;height:5px;
  border-radius:50%;background:var(--text-mute)}
.method .btn{margin-top:auto;align-self:flex-start}
.method-warn{background:transparent}

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font);font-size:.88rem;font-weight:600;line-height:1.2;
  padding:.62rem 1.15rem;border-radius:6px;border:1px solid var(--border);
  background:var(--bg-card);color:var(--text);cursor:pointer;text-decoration:none;
  transition:background .15s ease,border-color .15s ease,color .15s ease}
.btn:hover{border-color:var(--orange);color:var(--orange);opacity:1}
.btn-primary{background:var(--orange);border-color:var(--orange);color:#fff}
.btn-primary:hover{background:var(--orange-dim);border-color:var(--orange-dim);color:#fff}
.btn-small{padding:.42rem .8rem;font-size:.8rem}
.btn[disabled]{opacity:.55;cursor:default}
.btnrow{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.1rem 0 0}

.foot-note{margin-top:2.25rem;font-size:.9rem;color:var(--text-dim)}

/* Android. Quieter than a method card on purpose: no fill, a dashed edge, and
   it sits outside the grid, so nothing about it reads as a route you can take
   today. */
.soon{margin-top:2rem;display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;
  border:1px dashed var(--border);border-radius:6px;padding:1.25rem 1.4rem}
.soon-body{flex:1 1 320px;min-width:0}
.soon-head{display:flex;align-items:center;gap:.7rem;margin-bottom:.35rem}
.soon-head h2{font-family:var(--head);font-weight:700;font-size:1.1rem;letter-spacing:-.02em}
.soon-head .tag{margin-left:0}
.soon p{font-size:.92rem;color:var(--text-dim)}
.soon .btn{flex:none}
@media(max-width:520px){.soon .btn{flex:1 1 100%}}

/* Footer styles are per page across this site, not in site-nav.css. Same shape
   the other static pages define inline, so /phone ends the way they do. */
.footer{border-top:1px solid var(--border);max-width:1000px;margin:0 auto;
  padding:2rem 1.25rem;display:flex;justify-content:space-between;align-items:center;
  color:var(--text-mute);font-size:.85rem;flex-wrap:wrap;gap:1rem}
.footer-links{display:flex;gap:1.5rem;flex-wrap:wrap}
.footer-links a{color:var(--text-mute)}
.footer-links a:hover{color:var(--orange)}

/* ── modals ───────────────────────────────────────────────────────────── */
.modal{position:fixed;inset:0;z-index:900;display:flex;align-items:flex-start;
  justify-content:center;padding:4vh 1rem;overflow-y:auto;overflow-x:hidden;
  background:rgba(10,10,20,.55)}
.modal[hidden]{display:none}
.modal-box{width:min(660px,100%);background:var(--bg-card);border:1px solid var(--border);
  border-radius:8px;box-shadow:var(--shadow);margin:auto 0}
.modal-head{display:flex;align-items:center;gap:1rem;padding:1.15rem 1.4rem;
  border-bottom:1px solid var(--border-lt);position:sticky;top:0;background:var(--bg-card);
  border-radius:8px 8px 0 0}
.modal-head h2{font-family:var(--head);font-weight:700;font-size:1.2rem;letter-spacing:-.02em}
.modal-x{margin-left:auto;background:none;border:none;color:var(--text-mute);font-size:1.6rem;
  line-height:1;cursor:pointer;padding:0 .2rem}
.modal-x:hover{color:var(--text)}
.modal-body{padding:1.3rem 1.4rem 1.5rem}
.modal-body p{color:var(--text-dim);font-size:.95rem;margin-bottom:.95rem}
.modal-body p b{color:var(--text);font-weight:600}
.modal-body h4{font-family:var(--head);font-weight:700;font-size:.95rem;letter-spacing:-.01em;
  margin:1.5rem 0 .6rem;color:var(--text)}
.modal-body ul,.modal-body ol{margin:0 0 .95rem;padding-left:1.3rem}
.modal-body li{font-size:.93rem;color:var(--text-dim);margin-bottom:.42rem;line-height:1.6}
.modal-body ol li::marker{font-family:var(--mono);font-size:.85rem;color:var(--orange)}
.small{font-size:.85rem;color:var(--text-mute);margin-top:1.1rem}

.copyrow{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.2rem 0 0;
  background:var(--orange-faint);border:1px solid rgba(255,102,0,.25);border-radius:6px;
  padding:.6rem .75rem}
.copyrow code{font-family:var(--mono);font-size:.83rem;color:var(--text);
  word-break:break-all;flex:1 1 auto;min-width:0}

.dl-msg{margin-top:.85rem;font-size:.88rem;padding:.7rem .85rem;border-radius:6px;
  border:1px solid var(--border);background:var(--bg-soft);color:var(--text-dim)}
.dl-msg[hidden]{display:none}
.dl-msg a{font-weight:600}

@media(max-width:520px){
  .req-item{flex:1 1 100%;padding-left:0!important;border-left:none!important;
    border-top:1px solid var(--border-lt)}
  .req-item:first-child{border-top:none}
  .btnrow .btn{flex:1 1 100%}
}
@media(prefers-reduced-motion:reduce){.btn{transition:none}}
