/* source: tokens.css */
/* ============================================================================
   Pocket design tokens
   Values extracted verbatim from the direct.withpocket.com.au app so the
   marketing site and the product site read as one brand. Single-brand here,
   so the per-tenant CSS-variable injection direct. uses is resolved to
   Pocket's concrete values. See pocketbuilder/db/seeds.rb (Pocket broker
   theme) and app/models/broker.rb THEME_DEFAULTS.
   Do not re-derive or guess these — change them only if the brand changes.
   ========================================================================== */

:root {
  /* ── Core palette ── */
  --pocket-primary:        #0077B3;  /* brand blue */
  --pocket-secondary:      #0077B3;
  --pocket-accent:         #FF8C19;
  --pocket-accent-hover:   #E07510;

  /* Blues used across landing sections */
  --pocket-blue:           #0077B3;
  --pocket-blue-dark:      #005A87;
  --pocket-blue-deeper:    #004268;
  --pocket-blue-hover:     #1e93d6;  /* .btn-blue hover */

  /* Surfaces */
  --pocket-background:     #f0f7fb;
  --pocket-white:          #FAFCFD;
  --pocket-header-bg:      #E7F3F8;  /* pale blue */
  --pocket-pale-blue:      #E7F3F8;
  --pocket-topbar-bg:      #E7F3F8;
  --pocket-topbar-border:  #C4DEE8;
  --pocket-card-bg:        var(--pocket-pure-white);
  --pocket-card-border:    #e5e7eb;
  --pocket-border:         #e5e7eb;
  --pocket-input-border:   #d1d5db;
  --pocket-footer-bg:      #004268;  /* deep blue */
  --pocket-footer-text:    rgba(255, 255, 255, 0.6);

  /* Text */
  --pocket-text:           #333333;
  --pocket-text-secondary: #4A6070;
  --pocket-text-tertiary:  #7A96A8;
  --pocket-text-strong:    #1a2e3b;  /* near-black used for card titles */

  /* Actions */
  --pocket-link:           #0077B3;
  --pocket-button-bg:      #FF8C19;
  --pocket-button-text:    #17242C;

  /* Cards */
  --pocket-card-radius:    14px;
  --pocket-card-shadow:    0 1px 3px rgba(0, 0, 0, 0.08);
  --pocket-card-shadow-hover: 0 12px 28px rgba(0, 119, 179, 0.14);
  --pocket-card-padding:   32px;
  --pocket-card-gap:       24px;

  /* Radius scale — --pocket-card-radius (above) is the one card radius; these
     cover the other repeating shapes (icon badges, hero panel, photos). */
  --pocket-radius-sm: 12px;  /* icon badges, hero-card panel */
  --pocket-radius-lg: 16px;  /* lifecycle/works photos */
  --pocket-radius-xl: 20px;  /* hero photo */

  /* Pure white vs the branded off-white surface (--pocket-white, #FAFCFD).
     Use --pocket-pure-white for foreground text/icons on a saturated
     background (buttons, footer); --pocket-white for card/panel surfaces. */
  --pocket-pure-white: #ffffff;

  /* Section vertical rhythm — the one section-band padding used site-wide.
     Mobile breakpoint is 768px (see @media convention below). */
  --pocket-section-padding: 96px;
  --pocket-section-padding-mobile: 48px;

  /* Layout */
  --pocket-container:      1200px;

  /* ── Breakpoint convention (documented, not a live CSS value — custom
     properties can't appear inside @media feature queries) ──
       768px  "mobile"  — nav collapses to hamburger, container/section padding
                          shrinks, single-column type scale kicks in.
       900px  "tablet"  — multi-column grids (hero, cta, cards, split-card)
                          collapse to one column.
     Every @media rule in this codebase should use one of these two numbers. */

  /* Type — headings use "iskra" (Adobe Fonts / Typekit kit vak4zpy, the real
     Pocket brand heading font, same kit the WordPress site loads); Merriweather
     is the graceful fallback if the kit is blocked. Body is Merriweather Sans. */
  --pocket-font-display:   "iskra", Georgia, serif;
  --pocket-font-body:      "Merriweather Sans", system-ui, sans-serif;

  /* ── Aliases matching direct.'s landing-page variable names, so ported
     component CSS can be copied with minimal edits ── */
  --blue:            var(--pocket-blue);
  --blue-dark:       var(--pocket-blue-dark);
  --blue-deeper:     var(--pocket-blue-deeper);
  --pale-blue:       var(--pocket-pale-blue);
  --pale-blue-dark:  var(--pocket-card-border);
  --border:          var(--pocket-border);
  --orange:          var(--pocket-accent);
  --orange-dark:     var(--pocket-accent-hover);
  --white:           var(--pocket-white);
  --text-secondary:  var(--pocket-text-secondary);
  --text-tertiary:   var(--pocket-text-tertiary);
  --font:            var(--pocket-font-body);
}

/* source: base.css */
/* ============================================================================
   Base: reset, typography scale, links, long-form prose defaults.
   Mirrors the @layer base block in direct.'s application.css.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--pocket-pure-white);
  color: var(--pocket-text);
  font-size: 15px;
  line-height: 1.75;
  font-family: var(--pocket-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Let an unbreakable run (an email address, a bare URL) wrap rather than push
     the page sideways on a narrow or zoomed-in phone. */
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pocket-font-display);
  color: var(--pocket-primary);
  margin: 0 0 0.5em;
}

h1 { font-size: 3rem;    font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.2;  letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 400; line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }

p { margin: 0 0 1rem; }

/* ── Links ──
   Default: no underline (nav, footer, buttons, cards opt in to their own
   treatment). Long-form content links (.prose) are underlined below so they
   read as links in running text. */
a {
  color: var(--pocket-link);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

/* Keyboard focus ring for every interactive element (was missing entirely). */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pocket-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

img { max-width: 100%; height: auto; }

hr { border: none; border-top: 1px solid var(--pocket-border); margin: 2rem 0; }

.brand-divider {
  width: 40px;
  height: 3px;
  background: var(--pocket-primary);
  margin: 16px 0 32px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 16px;
  color: var(--pocket-pure-white);
  background: var(--pocket-primary);
  border-radius: 4px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── Prose: long-form article/guide body rendered from markdown ── */
.prose { min-width: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.8; color: var(--pocket-text); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.8rem; color: var(--pocket-text); }
/* h4 is used in article bodies as a small "kicker" label above an h2. Without
   an explicit rule it fell back to body-sized text jammed under the previous
   block, making the heading hierarchy look broken — style it as a deliberate
   uppercase eyebrow so the kicker → h2 rhythm reads intentionally. */
.prose h4 {
  font-family: var(--pocket-font-display);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pocket-primary); margin-top: 2.4rem; margin-bottom: -0.4rem;
}
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.35rem 0; }
.prose a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--pocket-blue-dark); text-decoration-thickness: 2px; }
.prose blockquote {
  border-left: 3px solid var(--pocket-primary);
  padding-left: 1rem; margin-left: 0; color: var(--pocket-text-secondary);
}
.prose img { border-radius: 8px; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; margin-bottom: 1.8rem; }
.prose th, .prose td { border: 1px solid var(--pocket-border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--pocket-pale-blue); font-weight: 700; }
.prose code {
  background: var(--pocket-pale-blue); border-radius: 4px;
  padding: 2px 5px; font-size: 0.9em;
}

/* source: layout.css */
/* ============================================================================
   Layout: containers, section spacing, page shell.
   ========================================================================== */

.page { display: flex; flex-direction: column; min-height: 100vh; }
/* White default so long-form content pages and the alternating home sections
   read on white; the hero and specific bands set their own pale-blue. */
.page-main { flex: 1 0 auto; background: var(--pocket-pure-white); }

.container {
  max-width: var(--pocket-container);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section { padding: var(--pocket-section-padding) 0; }
.section-sm { padding: 56px 0; }

/* Centred error page (404/422/500). */
.error-page { text-align: center; }
.error-page .section-lead { margin: 0 auto 40px; }
.error-page .hero-actions { justify-content: center; }

.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--pocket-blue-dark); margin-bottom: 14px;
  /* Not --pocket-primary: this renders on the pale --pocket-header-bg tint
     band (hero, split-card), where primary blue only clears 4.33:1 —
     below WCAG AA's 4.5:1 floor for text this small. blue-dark clears 6.6:1. */
}
.section-h2 {
  font-size: 44px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 16px; line-height: 1.15;
  /* No color override — inherits the h1-h6 base rule (--pocket-primary) so
     every heading on the site reads the same brand blue. */
}
.section-lead {
  font-size: 18px; color: var(--pocket-text-secondary); line-height: 1.9;
  max-width: 600px; margin-bottom: 56px; font-weight: 400;
}
.section-divider {
  width: 40px; height: 3px; background: var(--pocket-blue); margin: 18px 0 40px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: var(--pocket-section-padding-mobile) 0; }
  .section-sm { padding: 40px 0; }
  .section-h2 { font-size: 32px; }
  .section-lead { font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
  .section-divider { margin-bottom: 32px; }
  .grid-2, .grid-3 { gap: 16px; }
}

/* source: header.css */
/* ============================================================================
   Marketing header / nav — ported from direct.'s _marketing_header partial
   and the .marketing-nav / .site-header rules in its application.css.
   ========================================================================== */

/* ── Brand pattern strip (very top of every page) ── */
.pattern-strip {
  height: 18px;
  background-image: url("/assets/pattern-1-scaled-aaa71143.png");
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 18px;
}

/* ── Top bar ── */
.topbar {
  background: var(--pocket-topbar-bg);
  border-bottom: 1px solid var(--pocket-topbar-border);
  font-size: 12px;
}
.topbar-inner {
  max-width: var(--pocket-container);
  margin: 0 auto;
  padding: 8px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-tagline { color: var(--pocket-blue-dark); font-weight: 600; }
.topbar-links { display: flex; align-items: center; gap: 24px; }
.topbar-link {
  color: var(--pocket-blue-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: text-decoration-color 0.15s;
}
.topbar-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
  .topbar { display: none; }
}

.site-header {
  background: var(--pocket-header-bg);
  border-bottom: 1px solid var(--pocket-topbar-border);
  font-family: var(--pocket-font-body);
}

/* Same container as the topbar and hero: max-width + 40px inner padding, so
   the logo aligns with the topbar tagline and the hero content. */
.site-header-inner {
  max-width: var(--pocket-container);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo-link { display: inline-flex; align-items: center; }
.site-logo-image { height: 28px; width: auto; }

.site-brand-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pocket-primary);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-nav > .site-nav-link,
.site-nav > .site-nav-item {
  padding-left: 4px;
}

.site-nav-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: var(--pocket-blue-dark); /* solid deep blue, matching the WP nav (#005180) */
  transition: color 0.15s;
  white-space: nowrap;
}
.site-nav-link:hover { color: var(--pocket-primary); }

.site-nav-cta {
  background: var(--pocket-button-bg);
  color: var(--pocket-button-text);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.site-nav-cta:hover { background: var(--pocket-accent-hover); }

/* Mobile menu toggle (progressive enhancement via Stimulus) */
.site-nav-toggle {
  display: none;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--pocket-primary);
}
.site-nav-toggle-icon {
  width: 24px; height: 24px;
  align-items: center; justify-content: center;
}
.site-nav-toggle-icon--menu { display: inline-flex; }
.site-nav-toggle-icon--close { display: none; }
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-icon--menu { display: none; }
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-icon--close { display: inline-flex; }
.site-nav-toggle-icon svg { display: block; }

.site-mobile-menu {
  display: block;
  background: var(--pocket-pure-white);
  border-bottom: 1px solid var(--pocket-card-border);
  padding: 20px 24px;
}
.site-mobile-menu[hidden] { display: none; }
.site-mobile-menu-link {
  display: flex; align-items: center; min-height: 44px;
  font-size: 15px; text-decoration: none;
  padding: 8px 0; font-weight: 600; color: var(--pocket-blue-dark);
}

/* ── Desktop nav dropdowns (lifecycle hubs + Coverage) ──
   Link + chevron toggle sit side by side (never nested — a <button> can't
   live inside an <a>); the panel is absolutely positioned below both. */
