/* ==========================================================================
   COUNTERMOVES — countermoves.app

   ⚠️ SHARED BY index, privacy AND support. It was inline in index.html until
   2026-08-30; the sub-pages were on a different, older stylesheet with an
   orange accent and different type, and "make them match" is a promise a
   copy-paste cannot keep. One file means they cannot drift.

   Three surfaces (canvas / raised / sunken) separated by a 1pt hairline and
   NEVER by a shadow. One accent: mint. Dark only, deliberately.
   ========================================================================== */
/* ─────────────────────────────────────────────────────────────────────────
   Countermoves — countermoves.app

   Built to design/mock3/desk-mark.html and mobile/theme/tokens.ts.
   Three surfaces (canvas, raised, sunken), separated by a 1pt hairline and
   NEVER by a shadow. One accent: mint, and it only ever labels a mode or
   marks the app's own voice. Mark colours are semantic and exempt.
   Dark only, on purpose — this is not a dating app.
   ───────────────────────────────────────────────────────────────────────── */

:root{
  color-scheme: dark;

  --void:#0B0D0C;      /* canvas */
  --panel:#101312;     /* sunken inset */
  --raise:#141816;     /* raised card */
  --line:#1E2421;      /* the 1pt hairline. load-bearing. */
  --line-soft:#171B19;

  --ink:#F3F6F4;
  --mute:#97A29C;
  --dim:#626C67;
  --ghost:#3A423E;

  --mint:#2EE6A8;
  --mint-deep:#04241A;

  /* semantic only — chess annotation */
  --gold:#FFB13D;   --gold-bg:#1F1507;
  --green:#45E094;  --green-bg:#0B1C13;
  --cyan:#4FC9FF;   --cyan-bg:#08191F;
  --ember:#FF6F3C;  --ember-bg:#2E1409;
  --red:#FF5266;    --red-bg:#200A0E;

  --sans:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --wordmark:"Archivo",var(--sans);

  --gut:20px;
  --max:1160px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--void);
  color:var(--ink);
  font-family:var(--sans);
  font-weight:400;
  font-size:16px;
  line-height:1.55;
  letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{display:block;max-width:100%}
a{color:inherit}
::selection{background:var(--mint);color:var(--mint-deep)}
:focus-visible{outline:2px solid var(--mint);outline-offset:3px;border-radius:4px}

.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gut)}
.rule{border:0;border-top:1px solid var(--line);margin:0}

/* ── the mark ─────────────────────────────────────────────────────────── */
/* The mark is the TILE, not the bare glyph — see the favicon note above.
   Rounded to match the rim it ships with, and never given a shadow. */
.mk{display:block;border-radius:22%;width:34px;height:34px}
.mkbig{display:block;border-radius:22%;width:128px;height:128px}

/* ── top rail. minimal chrome: the mark, the wordmark, nothing else. ──── */
.rail{border-bottom:1px solid var(--line)}
.rail .wrap{display:flex;align-items:center;gap:10px;height:60px}
.rail .mk{width:13px;height:13px;color:var(--ink);flex:none;transform:translateY(-1px)}
.rail .word{
  font-family:var(--wordmark);font-style:italic;font-weight:900;
  font-size:20px;line-height:1;letter-spacing:-.02em;color:var(--ink);
}
/* Nothing else lives in this band. As long as something does, it is a header
   rather than a logo — the same finding the app's own mark rail landed on. */

/* ── kicker: the app's own label style. mint names a mode. ────────────── */
.kick{
  display:flex;align-items:baseline;gap:9px;
  font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.14em;
  color:var(--mint);margin:0 0 14px;
}
.kick .n{color:var(--ghost);font-variant-numeric:tabular-nums;letter-spacing:.1em}
.kick .sep{color:var(--ghost);font-weight:500}

/* ── type ─────────────────────────────────────────────────────────────── */
h1,h2,h3{margin:0;font-weight:800;letter-spacing:-.035em;line-height:1.03}
h1{font-size:clamp(38px,9vw,72px)}
h2{font-size:clamp(29px,6.6vw,46px);letter-spacing:-.033em;line-height:1.06}
h3{font-size:15px;font-weight:800;letter-spacing:-.01em;line-height:1.3}
p{margin:0}
.lede{
  font-size:clamp(17px,4.3vw,20px);line-height:1.5;color:var(--mute);
  font-weight:400;max-width:38ch;
}
.body{font-size:16.5px;line-height:1.6;color:var(--mute);max-width:44ch}
.cap{font-size:12.5px;line-height:1.5;color:var(--dim);max-width:40ch}

