/* countingmaster.app
   One family (Instrument Sans), the app's own teal, orange only where the app uses it (an unsure ring).
   Hierarchy comes from size and weight; borders and numbering appear only where they carry meaning. */

:root {
  --bg: #ffffff;
  --ink: #1c1c1e;
  --ink-2: #5c6361;
  --line: #e3e8e6;
  --tint: #e8f3f0;
  --teal: #007a66;
  --teal-deep: #0b3f38;
  --teal-ink: #d6ece6;
  --ring: #e8842a;
  --radius: 14px;
  --measure: 62ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1413;
    --ink: #f2f4f3;
    --ink-2: #a3aba8;
    --line: #26302d;
    --tint: #142622;
    --teal: #2ec4a8;
    --teal-deep: #0b3f38;
    --teal-ink: #d6ece6;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; font-weight: 600; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
section { padding-block: clamp(56px, 9vw, 112px); }
section > .wrap > h2 + p, section > .wrap > h2 + .lead { margin-top: 14px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav a:not(.keep) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 16px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { filter: brightness(0.94); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); text-decoration: none; line-height: 1.1; }
.store small { display: block; font-size: 11px; font-weight: 400; opacity: 0.8; }
.store b { font-size: 18px; font-weight: 600; }
.store svg { width: 26px; height: 26px; fill: currentColor; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.phone { justify-self: center; width: min(360px, 100%); border-radius: 44px; padding: 10px; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); }
.phone img { border-radius: 36px; aspect-ratio: 1206 / 2622; object-fit: cover; background: #222; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .phone { width: min(300px, 80%); } }

/* Category strip */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 40px; }
.strip figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { position: absolute; inset: auto 0 0 0; padding: 12px 12px 12px; color: #fff; font-weight: 600; font-size: 15px; background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent); }
.strip figcaption span { display: block; font-weight: 400; font-size: 12px; opacity: 0.9; }
.strip .any { display: grid; place-items: center; text-align: center; padding: 18px; color: var(--teal); background: var(--tint); }
.strip .any strong { font-size: 18px; display: block; }
.strip .any span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 860px) { .strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .strip { grid-template-columns: repeat(2, 1fr); } }
.auto { display: inline-block; padding: 2px 7px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; margin-left: 6px; }

/* Teach section: the one dark band, with the three rings */
.teach { background: var(--teal-deep); color: #fff; }
.teach h2, .teach h3 { color: #fff; }
.teach .lead, .teach p { color: var(--teal-ink); }
.teach .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.ring { text-align: center; }
.ring svg { width: 100%; max-width: 120px; height: auto; display: block; margin: 0 auto 12px; }
.ring .track { stroke: rgba(255, 255, 255, 0.18); }
.ring .fill { stroke: #2ec4a8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring .glyph { fill: rgba(255, 255, 255, 0.85); }
.ring b { display: block; font-size: 15px; }
.ring span { font-size: 13px; color: var(--teal-ink); }
.ring .badge { fill: #2ec4a8; }
.ring .badge-text { fill: var(--teal-deep); font-size: 11px; font-weight: 700; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #2ec4a8; color: var(--teal-deep); font-weight: 700; }
.steps b { display: block; color: #fff; font-size: 17px; }
.steps p { font-size: 15px; margin-top: 2px; }
.versus { margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.versus h3 { font-size: 15px; font-weight: 600; color: var(--teal-ink); }
.versus p { font-size: 15px; color: #fff; margin-top: 6px; }
@media (max-width: 860px) { .teach .wrap, .versus { grid-template-columns: 1fr; } }

/* Check */
.check .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.legend li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.legend i { display: block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--teal); margin-top: 2px; }
.legend i.unsure { border-color: var(--ring); }
.legend i.unknown { border-style: dashed; border-color: var(--ink-2); }
.legend b { display: block; }
.legend span { color: var(--ink-2); font-size: 15px; }
.check .phone { width: min(320px, 100%); }
@media (max-width: 860px) { .check .wrap { grid-template-columns: 1fr; } }

/* Accuracy */
table { border-collapse: collapse; width: 100%; margin-top: 28px; font-size: 16px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); font-size: 14px; }
td:nth-child(2), th:nth-child(2) { text-align: right; white-space: nowrap; font-weight: 600; }
td:nth-child(3) { color: var(--ink-2); font-size: 15px; }
.note { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.accuracy .wrap { max-width: 860px; }

/* Privacy band */
.private { background: var(--tint); }
.private .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.private h3 { margin-bottom: 8px; }
.private p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .private .grid { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; max-width: 860px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.pro { border-color: var(--teal); }
.plan h3 { font-size: 22px; }
.price { margin-top: 10px; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.plan ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.plan .muted::before { border-color: var(--ink-2); }
.plan .muted { color: var(--ink-2); }
.plan .btn { margin-top: 24px; }
.plan .fine { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 24px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* Final call */
.cta { text-align: center; }
.cta .wrap { display: grid; justify-items: center; gap: 22px; }
.cta p { text-align: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 60px; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer a { color: var(--ink-2); }
footer .credit { flex-basis: 100%; margin-top: 10px; font-size: 13px; }

/* Text pages (privacy, support, press) */
.doc { padding-block: 48px 96px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc .lead { margin-top: 12px; }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc h3 { font-size: 18px; margin-top: 24px; }
.doc p, .doc li { color: var(--ink); }
.doc h2 + p, .doc h3 + p { margin-top: 10px; }
.doc ul { padding-left: 1.2em; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .muted { color: var(--ink-2); }
.doc table { margin-top: 16px; }
.doc .downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.doc .downloads a { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-size: 14px; }
.doc .downloads img { border-radius: 10px; margin-bottom: 8px; aspect-ratio: 1; object-fit: cover; }
