/* Safe Family Internet: homepage base styles, moved out of index.html on 2026-09-13 unchanged.
   /assets/ is cached for a year, so bump the ?v= on the <link> whenever this file changes. See DESIGN.md. */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --cobalt:      #1B1BCC;
    --cobalt-deep: #1414A8;
    --magenta:     #E8007D;
    --ink:         #16163A;
    --muted:       #5B5B7A;
    --line:        #E7E7F4;
    --bg:          #F4F4F8;
    --white:       #FFFFFF;

    --bound: 1080px;
    --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-hand: 'Caveat', 'Bradley Hand', cursive;
  }

  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-body); color: var(--ink); background: var(--bg);
    line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  }
  a { color: inherit; }
  img, svg { display: block; max-width: 100%; }
  .wrap { max-width: var(--bound); margin: 0 auto; padding: 0 22px; }

  .kicker {
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--cobalt);
  }
  .kicker.on-cobalt { color: rgba(255,255,255,.82); }
  .kicker.magenta { color: var(--magenta); }

  h2.head {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(36px, 5.4vw, 58px); line-height: .96; letter-spacing: .01em;
    color: var(--ink); margin: 10px 0 16px;
  }
  .lead { font-size: clamp(16px, 1.9vw, 18px); color: var(--muted); max-width: 40em; }
  .lead strong { color: var(--ink); font-weight: 600; }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer; padding: 13px 24px; border-radius: 6px;
    border: 1.5px solid transparent; transition: background .16s, transform .14s, border-color .16s, color .16s;
    white-space: nowrap;
  }
  .btn .arw { transition: transform .18s; }
  .btn:hover .arw { transform: translateX(3px); }
  .btn-cobalt { background: var(--cobalt); color: #fff; }
  .btn-cobalt:hover { background: var(--cobalt-deep); transform: translateY(-1px); }
  .btn-magenta { background: var(--magenta); color: #fff; }
  .btn-magenta:hover { transform: translateY(-1px); filter: brightness(.95); }
  .btn-onwhite { background: #fff; color: var(--cobalt); }
  .btn-onwhite:hover { transform: translateY(-1px); }
  .btn-line { background: transparent; border-color: var(--line); color: var(--ink); }
  .btn-line:hover { border-color: var(--cobalt); color: var(--cobalt); }
  .btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
  .btn-ghost-light:hover { border-color: #fff; }
  .btn-lg { font-size: 16px; padding: 16px 30px; }
  a:focus-visible, .btn:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }

  /* ---------------- NAV ---------------- */
  .nav { position: absolute; inset: 0 0 auto 0; z-index: 20; }
  .nav-in {
    max-width: var(--bound); margin: 0 auto; padding: 20px 22px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
  /* official "Cobalt on White" shield lockup + the wordmark beside it, both baked to
     transparent PNGs (fonts rendered in, immune to page CSS and web-font loading) */
  .brand-logo { height: 46px; width: auto; display: block; }
  .brand-wm { height: 18px; width: auto; display: block; }
  footer .brand-logo { height: 52px; }
  footer .brand-wm { height: 20px; }
  .nav-links { display: none; gap: 26px; list-style: none; }
  .nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); text-decoration: none; }
  .nav-links a:hover { color: #fff; }
  .nav-right { display: flex; align-items: center; gap: 24px; }
  @media (min-width: 880px) { .nav-links { display: flex; } }
  @media (max-width: 560px) { .nav .nav-cta { display: none; } }

  /* ---------------- HERO ---------------- */
  .hero {
    position: relative; background: var(--cobalt); color: #fff;
    padding: 132px 22px 84px; overflow: hidden;
  }
  .hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px;
    background: var(--bg); clip-path: polygon(0 100%, 100% 34%, 100% 100%);
  }
  /* the official logo sits in the right column of the two-column hero */
  .hero-logo {
    width: clamp(210px, 25vw, 320px); justify-self: center; z-index: 1; pointer-events: none;
    filter: drop-shadow(0 18px 44px rgba(0,0,0,.28));
  }
  @media (max-width: 900px) { .hero-logo { display: none; } }
  .hero-in {
    max-width: var(--bound); margin: 0 auto; position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  }
  @media (min-width: 900px) { .hero-in { grid-template-columns: 1.05fr 0.95fr; gap: 48px; } }
  .hero h1 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(46px, 8vw, 92px); line-height: .92; letter-spacing: .01em;
    text-transform: uppercase; margin: 18px 0 20px; max-width: 16ch;
  }
  .hero h1 .mag { color: #FF4FB0; }
  .hero-sub { font-size: clamp(17px, 2.1vw, 20px); color: rgba(255,255,255,.86); max-width: 34em; line-height: 1.6; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 32px 0 30px; }
  .hero-support {
    font-size: 13.5px; color: rgba(255,255,255,.62); padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.16); max-width: 40em; line-height: 1.7;
  }
  .hero-support b { color: rgba(255,255,255,.9); font-weight: 600; }

  /* ---------------- SECTION SHELL ---------------- */
  section.band { padding: 84px 22px; }
  .band-in { max-width: var(--bound); margin: 0 auto; }
  .band.tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

  /* ---------------- STORY ---------------- */
  .story-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
  @media (min-width: 820px) { .story-grid { grid-template-columns: 320px 1fr; gap: 56px; } }
  .story-photo {
    border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
    aspect-ratio: 4/5; background: #e9e9f5;
  }
  .story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
  .story h2 { margin-top: 8px; }
  .story p { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; max-width: 42em; }
  .story p strong { color: var(--ink); font-weight: 600; }
  .story .sig { font-family: var(--font-hand); font-size: 26px; color: var(--cobalt); margin-top: 6px; }

  /* ---------------- EVENT ---------------- */
  .event { background: var(--cobalt); color: #fff; padding: 84px 22px; position: relative; overflow: hidden; }
  .event-in { max-width: var(--bound); margin: 0 auto; position: relative; z-index: 2; }
  .event-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
  @media (min-width: 820px) { .event-grid { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
  .event h2 { color: #fff; }
  .event p { color: rgba(255,255,255,.84); font-size: 17px; max-width: 38em; margin-bottom: 10px; }
  .event-facts { list-style: none; display: grid; gap: 14px; }
  .event-facts li {
    display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start;
    padding: 16px 18px; background: rgba(255,255,255,.08); border-radius: 10px;
  }
  .event-facts .ico { color: #FF4FB0; font-weight: 700; font-family: var(--font-display); font-size: 22px; line-height: 1; }
  .event-facts b { display: block; font-size: 15px; }
  .event-facts span { color: rgba(255,255,255,.7); font-size: 14px; }
  .event-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

  /* ---------------- CASTLE ---------------- */
  .castle h2 { max-width: 18ch; }
  .castle .lead em { font-style: italic; color: var(--ink); }
  /* the five-layers diagram (from the deck): self-contained dark image, rounded */
  .castle-fig { margin: 34px auto 6px; max-width: 760px; }
  .castle-fig img {
    width: 100%; height: auto; border-radius: 16px; display: block;
    border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(27,27,204,.10);
  }
  .castle-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  @media (min-width: 720px) { .castle-grid { grid-template-columns: 1fr 1fr; } }
  .layer-card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px;
  }
  .layer-card.feature { grid-column: 1 / -1; border-left: 5px solid var(--magenta); }
  .layer-card .ltag {
    font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt);
  }
  .layer-card.feature .ltag { color: var(--magenta); }
  .layer-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: .01em; line-height: 1; color: var(--ink); }
  .layer-card p { font-size: 15px; color: var(--muted); }
  .layer-card .miss { color: var(--ink); font-weight: 600; }
  .castle-note {
    margin-top: 24px; font-size: 15px; color: var(--muted);
    border-left: 3px solid var(--line); padding-left: 16px; max-width: 44em;
  }

  /* ---------------- COMMUNITY SUPPORT ---------------- */
  .support h2 { max-width: 20ch; }
  .badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
  .badge-pill {
    background: #fff; border: 1px solid var(--line); border-radius: 100px;
    padding: 11px 20px; font-size: 14px; font-weight: 600; color: var(--ink);
  }
  .badge-pill span { color: var(--muted); font-weight: 500; }
  .first-canada {
    margin-top: 6px; background: var(--cobalt); color: #fff; border-radius: 14px;
    padding: 28px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
    justify-content: space-between;
  }
  .first-canada p { font-size: 18px; }
  .first-canada .big { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); line-height: .96; }
  .first-canada .mag { color: #FF4FB0; }

  /* ---------------- PRESS ---------------- */
  .press-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  @media (min-width: 680px) { .press-grid { grid-template-columns: 1fr 1fr; } }
  .press-card {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 18px 20px; text-decoration: none; transition: border-color .16s, transform .16s, box-shadow .16s;
  }
  .press-card:hover { border-color: var(--cobalt); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27,27,204,.07); }
  .press-card .outlet { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta); }
  .press-card .ptitle { font-size: 16px; font-weight: 600; color: var(--ink); margin: 5px 0 4px; line-height: 1.35; }
  .press-card .go { font-size: 13px; font-weight: 600; color: var(--cobalt); }

  /* ---------------- DECAL ---------------- */
  .decal { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .decal-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
  @media (min-width: 820px) { .decal-grid { grid-template-columns: 260px 1fr; gap: 56px; } }
  .decal-img { display: flex; justify-content: center; }
  .decal-img img { width: 230px; height: auto; filter: drop-shadow(0 14px 30px rgba(27,27,204,.18)); }
  .decal h2 { max-width: 16ch; }
  .decal p { color: var(--muted); font-size: 16.5px; margin-bottom: 12px; max-width: 40em; }
  .decal p strong { color: var(--ink); }
  .decal .hand { font-family: var(--font-hand); font-size: 24px; color: var(--magenta); }

  /* ---------------- START / CTAs ---------------- */
  .start h2 { max-width: 16ch; }
  .start-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 38px; }
  @media (min-width: 760px) { .start-grid { grid-template-columns: repeat(3, 1fr); } }
  .start-card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
    transition: border-color .16s, transform .16s, box-shadow .16s;
  }
  .start-card:hover { border-color: var(--cobalt); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(27,27,204,.08); }
  .start-card.primary { border-color: var(--magenta); }
  .start-card .stag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .start-card.primary .stag { color: var(--magenta); }
  .start-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: .01em; color: var(--ink); line-height: 1; }
  .start-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
  .start-card .btn { align-self: flex-start; margin-top: 6px; }

  /* ---------------- TOOLKIT (soft email gate) ---------------- */
  .downloads { background: var(--cobalt); color: #fff; }
  .downloads .head { color: #fff; }
  .downloads .kicker.magenta { color: #FF4FB0; }
  .downloads p { color: rgba(255,255,255,.84); font-size: 17px; max-width: 40em; }
  .toolkit-form { margin-top: 28px; max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
  .toolkit-form input[type="text"], .toolkit-form input[type="email"] {
    font-family: var(--font-body); font-size: 16px; color: var(--ink);
    background: #fff; border: 1.5px solid transparent; border-radius: 8px; padding: 14px 16px; width: 100%;
  }
  .toolkit-form input::placeholder { color: var(--muted); }
  .toolkit-form input:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
  .toolkit-form .btn { align-self: flex-start; margin-top: 4px; }
  .consent {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.5;
  }
  .consent input[type="checkbox"] {
    margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--magenta); cursor: pointer;
  }
  .toolkit-msg { min-height: 1.2em; font-size: 14.5px; font-weight: 600; color: #fff; margin-top: 4px; }

  /* ---------------- FAQ ---------------- */
  .faq-list { max-width: 760px; margin-top: 36px; }
  .faq-item { border-top: 1px solid var(--line); }
  .faq-item:last-child { border-bottom: 1px solid var(--line); }
  .faq-item summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 20px 44px 20px 0;
    font-family: var(--font-display); font-weight: 400; font-size: 24px;
    letter-spacing: .01em; color: var(--ink);
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; line-height: 0;
    font-family: var(--font-body); font-size: 26px; color: var(--magenta);
    transition: transform .2s ease;
  }
  .faq-item[open] summary::after { transform: rotate(45deg); }
  .faq-item p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; padding: 0 30px 22px 0; max-width: 42em; }
  .faq-item summary:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }

  /* ---------------- FOOTER ---------------- */
  footer { background: var(--cobalt); color: #fff; padding: 60px 22px 36px; }
  .foot-in { max-width: var(--bound); margin: 0 auto; display: grid; gap: 32px; grid-template-columns: 1fr; }
  @media (min-width: 680px) { .foot-in { grid-template-columns: 1.5fr 1fr; align-items: start; } }
  .foot-brand p { color: rgba(255,255,255,.72); font-size: 14px; margin-top: 14px; max-width: 36em; line-height: 1.7; }
  .foot-contact a { color: #fff; font-weight: 600; text-decoration: none; }
  .foot-contact a:hover { color: #FF4FB0; }
  .foot-links { display: flex; flex-direction: column; gap: 10px; }
  @media (min-width: 680px) { .foot-links { align-items: flex-end; } }
  .foot-links a { color: rgba(255,255,255,.8); font-size: 14px; text-decoration: none; }
  .foot-links a:hover { color: #fff; }
  .foot-bottom {
    max-width: var(--bound); margin: 34px auto 0; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap;
    gap: 8px; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.6);
  }

  /* reveal */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
