/* CalledOut. One stylesheet, mobile first.
   Bold in one place (the incoming-call hero), quiet everywhere else. */

   :root {
    --paper: #f5f7fa;
    --surface: #ffffff;
    --ink: #1a1838;
    --ink-soft: #55536e;
    --line: #d9dce6;
    --callout: #d8236c;      /* the one accent */
    --callout-ink: #ffffff;
    --done: #12865a;
    --partial: #b7791f;
    --missed: #c2362b;
    --focus: #2f6fed;
  
    --display: "Bricolage Grotesque", system-ui, sans-serif;
    --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  
    /* type scale, ratio ~1.25 */
    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.33rem;
    --step-2: 1.66rem;
    --step-3: 2.07rem;
    --step-4: clamp(2.3rem, 7vw, 3.6rem);
  
    --radius-field: 10px;
    --radius-phone: 34px;
  }
  
  *, *::before, *::after { box-sizing: border-box; }
  
  html { -webkit-text-size-adjust: 100%; }
  
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: var(--step-0);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  h1, h2, h3 {
    font-family: var(--display);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
  }
  h1 { font-size: var(--step-3); font-weight: 800; }
  h2 { font-size: var(--step-2); font-weight: 700; }
  h3 { font-size: var(--step-1); font-weight: 700; }
  
  p { margin: 0 0 1em; max-width: 65ch; }
  a { color: var(--ink); text-underline-offset: 3px; }
  a:hover { color: var(--callout); }
  
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  
  /* ---------- header / footer ---------- */
  
  .site-header, .site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
  }
  .wordmark {
    font-family: var(--display);
    font-weight: 800;
    font-size: var(--step-1);
    text-decoration: none;
    letter-spacing: -0.03em;
  }
  .wordmark span { color: var(--callout); }
  .site-header nav { display: flex; align-items: center; gap: 1.25rem; }
  .site-footer {
    margin-top: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: var(--step--1);
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
  }
  .site-footer a { color: var(--ink-soft); }
  
  main.narrow { width: 100%; max-width: 34rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
  main.wide { width: 100%; }
  
  /* ---------- forms ---------- */
  
  form.stack { display: grid; gap: 1.1rem; }
  label { display: grid; gap: 0.35rem; font-weight: 700; }
  .hint { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
  
  input[type="text"], input[type="tel"], input[type="date"], input[type="time"],
  input[type="number"], select, textarea {
    font: inherit;
    color: inherit;
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 2px solid var(--line);
    border-radius: var(--radius-field);
    background: var(--surface);
  }
  input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
  input.code { font-size: var(--step-2); letter-spacing: 0.35em; text-align: center; font-family: var(--display); }
  
  .check { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; }
  .check input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; flex: none; accent-color: var(--ink); }
  .consent-text { font-size: var(--step--1); color: var(--ink-soft); }
  
  button, .button {
    font: inherit;
    font-weight: 700;
    font-family: var(--display);
    font-size: var(--step-1);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    cursor: pointer;
  }
  button:hover, .button:hover { background: var(--callout); color: var(--callout-ink); }
  button.link {
    background: none; color: var(--ink); padding: 0; font-family: var(--body);
    font-size: inherit; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; border-radius: 0;
  }
  button.link:hover { color: var(--callout); background: none; }
  form.inline { display: inline; }
  
  .notice { padding: 0.8rem 1rem; border-radius: var(--radius-field); border-left: 5px solid; background: var(--surface); }
  .notice.error { border-color: var(--missed); }
  .notice.info { border-color: var(--done); }
  
  .page-intro { color: var(--ink-soft); }
  
  /* ---------- landing ---------- */
  
  .hero {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
    max-width: 72rem;
    margin: 0 auto;
  }
  @media (min-width: 52rem) {
    .hero { grid-template-columns: 1.1fr 0.9fr; }
    .call-screen { width: min(100%, 19.5rem); }
  }
  
  .hero h1 { font-size: var(--step-4); }
  .hero h1 .line { display: block; }
  .hero .lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); max-width: 34ch; }
  .hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
  
  /* The incoming-call screen: the one bold thing on the site. */
  .call-screen {
    justify-self: center;
    width: min(100%, 17.5rem);
    aspect-ratio: 9 / 15;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-phone);
    padding: 2.25rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px -25px rgba(26, 24, 56, 0.55);
    position: relative;
  }
  .call-screen .status { font-size: var(--step--1); opacity: 0.7; text-align: center; }
  .call-screen .caller {
    font-family: var(--display); font-weight: 800; font-size: var(--step-2);
    text-align: center; margin: 0.25rem 0 0;
  }
  .call-screen .caller span { color: var(--callout); }
  .call-screen .ring {
    width: 5.5rem; height: 5.5rem; margin: 1.75rem auto; border-radius: 50%;
    background: var(--callout); display: grid; place-items: center;
    color: var(--callout-ink);
  }
  .call-screen .question {
    font-family: var(--display); font-weight: 600; font-size: var(--step-1);
    line-height: 1.25; text-align: center; margin: 0 auto;
  }
  .call-screen .task {
    margin: 0.9rem auto 0; padding: 0.35rem 0.8rem; border-radius: 999px;
    background: rgba(245, 247, 250, 0.12); font-size: var(--step--1); text-align: center;
  }
  .call-screen .answers { margin-top: auto; display: flex; justify-content: space-around; padding-top: 1.25rem; }
  .call-screen .answers div { display: grid; justify-items: center; gap: 0.4rem; font-size: var(--step--1); }
  .call-screen .answers i {
    width: 3.6rem; height: 3.6rem; border-radius: 50%; display: block;
  }
  .call-screen .answers .no i { background: var(--missed); }
  .call-screen .answers .yes i { background: var(--done); }
  
  @media (prefers-reduced-motion: no-preference) {
    .call-screen .ring { animation: ring 2.4s ease-out infinite; }
    @keyframes ring {
      0% { box-shadow: 0 0 0 0 rgba(216, 35, 108, 0.55); }
      70% { box-shadow: 0 0 0 1.6rem rgba(216, 35, 108, 0); }
      100% { box-shadow: 0 0 0 0 rgba(216, 35, 108, 0); }
    }
  }
  
  .how {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  }
  .how ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: step; }
  @media (min-width: 52rem) { .how ol { grid-template-columns: repeat(3, 1fr); } }
  .how li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1rem; }
  .how li::before {
    content: counter(step);
    font-family: var(--display); font-weight: 800; font-size: var(--step-3); color: var(--ink);
    display: block; line-height: 1; margin-bottom: 0.5rem;
  }
  .how p { color: var(--ink-soft); }
  
  /* ---------- small utilities ---------- */
  
  .muted { color: var(--ink-soft); }
  .back { display: inline-block; margin-bottom: 1rem; font-size: var(--step--1); }
  
  button:disabled, button:disabled:hover { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }