/* ===========================================================================
   HELPS Law Group — site stylesheet
   ---------------------------------------------------------------------------
   Every page in the new design links this file. Change a value here and it
   changes everywhere; there is no second copy to keep in step.

   Sections:
     1. Reset
     2. Brand palette and type scale  (the tokens — start here)
     3. Layout and components
     4. Questions page
     5. Guides

   Uploaded to:  /new/assets/site.css
   Linked as:    <link rel="stylesheet" href="assets/site.css">
   =========================================================================== */

/* -- 1. Reset ------------------------------------------------------------- */
  /* Matches the small reset the Claude artifact host applies, so this file
     looks the same locally as it does at the published URL. */
  /* One palette, committed. Without this a visitor whose OS is in dark mode
     gets dark form controls and scrollbars against the blue page. */
  :root { color-scheme: light; }
  body { margin: 0; font: 14px -apple-system, "Segoe UI", system-ui, sans-serif; }
  img { max-width: 100%; }
  [hidden] { display: none !important; }
  

/* -- 2 & 3. Palette, layout, components ----------------------------------- */
  :root {
    /* ---- brand palette -------------------------------------------------
       Specified by the firm:
         --ground  #B0DFF9  page background
         --surface #FAF6F0  content cards

       The accent is clay. Three steps of one hue, because a tone light
       enough to look calm as a button fill is too light to carry link text
       (#A85440 measures 3.7:1 on the cream). Use --accent for fills only,
       --accent-ink for text and links, --accent-dark for edges and hover.
       All pass on BOTH the cream and the blue.
       --------------------------------------------------------------------- */
    --ground:      #B0DFF9;
    --surface:     #FAF6F0;
    --surface-2:   #F2E9DE;
    --accent:      #A85440;   /* fills. white on it 5.2:1                */
    --accent-ink:  #8F4634;   /* text and links. 6.3:1 cream, 4.8:1 blue */
    --accent-dark: #783A2B;   /* edges and hover. 8.0:1 / 6.1:1          */
    --accent-wash: #F7E8E1;

    /* Ink leans blue, not toward the accent: a warm-biased dark goes muddy
       on a blue ground. 14.8:1 on cards, 11.2:1 on the background. */
    --ink:         #12242E;
    --ink-soft:    #3D5259;   /* 7.6:1 / 5.8:1 */

    --line:        #DDD3C4;
    --line-strong: #9A8F7F;
    --on-accent:   #FFFFFF;

    /* Gold, from the logo, for notes and the free-fee row. Deliberately not
       the accent: those are things to notice, not things to click. */
    --seal:        #B07F1F;
    --seal-wash:   #F7EEDA;
    --alert:       #8B201D;

    --scale: 1;
    --fs-body:   calc(1.25rem * var(--scale));   /* 20px */
    --fs-small:  calc(1.0625rem * var(--scale));
    --fs-lead:   calc(1.4375rem * var(--scale));
    --fs-h3:     calc(1.5rem * var(--scale));
    --fs-h2:     calc(1.9375rem * var(--scale));
    --fs-h1:     calc(2.4375rem * var(--scale));

    --measure: 34rem;
    --tap: 3.5rem;
    --r: 10px;
    --r-card: 16px;

    --mark-line:  #4E3609;
    --mark-deep:  #8A5410;
    --mark-mid:   #B4832A;
    --mark-light: #D9BE7A;
    --mark-glint: #FFFFFF;

    --font-display: "Newsreader", Georgia, "Times New Roman", serif;
    --font-body: "Public Sans", -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.18;
    text-wrap: balance;
    margin: 0;
    letter-spacing: -0.01em;
  }
  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  p { margin: 0; }

  a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
  a:hover { color: var(--accent-dark); }

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

  .wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
  .measure { max-width: var(--measure); }
  .stack { display: flex; flex-direction: column; }
  .gap-sm { gap: 0.75rem; }
  .gap-md { gap: 1.25rem; }
  .gap-lg { gap: 2rem; }

  /* Each section is a cream card on the blue. The border is not decoration:
     #FAF6F0 on #B0DFF9 is 1.32:1 and will not hold an edge by itself. */
  main section { padding: 0.6rem 0; }
  main section > .wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 2.25rem 1.25rem;
  }

  .eyebrow {
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent-ink);
  }
  .lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); }

  /* ---------- prototype strip ---------- */
  .proto {
    background: var(--ink);
    color: var(--ground);
    font-size: calc(0.95rem * var(--scale));
    line-height: 1.4;
    padding: 0.5rem 1.25rem;
    text-align: center;
  }
  .proto b { letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85em; }
  /* The WATCH NOW link inherited the page link colour, which on this dark bar
     came out around 1.9:1 - effectively invisible. It now takes the bar's own
     colour instead, which is 11:1 against it. */
  .proto a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
  .proto a:hover { color: #FFFFFF; }

  /* ---------- header ---------- */
  header.site {
    background: var(--surface);
    border-bottom: 4px solid var(--accent);
  }
  .bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.75rem 1rem; padding: 0.9rem 0;
  }
  .brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
  .mark { display: block; flex: none; width: 3.25rem; height: 3.25rem; }
  .mark-lg { width: 4.75rem; height: 4.75rem; }
  .brand-name { font-family: var(--font-display); font-size: calc(1.35rem * var(--scale)); font-weight: 600; letter-spacing: -0.01em; }
  .brand-sub { display: block; font-family: var(--font-body); font-size: calc(0.8rem * var(--scale)); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

  .textsize { display: flex; align-items: center; gap: 0.4rem; }
  .textsize span { font-size: var(--fs-small); color: var(--ink-soft); font-weight: 600; }
  .textsize button {
    font-family: var(--font-body); background: var(--surface); color: var(--ink);
    border: 2px solid var(--line-strong); border-radius: 8px;
    min-width: 2.75rem; min-height: 2.75rem; cursor: pointer; font-weight: 700;
  }
  .textsize button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent-dark); }
  .ts-a { font-size: 0.95rem; } .ts-b { font-size: 1.2rem; } .ts-c { font-size: 1.45rem; }

  nav.main { border-top: 1px solid var(--line); }
  nav.main ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr;
  }
  nav.main li { border-bottom: 1px solid var(--line); }
  nav.main li:nth-child(odd) { border-right: 1px solid var(--line); }
  nav.main li:nth-last-child(-n+2) { border-bottom: 0; }
  /* A fifth nav item leaves an orphan in the two-column mobile grid.
     Let an odd last item span the full row instead of sitting half-width. */
  nav.main li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  nav.main a {
    display: flex; align-items: center; min-height: 3rem;
    padding: 0.4rem 0.75rem 0.4rem 0;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-small);
    line-height: 1.25;
  }
  nav.main a:hover { color: var(--accent-ink); }
  @media (min-width: 46rem) {
    nav.main ul { display: flex; }
    nav.main li, nav.main li:nth-child(odd) { border: 0; }
    nav.main a { margin-right: 1.5rem; border-bottom: 4px solid transparent; }
    nav.main a:hover { border-bottom-color: var(--accent); }
  }

  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-height: var(--tap); padding: 0.85rem 1.5rem;
    font-family: var(--font-body); font-size: var(--fs-body); font-weight: 700;
    border-radius: var(--r); border: 3px solid transparent; cursor: pointer;
    text-decoration: none; text-align: center; line-height: 1.25;
  }
  .btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent-dark); }
  .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
  .btn-secondary { background: var(--surface); color: var(--accent-ink); border-color: var(--accent-ink); }
  .btn-secondary:hover { background: var(--accent-wash); color: var(--accent-dark); }
  .btn-quiet { background: transparent; color: var(--ink-soft); border-color: var(--line-strong); font-weight: 600; }
  .btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
  .btn-row { display: flex; flex-direction: column; gap: 0.85rem; }
  @media (min-width: 34rem) {
    .btn-row { flex-direction: row; flex-wrap: wrap; }
    .btn-row .btn { flex: 1 1 14rem; }
  }

  /* ---------- hero ---------- */
  .hero h1 { max-width: 30rem; }
  .phone-inline {
    display: inline-flex; align-items: baseline; gap: 0.5rem;
    font-weight: 700; font-size: var(--fs-lead); color: var(--accent-ink);
    text-decoration: none; border-bottom: 3px solid var(--accent); padding-bottom: 2px;
    font-variant-numeric: tabular-nums;
  }
  .hours { font-size: var(--fs-small); color: var(--ink-soft); }

  /* ---------- self-check ---------- */
  .check {
    background: var(--accent-wash);
    border: 2px solid var(--accent);
    border-radius: var(--r);
    padding: 1.5rem 1.25rem;
  }
  .check h2 { max-width: 26rem; }
  fieldset { border: 0; margin: 0; padding: 0; }
  legend { font-weight: 700; font-size: var(--fs-body); padding: 0; margin-bottom: 0.4rem; }
  .legend-hint { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 0.75rem; }
  .h2-long { font-size: calc(1.6875rem * var(--scale)); }
  @media (min-width: 34rem) { .h2-long { font-size: var(--fs-h2); } }
  .opts { display: grid; gap: 0.6rem; }
  @media (min-width: 30rem) { .opts { grid-template-columns: 1fr 1fr; } }
  .opt {
    display: flex; align-items: center; gap: 0.75rem;
    min-height: var(--tap); padding: 0.6rem 0.9rem;
    background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--r);
    cursor: pointer; font-size: var(--fs-small); font-weight: 500; line-height: 1.3;
  }
  .opt:hover { border-color: var(--accent); }
  .opt input { width: 1.6rem; height: 1.6rem; flex: none; accent-color: var(--accent-ink); margin: 0; }
  .opt:has(input:checked) { border-color: var(--accent-ink); background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent-ink); }

  .verdict {
    background: var(--surface); border-left: 8px solid var(--seal);
    border-radius: 6px; padding: 1.25rem;
  }
  .verdict h3 { margin-bottom: 0.5rem; }
  .verdict.is-positive { border-left-color: var(--accent); }
  .note {
    background: var(--seal-wash); border: 1px solid var(--seal);
    border-radius: 6px; padding: 0.9rem 1rem; font-size: var(--fs-small); line-height: 1.5;
  }

  /* ---------- is / isn't ---------- */
  .twocol { display: grid; gap: 1.25rem; }
  @media (min-width: 40rem) { .twocol { grid-template-columns: 1fr 1fr; } }
  .panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; }
  .panel h3 { margin-bottom: 0.85rem; }
  .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; font-size: var(--fs-small); line-height: 1.45; }
  .ticks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; }
  .ticks svg { margin-top: 0.25em; }

  /* ---------- cost table ---------- */
  .tablewrap { overflow-x: auto; }
  table.cost { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
  table.cost caption { text-align: left; color: var(--ink-soft); font-size: var(--fs-small); padding-bottom: 0.75rem; }
  table.cost th, table.cost td { text-align: left; padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  table.cost thead th { border-bottom: 2px solid var(--line-strong); font-weight: 700; }
  table.cost tbody th { font-weight: 600; white-space: nowrap; }
  table.cost tr.free td, table.cost tr.free th { background: var(--seal-wash); }
  .free-badge { font-weight: 700; color: var(--ink); }

  /* ---------- enrollment form ---------- */
  .form {
    background: var(--surface-2); border: 2px solid var(--line-strong);
    border-radius: var(--r); padding: 1.5rem 1.25rem;
  }
  .progress { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
  .progress-label { font-size: var(--fs-small); font-weight: 700; color: var(--ink-soft); }
  .progress-track { display: flex; gap: 0.35rem; }
  .progress-track i { flex: 1; height: 0.7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
  .progress-track i.done { background: var(--accent); border-color: var(--accent-dark); }
  .field { display: flex; flex-direction: column; gap: 0.45rem; }
  .field label { font-weight: 700; font-size: var(--fs-small); }
  .field .hint { font-size: calc(0.95rem * var(--scale)); color: var(--ink-soft); }
  .field input, .field select {
    font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink);
    background: var(--surface); border: 2px solid var(--line-strong);
    border-radius: 8px; min-height: var(--tap); padding: 0.6rem 0.8rem; width: 100%;
  }
  .field input:focus, .field select:focus { border-color: var(--accent-ink); }
  .review { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
  .review li { display: grid; gap: 0.15rem; border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; }
  .review dt, .review .k { font-size: calc(0.95rem * var(--scale)); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
  .review .v { font-weight: 500; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-error {
    background: var(--seal-wash); border: 2px solid var(--alert);
    border-radius: 8px; padding: 0.9rem 1rem; margin-top: 1.25rem;
    font-size: var(--fs-small); font-weight: 600; color: var(--ink); line-height: 1.5;
  }
  .field input[aria-invalid="true"] { border-color: var(--alert); }
  .form-help {
    margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
    font-size: var(--fs-small); color: var(--ink-soft);
  }
  [hidden] { display: none !important; }

  /* ---------- questions ---------- */
  .qa { display: grid; gap: 0.75rem; }
  details.q {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  }
  details.q[open] { border-color: var(--line-strong); }
  details.q summary {
    display: flex; align-items: center; gap: 0.75rem;
    min-height: var(--tap); padding: 0.85rem 1rem;
    font-weight: 700; cursor: pointer; list-style: none; font-size: var(--fs-small);
  }
  details.q summary::-webkit-details-marker { display: none; }
  details.q summary::after {
    content: "+"; margin-left: auto; font-size: 1.6rem; line-height: 1;
    color: var(--accent-ink); font-weight: 400; flex: none;
  }
  details.q[open] summary::after { content: "–"; }
  details.q .a { padding: 0 1rem 1.1rem; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-soft); }
  details.q .a p + p { margin-top: 0.7rem; }

  /* ---------- footer ---------- */
  footer.site { background: var(--surface); border-top: 4px solid var(--accent); padding: 2.5rem 0 8rem; }
  footer.site .cols { display: grid; gap: 2rem; }
  @media (min-width: 40rem) { footer.site .cols { grid-template-columns: 1.2fr 1fr; } }
  footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
  footer.site ul a { display: flex; align-items: center; min-height: 2.75rem; }
  .fine { font-size: calc(0.95rem * var(--scale)); color: var(--ink-soft); line-height: 1.55; }

  /* ---------- sticky action bar ---------- */
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 2px solid var(--line-strong);
    padding: 0.6rem 0.75rem; padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
    display: flex; gap: 0.6rem;
    box-shadow: 0 -6px 18px rgba(18, 36, 46, 0.18);
  }
  .actionbar .btn { flex: 1; min-height: 3.25rem; padding: 0.6rem 0.75rem; font-size: var(--fs-small); }
  @media (min-width: 46rem) { .actionbar { display: none; } footer.site { padding-bottom: 3rem; } }

  .skip {
    position: absolute; left: -9999px;
    background: var(--ink); color: var(--surface); padding: 0.75rem 1.25rem; font-weight: 700; border-radius: 0 0 8px 0;
  }
  .skip:focus { left: 0; top: 0; z-index: 60; }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* -- 4. Questions page ---------------------------------------------------- */
  /* questions page only */
  .jump ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
  @media (min-width: 40rem) { .jump ul { grid-template-columns: 1fr 1fr; } }
  .jump a {
    display: flex; align-items: center; min-height: var(--tap);
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
    padding: 0.6rem 1rem; font-size: var(--fs-small); font-weight: 700;
    color: var(--accent-ink); text-decoration: none; line-height: 1.3;
  }
  .jump a:hover { border-color: var(--accent-ink); background: var(--accent-wash); }
  /* The question is a real heading so search engines see it, but it must not
     inherit the display-serif sizing inside a summary row. */
  details.q summary h3 {
    font-family: var(--font-body); font-size: var(--fs-small); font-weight: 700;
    margin: 0; line-height: 1.35; letter-spacing: 0;
  }
  details.q summary { align-items: flex-start; }
  details.q summary::after { margin-top: -0.15rem; }

/* -- 5. Guides ------------------------------------------------------------ */
  /* guides ------------------------------------------------------------- */
  .prose { max-width: var(--measure); }
  .prose h2 { margin-top: 2.25rem; }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 { margin-top: 1.5rem; }
  .prose p { margin-top: 0.85rem; }
  .prose ul { margin: 0.85rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.5rem; }
  .prose li { line-height: 1.55; }
  /* Ordered lists carry the step-by-step pages. Numbers take the accent so a
     reader scanning for "which step am I on" finds them without reading. */
  .prose ol { margin: 0.85rem 0 0; padding-left: 1.6rem; display: grid; gap: 0.6rem; }
  .prose ol li::marker { font-weight: 700; color: var(--accent-ink); }
  .prose .note { margin-top: 1.25rem; }

  .meta {
    font-size: calc(0.95rem * var(--scale)); color: var(--ink-soft);
    border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem;
  }
  .guide-cards { display: grid; gap: 1rem; }
  @media (min-width: 40rem) { .guide-cards { grid-template-columns: 1fr 1fr; } }
  .guide-card {
    display: block; background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--r); padding: 1.25rem; text-decoration: none; color: var(--ink);
  }
  .guide-card:hover { border-color: var(--accent-ink); background: var(--accent-wash); }
  .guide-card h3 { color: var(--accent-ink); margin-bottom: 0.4rem; }
  .guide-card p { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.5; }
  .more {
    display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem;
    font-weight: 700; font-size: var(--fs-small);
  }

/* -- 6. Video ------------------------------------------------------------- */
  /* Click-to-load YouTube.
     A normal YouTube iframe pulls roughly a megabyte of third-party script into
     the page and sets tracking cookies before anyone presses play — paid for by
     every visitor, including the ones who never watch. Until the button is
     clicked this is a single thumbnail image: no third-party JS, no cookies.
     The script swaps in the real player on click. */
  .video {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--r-card);
    overflow: hidden;
  }
  .video img, .video iframe {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block; border: 0;
  }
  .video img { object-fit: cover; }

  /* The whole thumbnail is the tap target, not just the badge. */
  .video button {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.9rem; padding: 1rem;
    background: transparent; border: 0; cursor: pointer;
    font-family: var(--font-body); font-size: var(--fs-small); font-weight: 700;
    color: #FFFFFF; text-align: center; line-height: 1.3;
  }
  /* A scrim over the frame. Without it the label and badge sit on whatever
     happens to be in the thumbnail, which is not a contrast ratio anyone can
     predict. Over this, white text measures better than 7:1. */
  .video button::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(rgba(18, 36, 46, 0.30), rgba(18, 36, 46, 0.70));
  }
  .video button > * { position: relative; }
  .video .play {
    display: grid; place-items: center; flex: none;
    width: 5rem; height: 5rem; border-radius: 999px;
    background: var(--accent); border: 3px solid #FFFFFF;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  }
  .video .play svg { width: 1.9rem; height: 1.9rem; fill: #FFFFFF; margin-left: 0.3rem; }
  .video button:hover .play { background: var(--accent-dark); }
  .video button:focus-visible { outline: 4px solid #FFFFFF; outline-offset: -6px; }

  .video-note {
    font-size: calc(0.95rem * var(--scale)); color: var(--ink-soft);
    margin-top: 0.75rem; line-height: 1.5;
  }
