/* The marketing components shared by the feature pages — /driving-instructors,
 * /driving-schools, /whatsapp-booking, /edt-tracking, /rsa-logbook — and the
 * /articles + /guides hubs (SEO, 2026-10-06). Born as a copy of the homepage's
 * inline <style>; since Homepage v2 (2026-10-09) index.html carries its own
 * components (the crisp page: paper hero, WhatsApp → Schedule strip, the road,
 * the six jobs) and this file is the feature pages' sheet in its own right.
 * Re-cut onto the same grammar on 2026-10-10 (the paper hero, the hairline
 * sections, the paper closing) so the site reads as one page after another.
 * The nav + footer rules here and in index.html must still agree. */
  :root { color-scheme: light; }
  body { max-width: 100%; overflow-x: clip; }

  :root {
    --paper: #F7F0E2; --card: #FFFDF7; --ink: #1A1713; --muted: #55524B;
    --blue: #1F4EA1; --blue-deep: #16397A;
    --verm: #E4572E; --verm-deep: #A83A1B; --yellow: #F2B440; --green: #2F7D4F; --coral: #ED8672;
    --line: #E4DCC9;
  }
  * { margin: 0; box-sizing: border-box; }
  body { font-family: 'Instrument Sans', 'Gill Sans', system-ui, sans-serif; color: var(--ink);
         background: var(--paper); -webkit-font-smoothing: antialiased; }
  .display { font-family: 'Caprasimo', 'Cooper Black', Georgia, serif; font-weight: 400; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
  a { color: var(--blue); } a:hover { color: var(--verm); }

  /* ─ Nav: paper, ink links, the real wave beside the wordmark ─ */
  /* Body-level sticky band, like terms/privacy — the nav follows the scroll.
     (Born as an iOS status-bar-tint attempt, 2026-09-03: Safari's page-tint
     heuristic refuses ANY multi-band page — bisected exhaustively in the iOS
     simulator; every layout with a second colour band below the hero kills the
     tint, so the vermillion-behind-the-clock idea is unachievable without
     gutting the design. The sticky nav stays because it's good on its own.) */
  .topnav { position: sticky; top: 0; z-index: 20; background: var(--verm); }
  .nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
  .word { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
  .word:hover { color: var(--paper); }
  .word span { font-size: 26px; line-height: 1; }
  .nav-actions { display: flex; align-items: center; gap: 16px; }
  .nav a.signin { color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 500; }
  .nav a.signin:hover { color: var(--yellow); }
  .nav a.register { color: var(--verm); background: var(--paper); text-decoration: none; font-size: 14.5px;
                    font-weight: 600; border-radius: 999px; padding: 10px 20px; white-space: nowrap; }
  .nav a.register:hover { background: #FFFDF7; color: var(--verm); }
  @media (max-width: 400px) { .nav-actions { gap: 10px; } .nav a.register { padding: 9px 14px; } }
  @media (max-width: 380px) { .reg-long { display: none; }
    .nav a.register { text-transform: capitalize; } }
  /* Page links (2026-10-02, Michel: "a professional header link to pricing").
     Desktop: beside the wordmark; ≤640px: one line in the right cluster, the
     demo button shortened to "Demo". Yellow underline on hover + the current page. */
  .navleft { display: flex; align-items: center; gap: 40px; }
  .navlinks { display: flex; gap: 28px; }
  .nav a.navlink { color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 500;
                   position: relative; padding: 4px 0; white-space: nowrap; }
  .nav a.navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
                          border-radius: 2px; background: var(--yellow); transform: scaleX(0);
                          transform-origin: left; transition: transform .2s ease; }
  .nav a.navlink:hover::after, .nav a.navlink:focus-visible::after,
  .nav a.navlink[aria-current="page"]::after { transform: scaleX(1); }
  .nav a.signin { white-space: nowrap; }
  .nav a.navlink-phone { display: none; }
  @media (max-width: 640px) { .navlinks { display: none; } .nav a.navlink-phone { display: inline; } }
  @media (max-width: 520px) { .nav-actions { gap: 16px; } .nav a.navlink, .nav a.signin { font-size: 14.5px; }
    .reg-long { display: none; } .nav a.register { text-transform: capitalize; padding: 9px 16px; }
    .word span { font-size: 23px; } .word svg { width: 28px; height: 28px; } }
  @media (max-width: 360px) { .nav-actions { gap: 12px; } }
  @media (prefers-reduced-motion: reduce) { .nav a.navlink::after { transition: none; } }

  /* ─ Hero (the homepage's, 2026-10-10): paper, centred — the eyebrow in
     vermillion, the Caprasimo headline, one line, the two doors, the note.
     The vermillion band with Pam's cut-paper face went with the homepage's
     (index.html § Homepage v2); .hero-leaf / .stage stay as no-ops for any
     page that still carries the markup. ─ */
  .hero { background: var(--paper); color: var(--ink); }
  .hero-leaf, .hero .stage { display: none; }
  .hero-grid { display: block; max-width: 860px; margin: 0 auto; padding: 36px 0 48px; text-align: center; }
  .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
             color: var(--verm); }
  .hero h1 { margin: 14px auto 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; max-width: 820px; text-wrap: balance; }
  /* the search term inside the h1 (Michel, 2026-10-07): the display line keeps
     the voice, the second line carries what people type into Google */
  .hero h1 .h1-term { display: block; font-family: 'Instrument Sans', 'Gill Sans', system-ui, sans-serif;
    font-weight: 600; font-size: clamp(17px, 2vw, 20px); line-height: 1.35; letter-spacing: 0;
    margin: 14px auto 0; max-width: 40ch; }
  .hero .sub { margin: 14px auto 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.45;
               color: var(--ink); max-width: 44ch; }
  .cta-row { margin-top: 20px; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
  .btn-primary { display: inline-block; background: var(--verm); color: var(--paper); border-radius: 999px;
                 padding: 16px 30px; font-weight: 600; font-size: 17px; text-decoration: none; }
  .btn-primary:hover { background: var(--verm-deep); color: var(--paper); }
  .btn-ghost { display: inline-block; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px;
               padding: 14px 28px; font-weight: 600; font-size: 17px; text-decoration: none; }
  .btn-ghost:hover { background: var(--card); color: var(--ink); }
  .hero .cta-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); font-weight: 500; }


  /* ─ Section chrome: the homepage's .sec — a hairline, 64px, a short h2 ─ */
  .feature { padding: 64px 0; border-top: 1px solid var(--line); }
  .feature h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 36px); line-height: 1.1; letter-spacing: 0; }
  .feature .lead { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 56ch; }

  /* One inbox — the four channels as cut-out colour shapes */
  .channels { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  @media (min-width: 820px) { .channels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
  .chan { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 42px 20px 36px;
          color: var(--paper); font-weight: 600; font-size: 17px; }
  .chan svg { width: 32px; height: 32px; }
  .chan.wa { background: var(--green);  border-radius: 55% 45% 48% 52% / 30% 34% 66% 70%; }
  .chan.tg { background: var(--blue);   border-radius: 46% 54% 52% 48% / 64% 62% 38% 36%; }
  .chan.em { background: var(--verm);   border-radius: 52% 48% 44% 56% / 34% 30% 70% 66%; }
  .chan.ph { background: var(--coral);  border-radius: 48% 52% 56% 44% / 62% 66% 34% 38%; color: var(--ink); }

  /* ─ Pam's tasks — the ultramarine band, chat on a paper card ─ */
  .band { background: var(--blue); color: var(--paper); padding: 64px 0; position: relative; overflow: hidden; }
  .band .algae { position: absolute; right: 24px; top: -54px; width: 180px; height: 180px; opacity: .26; }
  .band-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; position: relative; }
  @media (min-width: 860px) { .band-grid { grid-template-columns: 1fr 1.1fr; gap: 52px; } }
  .band .eyebrow { color: var(--yellow); }
  .band h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 36px); line-height: 1.1; }
  .band .lead { margin-top: 14px; font-size: 17px; line-height: 1.6; opacity: .92; max-width: 44ch; }
  .chatcard { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 24px 24px;
              display: flex; flex-direction: column; gap: 14px; box-shadow: 8px 8px 0 var(--blue-deep); }
  .brow { display: flex; gap: 10px; align-items: flex-end; }
  .brow.right { flex-direction: row-reverse; }
  .bubble { border-radius: 16px 16px 16px 4px; padding: 12px 16px; font-size: 15px; line-height: 1.5;
            max-width: 82%; background: var(--verm); color: var(--paper); }
  .brow.right .bubble { border-radius: 16px 16px 4px 16px; background: #ECE2CE; color: var(--ink); }
  .bwho { font-size: 12px; font-weight: 600; margin-bottom: 5px; opacity: .85; }
  .pam-av { width: 32px; height: 32px; border-radius: 50%; background: var(--verm);
            display: grid; place-items: center; flex-shrink: 0; }
  .av2 { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-deep); color: var(--paper);
         display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
         border: 2px solid var(--paper); }
  .meta { font-size: 12.5px; color: var(--muted); margin: -6px 0 0 42px; }

  /* ─ Time back — three cut-and-outlined cards on paper ─ */
  .timeback { padding: 64px 0; border-top: 1px solid var(--line); }
  .timeback h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; }
  .timeback .lead { margin: 10px 0 0; max-width: 60ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
  .benefits { margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 18px; }
  @media (min-width: 820px) { .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
  .benefit { border: 2px solid var(--ink); border-radius: 18px; padding: 26px; background: var(--card);
             display: flex; flex-direction: column; gap: 12px; }
  .benefit .name { font-weight: 600; font-size: 17px; }
  .benefit p { font-size: 15px; line-height: 1.55; color: var(--muted); }

  /* ─ Closing: on paper, centred — the hero's door once more ─ */
  .closing { background: var(--paper); padding: 64px 0; border-top: 1px solid var(--line); }
  .closing .leaf-bg { display: none; }
  .closing-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
  .closing h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; }
  .closing p { margin: 10px auto 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 44ch; }
  .closing .actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
  .btn-ink { display: inline-block; background: var(--verm); color: var(--paper); border-radius: 999px;
             padding: 16px 30px; font-weight: 600; font-size: 17px; text-decoration: none; }
  .btn-ink:hover { background: var(--verm-deep); color: var(--paper); }
  .closing .cta-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

  .footer { background: var(--ink); color: var(--paper); padding: 32px 0; font-size: 14px; }
  .footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
  .footer a { color: var(--paper); }
  .footer .fword { display: flex; align-items: center; gap: 8px; font-size: 19px; }
  .footer .ftag { margin: 8px 0 0; font-size: 14px; opacity: .85; max-width: 44ch; }
  .footer .legal { opacity: .85; }
  /* Store badges (2026-10-08): the last row is "who we are and where to get us" —
     the legal line left, the two official badges right; on a phone they sit side by
     side under the links. Google's PNG carries its own margin, so it is shown taller
     (134×52 vs 120×40) for the two visible pills to match. */
  .footer .frow { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
  .footer .fstores { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .footer .fstores a { display: inline-block; line-height: 0; }
  .footer .fstores img { display: block; border-radius: 7px; background: #000; }
  .footer .fstores img.gp { background: transparent; border-radius: 0; }

  /* Deletion banner (injected only with ?deleted=1) */
  .deleted-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    background: var(--green); color: #fff; text-align: center;
    padding: 14px 44px 14px 20px; font-size: 14px; font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: opacity .5s ease;
  }
  .deleted-banner button {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #fff; font-size: 18px;
    cursor: pointer; padding: 4px 8px; opacity: .85; line-height: 1;
  }
  @media (prefers-reduced-motion: reduce) {
    .deleted-banner { transition: none; }
  }
  /* the footer's links to the feature pages (SEO, 2026-10-06; feature.css twin) */
  .footer .flinks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 14px; font-size: 14px; }
  .footer .flinks a { color: var(--paper); opacity: .85; text-decoration: none; }
  .footer .flinks a:hover { opacity: 1; text-decoration: underline; }

  /* ─ feature pages (SEO, 2026-10-06): prose sections, steps, questions ─ */
  .section { padding: 56px 0; border-top: 1px solid var(--line); }
  .section h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; margin-top: 8px; }
  .section .eyebrow { color: var(--verm); }
  .section .lead { margin-top: 14px; font-size: 17.5px; line-height: 1.65; max-width: 62ch; color: #2E2B26; }
  .section .lead + .lead { margin-top: 12px; }
  .two { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
  @media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; } }
  ol.steps { list-style: none; padding: 0; margin: 26px 0 0; counter-reset: s; display: grid; gap: 14px; }
  ol.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: var(--card);
                border: 2px solid var(--ink); border-radius: 16px; font-size: 16px; line-height: 1.55; }
  ol.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 32px; height: 32px;
                border-radius: 50%; background: var(--verm); color: var(--paper); font-weight: 600;
                display: flex; align-items: center; justify-content: center; font-size: 15px; }
  .prog { margin-top: 26px; display: grid; gap: 14px; }
  .prog div { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 16px 18px; }
  .prog b { display: block; font-size: 17px; margin-bottom: 4px; }
  .prog span { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
  /* questions as hairline rows (the homepage's .faq), still folding */
  .faq { margin-top: 20px; max-width: 760px; border-bottom: 1px solid var(--line); }
  .faq details { border-top: 1px solid var(--line); }
  .faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; padding: 16px 0;
                 display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; flex-shrink: 0; font-weight: 400; font-size: 22px; line-height: 1; color: var(--verm); }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { margin: -4px 0 16px; color: var(--muted); line-height: 1.6; font-size: 15.5px; max-width: 70ch; }
  .more { margin-top: 22px; font-weight: 600; }
  .benefit .name a { color: inherit; text-decoration: none; }
  .benefit .name a:hover { color: var(--verm); }
  .footer .flinks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 14px; font-size: 14px; }
  .footer .flinks a { color: var(--paper); opacity: .85; text-decoration: none; }
  .footer .flinks a:hover { opacity: 1; text-decoration: underline; }