.site-nav-item { position: relative; display: inline-flex; align-items: center; gap: 0; }
.site-nav-dropdown-toggle {
  min-width: 44px; min-height: 44px;
  margin-right: -12px;
  background: none; border: none; cursor: pointer; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--pocket-blue-dark);
  transition: color 0.15s;
}
.site-nav-dropdown-toggle svg {
  transform: translateX(-10px);
  transition: transform 0.15s;
}
.site-nav-dropdown-toggle:hover { color: var(--pocket-primary); }
.site-nav-dropdown-toggle[aria-expanded="true"] { color: var(--pocket-primary); }
.site-nav-dropdown-toggle[aria-expanded="true"] svg { transform: translateX(-10px) rotate(180deg); }

.site-nav-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 12px;
  background: var(--pocket-pure-white);
  border: 1px solid var(--pocket-card-border);
  border-radius: var(--pocket-card-radius);
  box-shadow: var(--pocket-card-shadow-hover);
  padding: 20px 24px;
  display: flex; gap: 40px;
  z-index: 50;
}
/* [hidden] and .site-nav-dropdown{display:flex} have equal specificity, and
   the latter comes later in the cascade — without this, the panel ignores
   the hidden attribute and shows open by default. */
.site-nav-dropdown[hidden] { display: none; }
.site-nav-dropdown--mega { left: auto; right: 0; }

.nav-dropdown-col { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.nav-dropdown-heading {
  font-family: var(--pocket-font-display);
  font-size: 13px; font-weight: 700; color: var(--pocket-text-strong);
  text-decoration: none; padding-bottom: 8px; margin-bottom: 6px;
  border-bottom: 1px solid var(--pocket-card-border);
  white-space: nowrap;
}
.nav-dropdown-heading:hover { color: var(--pocket-primary); }
.nav-dropdown-link {
  font-size: 14px; color: var(--pocket-blue-dark); text-decoration: none;
  padding: 6px 0; white-space: nowrap;
}
.nav-dropdown-link:hover { color: var(--pocket-primary); }

/* ── Mobile accordion equivalent — inline expand, not an overlapping panel ── */
.site-mobile-menu-item { border-bottom: 1px solid var(--pocket-card-border); }
.site-mobile-menu-item:last-child { border-bottom: none; }
.site-mobile-menu-row { display: flex; align-items: center; justify-content: space-between; }
.site-mobile-menu-row .site-mobile-menu-link { flex: 1; }
.site-mobile-menu-toggle {
  min-width: 44px; min-height: 44px;
  background: none; border: none; cursor: pointer; padding: 12px 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--pocket-blue-dark); transition: transform 0.15s;
}
.site-mobile-menu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.site-mobile-submenu { padding: 0 0 12px 16px; display: flex; flex-direction: column; gap: 16px; }
.site-mobile-submenu[hidden] { display: none; }
.site-mobile-submenu .nav-dropdown-col { min-width: 0; gap: 0; }
.site-mobile-submenu .nav-dropdown-heading { border-bottom: none; padding-bottom: 4px; }
.site-mobile-submenu .nav-dropdown-link { padding: 6px 0; }

@media (max-width: 900px) {
  .site-header-inner { padding: 10px 16px; }
  .site-nav { display: none; }
  .site-nav-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
  .site-mobile-menu { padding: 8px 16px 16px; }
  .site-mobile-submenu { padding-left: 12px; gap: 8px; }
  .site-mobile-submenu .nav-dropdown-link { min-height: 44px; display: flex; align-items: center; }
}

/* ── Minimal landing header (content front matter `chrome: minimal`) ──
   Logo plus the page's one CTA, no navigation. Sticky, so the CTA stays in
   reach on long pages and on mobile without a separate floating bar. */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.landing-header-inner { gap: 16px; }
.landing-header-cta .btn-cta { padding: 10px 18px; font-size: 13px; }

@media (max-width: 768px) {
  .landing-header-inner { padding: 10px 16px; }
  .landing-header .site-logo-image { height: 22px; }
  .landing-header-cta .btn-cta { padding: 9px 12px; font-size: 12px; letter-spacing: 0.02em; }
}

/* source: footer.css */
/* ============================================================================
   Marketing footer — brand column + link columns + verbatim compliance block,
   modeled on the WordPress site footer with direct.'s deep-blue palette.
   ========================================================================== */

.site-footer {
  background: var(--pocket-footer-bg);
  color: var(--pocket-footer-text);
  font-size: 13px;
  line-height: 1.7;
  padding: 56px 40px 32px;
}

.site-footer-top {
  max-width: var(--pocket-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 3fr;
  gap: 48px;
}

/* Brand column */
.site-footer-logo { height: 25px; width: auto; margin-bottom: 16px; display: block; }
.site-footer-tagline { color: rgba(255, 255, 255, 0.75); margin-bottom: 20px; max-width: 240px; }
.site-footer-network {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
  color: rgba(255, 255, 255, 0.75); margin-bottom: 20px;
}
.site-footer-steadfast {
  font-weight: 800; letter-spacing: 0.02em; color: var(--pocket-pure-white); font-size: 14px;
}
.site-footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer-social-link {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.site-footer-social-link:hover { background: rgba(255, 255, 255, 0.2); color: var(--pocket-pure-white); }

/* Link columns */
.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.site-footer-col { display: flex; flex-direction: column; gap: 8px; }
.site-footer-col-heading {
  font-weight: 700; color: rgba(255, 255, 255, 0.9); margin-bottom: 4px;
}
.site-footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-col a:hover { color: var(--pocket-pure-white); }

/* Compliance block */
.site-footer-legal {
  max-width: var(--pocket-container);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.site-footer-legal-heading {
  font-weight: 700; color: rgba(255, 255, 255, 0.7); margin-bottom: 6px;
}
.site-footer-legal p { margin-bottom: 12px; }

/* Bottom bar */
.site-footer-bottom {
  max-width: var(--pocket-container);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer-bottom-links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer-bottom-links a:hover { color: var(--pocket-pure-white); }
/* "Cookie settings" reopens the consent banner, so it is a <button>, styled to
   read as one of the neighbouring footer links. */
.site-footer-bottom-button {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: rgba(255, 255, 255, 0.75); cursor: pointer;
}
.site-footer-bottom-button:hover { color: var(--pocket-pure-white); }

@media (max-width: 900px) {
  /* minmax(0, …) so a long link label can't hold a track wider than a narrow
     (or heavily zoomed) phone; plain 1fr refuses to shrink below its content. */
  .site-footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .site-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .site-footer { padding: 40px 16px 24px; }
  .site-footer-top { gap: 28px; }
  .site-footer-cols { gap: 20px 16px; }
  .site-footer-legal { margin-top: 32px; }
  .site-footer-bottom { flex-direction: column; }
}

/* ── Minimal landing footer: compliance and legal documents only ── */
.landing-footer .site-footer-legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* source: components.css */
/* ============================================================================
   Components — buttons, cards, hero, CTA, feature/step grids, FAQ accordion.
   Ported from the landing-page layer of direct.'s application.css (~L1511+),
   class names preserved so ported ERB works with minimal edits.
   ========================================================================== */

/* ── Buttons ──
   Pocket's raised button: iskra display face, uppercase, inset top highlight +
   colored drop shadow, lifts on hover. Variants:
     .btn-blue     hero primary  — blue,   hover → lighter blue
     .btn-primary  book-a-call   — orange, hover → blue (on light backgrounds)
     .btn-cta      section CTAs  — orange, hover → darker orange (safe on the
                                   deep-blue band, where blue would vanish)
     .btn-outline  tertiary      — blue outline
*/
.btn-blue,
.btn-primary,
.btn-cta,
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--pocket-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease, color 0.15s ease;
}

.btn-blue,
.btn-primary,
.btn-cta,
.btn-outline,
summary {
  min-height: 44px;
}
.btn-blue:hover,
.btn-primary:hover,
.btn-cta:hover { transform: translateY(-1px); }
.btn-blue:active,
.btn-primary:active,
.btn-cta:active { transform: translateY(0); }

/* Blue — hero "Get a quote" */
.btn-blue {
  background: var(--pocket-primary); color: var(--pocket-pure-white); font-size: 14px; padding: 15px 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 119, 179, 0.35);
}
.btn-blue:hover {
  background: var(--pocket-blue-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 7px 18px rgba(0, 119, 179, 0.42);
}

/* Orange, hover → blue — book-a-call CTAs on light backgrounds */
.btn-primary {
  background: var(--orange); color: var(--pocket-button-text); font-size: 14px; padding: 15px 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(224, 117, 16, 0.35);
}
.btn-primary:hover {
  background: var(--pocket-primary); color: var(--pocket-pure-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 7px 18px rgba(0, 119, 179, 0.4);
}

/* Orange, hover → darker orange — section + final CTAs (safe on deep blue) */
.btn-cta {
  background: var(--orange); color: var(--pocket-button-text); font-size: 15px; padding: 16px 34px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(224, 117, 16, 0.35);
}
.btn-cta:hover {
  background: var(--orange-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 7px 18px rgba(224, 117, 16, 0.45);
}

/* Tertiary outline */
.btn-outline {
  background: transparent; color: var(--blue); font-size: 14px; padding: 13px 28px;
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--pale-blue); }

/* ── Hero ── */
/* Pale-blue matches the hero photo's baked-in background (#e8f3f7) so the image
   blends into the section instead of reading as a card on a lighter panel. */
.hero {
  background: var(--pocket-header-bg);
  overflow: hidden; position: relative;
}
.hero-inner {
  max-width: var(--pocket-container); margin: 0 auto; padding: 104px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  position: relative; z-index: 2;
}
/* No hero photo (product-less pages like /coverage/, /get-a-quote/, /contact/):
   don't leave .hero-copy squeezed into a single 1fr column sized for an image
   that isn't there — that forces extra text wraps and inflates section height
   for no reason. Let it use most of the width instead. */
.hero-inner--solo { grid-template-columns: minmax(0, 1fr); }
.hero-inner--solo .hero-copy { max-width: 66%; }
.hero-inner--solo .hero-sub { max-width: none; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pocket-blue-dark); background: var(--pale-blue); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 4px; margin-bottom: 24px;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.hero-h1 {
  font-size: 60px; font-weight: 800; line-height: 1.08; letter-spacing: -0.025em;
  color: var(--blue); margin-bottom: 24px;
}
.hero-h1 em { font-style: normal; color: var(--pocket-text); }
.hero-sub {
  font-size: 18px; color: var(--text-secondary); line-height: 1.9;
  margin-bottom: 40px; font-weight: 400; max-width: 470px;
}
/* A credibility line under the hero copy (e.g. the digital asset landing page):
   quieter than the sub so it reads as supporting proof, not more body copy. */
.hero-sub .hero-trust {
  margin-top: 16px; font-size: 14px; line-height: 1.6; font-weight: 600;
  color: var(--pocket-text-secondary);
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-ai-note { margin-top: 16px; font-size: 14px; color: var(--pocket-text-secondary); }
.hero-ai-note a { color: var(--pocket-blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.hero-card {
  background: var(--pale-blue); border: 1px solid var(--border);
  border-radius: var(--pocket-radius-sm); padding: 36px;
}
.hero-card-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 20px;
}

/* ── Trust bar ── */
.trust-bar { background: var(--blue-deeper); padding: 20px 40px; }
.trust-bar-inner {
  max-width: var(--pocket-container); margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px; font-size: 12px;
  font-weight: 600; color: rgba(231, 243, 248, 0.85); letter-spacing: 0.02em;
}
.trust-check {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center; font-size: 10px;
  flex-shrink: 0; color: var(--pocket-header-bg);
}

/* ── Cards ── */
.card {
  background: var(--pocket-card-bg); border: 1px solid var(--pocket-card-border);
  border-radius: var(--pocket-card-radius); box-shadow: var(--pocket-card-shadow);
  padding: var(--pocket-card-padding);
}

.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--pocket-card-radius); padding: var(--pocket-card-padding);
  text-decoration: none;
}
.feature-title { font-size: 16px; font-weight: 700; color: var(--pocket-text-strong); margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* Related-content band — reuses the .feature-card shell as a clickable link.
   Hover (shared with .link-grid-card) lives in sections.css next to
   --pocket-card-shadow-hover. */
.related-card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.related-card .section-eyebrow { margin-bottom: 8px; }
.related-card .feature-title { font-size: 18px; }

.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue);
  color: var(--pocket-pure-white); font-weight: 700; font-size: 18px; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step-title { font-size: 16px; font-weight: 700; color: var(--pocket-text-strong); margin-bottom: 8px; }
.step-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.75; }

/* ── Coverage card ── */
.coverage-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--pocket-card-radius); padding: var(--pocket-card-padding); transition: border-color 0.15s;
}
.coverage-card:hover { border-color: var(--blue); }
.cov-title { font-size: 16px; font-weight: 700; color: var(--pocket-text); margin-bottom: 8px; letter-spacing: -0.01em; }
.cov-limit { font-size: 20px; font-weight: 800; color: var(--blue); margin-bottom: 10px; letter-spacing: -0.02em; }
.cov-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* ── CTA band ── */
.cta-section { background: var(--blue-deeper); padding: 80px 40px; position: relative; overflow: hidden; }
.cta-inner {
  max-width: var(--pocket-container); margin: 0 auto; display: grid;
  grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  position: relative; z-index: 2;
}
.cta-h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.025em; color: var(--pocket-pure-white); line-height: 1.1; margin-bottom: 12px; }
.cta-sub { font-size: 16px; color: rgba(231, 243, 248, 0.7); line-height: 1.6; }
.cta-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
/* A link in the band's copy (e.g. a phone number): the site link blue is
   unreadable on deep blue, so white and underlined to stand apart from the
   muted body text without relying on colour alone (WCAG 1.4.1). */
