
/* Brand variables for the shared house layer */
:root {
  --h-ink: #0a1433; --h-primary: #1f45c8; --h-primary-hover: #1a3aa8;
  --h-mark: #d9a93a; --h-mark-text: #8a6410; --h-soft: #7282a6;
  --h-tint: #eef3fc; --h-tint-line: #d6e0f2;
}
/* ============================================================
   HurdleCalls v4. Structure: split two-tone hero,
   full-width panel, hairline figures, numbered rules, tint band with
   expandable rows, fitted giant line). Light surfaces only, no tags,
   no pills. Colours from the logo: navy, royal, gold; cool greys.
   Archivo at normal width, light weight, for the two-tone display.
   ============================================================ */
:root {
  --soft-tone: #7282a6;     /* headline second tone: 3.7:1 on white, large text only */
  --tint: #eef3fc;
  --tint-line: #d6e0f2;
  --grey-1: #f4f6fa;
  --maxw: 1240px;
}
@media (min-width: 1600px) { :root { --maxw: 1320px; } }

/* Type: light grotesk, two tone */
h1, h2 { font-weight: 400; font-stretch: 100%; letter-spacing: -.035em; line-height: 1.04; }
h3 { font-stretch: 100%; font-weight: 600; letter-spacing: -.01em; }
.duo { color: var(--navy-900); }
.duo .soft { color: var(--soft-tone); }
h1.duo { font-size: clamp(2.6rem, 6.4vw, 5.4rem); margin: 0; max-width: 13ch; }
h2.duo { font-size: clamp(1.9rem, 3.8vw, 3.2rem); margin: 0; max-width: 20ch; }
.lead { color: var(--slate); }

/* Controls */
.btn { border-radius: 6px; min-height: 48px; padding: 12px 22px; box-shadow: none; }
.btn:hover { transform: none; box-shadow: none; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: none; }
.btn-gold:hover { background: #e3b64b; color: var(--navy-900); box-shadow: none; }
.btn-primary { background: var(--royal-600); }
.btn-primary:hover { background: var(--royal-700); box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-900); padding: 10px 0; border-bottom: 1px solid var(--navy-900); text-decoration: none; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--royal-600); border-color: var(--royal-600); text-decoration: none; }
.link-arrow:hover span { transform: translateX(4px); }

/* Header: flat, underline nav */
.nav { height: 80px; }
.nav-links a { background: none !important; border-radius: 0; padding: 8px 0; color: var(--slate); }
.nav-links a:hover { color: var(--navy-900); }
.nav-links a.active { color: var(--navy-900); background: none; }
.nav-links a.active::after { display: block; content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-500); }
.nav-links { gap: 28px; }
.feedstrip-track { padding-left: 24px; }

/* Hero */
.c4-hero { padding: 88px 0 0; }
.c4-hero-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 64px; align-items: end; padding-bottom: 56px; }
.c4-aside p { color: var(--slate); font-size: 1.08rem; max-width: 42ch; margin-bottom: 26px; }
.c4-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.c4-actions.center { justify-content: center; }

/* Next-call panel */
.next4 { display: grid; grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px 40px; background: linear-gradient(180deg, var(--tint), #f8fafe); border: 1px solid var(--tint-line); border-radius: 16px; }
.next4-when { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--font-mono); font-size: .82rem; color: var(--slate); }
.next4 h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; }
.next4 h2 a { color: var(--navy-900); }
.next4 h2 a:hover { color: var(--royal-600); text-decoration: none; }
.next4-sub { margin: 0; color: var(--slate); max-width: 52ch; }
.next4-cd { min-width: 280px; border: 0; gap: 8px; }
.next4-cd > div { background: #fff; border: 1px solid var(--tint-line); border-radius: 10px; }
.next4-side { display: grid; gap: 14px; justify-items: start; }
.next4-side .meter { width: 100%; margin: 0 0 4px; }
.next4-side .meter-row { margin-bottom: 10px; }
.next4-price { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-800); }