/* ── the "coming soon" chip. not mint — there is nothing to press. ────── */
.chip{
  display:inline-flex;align-items:center;gap:9px;
  border:1px solid var(--line);border-radius:999px;
  background:var(--raise);
  padding:9px 15px 9px 13px;
  font-size:12.5px;font-weight:500;color:var(--mute);letter-spacing:0;
}
.chip .dot{width:6px;height:6px;border-radius:999px;background:var(--mint);flex:none}

/* ── phone frame: a hairline bezel. no shadow, anywhere, ever. ────────── */
.frame{
  width:100%;
  border:1px solid var(--line);
  border-radius:34px;
  background:var(--void);
  padding:7px;
  overflow:hidden;
}
.frame img{width:100%;height:auto;border-radius:27px}
.shot{margin:0}
.shot figcaption{margin-top:14px}

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero .wrap{padding-top:52px;padding-bottom:56px}
.hero h1{margin-bottom:20px}
.hero .lede{margin-bottom:26px}
.hero .chip{margin-bottom:34px}

.facts{
  display:grid;grid-template-columns:repeat(2,1fr);
  border-top:1px solid var(--line);
}
.facts div{
  border-bottom:1px solid var(--line-soft);
  padding:14px 0;
}
.facts div:nth-child(odd){padding-right:14px}
.facts b{
  display:block;font-size:24px;font-weight:800;letter-spacing:-.04em;
  color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.1;
}
.facts span{
  display:block;font-size:11px;font-weight:800;text-transform:uppercase;
  letter-spacing:.12em;color:var(--dim);margin-top:5px;
}
.hero .frame{max-width:330px;margin:40px auto 0}

/* ── mode blocks ──────────────────────────────────────────────────────── */
.mode .wrap{padding-top:64px;padding-bottom:64px}
.mode h2{margin-bottom:16px}
.mode .body{margin-bottom:0}
.mode .frame{max-width:320px;margin:34px auto 0}