.cta-sub a { color: var(--pocket-pure-white); text-decoration: underline; text-underline-offset: 2px; }
.cta-sub a:hover { text-decoration-thickness: 2px; }
.cta-phone { margin-top: 8px; font-size: 15px; }

/* ── FAQ accordion — native <details>/<summary>, no JS (as direct.) ── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  font-size: 17px; font-weight: 700; color: var(--pocket-text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item > summary:hover { color: var(--pocket-primary); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; font-size: 20px; font-weight: 400; color: var(--blue);
  flex-shrink: 0; transition: transform 0.15s;
}
.faq-item[open] > summary::after { content: "\2212"; } /* minus */
.faq-answer {
  padding: 0 0 24px; font-size: 16px; color: var(--text-secondary); line-height: 1.9;
}

/* ── Hero media ── */
.hero-copy, .hero-media { min-width: 0; }
.hero-media { display: flex; justify-content: center; }
.hero-photo {
  width: 100%; max-width: 520px; height: auto;
}

/* ── Lifecycle blocks (alternating image / text) ── */
.lifecycle-block {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
  padding: 52px 0;
}
.lifecycle-block--reverse .lifecycle-media { order: 2; }
.lifecycle-media { display: flex; justify-content: center; }
.lifecycle-photo {
  width: 100%; max-width: 420px; height: auto;
}
.lifecycle-heading { font-size: 34px; margin-bottom: 16px; line-height: 1.2; }
.lifecycle-body p { color: var(--pocket-text-secondary); font-size: 17px; line-height: 1.85; }
.lifecycle-need { margin-top: 12px; }
.lifecycle-need strong { color: var(--pocket-text); }
.lifecycle-link {
  display: inline-block; margin-top: 16px; font-weight: 700; font-size: 14px;
  color: var(--pocket-primary); text-decoration: none;
}
.lifecycle-link:hover { color: var(--pocket-blue-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ── Why businesses choose Pocket ── */
.why-section { background: var(--pocket-header-bg); padding: var(--pocket-section-padding) 0; }
.why-compare {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--pocket-card-gap);
}
.why-card {
  background: var(--pocket-white); border: 1px solid var(--pocket-border);
  border-radius: var(--pocket-card-radius); padding: var(--pocket-card-padding);
}
.why-card-heading { font-size: 15px; font-weight: 700; color: var(--pocket-text); margin-bottom: 20px; }
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.why-list li {
  display: flex; align-items: center; gap: 12px; font-size: 15px;
  color: var(--pocket-text-secondary); line-height: 1.6;
}
.why-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.why-icon--yes { background: var(--pocket-primary); color: var(--pocket-pure-white); }
.why-icon--no  { background: var(--pocket-accent); color: var(--pocket-pure-white); }
.why-alt {
  max-width: 760px; margin: 40px auto 0; text-align: center;
  font-size: 14px; color: var(--pocket-text-secondary); line-height: 1.75;
}
.why-cta { text-align: center; margin-top: 32px; }

/* ── How Pocket works (step cards with photos) ── */
/* No card border/background — just the photo + text on the section, so nothing
   crowds an edge. */
.step-card { padding: 0; background: transparent; border: none; text-align: left; }
/* The photos carry Pocket's pocket-shaped crop baked in (on white), so show
   them at natural aspect with no CSS crop or rounding. */
.step-photo {
  width: 100%; height: auto; display: block; margin-bottom: 12px;
}
.step-heading { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 40px;
}
.steps-cta { text-align: center; margin-top: 40px; }

/* ── How Pocket works for you (image + accordion) — on white ── */
.works-for-you-inner {
  display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start;
}
.works-photo {
  width: 100%; max-width: 420px; height: auto; position: sticky; top: 24px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 64px 20px;
  }
  .hero-inner--solo .hero-copy { max-width: none; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); padding-left: 20px; padding-right: 20px; }
  .hero-h1 { font-size: 36px; }
  .hero-photo { max-width: 420px; }
  .cta-section { padding: 48px 20px; }
  .lifecycle-block, .works-for-you-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lifecycle-block--reverse .lifecycle-media { order: 0; }
  .why-compare { grid-template-columns: minmax(0, 1fr); }
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .works-photo { position: static; }
}

