/* =============================================================================
   Sponsor a Seat — page styles
   Extracted from page_template-sponsor-a-seat.php (Aug 2026), where it lived
   as a 1,100-line inline <style> block re-sent on every page view.
   Enqueued from functions.php for this template only, after main.css, so the
   cascade is unchanged. Colours come from the brand tokens in main.css.
   ============================================================================= */

  /* ---------- ArtsEd brand palette — strictly WHITE / GREEN / NAVY ---------- */
  /*  $navy  #002a3a    $aqua   #81d8d0    $white  #ffffff
      Tier differentiation is achieved via opacity of green only.  */

  :root {
    /* Surfaces */
    --bg-deep: #002a3a;                            /* ArtsEd navy */
    --bg-panel: rgba(255, 255, 255, 0.06);         /* white tint on navy */
    --bg-panel-2: rgba(255, 255, 255, 0.10);
    --bg-panel-solid: #001e2b;                     /* darker navy derived from brand navy */
    --border: rgba(255, 255, 255, 0.20);
    --border-strong: rgba(255, 255, 255, 0.45);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --text-dim: rgba(255, 255, 255, 0.45);

    /* Tier colours — brand primaries; aqua = patron, khaki = premium */
    --tier-patron: #81d8d0;
    --tier-patron-bg: rgba(129, 216, 208, 0.95);   /* solid aqua */
    --tier-premium: #d1c8bb;
    --tier-premium-bg: rgba(209, 200, 187, 0.55);  /* khaki */
    --tier-standard: #ffffff;
    --tier-standard-bg: rgba(255, 255, 255, 0.06); /* ghost outline */

    /* States */
    --sponsored: rgba(255, 255, 255, 0.08);        /* faded */
    --sponsored-border: rgba(255, 255, 255, 0.25);
    --unavailable: rgba(255, 255, 255, 0.03);
    --accent: #81d8d0;                             /* aqua for highlights */
    --accent-glow: rgba(129, 216, 208, 0.55);
    --cta: #81d8d0;                                /* aqua CTA, navy ink */
    --cta-hover: #ffffff;
    --wheelchair: #ffffff;

    --radius: 0;
    --shadow-lift: 0 8px 32px rgba(0, 42, 58, 0.35);
    --font-display: 'Ginto', 'Space Grotesk', 'Founders Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Founders Grotesk', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }

  /* Reset only inside the sponsor-a-seat app, so we don't break the
     rest of the WordPress theme styles. */
  .sas-app * { box-sizing: border-box; margin: 0; padding: 0; }

  .sas-app {
    background:
      radial-gradient(ellipse at top, #003655 0%, var(--bg-deep) 55%),
      var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    min-height: 100vh;
    /* Top padding gives breathing room below the WP site header. */
    padding: 80px 20px;
    line-height: 1.55;
    /* Safety net: nothing inside the app should ever cause horizontal
       page scroll on mobile. Children that go wider (the seat plan SVG)
       are scrolled inside their own container instead. */
    overflow-x: hidden;
  }

  .sas-app .stage-container { max-width: 1280px; margin: 0 auto; }

  /* ---------- Page hero ----------
     Renamed from <header> to .sas-hero so it doesn't override the
     WordPress theme's main <header> element rendered by header.php. */
  .sas-app .sas-hero {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }
  .sas-app .eyebrow {
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent); /* green */
    font-weight: 500;
    margin-bottom: 16px;
  }
  .sas-app .sas-hero-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.2vw, 60px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin-bottom: 14px;
    color: #ffffff;
  }
  .sas-app .sas-hero-title em {
    font-style: normal;
    color: var(--accent); /* green highlight on one word */
  }
  .sas-app .subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
  }

  /* ---------- Stats bar ---------- */
  .sas-app .stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 28px;
    flex-wrap: wrap;
  }
  .sas-app .stat { text-align: center; }
  .sas-app .stat-num {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  /* First stat (Seats Available) uses green to draw the eye */
  .sas-app .stat:first-child .stat-num { color: var(--accent); }
  .sas-app .stat-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
  }

  /* ---------- Layout ---------- */
  .sas-app .main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
  }
  @media (max-width: 980px) {
    .sas-app .main-grid { grid-template-columns: 1fr; }
  }

  .plan-panel,
  .detail-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
  }

  /* ---------- Section switcher ---------- */
  .switcher {
    display: flex;
    padding: 8px;
    gap: 4px;
    background: rgba(0, 42, 58, 0.28);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    border-bottom: 1px solid var(--border);
  }
  .switcher button {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
  }
  .switcher button:hover { color: var(--text); }
  .switcher button.active {
    background: rgba(129, 216, 208, 0.18);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(129, 216, 208, 0.5);
  }
  /* Responsive switcher labels: full prefix on desktop/tablet, short on phone. */
  .switcher button .sas-label-full  { display: inline; }
  .switcher button .sas-label-short { display: none; }

  /* ---------- Plan area ---------- */
  .plan-area {
    padding: 32px 24px 24px;
    position: relative;
  }
  .plan-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .plan-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
  }
  /* Duration toggle */
  .duration-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .dt-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .dt-buttons {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .dt-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 7px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
  }
  .dt-btn:hover { color: #ffffff; }
  .dt-btn.active {
    background: var(--accent);
    color: var(--bg-deep);
    font-weight: 600;
  }
  .plan-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
  }

  .seat-plan {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
  }

  /* ---------- Seats ---------- */
  .seat {
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    transform-origin: center;
    transform-box: fill-box;
  }
  .seat:hover:not(.unavailable) {
    transform: scale(1.25);
    filter: drop-shadow(0 0 6px var(--accent-glow));
  }
  .seat.sponsored { cursor: help; }
  .seat.unavailable { cursor: not-allowed; }
  .seat.selected {
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px var(--accent-glow));
  }

  /* Row labels */
  .row-label {
    font-family: var(--font-display);
    font-size: 14px;
    fill: rgba(255, 255, 255, 0.75);
    font-weight: 600;
  }

  /* Stage */
  .stage-block {
    fill: url(#stageGradient);
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 1;
  }
  .stage-label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25em;
    fill: var(--accent);
    text-transform: uppercase;
  }

  /* ---------- Tooltip ---------- */
  .tooltip {
    position: fixed;
    background: #ffffff;
    border: 1px solid rgba(0, 42, 58, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    min-width: 200px;
    max-width: 260px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 42, 58, 0.4);
    color: var(--bg-deep);
  }
  .tooltip.show { opacity: 1; transform: translateY(0); }
  .tt-row1 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bg-deep);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
  }
  .tt-tier {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    font-weight: 600;
    background: rgba(129, 216, 208, 0.15);
    color: var(--accent);
  }
  .tt-tier.patron {
    background: var(--accent);
    color: #ffffff;
  }
  .tt-tier.standard {
    background: rgba(0, 42, 58, 0.08);
    color: var(--bg-deep);
  }
  .tt-price {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
    margin: 4px 0;
  }
  .tt-status {
    font-size: 12px;
    color: rgba(0, 42, 58, 0.6);
    margin-top: 4px;
  }
  .tt-sponsor {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 42, 58, 0.12);
    font-style: italic;
    color: rgba(0, 42, 58, 0.7);
  }
  .tt-sponsor strong { color: var(--bg-deep); font-style: normal; }
  .tt-message {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 42, 58, 0.10);
    font-style: italic;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(0, 42, 58, 0.75);
  }
  .tt-message::before { content: '\201C'; opacity: 0.6; margin-right: 1px; }
  .tt-message::after  { content: '\201D'; opacity: 0.6; margin-left: 1px; }
  .tt-cta {
    margin-top: 8px;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.05em;
    font-weight: 600;
  }

  /* ---------- Legend ---------- */
  .legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
  }
  .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
  }
  .legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid;
  }

  /* ---------- Detail panel ---------- */
  .detail-panel { padding: 28px 24px; }
  .detail-header {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
  }
  .detail-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-dim);
  }
  .detail-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
  }
  .detail-content { display: none; }
  .detail-content.active { display: block; }
  .detail-seat-id {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .detail-section-name {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
  }
  /* Row containing tier badge + status (Available / Taken) badge. */
  .detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .detail-tier-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(129, 216, 208, 0.18);
    color: var(--accent);
    border: 1px solid rgba(129, 216, 208, 0.35);
  }
  /* Status badge — at-a-glance "Available" vs "Taken" indicator. */
  .detail-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
  }
  .detail-status-badge.available {
    background: var(--accent);
    color: #ffffff;
  }
  .detail-status-badge.taken {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }
  .detail-status-badge.notinscheme {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .detail-tier-badge.patron {
    background: var(--accent);
    color: var(--bg-deep);
    border-color: var(--accent);
  }
  .detail-tier-badge.standard {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
  }
  .detail-tier-badge.unavailable {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.15);
  }
  .detail-price-block {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
  }
  .detail-price-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  .detail-price {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
  }
  .detail-price-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
  }
  .detail-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
  }
  .detail-cta {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: var(--cta);
    color: var(--bg-deep);
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  }
  .detail-cta:hover {
    transform: translateY(-2px);
    background: var(--cta-hover);
    box-shadow: 0 8px 24px rgba(129, 216, 208, 0.35);
  }
  .detail-cta:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  /* Dedicated-state block: shown in the detail panel when a seat is taken.
     Replaces the price/description entirely so there's no ambiguity. */
  .detail-dedicated-state {
    padding: 22px 18px;
    border: 1px solid rgba(129, 216, 208, 0.40);
    background: rgba(129, 216, 208, 0.08);
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
  }
  .dedicated-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
  }
  .dedicated-sponsor-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .dedicated-sponsor-year {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
  }
  .dedicated-plaque-message {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(129, 216, 208, 0.30);
    font-style: italic;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    /* Quote-style indent so the message reads as inscription. */
    quotes: '\\201C' '\\201D';
  }
  .dedicated-plaque-message::before { content: open-quote; opacity: 0.6; }
  .dedicated-plaque-message::after  { content: close-quote; opacity: 0.6; }

  /* Available / Taken status badge inside the tooltip (white card). */
  .tt-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 9.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 6px 0 4px 0;
  }
  .tt-status-badge.available {
    background: var(--accent);
    color: #ffffff;
  }
  .tt-status-badge.taken {
    background: rgba(0, 42, 58, 0.10);
    color: var(--bg-deep);
    border: 1px solid rgba(0, 42, 58, 0.25);
  }
  .detail-sponsor-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .detail-sponsor-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 4px;
  }
  .detail-sponsor-year { font-size: 12px; color: var(--text-muted); }

  /* ---------- Pricing tiers info ---------- */
  .tiers-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
  }
  @media (max-width: 640px) { .tiers-info { grid-template-columns: 1fr; } }
  .tier-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .tier-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
  }
  .tier-card.patron::before    { background: rgba(129, 216, 208, 0.95); }
  .tier-card.premium::before   { background: rgba(209, 200, 187, 0.55); }
  .tier-card.standard::before  { background: rgba(255, 255, 255, 0.55); }
  .tier-card.patron    { border-color: rgba(129, 216, 208, 0.55); }
  .tier-card.premium   { border-color: rgba(209, 200, 187, 0.40); }
  .tier-card.standard  { border-color: rgba(255, 255, 255, 0.30); }
  .tier-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: #ffffff;
  }
  .tier-card.patron .tier-name,
  .tier-card.premium .tier-name { color: var(--accent); }
  .tier-price {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
  }
  .tier-alt-price {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    margin-bottom: 6px;
  }
  .tier-loc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
  }

  /* ============================================================
     RESPONSIVE — phone-sized viewports.
     - Tighter paddings everywhere so the seat plan + side panel
       don't get squashed.
     - Plan header row stacks vertically (title above, dedication
       toggle below) instead of side-by-side.
     - Switcher tabs allow text wrap and shrink.
     - Seat-plan SVG keeps horizontal scroll with a visible right-
       edge gradient as a visual scroll hint.
     ============================================================ */
  @media (max-width: 640px) {
    .sas-app { padding: 40px 12px 60px; }
    .sas-app .sas-hero { margin-bottom: 32px; padding-bottom: 24px; }
    .sas-app .eyebrow { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 12px; }
    .sas-app .subtitle { font-size: 15px; }
    .sas-app .stats { gap: 20px; margin-top: 20px; }
    .sas-app .stat-num { font-size: 26px; }
    .sas-app .stat-label { font-size: 9px; letter-spacing: 0.12em; }

    .switcher { padding: 5px; gap: 2px; }
    .switcher button {
      padding: 10px 8px;
      font-size: 11px;
      letter-spacing: 0.05em;
      line-height: 1.2;
    }

    /* Critical: width constraints so nothing inside can push
       the panel wider than the viewport. */
    .plan-panel,
    .detail-panel { min-width: 0; max-width: 100%; }
    .plan-area {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      padding: 20px 8px 16px;
      position: relative;
      overflow-x: hidden; /* belt-and-braces; SVG fits via width:100% below */
    }
    .plan-header-row {
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
      margin-bottom: 18px;
      padding: 0 6px;
    }
    .plan-title { font-size: 18px; }
    .duration-toggle { justify-content: space-between; }

    /* SVG scales to fit the viewport — no horizontal scroll on mobile.
       Seat numbers shrink but the layout is fully visible at a glance,
       and the detail panel below confirms exactly which seat is selected. */
    .seat-plan { min-width: 0; width: 100%; max-width: 100%; }

    /* Tooltip hidden on touch-only devices — there's no hover, and the
       detail panel already shows everything when you tap a seat. */
    @media (hover: none) and (pointer: coarse) {
      .tooltip { display: none !important; }
    }

    /* Switcher must not overflow the panel either */
    .switcher { max-width: 100%; }
    .switcher button {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    /* Use shorter labels on phones */
    .switcher button .sas-label-short { display: inline; }
    .switcher button .sas-label-full  { display: none; }

    /* Legend: tighter wrapping on very small screens */
    .legend { padding: 12px 14px; }

    .legend { gap: 12px 16px; padding: 14px 16px; }
    .legend-item { font-size: 11px; }

    .detail-panel { padding: 22px 18px; }
    .detail-seat-id { font-size: 32px; gap: 10px; }
    .detail-section-name { font-size: 12px; }
    .detail-price { font-size: 34px; }
    .detail-cta { padding: 14px 16px; font-size: 13px; }

    .tier-card { padding: 14px; }
    .tier-name { font-size: 14px; }
    .tier-price { font-size: 22px; }
    .tier-alt-price { font-size: 10px; }
  }

  /* Tablet sizing: keep two-column where possible but tighten paddings */
  @media (max-width: 980px) and (min-width: 641px) {
    .plan-area { padding: 24px 16px; }
  }

  /* ---------- Modal overlay ---------- */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 30, 70, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
  .modal-dialog {
    background: #ffffff;
    border-radius: var(--radius);
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 30, 70, 0.5);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
  }
  .modal-overlay.open .modal-dialog {
    transform: translateY(0) scale(1);
  }
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 42, 58, 0.12);
    flex-shrink: 0;
  }
  .modal-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    /* Navy, not var(--accent). The accent is aqua, which works everywhere
       else here because the page ground is navy - but this label sits on the
       white .modal-dialog, where aqua measures 1.66:1 at 11px. Navy is
       15.08:1. Aqua is not usable as text on white anywhere in this brand. */
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 4px;
  }
  .modal-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bg-deep);
  }
  .modal-close {
    background: rgba(0, 42, 58, 0.06);
    border: none;
    color: var(--bg-deep);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
  }
  .modal-close:hover {
    background: rgba(0, 42, 58, 0.12);
    transform: rotate(90deg);
  }
  .modal-body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #ffffff;
    /* Breathing room above the iframe content so the form's heading
       isn't flush against the modal header divider. */
    padding-top: 36px;
  }
  .modal-frame {
    width: 100%;
    height: 100%;
    min-height: 70vh;
    border: none;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .modal-frame.loaded { opacity: 1; }
  .modal-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--bg-deep);
    font-size: 13px;
    font-weight: 500;
    background: #ffffff;
    transition: opacity 0.3s ease;
  }
  .modal-loading.hidden {
    opacity: 0;
    pointer-events: none;
  }
  .modal-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 42, 58, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  @media (max-width: 640px) {
    .modal-overlay { padding: 0; }
    .modal-dialog {
      max-width: 100%;
      max-height: 100vh;
      height: 100vh;
      border-radius: 0;
    }
  }
  body.modal-open { overflow: hidden; }

  /* The theme's footer renders a diagonal "skew" SVG between the
     page content and the dark footer. By default that skew has
     a WHITE background which clashes with our navy page — so we
     override it to use our page colour instead, making the diagonal
     read as a smooth fade from navy page → footer.

     Targeting via body class added by JS (see init script) and via
     :has() for browsers that support it. */
  body.sas-has-app .skew.footer-skew-white,
  body:has(.sas-app) .skew.footer-skew-white {
    background-color: #002a3a !important;
  }

  /* ---------- Hero slogan ---------- */
  /* Sits below the subtitle, picks up the film's tagline so the page
     and the campaign film are clearly the same story. */
  .sas-app .sas-slogan {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.9vw, 22px);
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #ffffff;
    max-width: 720px;
    margin: 20px auto 0;
    line-height: 1.35;
  }
  .sas-app .sas-slogan::after {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    background: var(--accent);
    margin: 14px auto 0;
    opacity: 0.7;
  }

  /* ---------- Campaign film ---------- */
  .sas-app .sas-film {
    margin: 0 auto 48px;
    max-width: 960px;
    text-align: center;
  }
  .sas-app .sas-film-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: var(--shadow-lift);
  }
  /* Force any oEmbed/iframe inside the frame to fill it. */
  .sas-app .sas-film-frame > iframe,
  .sas-app .sas-film-frame > video,
  .sas-app .sas-film-frame > object,
  .sas-app .sas-film-frame > embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }
  .sas-app .sas-film-caption {
    font-family: var(--font-display);
    font-size: 16px;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 18px;
    letter-spacing: 0.01em;
  }
  @media (max-width: 640px) {
    .sas-app .sas-film { margin-bottom: 36px; }
    .sas-app .sas-film-caption { font-size: 14px; margin-top: 14px; }
  }

  /* ---------- Terms & Conditions ---------- */
  .sas-app .sas-terms {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .sas-app .sas-terms-disclosure {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .sas-app .sas-terms-disclosure > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s ease;
  }
  .sas-app .sas-terms-disclosure > summary::-webkit-details-marker { display: none; }
  .sas-app .sas-terms-disclosure > summary:hover { background: var(--bg-panel-2); }
  .sas-app .sas-terms-disclosure > summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  .sas-app .sas-terms-summary-label { flex: 0 0 auto; }
  .sas-app .sas-terms-summary-hint {
    flex: 1 1 auto;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
  }
  .sas-app .sas-terms-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--accent);
    transition: transform 0.25s ease;
  }
  .sas-app .sas-terms-disclosure[open] .sas-terms-summary-icon {
    transform: rotate(180deg);
  }
  .sas-app .sas-terms-body {
    padding: 8px 28px 28px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
  }
  .sas-app .sas-terms-heading {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #ffffff;
    margin: 20px 0 14px;
  }
  .sas-app .sas-terms-subheading {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 24px 0 8px;
  }
  .sas-app .sas-terms-intro {
    margin-bottom: 10px;
  }
  .sas-app .sas-terms-list {
    margin: 0 0 4px;
    padding-left: 22px;
  }
  .sas-app .sas-terms-list li {
    margin-bottom: 10px;
    padding-left: 6px;
  }
  .sas-app .sas-terms-list li::marker {
    color: var(--accent);
    font-weight: 600;
  }
  .sas-app .sas-terms-list--bullet { list-style: disc; }
  @media (max-width: 640px) {
    .sas-app .sas-terms { margin-top: 40px; padding-top: 24px; }
    .sas-app .sas-terms-disclosure > summary { padding: 14px 16px; font-size: 13px; }
    .sas-app .sas-terms-summary-hint { display: none; }
    .sas-app .sas-terms-body { padding: 4px 18px 22px; font-size: 13.5px; }
    .sas-app .sas-terms-heading { font-size: 18px; }
  }

  /* ---------- Tap targets (Oct 2026) ----------
     44px is the tap-target floor used across the site. On a phone the
     section switcher measured 33px tall, the 5 / 10 years toggle 29px and
     the form's close button 40px. */
  .switcher button,
  .dt-btn { min-height: 44px; }
  /* 45, not 44: the close button renders about 2% under its set size
     (40 measured 39.2), so 44 came out at 43. */
  .modal-close { width: 45px; height: 45px; }
