/* Tapit site. Direction C, "Bold Utility": white paper, near-black ink, 1.5px outlines, hard offset
   shadows, cobalt accent. Rebuilt from the Claude Design handoff (Tapit Landing Page.dc.html).
   Light only for now: the redesign dropped the appearance switch. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Colour ---------- */
/* The mascot (img/mascot.svg) reads --ink, --paper, --shadow, --accent, --on-accent, --call,
   --on-call and --quiet, so keep those names. */
:root {
  --ink: #0E0E10; --paper: #FFFFFF; --shadow: #0E0E10;
  --accent: #1F3ED6; --on-accent: #FFFFFF; --accent-tint: #EAEEFE; --accent-deep: #1A2A8A;
  --body: #3D404A; --muted: #5C6070; --quiet: #B9BDC7; --hairline: #E4E6EB; --panel: #F1F2F5;
  --track-off: #C9CCD4; --desk: #D9DCE2;
  --warn-fill: #FFEFE3; --warn-text: #8A3A00;
  --call: #FF6B1A; --on-call: #0E0E10;
  --rule: 1.5px;
  --gutter: 28px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", system-ui, sans-serif; font-weight: 500; font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* The design's boxes are content-box: 1180px of content plus the gutters. */
.wrap { max-width: calc(1180px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- Type ---------- */
h1, h2, .price, .volume-number, .pop-number, .readouts dd, .automute h3, .faq-big {
  font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; line-height: 0.95;
}
h2 { font-size: clamp(34px, 5vw, 54px); text-wrap: balance; }
.label {
  font-weight: 800; font-stretch: 125%; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.label.accent { color: var(--accent); }
.fineprint { font-size: 13px; line-height: 1.5; color: var(--muted); }
.pro-tag {
  display: inline-block; vertical-align: 0.15em; padding: 2px 5px; border-radius: 4px; background: var(--ink); color: var(--paper);
  font-weight: 800; font-stretch: 125%; font-size: 9px; line-height: 1.2; letter-spacing: 0.06em;
}
.chip { align-self: flex-start; padding: 5px 10px; border-radius: 6px; font-weight: 800; font-stretch: 125%; font-size: 12px; letter-spacing: 0.08em; }
.chip.warn { background: var(--warn-fill); color: var(--warn-text); }

/* ---------- Controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; white-space: nowrap;
  padding: 13px 22px; border: var(--rule) solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.button:hover { color: var(--ink); }
.button.primary { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--accent); }
.button.pro { background: var(--accent); color: var(--on-accent); box-shadow: 3px 3px 0 var(--ink); }
.button.primary:hover, .button.pro:hover { color: var(--paper); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--accent); }
.button.pro:hover { box-shadow: 2px 2px 0 var(--ink); }
.button.primary:active, .button.pro:active { transform: translate(3px, 3px); box-shadow: 0 0 0 transparent; }
.button.small { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.button.ghost-disabled { align-self: flex-start; border-color: var(--quiet); color: var(--quiet); font-size: 15px; cursor: default; }
.button.filled-disabled { align-self: flex-start; border-color: var(--quiet); background: var(--quiet); color: var(--paper); font-size: 15px; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.switch {
  display: inline-flex; justify-content: flex-start; flex-shrink: 0; width: 46px; height: 28px; padding: 2.5px;
  border: var(--rule) solid var(--ink); border-radius: 14px; background: var(--track-off); cursor: pointer;
  transition: background 150ms ease;
}
.switch > span { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform 150ms ease; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"] > span { transform: translateX(18px); }
.switch.small { width: 38px; height: 22px; padding: 1.5px; border-radius: 11px; }
.switch.small > span { width: 16px; height: 16px; }
.switch.small[aria-checked="true"] > span { transform: translateX(16px); }
.switch.dim { opacity: 0.45; cursor: default; }

.segmented { display: inline-flex; border: var(--rule) solid var(--ink); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.segmented button { min-height: 34px; padding: 7px 12px; border: 0; background: var(--paper); font-size: 13px; font-weight: 700; cursor: pointer; }
.segmented button + button { border-left: var(--rule) solid var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.segmented button:focus-visible { outline-offset: -4px; }

.slider { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.slider.ink { accent-color: var(--ink); }

.card { border: var(--rule) solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 5px 5px 0 var(--shadow); }
.panel { border: var(--rule) solid var(--ink); border-radius: 14px; }

/* ---------- Mascot ---------- */
.cap { display: inline-block; position: relative; flex-shrink: 0; aspect-ratio: 1; pointer-events: none; }
.cap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; visibility: hidden; }
.cap[data-state="idle"] [data-for="idle"], .cap[data-state="down"] [data-for="down"],
.cap[data-state="muted"] [data-for="muted"], .cap[data-state="call"] [data-for="call"] { visibility: visible; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: var(--rule) solid var(--ink); }
.topbar-row { display: flex; align-items: center; gap: 26px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 15px; letter-spacing: 0.08em; }
.wordmark:hover { color: var(--ink); }
.wordmark svg { width: 28px; height: 28px; }
.topnav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; }
.topnav a { text-decoration: none; padding: 10px 0; }

/* ---------- Sections ---------- */
main > section + section { border-top: var(--rule) solid var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-title { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Footer */
.footer { border-top: var(--rule) solid var(--ink); font-size: 14px; color: var(--body); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.6fr) minmax(0, 1.2fr); gap: 40px; padding-top: 48px; padding-bottom: 28px; }
.footer-grid > * { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer .wordmark { color: var(--ink); margin-bottom: 2px; }
.footer nav a { padding: 2px 0; }
.footer-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 16px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: var(--rule) solid var(--ink); }

/* Legal pages */
.status-strip { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.status-strip.warn { background: var(--warn-fill); color: var(--warn-text); }
.status-strip svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.doc-head { padding: 60px 40px 60px 0; display: flex; flex-direction: column; gap: 14px; }
.doc-head h1 { font-size: clamp(44px, 5.4vw, 72px); }
.doc-head .fineprint { font-size: 14px; }
.doc-body { border-left: var(--rule) solid var(--ink); padding: 60px 0 72px 36px; color: var(--body); }
.doc-body > * { max-width: 40em; }
.doc-body h2 { font-size: 22px; font-stretch: 110%; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); margin: 34px 0 10px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p + p, .doc-body ul + p, .doc-body p + ul { margin-top: 12px; }
.doc-body ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc-body .status-strip { margin-bottom: 30px; }
.doc-body strong { color: var(--ink); font-weight: 700; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0s !important; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1080px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-head { padding: 44px 0 28px; }
  .doc-body { border-left: 0; border-top: var(--rule) solid var(--ink); padding: 32px 0 56px; }
}

@media (max-width: 860px) {
  .topnav { display: none; }
  .topbar .button.pro { margin-left: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar-row { min-height: 58px; gap: 12px; }
  h1 { font-size: clamp(40px, 12.2vw, 64px); }
  .lead { font-size: 19px; }
  .actions .button { flex: 1 1 auto; }
  .section-head { gap: 16px; }
}