@media (max-width: 768px) {
  .btn-blue,
  .btn-primary,
  .btn-cta,
  .btn-outline {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .hero-actions > a { width: 100%; }
  .hero-inner { gap: 32px; padding: 40px 16px 48px; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-h1 { font-size: 32px; margin-bottom: 16px; }
  .hero-sub { font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
  .hero-actions { gap: 12px; }
  .hero-photo { max-width: 300px; }

  .home-lifecycle-section { padding-top: 40px; padding-bottom: 40px; }
  .lifecycle-block { gap: 24px; padding: 32px 0; }
  .lifecycle-block:first-child { padding-top: 0; }
  .lifecycle-block:last-child { padding-bottom: 0; }
  .lifecycle-body { order: 1; }
  .lifecycle-media,
  .lifecycle-block--reverse .lifecycle-media { order: 2; }
  .lifecycle-photo { max-width: 280px; }
  .lifecycle-heading { font-size: 28px; margin-bottom: 12px; }
  .lifecycle-body p { font-size: 16px; line-height: 1.7; }

  .why-section { padding: var(--pocket-section-padding-mobile) 0; }
  .why-card { padding: 24px; }
  .why-alt { margin-top: 32px; }

  .steps-grid { gap: 24px; margin-top: 32px; }
  .step-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .step-photo { width: 108px; margin-bottom: 0; }
  .step-heading { margin-bottom: 6px; }
  .step-desc { font-size: 14px; line-height: 1.6; }
  .steps-cta { margin-top: 32px; }

  .works-for-you-inner { gap: 28px; }
  .works-body { order: 1; }
  .works-media { order: 2; display: flex; justify-content: center; }
  .works-photo { max-width: 280px; }

  .faq-item > summary { padding: 18px 0; }
  .faq-answer { padding-bottom: 18px; line-height: 1.7; }

  .cta-section { padding: 40px 16px; }
  .cta-h2 { font-size: 32px; }
  .cta-inner { gap: 24px; padding: 0; }
  .cta-actions > a { width: 100%; }
}

/* ── Consent banner — fixed to the bottom, above everything, until a choice
   is made (Stimulus toggles [hidden]; see consent_controller.js). ── */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--pocket-white); border-top: 1px solid var(--pocket-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
/* Focus lands on the banner itself when "Cookie settings" reopens it. */
.consent-banner:focus { outline: none; }
.consent-banner:focus-visible { outline: 2px solid var(--pocket-primary); outline-offset: -2px; }
.consent-banner-inner {
  max-width: var(--pocket-container); margin: 0 auto; padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.consent-banner-text { font-size: 14px; line-height: 1.6; color: var(--pocket-text-secondary); margin: 0; }
.consent-banner-text a { color: var(--pocket-link); text-decoration: underline; text-underline-offset: 2px; }
.consent-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.consent-banner-actions .btn-outline,
.consent-banner-actions .btn-primary { min-width: 88px; min-height: 44px; padding: 10px 20px; font-size: 14px; }

/* While the banner is showing (consent_controller removes [hidden] for visitors
   who haven't chosen), reserve its height at the bottom of the page so the
   fixed banner never sits over the footer or a page's closing CTA. Removed the
   moment a choice is made — no lingering gap. */
body:has(.consent-banner:not([hidden])) { padding-bottom: 96px; }
/* The padding only helps at the very end of the page. Anywhere above that, the
   browser treats the strip behind the banner as visible, so a control reached
   with Tab (or an in-page link) could be brought "into view" underneath it and
   a keyboard visitor's focused button was hidden. Keep the same strip out of
   the scroll area so whatever is scrolled to stops above the banner. */
html:has(.consent-banner:not([hidden])) { scroll-padding-bottom: 96px; }

@media (max-width: 768px) {
  .consent-banner-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .consent-banner-actions { justify-content: flex-end; }
  body:has(.consent-banner:not([hidden])) { padding-bottom: 176px; }
  html:has(.consent-banner:not([hidden])) { scroll-padding-bottom: 176px; }
}

/* --------------------------------------------------------------------------
   Quote requirements (/quote-requirements/) and the "using an AI assistant?"
   callout that links to them.
   -------------------------------------------------------------------------- */
.qr { max-width: 880px; }
.qr-h2 { font-size: 1.5rem; margin: 2.6rem 0 1rem; color: var(--pocket-text-strong); }
.qr-meta { color: var(--pocket-text-secondary); font-size: 15px; line-height: 1.7; }
.qr-meta .btn-blue { margin-right: 16px; }
.qr code, .qr-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; }
.qr p > code, .qr li > code, .qr dd > code { background: var(--pocket-pale-blue); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.qr-products { list-style: none; padding: 0; display: grid; gap: var(--pocket-card-gap); }
.qr-product { background: var(--pocket-card-bg); border: 1px solid var(--pocket-card-border); border-radius: var(--pocket-card-radius); padding: 24px; }
.qr-product h3 { margin: 0 0 8px; font-size: 1.2rem; }
.qr-instructions { padding-left: 1.4rem; line-height: 1.7; }
.qr-instructions li { margin: 0.4rem 0; }
.qr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px 24px; margin: 1.6rem 0; }
.qr-facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pocket-text-tertiary); }
.qr-facts dd { margin: 2px 0 0; }
.qr-section { margin-top: 2.2rem; }
.qr-section h3 { font-size: 1.25rem; border-bottom: 1px solid var(--pocket-border); padding-bottom: 8px; }
.qr-questions { list-style: none; padding: 0; }
.qr-question { padding: 14px 0; border-bottom: 1px solid var(--pocket-border); }
.qr-question p { margin: 4px 0; }
.qr-question-label { font-weight: 700; color: var(--pocket-text-strong); }
.qr-question-meta, .qr-cond, .qr-options { font-size: 14px; color: var(--pocket-text-secondary); }
.qr-tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 10px; margin-right: 6px; }
.qr-tag-required { background: #fde7d2; color: #7a3d00; }
.qr-tag-conditional { background: var(--pocket-pale-blue); color: var(--pocket-blue-deeper); }
.qr-tag-optional { background: #eef1f3; color: var(--pocket-text-secondary); }
.qr-code { background: var(--pocket-pale-blue); border-radius: var(--pocket-radius-sm); padding: 16px; overflow-x: auto; white-space: pre; line-height: 1.5; }
.ai-callout { background: var(--pocket-pale-blue); border-left: 4px solid var(--pocket-blue); border-radius: var(--pocket-radius-sm); padding: 14px 18px; margin: 24px 0; font-size: 15px; line-height: 1.6; }
.ai-callout strong { display: block; color: var(--pocket-text-strong); }
.ai-callout a { color: var(--pocket-blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.ai-callout a:hover { color: var(--pocket-blue-deeper); }

/* source: sections.css */
/* ============================================================================
   Structured page sections (shared/sections/_*) — the composable layout system
   that rebuilt WP/Elementor pages are assembled from. Built on the same tokens
   as the rest of the site.
   ========================================================================== */

/* Alternating section bands */
.section-band { padding: var(--pocket-section-padding) 0; }
.section-band--white { background: var(--pocket-pure-white); }
.section-band--tint  { background: var(--pocket-header-bg); }

/* Left-aligned band intro — sits at the top of the following content band.
   Also reused directly (no wrapper) by .checklist's heading, and with the
   --narrow modifier by the home page's "Why choose Pocket" head — same box
   model, different content shape. Left-aligned site-wide (was centred). */
.section-header { text-align: left; max-width: 760px; margin: 0 0 48px; }
.section-header--narrow { max-width: 640px; }
.section-header-sub {
  font-family: var(--pocket-font-display);
  color: var(--pocket-primary); font-size: 19px; font-weight: 700; margin-top: 2px;
}
.section-band .section-header:only-child,
.section-band > .container > .section-header:last-child { margin-bottom: 0; }

/* ── Split card: rich body + side card ── */
.split-card {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
  align-items: start;
}
.split-card-heading { font-size: 30px; margin-bottom: 16px; line-height: 1.2; }
.split-card-subheading { margin: 22px 0 8px; }
.split-card-subheading strong { color: var(--pocket-text); }
.split-card-cta { margin-top: 24px; }

/* Body prose inside a section (lists, paragraphs) — airy, matching the WP site */
.prose-tight { font-size: 17px; line-height: 1.9; color: var(--pocket-text-secondary); }
.prose-tight ul, .prose-tight ol { padding-left: 1.3rem; margin: 0.5rem 0; }
.prose-tight li { margin: 0.45rem 0; }
.prose-tight p { margin: 0 0 1.1rem; }
.prose-tight strong { color: var(--pocket-text); }

/* The side "What X covers" card */
.split-card-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: var(--pocket-card-gap); }

/* Cards-only variant (no left body) — lay the cards out as an equal-width row
   instead of a narrow sidebar. Same row treatment applies when a body IS
   present but there are 3+ cards (--many-cards): the body just sits full
   width above the row instead of being dropped. */
.split-card--cards-only,
.split-card--many-cards,
.split-card--cta-cards { grid-template-columns: minmax(0, 1fr); max-width: none; }
.split-card--cards-only .split-card-aside,
.split-card--many-cards .split-card-aside,
.split-card--cta-cards .split-card-aside {
  position: static;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.split-card--cards-only .split-card-aside .cover-card,
.split-card--many-cards .split-card-aside .cover-card,
.split-card--cta-cards .split-card-aside .cover-card { max-width: none; }
/* Opt-in fixed column count (frontmatter `columns:`) — pins the card row to N
   equal columns instead of the auto-fit flow, e.g. 4 cards as a 2×2 grid. */
.split-card--cols-2 .split-card-aside { grid-template-columns: repeat(2, 1fr); }
.split-card--many-cards .split-card-body { max-width: 760px; margin: 0 auto; }
.split-card--many-cards .split-card-aside { margin-top: 40px; }
.split-card--cta-cards .split-card-body { text-align: center; }
.split-card--cta-cards .split-card-cta { margin-top: 0; }
.cover-card {
  background: var(--pocket-white);
  border: 1px solid var(--pocket-border);
  border-radius: var(--pocket-card-radius);
  padding: var(--pocket-card-padding);
  box-shadow: var(--pocket-card-shadow);
}
.section-band--white .cover-card { background: var(--pocket-header-bg); border-color: transparent; box-shadow: none; }
.cover-card-icon {
  width: 46px; height: 46px; border-radius: var(--pocket-radius-sm);
  background: var(--pocket-primary); color: var(--pocket-pure-white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.cover-card-title {
  font-family: var(--pocket-font-display);
  font-size: 19px; font-weight: 700; color: var(--pocket-text); margin-bottom: 12px;
}
.cover-card-body { font-size: 15px; line-height: 1.8; color: var(--pocket-text-secondary); }
.cover-card-body ul { padding-left: 1.1rem; margin: 0; }
.cover-card-body li { margin: 0.3rem 0; }

/* ── Link grid: grouped product-link cards (coverage index pages) ── */
.link-grid { display: flex; flex-direction: column; gap: 64px; }
.link-grid-group-heading { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.link-grid-group-sub { font-size: 17px; color: var(--pocket-text-secondary); margin-bottom: 28px; }
.link-grid-cards { margin-top: 0; }
.link-grid-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--pocket-white);
  border: 1px solid var(--pocket-border);
  border-radius: var(--pocket-card-radius);
  padding: var(--pocket-card-padding);
  box-shadow: var(--pocket-card-shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
/* Shared "lift" hover — identical to .related-card:hover (components.css);
   grouped here so the shadow/lift treatment has one definition. */
.link-grid-card:hover,
.related-card:hover {
  border-color: var(--pocket-primary);
  box-shadow: var(--pocket-card-shadow-hover);
  transform: translateY(-2px);
}
.link-grid-card .cover-card-icon { margin-bottom: 16px; }
.link-grid-card-title {
  font-family: var(--pocket-font-display);
  font-size: 19px; font-weight: 700; color: var(--pocket-text); margin-bottom: 12px;
}
.link-grid-card-body { font-size: 15px; line-height: 1.8; color: var(--pocket-text-secondary); }

/* ── FAQ section ── */
.faq-section .section-header { margin-bottom: 28px; }
.faq-list--wide { max-width: none; margin: 0; }

/* ── Answer block: concise extractable buyer answer ── */
.answer-block {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
  background: var(--pocket-white);
  border: 1px solid var(--pocket-border);
  border-radius: var(--pocket-card-radius);
  box-shadow: var(--pocket-card-shadow);
}
.section-band--white .answer-block {
  background: var(--pocket-header-bg);
  border-color: transparent;
  box-shadow: none;
}
.answer-block-question {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.answer-block-answer {
  max-width: 700px;
}

/* ── Checklist: numbered reasons list ── */
/* Heading uses .section-header directly (see above) — identical box model. */
.checklist-items {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 56px;
  max-width: 900px; margin: 0 auto;
}
.checklist-item { display: flex; align-items: flex-start; gap: 20px; }
.checklist-num {
  font-family: var(--pocket-font-display);
  font-size: 40px; font-weight: 700; color: var(--pocket-primary);
  line-height: 1; flex-shrink: 0;
}
.checklist-text { font-size: 17px; line-height: 1.6; color: var(--pocket-text); padding-top: 6px; }

/* ── Lifecycle stepper ── */
.stepper-cards { margin-top: 8px; }
.stepper-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--pocket-white);
  border: 1px solid var(--pocket-border);
  border-radius: var(--pocket-card-radius);
  padding: var(--pocket-card-padding);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.stepper-card:not(.is-current):hover {
  border-color: var(--pocket-primary);
  box-shadow: var(--pocket-card-shadow-hover);
}
/* Was background: var(--pocket-header-bg) + a transparent border — identical
   to .section-band--tint's own background, so on a tinted band the "current
   stage" card was invisible (no border, no contrast). A visible primary-blue
   border marks it as current regardless of which band it lands on. */
.stepper-card.is-current {
  background: var(--pocket-white);
  border-color: var(--pocket-primary);
  box-shadow: var(--pocket-card-shadow);
}
/* A completed stage still links forward (so the card grid is never a dead
   end) but reads as "done" via a muted label rather than a different
   background — keeps it legible on both white and tinted bands. */
.stepper-card.is-complete .stepper-card-label { color: var(--pocket-text-tertiary); }
.stepper-card-label {
  font-family: var(--pocket-font-display);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--pocket-primary); margin-bottom: 10px;
}
.stepper-card-desc { font-size: 15px; line-height: 1.6; color: var(--pocket-text-secondary); }

/* ── Embed: third-party widget iframe (Fillout forms, SavvyCal booking) ── */
.embed-wrap {
  position: relative;
  width: 100%;
  min-height: 600px;
  margin: 0 auto;
}
.embed-wrap iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 0;
  background: var(--pocket-pure-white);
}
.embed-loading {
  position: absolute;
  inset: 48px 0 auto;
  margin: 0;
  color: var(--pocket-text-secondary);
  font-weight: 700;
  text-align: center;
}

/* ── Scenario-figure asterisk reference link (coverage pages, #scenarios) ──
   Overrides .prose a's underline (needs equal-or-higher specificity to win) —
   the asterisk itself shouldn't look like a regular inline link. */
.prose a.scenario-ref { text-decoration: none; }

/* ── Reviews: curated Google review cards (shared/sections/_reviews) ──
   Same card shape/tokens as .cover-card etc.; on a white band the cards take
   the pale-blue surface, on a tinted band they take white, so they read as
   cards either way (mirrors .cover-card's band-aware treatment). */
.reviews-header {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px;
  margin-bottom: 40px;
}
.reviews-header .section-h2 { margin: 0; }
.reviews-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pocket-font-display);
  font-size: 15px; font-weight: 700; color: var(--pocket-text-secondary);
  text-decoration: none;
}
a.reviews-badge:hover { color: var(--pocket-primary); }
.reviews-badge-g { flex-shrink: 0; }

.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--pocket-card-gap);
}
.review-card {
  display: flex; flex-direction: column; gap: 14px;
  margin: 0;
  background: var(--pocket-white);
  border: 1px solid var(--pocket-border);
  border-radius: var(--pocket-card-radius);
  padding: var(--pocket-card-padding);
  box-shadow: var(--pocket-card-shadow);
}
.section-band--white .review-card { background: var(--pocket-header-bg); border-color: transparent; box-shadow: none; }
.review-stars { display: flex; gap: 2px; font-size: 18px; line-height: 1; color: var(--pocket-accent); }
.review-star.is-empty { color: var(--pocket-input-border); }
.review-quote {
  margin: 0; font-size: 16px; line-height: 1.7; color: var(--pocket-text);
}
.review-quote::before { content: "\201C"; }
.review-quote::after  { content: "\201D"; }
.review-author { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.review-author-name {
  font-family: var(--pocket-font-display);
  font-size: 15px; font-weight: 700; color: var(--pocket-text-strong);
}
/* text-secondary (not tertiary) so 13px date text clears WCAG AA 4.5:1 on the
   white card surface — tertiary #7A96A8 only reaches 3.02:1 there. */
.review-author-date { font-size: 13px; color: var(--pocket-text-secondary); }

@media (max-width: 768px) {
  .reviews-header { margin-bottom: 28px; }
  .review-card { padding: 24px; }
}

@media (max-width: 900px) {
  .split-card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split-card-aside { position: static; }
  .split-card--cols-2 .split-card-aside { grid-template-columns: minmax(0, 1fr); }
  .link-grid-group-heading { font-size: 28px; }
  .checklist-items { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stepper-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .section-band { padding: var(--pocket-section-padding-mobile) 0; }
  .section-header { margin-bottom: 32px; }
  .link-grid { gap: 32px; }
  .link-grid-group-sub { margin-bottom: 20px; }
  .split-card { gap: 24px; }
  .split-card-heading { font-size: 27px; }
  .split-card--many-cards .split-card-aside { margin-top: 32px; }
  .cover-card,
  .link-grid-card,
  .stepper-card,
  .answer-block { padding: 24px; }
  .answer-block-question { font-size: 27px; }
  .checklist-items { gap: 20px; }
  .checklist-item { gap: 16px; }
}

/* source: insights.css */
/* ============================================================================
   Insights (blog) — index layout (post grid + recent-posts sidebar) and the
   individual post layout (article + sticky recent-posts sidebar). Guides
   render through the exact same templates (merged into one content type).

   The .insight-layout/.insight-sidebar-* shape and classes are also reused
   as-is by legals-and-compliance pages (content_pages/show.html.erb) for
   their "Help and links" sidebar — same "article + sticky link list" shape,
   no need for a second near-identical set of classes.
   ========================================================================== */

/* ── Shared sidebar widget (insights index/post, legals pages) ── */
.insight-sidebar-sticky { position: sticky; top: 24px; }
.insight-sidebar-heading {
  font-family: var(--pocket-font-display);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--pocket-primary); padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--pocket-card-border);
}
.insight-sidebar-link {
  display: block; font-size: 14px; line-height: 1.5; color: var(--pocket-blue-dark);
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--pocket-card-border);
}
.insight-sidebar-link:last-child { border-bottom: none; }
.insight-sidebar-link:hover { color: var(--pocket-primary); }
.insight-sidebar-link.is-current { color: var(--pocket-text); font-weight: 700; }

/* ── Index: post grid (2 cols) + sidebar (1 col) ── */
.insights-index-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }

/* ── Individual post: article (wide) + sidebar (narrow) ── */
.insight-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start; }
.insight-header { margin-bottom: 32px; }
.insight-title {
  font-family: var(--pocket-font-display);
  font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  margin: 10px 0 16px;
}
.insight-byline {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--pocket-text-secondary);
}

