  /* Warm light palette: amber for actions, sky blue for links, sage for reassurance,
     slate navy text on warm off-white. Amber buttons always take dark text for contrast.
     Links use a deeper sky blue (#0369a1) because #0284c7 is under 4.5:1 on white. */
  :root {
    --bg: #f8fafc; --card: #ffffff; --line: #e2e8f0; --text: #1e293b; --muted: #475569;
    --call: #f59e0b; --call-text: #1e293b; --alert-bg: #fffbeb; --alert-line: #f59e0b;
    --link: #0369a1; --sky: #0284c7; --sage: #10b981; --sage-bg: #ecfdf5; --sage-line: #a7f3d0;
    --shadow: rgba(30, 41, 59, 0.08);
    color-scheme: light;
  }
  /* Dark version of the same palette, used when the phone or browser is set to dark mode. */
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0f172a; --card: #1e293b; --line: #334155; --text: #f1f5f9; --muted: #94a3b8;
      --call: #f59e0b; --call-text: #1e293b; --alert-bg: #3a2a0c; --alert-line: #f59e0b;
      --link: #38bdf8; --sky: #38bdf8; --sage: #34d399; --sage-bg: #0f2f27; --sage-line: #1f6f57;
      --shadow: rgba(0, 0, 0, 0.35);
      color-scheme: dark;
    }
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body {
    background: var(--bg); color: var(--text);
    font: 18px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    padding: 20px 16px 32px; max-width: 520px; margin: 0 auto; -webkit-text-size-adjust: 100%;
  }
  h1 { font-size: 30px; line-height: 1.15; margin: 8px 0 10px; text-wrap: balance; overflow-wrap: anywhere; }
  .lede { font-size: 18px; margin: 0 0 22px; color: var(--muted); }
  .contact { margin-bottom: 18px; }
  a.call {
    display: block; text-decoration: none; text-align: center;
    background: var(--call); color: var(--call-text);
    border-radius: 16px; padding: 20px 16px; min-height: 92px;
  }
  a.call { font-weight: 600; }
  a.call .act { display: block; font-size: 28px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
  a.call .num { display: block; font-size: 18px; margin-top: 4px; font-variant-numeric: tabular-nums; }
  a.call.second { background: var(--card); color: var(--text); border: 2px solid var(--call); }
  a.call.second .act { font-size: 24px; }
  a.text, button.loc, a.send {
    display: block; width: 100%; margin-top: 8px; text-align: center; text-decoration: none;
    font: inherit; font-weight: 600; color: var(--link); background: var(--card);
    border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 52px; cursor: pointer;
  }
  a.send { background: var(--call); color: var(--call-text); border-color: var(--call); }
  a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
  .locStatus { font-size: 15px; color: var(--muted); margin: 8px 2px 0; }
  .locHelp {
    background: var(--alert-bg); border: 1px solid var(--alert-line); border-left-width: 6px;
    border-radius: 12px; padding: 12px 14px; margin-top: 8px; font-size: 16px;
  }
  .locHelp p { margin: 0 0 6px; }
  .locHelp p:last-child { margin-bottom: 0; }
  .locHelp .locHelpTitle { font-weight: 700; }
  .locHelp ol { margin: 0 0 8px; padding-left: 22px; }
  .locHelp li { margin-bottom: 4px; }
  section.info {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 14px 16px; margin-top: 16px;
  }
  section.info h2 { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
  section.info p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
  section.info.medical { background: var(--alert-bg); border-color: var(--alert-line); border-left-width: 6px; }
  section.info.medical h2 { color: var(--text); }
  .danger { font-size: 16px; margin: 22px 2px 0; }
  footer { font-size: 14px; color: var(--muted); margin: 26px 2px 0; border-top: 1px solid var(--line); padding-top: 14px; }
  footer a { color: var(--link); }
  footer p { margin: 0 0 8px; }
  footer .legal { margin: 12px 0 0; }
  button.loc:disabled { cursor: progress; color: var(--muted); }

  /* Privacy, terms and 404 pages */
  .doc h1 { font-size: 28px; }
  .doc h2 { font-size: 20px; margin: 28px 0 8px; }
  .doc p, .doc li { font-size: 17px; }
  .doc ul { padding-left: 22px; }
  .doc a { color: var(--link); }
  .doc .updated { font-size: 15px; color: var(--muted); margin-top: 0; }
  .doc .fill { background: var(--alert-bg); border: 1px dashed var(--alert-line); border-radius: 4px; padding: 0 4px; }
  .doc a.home { display: inline-block; margin-top: 8px; font-weight: 600; }

  /* Landing page (the home page when no tag details are in the address) */
  body.wide { max-width: 980px; padding: 16px 20px 40px; }
  .blankNote {
    font-size: 15px; background: var(--alert-bg); border: 1px solid var(--alert-line);
    border-radius: 12px; padding: 10px 14px; margin: 0 0 8px;
  }
  .hero { padding: 28px 0 36px; max-width: 640px; }
  .brand { margin: 0 0 24px; line-height: 0; }
  .logo img { display: block; width: 100%; height: auto; }
  .brand .logo { display: block; width: 240px; max-width: 70%; }
  .siteLogo { display: inline-block; width: 168px; margin: 0 0 12px; line-height: 0; }
  .hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 16px; }
  .heroText { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
  .heroSmall { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
  a.buy {
    display: inline-block; text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em;
    font-weight: 700; font-size: 18px; background: var(--call); color: var(--call-text);
    border-radius: 12px; padding: 16px 32px; min-height: 56px;
  }
  a.buy:hover { filter: brightness(1.08); }
  .wide h2 { font-size: 26px; margin: 0 0 16px; }
  .why, .how, .sees { padding: 28px 0; border-top: 1px solid var(--line); }
  a.buy.alt { background: var(--card); color: var(--text); border: 2px solid var(--line); margin-left: 8px; }
  .getApp { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
  .getApp h2 { font-size: 28px; margin: 0 0 6px; }
  .getAppLede, .appAfter { font-size: 17px; color: var(--muted); margin: 0 0 16px; }
  .appAfter { margin: 16px 0 0; }
  .appCard h3 { font-size: 22px; }
  .appCard .appNote { margin-bottom: 12px; }
  .appSteps { list-style: none; margin: 0; padding: 0; }
  .appSteps li { margin: 0 0 14px; }
  .appSteps a.buy { display: block; text-align: center; }
  .appSteps span { display: block; font-size: 15px; color: var(--muted); margin-top: 6px; }
  .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
  .card h3 { font-size: 19px; margin: 0 0 6px; }
  .card p { font-size: 16px; margin: 0; color: var(--muted); }
  .steps { margin: 0; padding-left: 24px; max-width: 640px; }
  .steps li { margin-bottom: 10px; }
  .preview {
    max-width: 340px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px;
    padding: 18px 16px; box-shadow: 0 6px 24px var(--shadow);
  }
  .preview .pvTitle { font-size: 22px; font-weight: 700; line-height: 1.15; margin: 0 0 12px; }
  .preview .call, .preview .text { display: block; text-align: center; border-radius: 12px; }
  .preview .call { background: var(--call); color: var(--call-text); padding: 12px; }
  .preview .call .act { display: block; font-size: 20px; font-weight: 700; }
  .preview .call .num { display: block; font-size: 15px; }
  .preview .text { margin-top: 6px; background: var(--card); border: 1px solid var(--line); color: var(--link); font-weight: 600; font-size: 15px; padding: 9px; }
  .uses { padding: 28px 0; border-top: 1px solid var(--line); }
  .uses .card { background: var(--sage-bg); border-color: var(--sage-line); }
  .uses .card p { color: var(--text); }
  .previews { display: flex; flex-wrap: wrap; gap: 20px; }
  .previews figure { margin: 0; flex: 0 1 340px; }
  .previews figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
  .preview .pvNote {
    display: block; margin-top: 10px; font-size: 15px; background: var(--card);
    border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  }
  .preview .pvMedical {
    display: block; margin-top: 10px; font-size: 15px; background: var(--alert-bg);
    border: 1px solid var(--alert-line); border-left-width: 5px; border-radius: 10px; padding: 8px 10px;
  }
  @media (max-width: 640px) {
    .hero { padding: 16px 0 28px; }
    .hero h1 { font-size: 31px; }
    .heroText { font-size: 17px; }
    .cards { grid-template-columns: minmax(0, 1fr); }
    a.buy { display: block; text-align: center; }
    a.buy.alt { margin: 10px 0 0; }
  }

  /* Small phones (iPhone SE, older Androids) */
  @media (max-width: 360px) {
    body { padding: 16px 12px 28px; font-size: 17px; }
    h1 { font-size: 26px; }
    a.call .act { font-size: 24px; }
    a.call.second .act { font-size: 21px; }
  }
  [hidden] { display: none !important; }
