/* ==========================================================================
   Phone Emergency Info Guide: main stylesheet
   Fonts are self-hosted (SIL Open Font License) so the site makes no
   third-party requests.
   ========================================================================== */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --tint: #e3f2ee;
  --ink: #13293d;
  --muted: #45596c;       /* 6.9:1 on paper */
  --line: #c9d6e0;
  --teal: #0a6b66;        /* 6.3:1 on white */
  --teal-strong: #07524e;
  --on-teal: #ffffff;
  --tag: #ffd166;
  --tag-ink: #13293d;
  --tag-line: #c99a22;
  --note-bg: #fff6dc;
  --focus: #1b5fd6;

  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.6vw, 3.6rem);

  --measure: 68ch;
  --wrap: 72rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius-s: 6px;
  --radius-m: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f1d2a;
    --surface: #152737;
    --tint: #12312f;
    --ink: #e9eff5;
    --muted: #b3c2d0;
    --line: #2f4659;
    --teal: #6fd3c8;
    --teal-strong: #9be3db;
    --on-teal: #08201e;
    --note-bg: #2b2716;
    --focus: #8fb7ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1d2a;
  --surface: #152737;
  --tint: #12312f;
  --ink: #e9eff5;
  --muted: #b3c2d0;
  --line: #2f4659;
  --teal: #6fd3c8;
  --teal-strong: #9be3db;
  --on-teal: #08201e;
  --note-bg: #2b2716;
  --focus: #8fb7ff;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 4.5rem) + 1rem);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 760; font-stretch: 92%; }
h2 { font-size: var(--step-3); font-weight: 720; font-stretch: 94%; }
h3 { font-size: var(--step-1); font-weight: 680; }
p, ul, ol, dl { margin: 0 0 1em; }
p, li, dd { max-width: var(--measure); }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-strong); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-s);
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
}
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 720;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.site-title svg { width: 30px; height: 30px; flex: none; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-s);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
}
.site-nav a:hover { background: var(--tint); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--tint); color: var(--ink); box-shadow: inset 0 -3px 0 var(--teal); }

@media (max-width: 760px) {
  .site-nav { width: 100%; }
  .site-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .site-nav li { flex: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--teal);
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-strong); border-color: var(--teal-strong); color: var(--on-teal); }
.btn-secondary { background: transparent; color: var(--teal); }
.btn-secondary:hover { background: var(--tint); color: var(--teal-strong); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 36ch; }
.hero-note { margin-top: 1.25rem; font-size: var(--step--1); color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; justify-self: center; }
}

/* The info tag: the site's one signature element */
.tag-art { width: 100%; }
.tag-art .tag-body { fill: var(--tag); }
.tag-art .tag-hole { fill: var(--paper); stroke: var(--tag-line); }
.tag-art .tag-string { stroke: var(--muted); }
.tag-art .tag-text { fill: var(--tag-ink); }
.tag-art .tag-rule { stroke: var(--tag-ink); opacity: 0.55; }