/* ── Breadcrumb trail (legals-and-compliance pages only) — matches the
   "Help and links" sidebar heading treatment (small, bold, uppercase,
   letter-spaced) rather than plain default link styling; unstyled before. ── */
.breadcrumbs {
  font-family: var(--pocket-font-display);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--pocket-blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a:hover { color: var(--pocket-primary); }
.breadcrumbs span[aria-current] { color: var(--pocket-text-strong); }

/* ── /sitemap/ — the human-readable HTML sitemap ──
   Same .insight-sidebar-heading/.insight-sidebar-link classes as the widget
   above, just laid out as several standalone columns instead of one sidebar. */
.sitemap-groups {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px;
  align-items: start; margin-top: 8px;
}

@media (max-width: 900px) {
  .insights-index-layout, .insight-layout { grid-template-columns: minmax(0, 1fr); }
  .insight-sidebar-sticky { position: static; }
  .insight-title { font-size: 32px; }
  .sitemap-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sitemap-groups { grid-template-columns: minmax(0, 1fr); }
  .insight-header { margin-bottom: 24px; }
  .insight-title { font-size: 30px; }
  .insights-index-layout,
  .insight-layout { gap: 32px; }
  .sitemap-groups { gap: 28px; }
}

/* ── Document version footer (legals-and-compliance) ──
   Separators are CSS ::before so a screen reader reads the three facts as
   plain text rather than announcing a middot between each. */
.doc-version {
  margin-top: 40px; padding-top: 16px;
  border-top: 1px solid var(--pocket-card-border);
  font-size: 14px; line-height: 1.6; color: var(--pocket-text-tertiary);
}
.doc-version-item { white-space: nowrap; }
.doc-version-item + .doc-version-item::before {
  content: "\00b7"; margin: 0 8px; color: var(--pocket-card-border);
}

/* Narrow: one fact per line. Wrapping the single line instead leaves a
   separator dangling at a line edge, which reads as a typo. */
@media (max-width: 768px) {
  .doc-version-item { display: block; }
  .doc-version-item + .doc-version-item::before { content: none; }
}

/* source: forms.css */
/*
 * First-party form styling.
 *
 * Ported from the quote flow in pocketbuilder (app/assets/tailwind/application.css)
 * so the two apps look and feel like one product. Class names are deliberately the
 * same — .pk-field, .pk-label, .pk-input-wrap, .quote-two-col, .q-side-panel — so a
 * developer moving between the repos reads the same vocabulary.
 *
 * Three deliberate differences from pocketbuilder:
 *
 *  1. The canvas is white, and the progress strip is separated by a border rather
 *     than a tint fill.
 *  2. The left column carries no card border or shadow. The form is the page.
 *  3. Hint and secondary text use #4A6070, not pocketbuilder's #7A96A8. On white
 *     that lighter grey is 3.1:1, under the 4.5:1 axe requires for body text, and
 *     the a11y spec here has no exclusion for our own markup.
 *
 * Fonts are inherited rather than restated. pocketbuilder writes its font stack as
 * var(--font-body, …) so each broker theme supplies its own; this app's theme is
 * Merriweather Sans + iskra, so inheriting is what "use the pocketbuilder
 * definitions" actually means.
 *
 * Also honoured: two breakpoints only (768/900), no inline styles anywhere (CSP
 * style-src has no 'unsafe_inline'), 44px minimum touch targets.
 */

:root {
  --pk-error: #dc2626;
  --pk-error-dark: #b91c1c;
  --pk-error-bg: #fef2f2;
  --pk-radius: 8px;
  /* Dark enough for white text on the success banner to clear 4.5:1. */
  --pk-green: #147a4a;
  --pk-green-light: #e6f7f0;
  --pk-green-border: #8ad4b3;
  --pk-max: 1200px;
  --pk-col-gap: 40px;
}

/* ── canvas ──────────────────────────────────────────────────────────────── */

.form-canvas {
  background: var(--pocket-pure-white);
}

/* ── full-width progress strip ───────────────────────────────────────────── */

.quote-progress-wrap {
  background: var(--pocket-pure-white);
  border-bottom: 1px solid var(--pocket-card-border);
  padding: 16px 40px;
}

.quote-progress-inner {
  /* Align the step label and bar to the form content below, not the two-col box:
   * the content sits inside the 1200 box's 40px gutters (1120), so the strip is
   * capped to match rather than running 40px wider on each side. */
  max-width: calc(var(--pk-max) - 80px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.quote-progress-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--pocket-text-secondary);
}

.quote-progress-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  /* Tight against the step label, as in pocketbuilder — the default paragraph
   * margin was opening a large gap between the two lines. */
  margin: 1px 0 0;
  color: var(--pocket-primary);
}

/* A native <progress>. The fill is a fraction only the server knows, and CSP
 * style-src has no 'unsafe_inline', so it cannot be a style attribute — it used
 * to be one class per step ("--2-of-3"), which meant a form longer than three
 * pages matched nothing and rendered as complete on step one. A quote with
 * line-of-business pages can be any length. */
.quote-progress-track {
  width: 360px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background: var(--pocket-card-border);
  /* Firefox colours the fill with this rather than ::-moz-progress-bar alone. */
  color: var(--pocket-primary);
}

.quote-progress-track::-webkit-progress-bar {
  background: var(--pocket-card-border);
}

.quote-progress-track::-webkit-progress-value {
  background: var(--pocket-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.quote-progress-track::-moz-progress-bar {
  background: var(--pocket-primary);
  border-radius: 2px;
}

/* ── two-column grid ─────────────────────────────────────────────────────── */

.quote-two-col {
  /* Match the site canvas exactly: a --pk-max (1200px) outer with a 40px gutter,
   * the same as .container. Previously this was --pk-max + 80px, which pushed the
   * form 40px past each site edge — wider than the nav and footer above/below it. */
  max-width: var(--pk-max);
  margin: 0 auto;
  padding: 40px 40px 56px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  align-items: start;
}

.quote-two-col > :first-child {
  padding-right: var(--pk-col-gap);
  min-width: 0;
}

.quote-two-col > :last-child {
  padding-left: var(--pk-col-gap);
  position: sticky;
  top: 24px;
  align-self: start;
  min-width: 0;
}

/* ── lead-magnet split-hero layout ───────────────────────────────────────── */
/* A magnet landing page (forms with `layout: split_hero`): the hook on the left,
 * a compact form card on the right. Unlike the quote flow — where the form is the
 * page — here the form is a card, so it reads as the one thing to do. */

.magnet-two-col {
  max-width: var(--pk-max);
  margin: 0 auto;
  padding: 56px 40px 64px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}

.magnet-hook { min-width: 0; }

.magnet-hook-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pocket-primary);
}

.magnet-hook-heading {
  margin: 0 0 16px;
  font-family: var(--pocket-font-display);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pocket-text-strong);
}

.magnet-hook-sub {
  margin: 0 0 24px;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--pocket-text-secondary);
}

.magnet-hook-media { margin: 24px 0; }

.magnet-hook-thumb {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--pocket-radius-sm);
  box-shadow: var(--pocket-card-shadow-hover);
}

.magnet-hook-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.magnet-hook-list-item {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pocket-text);
}

.magnet-hook-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(0, 119, 179, 0.12);
}

.magnet-hook-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--pocket-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.magnet-hook-why {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--pocket-primary);
}

.magnet-hook-why-heading {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--pocket-text-strong);
}

.magnet-hook-why-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--pocket-text-secondary);
}

.magnet-hook-cred {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pocket-text-tertiary);
}

.magnet-form {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--pocket-border);
  border-radius: var(--pocket-card-radius);
  box-shadow: var(--pocket-card-shadow);
}

@media (max-width: 860px) {
  .magnet-two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 32px 20px 48px;
  }

  .magnet-form { position: static; }
  .magnet-hook-heading { font-size: 30px; }
}

/* The left column is the page, not a card sitting on it — no border, no shadow. */
.q-form-main {
  background: transparent;
  border: 0;
  padding: 0;
}

.q-form-card-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--pocket-primary);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-family: var(--pocket-font-display);
  line-height: 1.15;
}

/* Compact: on a split_hero magnet page the big benefit headline lives in the
 * hook, so the form's own title is smaller and quieter. Kept after the base rule
 * above so the base stays the canonical .q-form-card-title definition. */
.magnet-form .q-form-card-title { font-size: 22px; }

.q-form-card-subtitle {
  font-size: 14px;
  color: var(--pocket-text-secondary);
  margin: 0 0 32px;
  line-height: 1.6;
}

/* ── error summary ───────────────────────────────────────────────────────── */

.form-errors {
  border: 1px solid var(--pk-error);
  border-left-width: 4px;
  border-radius: var(--pk-radius);
  background: var(--pk-error-bg);
  padding: 18px 22px;
  margin-bottom: 28px;
}

.form-errors-title {
  font-family: var(--pocket-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--pk-error-dark);
  margin: 0 0 8px;
}

.form-errors-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pocket-text);
}

.form-errors-list a {
  color: var(--pk-error-dark);
  font-weight: 700;
}

/* ── fields ──────────────────────────────────────────────────────────────── */

.form-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── occupation search ───────────────────────────────────────────────────── */

/* Hidden until its controller connects, so it never appears as dead furniture
   beside the fields that work without it. */
.pk-occupation {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  position: relative;
  margin-top: 8px;
}

.pk-occupation[hidden] {
  display: none;
}

.pk-occupation-results {
  list-style: none;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--pocket-card-border);
  border-radius: 8px;
  background: var(--pocket-pure-white);
  max-height: 260px;
  overflow-y: auto;
}

.pk-occupation-results[hidden] {
  display: none;
}

.pk-occupation-result {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.pk-occupation-result-name {
  display: block;
  font-weight: 600;
}

.pk-occupation-result-detail {
  display: block;
  font-size: 13px;
  color: var(--pocket-text-secondary);
}

.pk-occupation-result:hover,
.pk-occupation-result[aria-selected="true"] {
  background: var(--pocket-tint);
}

/* A named group of questions on a long page. A line-of-business page runs to
 * dozens of questions and reads as a wall without these — General Liability has
 * ten sections. The rule above the heading does the separating, so the group
 * needs no card or border of its own. */
.q-form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.q-form-section[hidden] {
  display: none;
}

.q-form-section-title {
  font-family: var(--pocket-font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pocket-primary);
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--pocket-card-border);
}

/* The first section on a page sits directly under the lead, which already has
 * its own spacing. */
.form-body > .q-form-section:first-child .q-form-section-title {
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}

.pk-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* A conditional field that does not apply is rendered with `hidden`. Both classes
   below set `display`, and an author rule beats the user agent's
   `[hidden] { display: none }` — so without this the field is hidden to the
   accessibility tree and still painted on the page. */
.pk-field[hidden],
.pk-fieldset[hidden] {
  display: none;
}

/* A cover-period date pair (start + end), stacked one above the other. Paired
   structurally in FormsHelper#form_field_rows so the two still share one
   date-range controller; stacking keeps them aligned when only the start date
   carries help text (side by side, the help text pushed the two inputs out of
   line). min-width: 0 keeps a native date input from forcing its track wider. */
.pk-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.pk-field-row > * {
  min-width: 0;
}

.pk-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  /* A <fieldset> defaults to min-width: min-content, which lets a wide child (the
   * directors table) push the whole page wide instead of scrolling inside its
   * own box. Reset it so .pk-table-scroll can do its job. */
  min-width: 0;
}

.pk-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pocket-text);
  line-height: 1.5;
  user-select: none;
  padding: 0;
}

.pk-required {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--pocket-text-secondary);
  margin-left: 6px;
}