/* practice: two screens. a peeking edge is the affordance. */
.pair{
  display:flex;gap:14px;margin:34px -20px 0;padding:0 20px;
  overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.pair::-webkit-scrollbar{display:none}
.pair .shot{flex:0 0 74%;scroll-snap-align:center}
.pair .frame{max-width:none;margin:0}

/* ── the annotation strip. sunken inset inside the Review block. ──────── */
.marks{
  margin-top:30px;border:1px solid var(--line);border-radius:18px;
  background:var(--panel);padding:18px;
}
.marks .hd{
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.13em;
  color:var(--dim);margin-bottom:14px;
}
.marks ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.marks li{display:flex;align-items:center;gap:11px}
.marks .g{
  flex:none;width:42px;height:28px;border-radius:8px;
  display:grid;place-items:center;
  font-size:14px;font-weight:800;letter-spacing:-.02em;
}
.marks .lb{font-size:14.5px;font-weight:500;color:var(--ink);letter-spacing:-.015em}
.marks .m1 .g{color:var(--gold);background:var(--gold-bg)}
.marks .m2 .g{color:var(--green);background:var(--green-bg)}
.marks .m3 .g{color:var(--cyan);background:var(--cyan-bg)}
.marks .m4 .g{color:var(--ember);background:var(--ember-bg)}
.marks .m5 .g{color:var(--red);background:var(--red-bg)}
.marks .m6 .g{color:var(--red);background:var(--red-bg)}
.marks .note{margin-top:15px;padding-top:14px;border-top:1px solid var(--line);}
.marks .note p{font-size:12.5px;line-height:1.5;color:var(--dim)}

/* ── pull quote: the one idea the competitors don't have ─────────────── */
.pull .wrap{padding-top:64px;padding-bottom:64px}
.pull q{quotes:none}
.pull .quote{
  font-size:clamp(23px,5.6vw,34px);line-height:1.24;letter-spacing:-.034em;
  font-weight:800;color:var(--ink);max-width:17ch;
}
.pull .body{margin-top:22px}

/* ── closing band ─────────────────────────────────────────────────────── */
.end{position:relative;overflow:hidden;border-top:1px solid var(--line)}
.end .wm{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(680px,165%);color:var(--ink);opacity:.045;pointer-events:none;
}
.end .wrap{position:relative;padding-top:78px;padding-bottom:78px;text-align:center}
.end .mkbig{width:32px;height:32px;color:var(--ink);margin:0 auto 28px}
/* The one place the wordmark is set large. It is the sign-off, not the hero —
   the hero is the claim and the proof, which is the whole argument against the
   centred-gradient-wordmark page every competitor ships. */
.end h2{
  font-family:var(--wordmark);font-style:italic;font-weight:900;
  font-size:clamp(34px,8.4vw,58px);letter-spacing:-.025em;line-height:1;
  margin-bottom:20px;
}
.end .lede{margin:0 auto 30px;max-width:34ch}
.end .glyph{
  margin-top:34px;font-size:12.5px;color:var(--dim);
}
.end .glyph b{color:var(--mute);font-weight:500}

/* ── footer ───────────────────────────────────────────────────────────── */
footer{border-top:1px solid var(--line)}
footer .wrap{padding:28px 20px 42px;display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center}
footer .word{
  font-family:var(--wordmark);font-style:italic;font-weight:900;
  font-size:15px;letter-spacing:-.02em;color:var(--mute);line-height:1;
}
footer nav{display:flex;flex-wrap:wrap;gap:20px;margin-left:auto}
footer a{font-size:13.5px;color:var(--mute);text-decoration:none;letter-spacing:0}
footer a:hover{color:var(--ink)}
footer .fine b{color:var(--mute);font-weight:500}
.fine{flex-basis:100%;font-size:12px;color:var(--ghost);letter-spacing:0}

/* ── reveal. added by script only when motion is allowed. ─────────────── */
.rv-init{opacity:0;transform:translateY(14px)}
.rv-in{opacity:1;transform:none;transition:opacity 340ms cubic-bezier(.2,.7,.3,1),transform 340ms cubic-bezier(.2,.7,.3,1)}

/* ── wide ─────────────────────────────────────────────────────────────── */
@media (min-width:760px){
  :root{--gut:40px}
  .facts{grid-template-columns:repeat(4,1fr)}
  .facts div:nth-child(odd){padding-right:0}
  .facts div{border-bottom:0;padding:16px 18px 0 0}
  .pair{margin:34px 0 0;padding:0;overflow:visible}
  .pair .shot{flex:1 1 0}
}
@media (min-width:960px){
  .hero .wrap{
    display:grid;grid-template-columns:1.06fr .94fr;gap:56px;align-items:center;
    padding-top:86px;padding-bottom:86px;
  }
  .hero .frame{margin:0 auto;max-width:360px}
  .hero .col-b{display:flex;flex-direction:column;align-items:center}
  .hero .col-b .cap{text-align:center;margin-top:16px}

  .mode .wrap{
    display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;
    padding-top:96px;padding-bottom:96px;
  }
  .mode .txt{max-width:none}
  .mode .art{margin:0}
  .mode .frame{margin:0 auto}
  .mode.flip .txt{order:2}
  .mode.flip .art{order:1}
  .mode.wide .wrap{grid-template-columns:.82fr 1.18fr}

  .marks ul{grid-template-columns:1fr 1fr;gap:9px 18px}

  .pull .wrap{
    display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start;
    padding-top:96px;padding-bottom:96px;
  }
  .pull .body{margin-top:6px}

  .end .wrap{padding-top:112px;padding-bottom:112px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

/* ==========================================================================
   DOCUMENT PAGES — privacy, support

   Same tokens, same rail, same footer as the landing page; this section only
   adds prose. A legal page that looks like a different company is the cheapest
   possible way to make a real product feel improvised, and Apple reads these.
   ========================================================================== */

.doc{max-width:720px;margin:0 auto;padding:0 var(--gut)}
.doc-head{padding:56px 0 0}
.doc-head h1{font-size:clamp(34px,7vw,54px);margin:0 0 12px}
.doc-head .updated{font-size:13px;color:var(--dim);margin:0}

/* the sunken inset — the one place a document raises its voice */
.doc .box{
  margin:30px 0 0;padding:18px 20px;
  background:var(--panel);border:1px solid var(--line);border-radius:16px;
  font-size:15.5px;line-height:1.6;color:var(--mute);
}
.doc .box strong{color:var(--ink);font-weight:800}

.doc h2{
  font-size:19px;font-weight:800;letter-spacing:-.02em;line-height:1.3;
  margin:46px 0 12px;color:var(--ink);
}
.doc p{margin:0 0 14px;color:var(--mute);font-size:16px;line-height:1.65}
.doc p:last-child{margin-bottom:0}
.doc strong{color:var(--ink);font-weight:500}
.doc a{color:var(--mint);text-decoration:none;border-bottom:1px solid rgba(46,230,168,.3)}
.doc a:hover{border-bottom-color:var(--mint)}

.doc ul{margin:0 0 14px;padding:0;list-style:none}
.doc li{
  position:relative;padding-left:20px;margin:0 0 11px;
  color:var(--mute);font-size:16px;line-height:1.65;
}
/* a hairline tick rather than a bullet glyph — the system has rules, not dots */
.doc li::before{
  content:"";position:absolute;left:2px;top:11px;
  width:7px;height:1px;background:var(--ghost);
}

/* support's question rows */
.doc .q{
  color:var(--ink);font-weight:800;font-size:16.5px;letter-spacing:-.01em;
  margin:34px 0 8px;
}
.doc .q + p{margin-top:0}

.doc-end{margin:64px 0 0;padding:26px 0 0;border-top:1px solid var(--line)}