@media (prefers-reduced-motion: no-preference) {
  .tag-swing {
    transform-origin: 50% 4%;
    animation: swing 2.4s cubic-bezier(.3,.7,.3,1) 0.2s 1 both;
  }
  @keyframes swing {
    0%   { transform: rotate(-9deg); }
    35%  { transform: rotate(5deg); }
    60%  { transform: rotate(-2.5deg); }
    80%  { transform: rotate(1deg); }
    100% { transform: rotate(-3deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tag-swing { transform: rotate(-3deg); }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.tag-swing { transform: rotate(-3deg); transform-origin: 50% 4%; }

/* ---------- Education note ---------- */
.edu-note {
  background: var(--note-bg);
  border-block: 1px solid var(--line);
}
.edu-note .wrap {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding-block: 1rem;
}
.edu-note svg { flex: none; width: 26px; height: 26px; margin-top: 0.1rem; color: var(--ink); }
.edu-note p { margin: 0; max-width: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-tint { background: var(--tint); }
.section-intro { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; color: var(--ink); }
.section h2 + .section-intro { margin-top: -0.2em; }

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* Example story block */
.example {
  background: var(--surface);
  border-left: 6px solid var(--tag);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  padding: 1.4rem 1.5rem 0.6rem;
  margin-block: 2rem;
  max-width: 50rem;
}
.example-label {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* Broader examples: a plain list with clear terms, not a card grid */
.needs-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0 2.5rem;
  max-width: none;
}
.needs-list li {
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
  max-width: none;
}
.needs-list strong { display: block; font-family: var(--font-head); font-size: 1.08rem; }

.limits {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--ink);
  max-width: 50rem;
}

/* ---------- Setup panels ---------- */
.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.other-android {
  margin-top: 2rem;
  max-width: 50rem;
  border-left: 6px solid var(--teal);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.other-android h3 { font-size: var(--step-1); }
.other-android .source-line { border-top: 0; padding-top: 0; }
.setup-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.setup-panel h3 { font-size: var(--step-2); margin-bottom: 0.3em; }
.panel-sub { color: var(--muted); margin-bottom: 1.25rem; }
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0.95rem 2.75rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--on-teal);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}
.steps ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.ui { font-weight: 700; }   /* on-screen labels */
.variation {
  background: var(--note-bg);
  border-radius: var(--radius-s);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}
.variation p:last-child { margin-bottom: 0; }
.subhead { font-size: 1.1rem; margin-top: 1.5rem; }
.source-line {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.source-line p { margin-bottom: 0.4rem; }
.setup-help { margin-top: 2rem; max-width: 50rem; }

/* ---------- Include section ---------- */
.include-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.75rem 2.5rem;
  margin-block: 2rem 2.5rem;
}
.include-list > div { border-top: 3px solid var(--teal); padding-top: 0.8rem; }
.include-list dt { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.3rem; }
.include-list dd { margin: 0; color: var(--ink); }
.include-list .eg { display: block; margin-top: 0.4rem; color: var(--muted); font-size: var(--step--1); }

.choice-box {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-m);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.choice-box h3 { font-size: var(--step-2); }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  max-width: 46rem;
}
.checklist li { border-bottom: 1px solid var(--line); max-width: none; }
.checklist label {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0.25rem;
  cursor: pointer;
}
.checklist input[type="checkbox"] {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.checklist .hint { display: block; color: var(--muted); font-size: var(--step--1); }
.checklist-status { font-weight: 700; min-height: 1.6em; }
.privacy-small { font-size: var(--step--1); color: var(--muted); }

/* ---------- Downloads ---------- */
.downloads {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.downloads li { max-width: none; display: flex; flex-direction: column; }
.thumb {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.75rem;
  margin-bottom: 0.9rem;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 1px 4px rgba(19,41,61,.18); }
.downloads h4 { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.2; margin-bottom: 0.3rem; }
.downloads p { color: var(--muted); font-size: var(--step--1); margin-bottom: 0.8rem; }
.downloads .btn { margin-top: auto; align-self: flex-start; }
.dl-group { margin-top: 2.75rem; }
.dl-group > h3 { font-size: var(--step-2); margin-bottom: 0.2em; }
.dl-group > p { max-width: 52ch; }
.downloads.wide-thumbs .thumb { aspect-ratio: 11 / 8.5; }
.source-files {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 50rem;
}

/* ---------- Sources ---------- */
.sources-table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.sources-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 36rem;
  background: var(--surface);
}
.sources-table caption { text-align: left; font-weight: 700; padding-bottom: 0.6rem; }
.sources-table th, .sources-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.sources-table th { font-size: var(--step--1); color: var(--muted); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 2.5rem;
  font-size: var(--step--1);
}
.site-footer a { color: var(--paper); }
.site-footer p { max-width: 70ch; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer { background: #091520; color: var(--ink); }
  :root:not([data-theme="light"]) .site-footer a { color: var(--ink); }
}
:root[data-theme="dark"] .site-footer { background: #091520; color: var(--ink); }
:root[data-theme="dark"] .site-footer a { color: var(--ink); }

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-art, .btn, .btn-row, .skip-link, .site-nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .hero { padding-block: 1rem; }
  .section-tint, .edu-note, .example, .setup-panel, .choice-box { background: #fff !important; }
  a { color: #000; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a { color: #000; }
}

/* Narrower headings when three setup guides sit side by side */
.three-col .setup-panel h3 { font-size: 1.45rem; }

/* ==========================================================================
   Design studio
   ========================================================================== */
.studio-intro { padding-block: clamp(2rem, 6vw, 3.5rem) 1.5rem; }
.studio-intro h1 { font-size: var(--step-4); }
.studio {
  display: grid;
  grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr);
  grid-template-areas: "design preview" "colors preview" "download preview";
  grid-template-rows: auto auto 1fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
.studio > * { min-width: 0; }
.studio-design { grid-area: design; }
.studio-colors { grid-area: colors; }
.studio-download { grid-area: download; }
.studio-preview { grid-area: preview; position: sticky; top: calc(var(--header-h, 4.5rem) + 1rem); }
@media (max-width: 900px) {
  .studio { grid-template-columns: minmax(0, 1fr); grid-template-areas: "design" "preview" "colors" "download"; grid-template-rows: none; }
  .studio-preview { position: static; }
}
.studio-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.25rem 1.35rem;
}
.studio-panel h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.step-num {
  flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--teal); color: var(--on-teal);
  display: grid; place-items: center; font-size: 0.95rem; font-family: var(--font-body);
}
.field-label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.field-help { font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem; }
.field-help p { margin-bottom: 0.5rem; }
.select {
  width: 100%; min-height: 48px; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-s);
  padding: 0.5rem 0.75rem;
}
.select:focus-visible { border-color: var(--focus); }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }

.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.6rem, 1fr)); gap: 0.5rem; }
.preset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.preset label {
  display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start;
  border: 2px solid var(--line); border-radius: var(--radius-s);
  padding: 0.5rem 0.6rem; cursor: pointer; min-height: 48px; font-size: var(--step--1); font-weight: 600;
}
.preset label:hover { border-color: var(--teal); }
.preset input:checked + label { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--tint); }
.preset input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.dots { display: flex; }
.dot { width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1.5px solid rgba(19,41,61,.35); margin-right: -0.25rem; }
.dot-original { background: conic-gradient(#13293d 0 25%, #ffd166 0 50%, #0a6b66 0 75%, #e3f2ee 0); }
.dot-custom { background: conic-gradient(#e85d75, #ffd166, #6fd3c8, #5b3fd1, #e85d75); }

.picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.9rem; }
.picker { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; font-size: var(--step--1); font-weight: 600; cursor: pointer; }
.picker input[type="color"] {
  flex: none; width: 44px; height: 44px; padding: 3px; border: 2px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); cursor: pointer;
}
.picker input[type="color"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.contrast p { font-size: var(--step--1); margin: 0 0 0.5rem; padding: 0.6rem 0.75rem; border-radius: var(--radius-s); max-width: none; }
.contrast .ok { background: var(--tint); }
.contrast .warn { background: var(--note-bg); border-left: 4px solid #b07800; }
.contrast .note { background: var(--paper); border: 1px solid var(--line); }
.contrast .badge { display: inline-block; font-weight: 700; margin-right: 0.35rem; }

.stage-wrap {
  min-width: 0; overflow: hidden;
  background: var(--tint); border-radius: var(--radius-m);
  padding: clamp(0.75rem, 2vw, 1.5rem); display: flex; justify-content: center;
}
.stage { position: relative; overflow: hidden; box-shadow: 0 2px 12px rgba(19,41,61,.18); background: #fff; transition: opacity .2s; }
.stage.loading { opacity: 0.4; }
.stage iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.preview-note { text-align: center; }
.download-status { font-weight: 700; min-height: 1.4em; margin-top: 0.75rem; }
.btn-link {
  background: none; border: 0; padding: 0.5rem 0; font: inherit; color: var(--teal);
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; min-height: 44px;
}
.btn[disabled] { opacity: 0.6; cursor: progress; }
.site-nav a[aria-current="page"] { background: var(--tint); }

/* Mission band on the home page */
.mission { padding-block: clamp(2.5rem, 6vw, 4rem); }
.mission .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 1rem 3rem; align-items: start; }
.mission h2 { font-size: var(--step-2); }
.mission-statement { font-family: var(--font-head); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); line-height: 1.25; font-weight: 640; max-width: 34ch; margin-bottom: 0.75rem; }
@media (max-width: 760px) { .mission .wrap { grid-template-columns: 1fr; } }
.studio-callout { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border: 2px solid var(--teal); border-radius: var(--radius-m); background: var(--surface); max-width: 50rem; }
.studio-callout h3 { font-size: var(--step-1); }


/* ==========================================================================
   Multi-page layout
   ========================================================================== */
.page-title { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); font-weight: 760; font-stretch: 92%; }
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.page-head + .section-first { padding-top: 1.5rem; }
.section > .wrap > .page-title { margin-bottom: 0.4em; }

/* Mobile header: keep it compact and hint that the nav scrolls */
@media (max-width: 760px) {
  .site-header .wrap { padding-block: 0.55rem 0.35rem; gap: 0.3rem; }
  .site-title { font-size: 1rem; }
  .site-title svg { width: 26px; height: 26px; }
  .site-nav { position: relative; }
  .site-nav::after {
    content: ""; position: absolute; top: 0; right: calc(var(--gutter) * -1); bottom: 0; width: 2rem;
    background: linear-gradient(to right, transparent, var(--paper)); pointer-events: none;
  }
}

/* Home: start here links */
.start-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; max-width: none; margin-top: 1.25rem; }
.start-grid li { max-width: none; }
.start-link {
  display: flex; flex-direction: column; gap: 0.25rem; height: 100%;
  padding: 1.1rem 1.25rem; border-radius: var(--radius-m);
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--teal);
  color: var(--ink); text-decoration: none;
}
.start-link:hover { border-color: var(--teal); color: var(--ink); }
.start-name { font-family: var(--font-head); font-weight: 720; font-size: 1.2rem; color: var(--teal); }
.start-desc { color: var(--muted); font-size: var(--step--1); }