.pk-description {
  font-size: 0.8125rem;
  color: var(--pocket-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* A hint followed by a list (Question#help_list): an insurer's (i)-(iv). */
.pk-help-lead { margin: 0; }

.pk-help-list {
  list-style: lower-roman;
  margin: 4px 0 0;
  padding-left: 1.75em;
}

.pk-help-list li + li { margin-top: 4px; }

.pk-error {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pk-error);
  line-height: 1.5;
  margin: 0;
}

.pk-note {
  font-size: 0.8125rem;
  color: var(--pocket-text-secondary);
  font-style: italic;
  margin: 0;
}

/*
 * ABN/ACN lookup enhancement. Its status line and register note are revealed by
 * the Stimulus controller (they render `hidden`), so with JavaScript off there is
 * nothing here and the ABN field stands alone.
 */
/* The ABN lookup sits under its input in the field's own column, so the
 * register note reads as part of the field. */
.abn-lookup {
  display: contents;
}

/* Fields the register answers, folded away when the client has an ABN — display
 * only, so they stay enabled and submitted (a display:none field still posts). */
.is-abn-folded {
  display: none;
}

/* A search that stands in for its base field (the occupation search) hides the
 * base field's label and box. Hiding rather than removing keeps the input in the
 * form, so it is still submitted and still what a validation failure re-renders. */
.pk-field.is-resolved > .pk-label,
.pk-field.is-resolved > .pk-input-wrap,
.pk-field.is-resolved > .pk-description {
  display: none;
}

.abn-lookup__status {
  font-size: 0.8125rem;
  color: var(--pocket-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.abn-lookup__status[hidden],
.abn-lookup__note[hidden] {
  display: none;
}

/* What the register holds, once the number has been looked up: a badge, then
 * the registered name, type and status. Agile's quote form says the same. */
.abn-lookup__note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--pocket-text-secondary);
}

.abn-lookup__badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: #dcf3e4;
  color: #145c32;
  font-weight: 700;
  font-size: 0.75rem;
}

/* The business-name search: the matches list hangs under the name field. */
.pk-business-search {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pk-business-search > .pk-note[hidden] {
  display: none;
}

/* The street field's own hint, repeated under the search label while the field is
 * folded away. The search block is not a flex column like .pk-field, so the
 * margin stands in for the gap a field would put around it. */
.address-autocomplete__search > .pk-description {
  margin: 0.375rem 0;
}

.address-autocomplete__hint {
  font-size: 0.8125rem;
  color: var(--pocket-text-secondary);
  line-height: 1.5;
  margin: 8px 0 0;
}

/* The search-first fold. Two classes rather than the `hidden` attribute, because
 * the conditional controller owns hidden/disabled for the cover-kind gate on the
 * residential address and the two must not toggle the same property.
 *
 * The street field this enhancement lives inside keeps its search box — a sibling
 * of the label and input — so only those two fold; the rest of the group folds
 * away entirely until an address is chosen or manual entry is picked. */
.pk-field.is-address-searching > .pk-label,
.pk-field.is-address-searching > .pk-input-wrap,
.pk-field.is-address-searching > .pk-description {
  display: none;
}

.is-address-folded {
  display: none;
}

.address-autocomplete__manual {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pocket-blue-dark);
  background: none;
  border: none;
  padding: 8px 0 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.address-autocomplete__manual:hover {
  color: var(--pocket-primary);
}

.address-autocomplete__reset {
  font-family: var(--pocket-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--pocket-blue-dark);
  background: none;
  border: 1px solid var(--pocket-card-border);
  padding: 8px 14px;
  border-radius: var(--pk-radius);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-top: 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.address-autocomplete__reset:hover {
  border-color: var(--pocket-primary);
  color: var(--pocket-primary);
}

/* display:inline-flex above outweighs the UA `[hidden] { display: none }`, so the
   attribute needs restating at matching specificity or the button never hides. */
.address-autocomplete__reset[hidden] {
  display: none;
}

.address-autocomplete__icon {
  width: 15px;
  height: 15px;
}

/*
 * Google's PlaceAutocompleteElement, standing where the search input was. It
 * draws its own input and dropdown inside a closed shadow root (styled by
 * Google, attribution included), so this only sizes the host and gives it the
 * frame a .pk-input has. color-scheme keeps it light on a dark-mode OS, like the
 * rest of the form.
 */
.address-autocomplete__element {
  display: block;
  width: 100%;
  color-scheme: light;
  background: var(--pocket-pure-white);
  border: 1px solid var(--pocket-card-border);
  border-radius: var(--pk-radius);
}

/* ---- Percentage rows: the % input and its running total ---- */
.pk-split-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 96px;
  flex-shrink: 0;
}

/* Scoped under the wrap, not a bare .pk-split-input: .pk-input's padding
 * shorthand comes later in this file at the same specificity, so it used to win
 * and leave the typed digits running underneath the "%" ("100" read as "10%"). */
.pk-split-input-wrap > .pk-split-input {
  text-align: right;
  padding-right: 2rem;
}

/* z-index for the same reason as .pk-input-prefix: it sits over the input. */
.pk-split-suffix {
  position: absolute;
  z-index: 1;
  right: 0.875rem;
  color: var(--pocket-text-secondary);
  font-size: 14px;
  pointer-events: none;
}

/* The running total, right-aligned under the column of figures it adds up. */
.pk-split-total {
  margin: 4px 0 0;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pocket-text);
}

.pk-split-total.is-complete {
  color: var(--pk-green);
}

/* Colour is not the only signal: the text itself says what the total needs to be. */
.pk-split-total.is-off {
  color: var(--pk-error);
}

/* ---- Repeating table (directors, etc.) ---- */
/* Scrolls inside its own box on narrow screens so the page itself never gets a
 * horizontal scrollbar (asserted by the responsive spec). */
.pk-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  /* The containing block for anything positioned inside the table — the
   * visually-hidden "Remove" header text is position: absolute, and without
   * this it would be positioned against an ancestor outside the scroll box,
   * escape its clip at the table's far right, and widen the page by exactly
   * that much on a phone. */
  position: relative;
}

.pk-table {
  width: 100%;
  border-collapse: collapse;
}

.pk-table-th {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pocket-text-secondary);
  padding: 0 8px 6px 0;
  white-space: nowrap;
}

.pk-table-td {
  padding: 0 8px 8px 0;
  vertical-align: top;
}

.pk-table-td:last-child,
.pk-table-th:last-child {
  padding-right: 0;
}

/* Inside the repeating-rows wrapper (a flex column) the scroll box is a flex
 * item, and a flex item's min-width is `auto` — it would refuse to shrink below
 * the table's min-width and push the page wide on a phone. min-width: 0 lets it
 * shrink so overflow-x takes over, as the responsive spec asserts. */
.pk-table-rows > .pk-table-scroll {
  min-width: 0;
}

/* A table's columns size to their content, and its content is inputs, which
 * have none — so the headers decided: "Full name" got the narrowest box on the
 * row and "Professional qualifications" the widest. A floor per column kind
 * instead: words need room, figures and dates less. When the floors don't fit
 * the box, the table scrolls inside it (above), never the page. */
.pk-table-th,
.pk-table-td {
  min-width: 10rem;
}

.pk-table-th--narrow,
.pk-table-td--narrow {
  min-width: 6.5rem;
}

/* The Remove column: as narrow as its button, the button never wraps, and it
 * stays in view while the rest of the row scrolls under it — a Remove that is
 * clipped to "Re" until the client finds the horizontal scrollbar isn't one. */
.pk-table-th--actions,
.pk-table-td--actions {
  position: sticky;
  right: 0;
  width: 1%;
  min-width: 0;
  background: var(--pocket-pure-white);
  box-shadow: -8px 0 8px -8px rgba(0, 0, 0, 0.12);
}

.pk-table-td--actions {
  white-space: nowrap;
  vertical-align: middle;
}

/* ---- Percentage rows (a breakdown built row by row: states, activities) ---- */
.pk-rows,
.pk-rows-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* picker | % | remove. The picker can shrink (minmax 0) so a long activity name
 * never pushes the figure off the row; the % column reuses .pk-split-input-wrap. */
.pk-rows-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  gap: 12px;
  align-items: start;
}

.pk-rows-picker,
.pk-rows-search {
  position: relative;
  min-width: 0;
}

/* A row's listbox overlays the rows beneath instead of pushing them down, so
 * the total doesn't jump about while the client is still choosing. */
.pk-rows-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 2;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pk-rows-status:empty {
  display: none;
}

/* A clarification prompt: read, not chosen. */
.pk-occupation-result.is-clarification {
  cursor: default;
  font-style: italic;
  color: var(--pocket-text-secondary);
}

.pk-occupation-result-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  color: var(--pocket-text-secondary);
}

.pk-rows-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* A secondary outline button with a 44px
 * target. --pocket-blue-dark clears 4.5:1 on white. */
.pk-rows-add {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--pocket-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--pocket-blue-dark);
  background: none;
  border: 2px solid var(--pocket-card-border);
  border-radius: var(--pk-radius);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.pk-rows-add:hover {
  border-color: var(--pocket-primary);
}

.pk-rows-add:disabled {
  opacity: 0.6;
  cursor: default;
}

/* A quiet text button, still 44px tall so it's a real target. */
.pk-rows-remove {
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--pocket-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--pocket-text-secondary);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.pk-rows-remove:hover {
  color: var(--pk-error-dark);
}

.pk-rows-add:focus-visible,
.pk-rows-remove:focus-visible {
  outline: 2px solid var(--pocket-primary);
  outline-offset: 2px;
}

/* Both buttons set display, which beats the UA's [hidden] { display: none } —
 * the same trap noted at .pk-field[hidden] above. */
.pk-rows-add[hidden],
.pk-rows-remove[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .pk-rows-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .pk-rows-remove {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 0;
  }
}

/*
 * The wrapper carries the inset background and the focus ring; the input itself is
 * transparent. That's pocketbuilder's technique, and it means the ring can sit
 * outside the border without shifting layout.
 */
.pk-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

/* A date input is narrow (260px), so its wrapper — which paints the background and
   shadow — has to be narrow too, or the shadow runs the full column width past the
   input. */
.pk-input-wrap--date {
  max-width: 260px;
}

.pk-input-wrap::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--pk-radius) - 1px);
  background: var(--pocket-pure-white);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.pk-input-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--pk-radius);
  pointer-events: none;
  transition: box-shadow 120ms ease;
}

.pk-input-wrap:focus-within::after {
  /* A thin crisp edge plus a faint halo, rather than a bold 2px ring. */
  box-shadow: 0 0 0 1px var(--pocket-primary), 0 0 0 4px rgba(0, 119, 179, 0.14);
}

.pk-input-wrap.is-invalid::after {
  box-shadow: 0 0 0 2.5px var(--pk-error);
}

/* A currency field shows a "$" inside the box, ahead of the typed amount. It sits
   over the input (which is transparent), so the input needs room on the left. */
.pk-input-prefix {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0.875rem;
  transform: translateY(-50%);
  color: var(--pocket-text-secondary);
  font-size: 0.9375rem;
  line-height: 1;
  pointer-events: none;
}

.pk-input-wrap--currency .pk-input {
  padding-left: 1.75rem;
}

.pk-input,
.pk-select,
.pk-textarea {
  position: relative;
  display: block;
  width: 100%;
  min-height: 44px;
  appearance: none;
  border-radius: var(--pk-radius);
  padding: calc(0.625rem - 1px) calc(0.875rem - 1px);
  font-size: 0.9375rem; /* 15px — under 16px iOS zooms, so this is the floor */
  font-family: inherit;
  line-height: 1.5rem;
  color: var(--pocket-text);
  background: transparent;
  border: 1px solid var(--pocket-card-border);
  outline: none;
  transition: border-color 120ms ease;
}

/* 16px on small screens specifically, to stop iOS Safari zooming on focus. */
@media (max-width: 768px) {
  .pk-input,
  .pk-select,
  .pk-textarea {
    font-size: 1rem;
  }
}

.pk-input::placeholder,
.pk-textarea::placeholder {
  color: var(--pocket-text-secondary);
}

.pk-input:hover:not(:focus),
.pk-select:hover:not(:focus),
.pk-textarea:hover:not(:focus) {
  border-color: var(--pocket-primary);
}

.pk-input.is-invalid,
.pk-select.is-invalid,
.pk-textarea.is-invalid {
  border-color: var(--pk-error);
}

.pk-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.pk-input--date {
  max-width: 260px;
  /* Pocketbuilder's .datepicker-input-btn reads as a chosen value, not an empty
     text box — the weight is what carries that. The border, halo and focus ring
     already come from .pk-input / .pk-input-wrap, so the two match without a
     second control or any JavaScript. */
  font-weight: 600;
}

/* The native calendar affordance is the correct trigger — it is keyboard-operable
   and works with JavaScript off — so it is tinted to the palette rather than
   replaced with a popup. WebKit/Blink expose the indicator; Firefox keeps its own
   and is unaffected. A larger clickable target than the browser default, since the
   whole field reads as a button. */
.pk-input--date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
  border-radius: 4px;
  opacity: 0.65;
  transition: opacity 120ms ease, background-color 120ms ease;
}

.pk-input--date::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background-color: var(--pocket-tint);
}