/* Figures */
.figures4 { margin: 0; padding: 72px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures4 > div { padding: 0 28px; border-left: 1px solid var(--line); }
.figures4 > div:first-child { padding-left: 0; border-left: 0; }
.figures4 dd { margin: 0 0 14px; }
.figures4 b { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 4.4vw, 3.8rem); letter-spacing: -.04em; line-height: 1; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.figures4 dt { color: var(--muted); font-size: .92rem; max-width: 26ch; }

/* Numbered rule */
.rule4 { display: flex; justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--line); margin-bottom: 40px; }
.rule4 span { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.head4 { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head-solo { margin-bottom: 48px !important; }
.section-grey { background: var(--grey-1); }

/* Rundown: flat hairline rows (overrides the v3 card look) */
.rundown { display: block; border-top: 1px solid var(--navy-900); }
.run { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 28px 0; grid-template-columns: 150px minmax(0, 1fr) 200px 170px; }
.run:hover { transform: none; box-shadow: none; background: transparent; border-color: var(--line); }
.band .run:hover, .run:hover { background: transparent; }
.run:hover h3 { color: var(--royal-600); }
.run-when { background: none; padding: 0; border-radius: 0; }
.run h3 { font-weight: 500; font-size: 1.4rem; }
.run .note { color: var(--muted); font-weight: 500; }
.run-cta { justify-content: flex-end; }
.spot::before { display: none; }

/* How it works band */
.band4c { background: var(--tint); padding: 96px 0 0; overflow: hidden; }
.band4c .rule4 { border-top-color: var(--tint-line); }
.band4c-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.acc details { border-bottom: 1px solid var(--tint-line); }
.acc details:first-child { border-top: 1px solid var(--tint-line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 1.1rem; font-weight: 600; color: var(--navy-900); min-height: 44px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--royal-600); }
.acc summary i { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.acc summary i::before, .acc summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--slate); transition: transform .35s var(--ease), background-color .3s; }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i::after { transform: rotate(0deg); }
.acc details[open] summary i::before, .acc details[open] summary i::after { background: var(--gold-600); }
.acc p { margin: 0 0 24px; color: var(--slate); max-width: 48ch; }
@media (prefers-reduced-motion: no-preference) { .acc details[open] p { animation: fxm-rise .45s var(--ease) both; --fxm-rise: 8px; } }

/* Fitted giant line (motion.js sets the exact size; vw is the fallback) */
.fit-wrap { padding-top: 88px; padding-bottom: 56px; }
.fit-text { display: inline-block; margin: 0; white-space: nowrap; font-family: var(--font-display); font-weight: 300; font-size: 14vw; line-height: .95; letter-spacing: -.05em; color: var(--navy-900); }
.fit-text span { color: #b7c3dc; }

/* Host */
.host4 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.host4 .lead { margin: 24px 0 14px; }
.host4 .link-arrow { margin-top: 12px; }
.quote4 { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; position: relative; overflow: hidden; }
.quote4::before { content: ''; position: absolute; right: 36px; top: 36px; width: 28px; height: 90px; background: linear-gradient(180deg, var(--gold-300), var(--gold-600)); transform: skewY(-18deg); opacity: .9; }
.quote4 blockquote { margin: 0 0 24px; padding-right: 56px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.3; letter-spacing: -.02em; color: var(--navy-900); }
.quote4 figcaption { padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* From the desk */
.desk4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.desk4-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 20px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.desk4-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.desk4-body { margin: 0; color: var(--navy-900); font-size: 1.02rem; line-height: 1.5; flex: 1; }
.desk4-by { margin: 0; font-size: .86rem; color: var(--muted); }
.desk4-by b { color: var(--navy-900); }
.desk4-by span { font-family: var(--font-mono); font-size: .78rem; margin-left: 6px; }

/* Closing */
.close4c { background: var(--tint); padding: 112px 0 120px; text-align: center; border-top: 1px solid var(--tint-line); }
.close4c h2.duo { margin: 0 auto 18px; max-width: 18ch; }
.close4c p { color: var(--slate); max-width: 46ch; margin: 0 auto 32px; }
.footer { margin-top: 0; border-radius: 0; }

/* Inner-page heroes lose the rounded stage for the flat system */
.detail-hero, .dash-head { margin: 0; border-radius: 0; border-width: 0 0 1px; }
.detail-hero h1, .dash-head h1 { font-weight: 400; letter-spacing: -.035em; }
.auth-aside { border-radius: 0; }
.panel { border-radius: 12px; }
.bundle { border-radius: 12px; }
.step { border-radius: 12px; }
.hero { border-radius: 0; margin: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { .desk4-item, .acc details[open] p { animation: none !important; transform: none !important; } }

/* Responsive */
@media (max-width: 1080px) {
  .next4 { grid-template-columns: minmax(0, 1fr) auto; }
  .next4-side { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; }
  .desk4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) and (min-width: 641px) {
  .run { grid-template-columns: 130px minmax(0, 1fr); gap: 16px 24px; }
  .run .meter { grid-column: 2; max-width: 360px; }
  .run-cta { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 960px) {
  .c4-hero-top, .band4c-grid, .host4 { grid-template-columns: 1fr; gap: 32px; }
  .figures4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .figures4 > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .nav-links.open a::after { display: none !important; }
}
@media (max-width: 720px) {
  .next4 { grid-template-columns: 1fr; padding: 26px 22px; gap: 24px; }
  .next4-cd { min-width: 0; }
  .next4-side { grid-template-columns: 1fr; justify-items: stretch; }
  .next4-side .btn { width: 100%; }
}
@media (max-width: 640px) {
  .c4-hero { padding-top: 56px; }
  .figures4 { grid-template-columns: 1fr; padding: 56px 0; }
  .figures4 > div { padding: 0 0 24px; border-left: 0; border-bottom: 1px solid var(--line); }
  .run { grid-template-columns: 1fr; padding: 22px 0; }
  .run-cta { justify-content: flex-start; }
  .band4c { padding-top: 72px; }
  .desk4 { grid-template-columns: 1fr; }
  .quote4 { padding: 28px 22px; }
  .close4c { padding: 80px 0 88px; }
}

/* Small phones: logo + wordmark + CTA + menu need ~390px, so the CTA moves into the menu. */
.nav-mobile-only { display: none; }
@media (max-width: 420px) {
  .nav-cta .btn-primary { display: none; }
  .nav-links.open .nav-mobile-only { display: block; }
  .brand-name { font-size: .95rem; }
}