/* Setup: jump bar */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem;
  border: 2px solid var(--teal); border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--teal);
}
.jump a:hover { background: var(--tint); }

/* Back / next */
.pager { border-top: 1px solid var(--line); padding-block: 1.75rem 2.5rem; }
.pager .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.pager-link {
  display: flex; flex-direction: column; min-width: min(100%, 14rem); padding: 0.85rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--teal);
}
.pager-link:hover { border-color: var(--teal); }
.pager-next { margin-left: auto; text-align: right; }
.pager-label { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--muted); }
@media print { .pager, .jump { display: none !important; } }


/* ==========================================================================
   Copy-deck update (Nov 29): phone tabs, footer links, shorter pages
   ========================================================================== */
.hero-home { min-height: min(70vh, 40rem); display: flex; align-items: center; }
.hero-home .wrap { width: 100%; }

.phone-select { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1.5rem; }
.phone-select a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0.5rem 1.15rem;
  border: 2px solid var(--teal); border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--teal);
}
.phone-select a:hover { background: var(--tint); color: var(--teal-strong); }
.phone-select a[aria-selected="true"] { background: var(--teal); color: var(--on-teal); }
.phone-panels { display: grid; gap: 1.5rem; max-width: 46rem; }
.phone-panel h2 { font-size: var(--step-2); }
.phone-panel:focus { outline: none; }

.privacy-note {
  margin-top: 2rem; max-width: 46rem; padding: 1rem 1.25rem;
  background: var(--note-bg); border-left: 5px solid var(--tag-line, #c99a22); border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.privacy-note p { margin: 0; }
.include-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }

.dl-actions { margin: 0.5rem 0 0.5rem; }
.dl-group > h2 { font-size: var(--step-2); margin-bottom: 0.2em; }
.dl-sub { margin-top: 1.5rem; }
.dl-sub > h3 { font-size: var(--step-1); margin-bottom: 0.2em; }
.dl-tip { color: var(--muted); font-size: var(--step--1); }
.downloads h3 { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.2; margin-bottom: 0.3rem; }

.footer-links { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { display: inline-block; padding: 0.35rem 0; font-weight: 700; }
.footer-links a[aria-current="page"] { text-decoration-thickness: 3px; }
.studio-intro h1 { margin-bottom: 0; }

.ask-line { margin-top: 1.25rem; font-weight: 700; }