.pk-select {
  /* Chevron drawn with gradients: no asset, and no data: URI in a stylesheet. */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--pocket-text-secondary) 50%),
    linear-gradient(135deg, var(--pocket-text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
  background-color: var(--pocket-pure-white);
}

/* ── cover picker (quote: your_cover) ────────────────────────────────────── */

.pk-cover-picker {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pk-cover-picker > legend {
  margin-bottom: 12px;
}

.pk-cover-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pk-cover-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pocket-text-strong);
}

.pk-cover-intro {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pocket-text-secondary);
}

.pk-cover-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pk-cover-card {
  padding: 14px 16px;
}

.pk-cover-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pk-cover-name {
  font-weight: 700;
  color: var(--pocket-text-strong);
}

.pk-cover-summary {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--pocket-text-secondary);
}

.pk-cover-why {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--pocket-blue-dark);
}

.pk-cover-more {
  border: 1px solid var(--pocket-card-border);
  border-radius: var(--pk-radius);
  background: var(--pocket-pure-white);
}

.pk-cover-more-summary {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--pocket-primary);
  cursor: pointer;
}

.pk-cover-more[open] > .pk-cover-more-summary {
  border-bottom: 1px solid var(--pocket-card-border);
}

.pk-cover-group {
  padding: 14px 16px 16px;
}

.pk-cover-group + .pk-cover-group {
  border-top: 1px solid var(--pocket-card-border);
}

.pk-cover-group-heading {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pocket-text-strong);
}

.pk-cover-group .pk-cover-name {
  font-weight: 600;
}

/* ── choices ─────────────────────────────────────────────────────────────── */

.pk-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.pk-choices--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.pk-choices--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.pk-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 11px 14px;
  background: var(--pocket-pure-white);
  border: 1px solid var(--pocket-card-border);
  border-radius: var(--pk-radius);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.pk-choice:hover {
  border-color: var(--pocket-primary);
}

/* :has lets the row respond to its own input, so the target is the whole row
 * rather than the 20px control. */
.pk-choice:has(.pk-choice-input:checked) {
  border-color: var(--pocket-primary);
  background: var(--pocket-header-bg);
  box-shadow: 0 0 0 1px var(--pocket-primary);
}

.pk-choice:has(.pk-choice-input:focus-visible) {
  outline: 2px solid var(--pocket-primary);
  outline-offset: 2px;
}

.pk-choice-input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--pocket-primary);
  flex-shrink: 0;
}

.pk-choice-label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pocket-text);
  cursor: pointer;
  flex: 1;
}

.pk-choices--inline .pk-choice {
  min-width: 92px;
}

/* ── single checkbox (display: checkbox) ─────────────────────────────────── */

/* For the questions that read as an opt-out rather than a question — "I don't
 * have a website", "I'm an individual or I don't have an ABN or ACN". The label
 * sits beside the box and is part of the click target. */
.pk-checkbox-single {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pk-checkbox-input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--pocket-primary);
  flex-shrink: 0;
}

.pk-checkbox-label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pocket-text-secondary);
  cursor: pointer;
}

/* ── segmented choice (display: segmented) ───────────────────────────────── */

/* A short, familiar set — the eight states — as a row of buttons rather than a
 * stack of radios or a dropdown. One tap on a phone instead of three, and all
 * the options are visible at once.
 *
 * Still real radios underneath: the input is visually hidden rather than
 * removed, so it keeps its name, its value, its keyboard behaviour and its
 * announcement as a radio group. Only the paint changes. */
.pk-choices--segmented {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.pk-choices--segmented .pk-choice {
  padding: 0;
  border: 0;
  background: none;
  min-width: 0;
}

/* Not display:none, which would take it out of the tab order and the
 * accessibility tree along with the paint. */
.pk-choices--segmented .pk-choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pk-choices--segmented .pk-choice-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--pocket-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--pocket-text);
  background: var(--pocket-pure-white);
  border: 1.5px solid var(--pocket-card-border);
  border-radius: var(--pk-radius);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.pk-choices--segmented .pk-choice-label:hover {
  border-color: var(--pocket-primary);
}

.pk-choices--segmented .pk-choice-input:checked + .pk-choice-label {
  border-color: var(--pocket-primary);
  color: var(--pocket-primary);
  box-shadow: inset 0 0 0 1px var(--pocket-primary);
}

/* The focus ring has to move to the label, since the input it belongs to is
 * clipped to a pixel. */
.pk-choices--segmented .pk-choice-input:focus-visible + .pk-choice-label {
  outline: 2px solid var(--pocket-primary);
  outline-offset: 2px;
}

/* ── a renewal a broker prepared ─────────────────────────────────────────── */

.pk-renewal-intro {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--pocket-header-bg);
  border-left: 3px solid var(--pocket-link);
  border-radius: var(--pk-radius);
}

.pk-renewal-intro p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--pocket-text);
}

/* ── a value we already hold ─────────────────────────────────────────────── */

.pk-confirmed {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 16px;
  background: var(--pocket-header-bg);
  border: 1px solid var(--pocket-topbar-border);
  border-radius: var(--pk-radius);
}

.pk-confirmed-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pocket-text-secondary);
}

.pk-confirmed-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pocket-text);
}

.pk-confirmed-note {
  font-size: 0.75rem;
  color: var(--pocket-text-secondary);
  margin-left: auto;
}

/* The way out of a value we got wrong. Quiet, because most of them are right —
   but always there, because a client has to be able to correct their own record. */
.pk-confirmed-change {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pocket-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pk-confirmed-change:hover,
.pk-confirmed-change:focus-visible {
  text-decoration-thickness: 2px;
}

.pk-statement {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--pocket-text);
}

/* ── signature ───────────────────────────────────────────────────────────── */

/* The declaration clauses the client agrees to. Numbered so a broker and a
 * client can refer to "clause 3" later, set on a tinted panel so it reads as the
 * fixed wording it is rather than more of the form to fill in. */
.pk-declaration {
  margin: 0 0 20px;
  padding: 16px 20px 16px 40px;
  background: var(--pocket-tint);
  border: 1px solid var(--pocket-card-border);
  border-radius: var(--pk-radius);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--pocket-text);
}

.pk-declaration-clause {
  margin: 0;
}

.pk-declaration-clause + .pk-declaration-clause {
  margin-top: 10px;
}

/* A clause may link out to a document the client is agreeing to — the Terms of
 * Engagement and the Financial Services Guide. Underlined against the tinted
 * panel so they read as links, not as emphasis. */
.pk-declaration-clause a {
  color: var(--pocket-blue-dark);
  text-decoration: underline;
}

.pk-signature-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--pocket-card-border);
  border-radius: var(--pk-radius);
  background: var(--pocket-pure-white);
  box-shadow: 0 12px 30px rgba(13, 45, 71, 0.07);
}

.pk-signature-name {
  max-width: 460px;
}

.pk-signature-name > .pk-label {
  display: block;
  margin-bottom: 6px;
}

.pk-signature-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--pocket-text-secondary);
}

.pk-signature-agree {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--pocket-card-border);
}

/* ── navigation row ──────────────────────────────────────────────────────── */

.quote-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--pocket-card-border);
}

.q-btn-continue {
  font-family: var(--pocket-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--pocket-pure-white);
  background: var(--pocket-primary);
  border: none;
  padding: 14px 36px;
  border-radius: var(--pk-radius);
  min-height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* The book-a-call button inside the confirmation contact card: full-width,
 * centred, and no link underline. */
.q-contact-cta {
  display: flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.q-btn-continue:hover {
  background: var(--pocket-blue-dark);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.q-btn-continue:active {
  transform: translateY(0);
}

.q-btn-back {
  font-family: var(--pocket-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--pocket-text-secondary);
  background: none;
  border: 2px solid var(--pocket-card-border);
  padding: 12px 26px;
  border-radius: var(--pk-radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.q-btn-back:hover {
  border-color: var(--pocket-primary);
  color: var(--pocket-primary);
  transform: translateY(-1.5px);
}

/* ── right column ────────────────────────────────────────────────────────── */

.quote-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.q-side-panel {
  background: var(--pocket-header-bg);
  border: 1px solid var(--pocket-topbar-border);
  border-radius: var(--pocket-card-radius);
}

.q-side-panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--pocket-topbar-border);
}

.q-side-panel-header-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pocket-text-secondary);
  margin: 0 0 4px;
}

.q-side-panel-header-title {
  font-size: 20px;
  font-weight: 700;
  /* Not --pocket-primary: on the pale panel that is 4.33:1, under the 4.5:1 axe
   * requires for text. pocketbuilder uses primary here and fails the same check. */
  color: var(--pocket-blue-dark);
  letter-spacing: -0.02em;
  font-family: var(--pocket-font-display);
  margin: 0;
}

.q-side-panel-body {
  padding: 4px 22px 18px;
}

.q-tip {
  padding: 14px 0;
  border-bottom: 1px solid var(--pocket-topbar-border);
}

.q-tip:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.q-tip-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pocket-text);
  margin: 0 0 4px;
}

.q-tip-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pk-green-light);
  border: 1px solid var(--pk-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.q-tip-check svg {
  width: 9px;
  height: 9px;
  stroke: var(--pk-green);
  fill: none;
  stroke-width: 2.5;
}

.q-tip-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--pocket-text-secondary);
  margin: 0 0 0 28px;
}

/* ── entered details ─────────────────────────────────────────────────────── */

.q-detail-card {
  background: var(--pocket-pure-white);
  border: 1px solid var(--pocket-card-border);
  border-radius: var(--pocket-card-radius);
  overflow: hidden;
}

/* A small, quiet reassurance under the details card, on underwriting forms. */
.q-reassure-card {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--pocket-pale-blue);
  border-radius: var(--pocket-card-radius);
}

.q-reassure-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--pocket-blue-dark);
}

/* Confirmation-page intro and lead-magnet download button. */
.pk-confirm-intro {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pocket-text);
}

.pk-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px 22px;
  font-family: var(--pocket-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--pocket-pure-white);
  background: var(--pocket-primary);
  border-radius: var(--pk-radius);
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.pk-download:hover {
  background: var(--pocket-blue-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.pk-download-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ---- Payment card step ---- */
/* Stripe mounts its card iframe inside this; we style the box, Stripe styles the
 * field within its own frame. Stripe toggles the StripeElement-- classes. */
.pk-card-element {
  min-height: 44px;
  padding: 13px 14px;
  border: 1px solid var(--pocket-card-border);
  border-radius: var(--pk-radius);
  background: var(--pocket-pure-white);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.pk-card-element.StripeElement--focus {
  border-color: var(--pocket-primary);
  box-shadow: 0 0 0 1px var(--pocket-primary);
}

.pk-card-element.StripeElement--invalid {
  border-color: var(--pk-error);
}

.pk-pay-button {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.pk-pay-note {
  margin-top: 12px;
  text-align: center;
}

.pk-receipt {
  margin: 0 0 20px;
  border: 1px solid var(--pocket-card-border);
  border-radius: var(--pk-radius);
  overflow: hidden;
}

.pk-receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--pocket-card-border);
  font-size: 0.9375rem;
}

.pk-receipt-row:first-child {
  border-top: 0;
}

.pk-receipt-row dt {
  color: var(--pocket-text-secondary);
  margin: 0;
}

.pk-receipt-row dd {
  margin: 0;
  font-weight: 700;
  color: var(--pocket-text);
}

/* The total line of a payment breakdown — the figure the card is actually hit
   for, so it reads heavier than the amount and fee above it. */
.pk-receipt-total {
  background: var(--pocket-header-bg);
}

.pk-receipt-total dt {
  color: var(--pocket-text);
  font-weight: 700;
}

.pk-receipt-total dd {
  font-size: 1.0625rem;
}

.q-detail-card-header {
  background: var(--pocket-header-bg);
  border-bottom: 1px solid var(--pocket-card-border);
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.q-detail-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pocket-text-secondary);
  margin: 0;
}

.q-detail-card-edit {
  font-size: 12px;
  font-weight: 700;
  /* Sits on the pale card header — see the note on .q-side-panel-header-title. */
  color: var(--pocket-blue-dark);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Grouped by step, with a rule between groups rather than one per row — the flat
 * ruled table was unreadable once a quote reached a dozen pages. */
.q-detail-group {
  padding: 14px 22px;
  border-bottom: 1px solid var(--pocket-card-border);
}

.q-detail-group:last-child {
  border-bottom: none;
}

.q-detail-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.q-detail-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pocket-primary);
}

/* Sentence-style: a muted label and the answer on one line, left-aligned and
 * wrapping, rather than two columns pushed to opposite edges. */
