﻿/* /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:#F2A100;--orange-dim:#C98200;--orange-faint:rgba(242,161,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:#0A0F1F;--bg-card:#111A30;--bg-soft:#15152400;
  --border:#1C2640;--border-lt:#172036;
  --text:#F2F5FC;--text-dim:#8794B8;--text-mute:#6B789E;
  --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}
/* The warm wash starts at the document top, not at the hero.
   Measured before changing it: the nav ends at 68px, the breadcrumb runs 68 to
   101, and the hero's own wash began at 93. That left a 25px band of flat --bg
   under the nav and then a hard step into 10% orange, which is the seam. Anchored
   here instead, the colour runs out from under the nav continuously and the
   breadcrumb sits inside it rather than on a strip of its own. The stops end
   around 600px, which is where the hero used to fade out anyway. */
body{font-family:var(--font);color:var(--text);line-height:1.6;
  background:linear-gradient(180deg,
      rgba(242,161,0,.10) 0,
      rgba(242,161,0,.055) 240px,
      rgba(242,161,0,.02) 420px,
      transparent 600px) no-repeat,
    var(--bg);
  min-height:100vh;overflow-x:hidden;overflow-wrap:break-word}
[data-theme=dark] body{background:linear-gradient(180deg,
      rgba(242,161,0,.06) 0,
      rgba(242,161,0,.03) 240px,
      rgba(242,161,0,.012) 420px,
      transparent 600px) no-repeat,
    var(--bg)}
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}
/* Dots only. The gradient that used to live here moved to body, because starting
   it at the hero is what produced the seam above it. */
.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;
  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.
   400 became 370 when the copy was cut back: the balance between this and the
   text column is asserted by the probe, and the old way of holding it was to
   give the text side more to say. That is no longer on the table, so the image
   gives way instead. */
.hero-shot img{max-height:370px;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}
/* One line of requirements under each section heading, not a fifth spec strip.
   The things that stop an install dead (an OS floor, Developer Mode) belong
   above the cards, where they are read before a method is picked rather than
   discovered inside a modal three steps in. */
.sec-req{margin:-.55rem 0 1.15rem;font-size:.9rem;color:var(--text-dim)}
.sec-req b{color:var(--text);font-weight:600}

/* ── 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}
/* Two marks for one method. Tighter than the header gap so the pair reads as a
   single item rather than two competing logos, and the row still fits the
   two-column card at 820px. */
.method-logos{display:flex;align-items:center;gap:.3rem;flex:none}
/* 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(242,161,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}
/* Full width, under the routes rather than beside one. It is a warning about
   builds that are not ours, so pairing it with a real method in a two-up row
   read as a fifth option. */
.method-warn{background:transparent;grid-column:1/-1}
@media(max-width:820px){.method-warn{grid-column:auto}}
/* Android, not yet shipped. Same card so the page speaks one language, quieter
   fill and a dashed edge so it never reads as something you can install today.
   It carries no button at all, which is the part that actually says so. */
.method-soon{background:transparent;border-style:dashed}
.method-soon h3{color:var(--text-dim)}

/* ── 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:#2A1700}
.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)}

/* The old one-off Android strip lived here. Android now uses the same .method
   card as everything else (see .method-soon above), so the page presents one
   pattern rather than a special case, and the rules it needed are gone rather
   than left behind to rot. */

/* 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 ───────────────────────────────────────────────────────────── */
/* The BOX scrolls, not the .modal. A sticky header inside an element whose
   scroll container is an ANCESTOR (the old .modal) is unreliable, which is why
   the head scrolled away with the body. Scrolling the box itself makes
   position:sticky on .modal-head do what it says. */
.modal{position:fixed;inset:0;z-index:900;display:flex;align-items:flex-start;
  justify-content:center;padding:4vh 1rem;overflow: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;
  display:flex;flex-direction:column;max-height:92vh;overflow-y:auto;overflow-x:hidden}
.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(242,161,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}}

/* Hero after chesscheats.com/ios (issue #76, 2026-11-07): the two phones
   first, then the buttons, the ways to install, and the requirements. */
.hero-phone{text-align:center;padding-top:1.6rem}
.hero-phone .kicker{justify-content:center}
.hero-phone .lead{margin:0 auto}
.hero-phones{display:flex;justify-content:center;gap:1.4rem;margin:1.8rem auto 1.4rem;max-width:560px}
.hero-phones .hero-shot{flex:1 1 0;max-width:250px;margin:0}
.hero-phones .hero-shot img{width:100%;height:auto;border-radius:26px;box-shadow:0 18px 40px -18px rgba(0,0,0,.45)}
.hero-actions{display:flex;justify-content:center;gap:.6rem;margin:0 0 1.2rem}
.hero-actions .btn{flex:0 0 auto;margin:0;align-self:auto;height:42px;padding:0 20px;font-size:.9rem}
.install-with{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.45rem;margin:0 auto 1.4rem;max-width:640px}
.install-with-k{width:100%;font-size:.78rem;color:var(--text-dim);margin-bottom:.15rem}
.iw{display:inline-flex;align-items:center;gap:.45rem;padding:.35rem .75rem .35rem .4rem;border:1px solid var(--border);
  border-radius:999px;background:var(--bg-card);color:var(--text);font:600 .82rem Inter,sans-serif;cursor:pointer}
.iw:hover{border-color:var(--orange)}
.iw img{border-radius:6px}
.hero-phone .req{text-align:left}
.how{margin:0 0 2.2rem}
.how-steps{margin:0;padding-left:1.3rem;display:flex;flex-direction:column;gap:.55rem;line-height:1.6;color:var(--text-mid)}
.how-steps b{color:var(--text)}
@media(max-width:520px){
  .hero-phones{gap:.7rem;margin-top:1.3rem}
  .hero-phones .hero-shot img{border-radius:18px}
  .hero-actions .btn{flex:1 1 0;justify-content:center;padding:0 12px}
}

/* Phones: the dot map behind the hero reached 50vw past both sides and the
   method cards ran 25px wide, which made phones lay the page out at 565px
   and zoom it out (measured 2026-11-07). */
.methods>*{min-width:0}
@media(max-width:820px){.hero:before{left:-1.25rem;right:-1.25rem}}