.q-detail-line {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.5;
}

.q-detail-line:last-child {
  margin-bottom: 0;
}

.q-detail-line-label {
  color: var(--pocket-text-secondary);
}

.q-detail-line-value {
  color: var(--pocket-text);
  font-weight: 700;
  /* break-word, not anywhere: `anywhere` split "Yes" across lines; this only
   * breaks a word that cannot fit alone, which is what a long email needs. */
  overflow-wrap: break-word;
}

.q-detail-empty {
  padding: 16px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--pocket-text-secondary);
  margin: 0;
}

.form-footnote {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--pocket-text-secondary);
  margin: 20px 0 0;
}

/* Save and resume — a quiet affordance under the page, not competing with the
 * Continue button. */
.form-resume {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--pocket-card-border);
}

.form-resume-note {
  font-size: 0.8125rem;
  color: var(--pk-green);
  margin: 0 0 10px;
}

.form-resume-btn {
  /* A <button> uses the UA control font unless told otherwise, so an inline text
     link built from one renders in the wrong typeface next to the body copy. */
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pocket-blue-dark);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-resume-btn:hover {
  color: var(--pocket-primary);
}

/* ── review ──────────────────────────────────────────────────────────────── */

.review-block + .review-block {
  margin-top: 28px;
}

.review-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pocket-card-border);
}

.review-block-title {
  font-family: var(--pocket-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--pocket-primary);
  margin: 0;
}

.review-change {
  font-size: 13px;
  font-weight: 700;
  color: var(--pocket-primary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.review-section + .review-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--pocket-card-border);
}

.review-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pocket-text-secondary);
  margin: 0 0 8px;
}

/* Sentence-style, shared with the summary card: a muted label then the answer on
 * one line, wrapping, rather than a two-column grid. */
.review-line {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.review-line:last-child {
  margin-bottom: 0;
}

.review-line-label {
  color: var(--pocket-text-secondary);
}

.review-line-value {
  color: var(--pocket-text);
  font-weight: 700;
  overflow-wrap: break-word;
}

/* ── confirmation ────────────────────────────────────────────────────────── */

.pk-success-banner {
  /* A contained banner aligned to the canvas, not a full-bleed bar — the same
   * 1200px measure and gutters as .quote-two-col below it. */
  max-width: var(--pk-max);
  margin: 24px auto 0;
  background: var(--pk-green);
  padding: 18px 40px;
  border-radius: var(--pocket-card-radius);
}

.pk-success-banner-inner {
  max-width: var(--pk-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pk-success-banner-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pk-success-banner-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--pocket-pure-white);
  fill: none;
  stroke-width: 2.5;
}

.pk-success-banner-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--pocket-pure-white);
  margin: 0;
}

.pk-success-banner-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  margin: 1px 0 0;
}

.pk-hero {
  padding: 36px 40px 32px;
  background: var(--pocket-header-bg);
  border-bottom: 1px solid var(--pocket-card-border);
}

.pk-hero-product {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pocket-text-secondary);
  margin: 0 0 6px;
}

.pk-hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--pocket-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-family: var(--pocket-font-display);
  margin: 0;
}

.pk-hero-ref {
  font-size: 12px;
  color: var(--pocket-text-secondary);
  margin: 8px 0 0;
  letter-spacing: 0.02em;
}

.pk-main-card {
  background: var(--pocket-pure-white);
  border: 1px solid var(--pocket-card-border);
  border-radius: var(--pocket-card-radius);
  overflow: hidden;
}

.pk-card-body {
  padding: 28px 40px 32px;
}

.pk-next-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pk-step;
}

.pk-next-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pocket-card-border);
}

.pk-next-step:last-child {
  border-bottom: none;
}

.pk-next-step-index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pocket-header-bg);
  border: 1px solid var(--pocket-topbar-border);
  color: var(--pocket-primary);
  font-family: var(--pocket-font-display);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pk-next-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pocket-text);
  margin: 0 0 2px;
}

.pk-next-step-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--pocket-text-secondary);
  margin: 0;
}

/* ── 900px ───────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .quote-two-col {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 40px 44px;
  }

  .quote-two-col > :first-child {
    padding-right: 0;
  }

  /* The aside stops being a sidebar and becomes a footer to the form. */
  .quote-two-col > :last-child {
    padding-left: 0;
    position: static;
    margin-top: 32px;
  }

  .quote-progress-track {
    width: 160px;
  }

  .q-form-card-title {
    font-size: 24px;
  }
}

/* ── 768px ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .quote-two-col {
    padding: 24px 20px 40px;
  }

  .quote-progress-wrap {
    padding: 12px 20px;
  }

  .quote-progress-track {
    width: 90px;
  }

  .q-form-card-title {
    font-size: 22px;
  }

  .pk-choices--grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-nav-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .quote-nav-row .q-btn-continue,
  .quote-nav-row .q-btn-back {
    width: 100%;
    justify-content: center;
  }

  .pk-hero,
  .pk-card-body {
    padding-left: 22px;
    padding-right: 22px;
  }

  .pk-success-banner {
    margin: 16px 20px 0;
    padding: 14px 22px;
  }

  .pk-confirmed-note {
    margin-left: 0;
  }

  .pk-confirmed-change {
    margin-left: auto;
  }
}

/* An admin's edit of a submission (Admin::FormEdit): a plain, unmissable strip
   so the page can never be mistaken for the client's own form. */
.form-admin-edit {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px 18px;
  border: 1px solid #f0b75e;
  border-left-width: 4px;
  border-radius: var(--pk-radius);
  background: #fff7e8;
  color: #4a2c00;
}

.form-admin-edit-title {
  margin: 0 0 4px;
  font-weight: 800;
}

.form-admin-edit-body {
  margin: 0;
  font-size: 0.875rem;
}

.form-admin-edit-body a {
  color: inherit;
  font-weight: 700;
}

/* The after-saving choices on the last step of an admin's edit. */
.form-admin-followups {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #f0b75e;
  border-radius: var(--pk-radius);
  background: #fff7e8;
}

.form-admin-followups-title {
  padding: 0 6px;
  font-weight: 800;
  color: #4a2c00;
}

.form-admin-followups-note {
  margin: 0;
  font-size: 0.8125rem;
  color: #4a2c00;
}

/* source: narrow.css */
/* ============================================================================
   Very narrow screens — below 320 CSS px, i.e. a small phone zoomed in (a 375px
   phone at 200% is 188px wide). Bundled after the page stylesheets so it wins
   at equal specificity.

   Each display heading scales with the viewport using the vw value that equals
   its existing phone size at exactly 320px, so nothing changes at 320px and up
   and there is no jump at the breakpoint. Keep the pairs in step: if a phone
   heading size changes elsewhere, change its vw here to (px / 3.2).
   ========================================================================== */

/* Safety net at every width: a single word too long for its box (a big heading
   on a tiny screen) breaks instead of pushing the page sideways. It only kicks
   in when the word can't fit, so normal layouts are unaffected. */
h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }

@media (max-width: 319.98px) {
  h1 { font-size: 15vw; }                         /* 3rem (48px) */
  .hero-h1,
  .section-h2,
  .cta-h2 { font-size: 10vw; }                    /* 32px */
  .insight-title,
  .magnet-hook-heading { font-size: 9.375vw; }    /* 30px */
  .link-grid-group-heading,
  .lifecycle-heading,
  .pk-hero-title { font-size: 8.75vw; }           /* 28px */
  .split-card-heading,
  .answer-block-question { font-size: 8.4375vw; } /* 27px */
  .q-form-card-title { font-size: 7.5vw; }        /* 24px */

  /* Things that refuse to wrap at phone widths and so set the page's minimum
     width once the screen is narrower than they are. */
  .btn-blue, .btn-primary, .btn-cta, .btn-outline { white-space: normal; }
  .doc-version-item { white-space: normal; }
  .insight-byline { flex-wrap: wrap; }
  .quote-progress-track { width: 40vw; }          /* 160px at 400px */
  .landing-header-inner { flex-wrap: wrap; row-gap: 8px; }  /* logo + CTA */
}

/* source: admin.css */
.admin-body {
  background: #f6f8fa;
  color: #17242c;
  font-family: var(--pocket-font-body);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0 24px;
  border-bottom: 1px solid #d9e2e8;
  margin-bottom: 28px;
}

.admin-nav-link,
.admin-link,
.admin-small-link {
  color: var(--pocket-blue-dark);
  font-weight: 700;
}

.admin-nav-email {
  margin-left: auto;
  color: var(--pocket-text-secondary);
  font-size: 0.9rem;
}

/* A delivery's PDF, by the name the client received it under. */
.admin-filename {
  font-size: 0.8rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-auth {
  max-width: 420px;
  margin: 15vh auto 0;
  padding: 28px;
  background: #fff;
  border: 1px solid #d9e2e8;
  border-radius: 8px;
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-page-header h1,
.admin-auth h1 {
  color: #17242c;
  font-family: var(--pocket-font-body);
  font-size: 1.65rem;
  letter-spacing: 0;
}

.admin-kicker {
  margin: 0 0 4px;
  color: var(--pocket-text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-form,
.admin-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-filters {
  padding: 16px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #d9e2e8;
  border-radius: 8px;
}

.admin-field {
  display: grid;
  gap: 6px;
}

.admin-field label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pocket-text-secondary);
}

.admin-field input,
.admin-field select {
  min-height: 40px;
  min-width: 170px;
  border: 1px solid #c9d5dd;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}

.admin-button,
.admin-small-button {
  border: 0;
  border-radius: 6px;
  background: var(--pocket-accent);
  color: #17242c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-button {
  min-height: 40px;
  padding: 9px 16px;
}

.admin-small-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.admin-flash {
  padding: 10px 12px;
  border-radius: 6px;
  margin: 0 0 16px;
  font-weight: 700;
}

.admin-flash--notice {
  background: #e7f3f8;
  color: var(--pocket-blue-deeper);
}

.admin-flash--alert {
  background: #fff3e4;
  color: #7a3b00;
}

.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2e8;
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f4;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--pocket-text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-muted {
  color: var(--pocket-text-secondary);
}

.admin-empty {
  color: var(--pocket-text-secondary);
  text-align: center;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf5f9;
  color: var(--pocket-blue-deeper);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.admin-section {
  margin-top: 28px;
}

.admin-section h2 {
  color: #17242c;
  font-family: var(--pocket-font-body);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-summary-grid div {
  padding: 14px;
  background: #fff;
  border: 1px solid #d9e2e8;
  border-radius: 8px;
}

.admin-summary-grid span {
  display: block;
  color: var(--pocket-text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-summary-grid strong {
  display: block;
  margin-top: 4px;
}

.admin-value {
  max-width: 560px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 768px) {
  .admin-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .admin-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-nav-email {
    margin-left: 0;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
}

.admin-button-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.admin-edit-intro {
  margin: -8px 0 20px;
}

.admin-edit-input input,
.admin-edit-input select,
.admin-edit-input textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid #c9d5dd;
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  background: #fff;
}

.admin-edit-input .admin-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.admin-edit-row--error td {
  background: #fff3e4;
}

.admin-field-error {
  margin: 6px 0 0;
  color: #7a3b00;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-edit-followups {
  display: grid;
  gap: 10px;
  margin: 24px 0 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d9e2e8;
  border-radius: 8px;
}

.admin-edit-followups legend {
  padding: 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pocket-text-secondary);
  text-transform: uppercase;
}

.admin-resolve-form {
  display: flex;
  gap: 6px;
}

.admin-resolve-form input {
  min-height: 32px;
  min-width: 200px;
  border: 1px solid #c9d5dd;
  border-radius: 6px;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.82rem;
}

.admin-button-quiet {
  background: #edf1f4;
}

.admin-edit-reason {
  margin-top: 24px;
}

.admin-edit-reason input {
  min-width: min(520px, 100%);
}

.admin-value--before {
  color: var(--pocket-text-secondary);
  text-decoration: line-through;
}

.admin-edit-pdf-name {
  margin: 0;
  font-size: 0.85rem;
}

.admin-edit-pdf-name code {
  overflow-wrap: anywhere;
}

/* Market slips panel (admin/market_slips/_panel) */
.admin-market-slip {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dbe6ee;
}

.admin-market-slip h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}

.admin-market-slip h4 {
  margin: 18px 0 8px;
  font-size: 0.9rem;
}

.admin-slip-versions {
  margin: 0;
  padding-left: 18px;
}

.admin-market-slip .admin-code {
  overflow-wrap: anywhere;
}
