/* Second Chair site. Brand values come from the Second Chair app: blue #0033A0, Inter, white and near-black.
   Barlow Condensed is used for the large uppercase lines only. */

:root {
  --blue: #0033A0;
  --blue-deep: #00164D;
  --navy: #061033;
  --blue-bright: #2C5FE0;
  --blue-soft: #DCE6F7;
  --sky: #B9C8EC;
  --ink: #0B1220;
  --muted: #55607A;
  --line: #D5DBE7;
  --paper: #F2F4F8;
  --white: #FFFFFF;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .deep :focus-visible, .hero :focus-visible, .foot :focus-visible, .bar :focus-visible { outline-color: var(--white); }
.defs { position: absolute; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* line art */
.frame path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ico { width: 18px; height: 18px; flex: none; }
.ico.big { width: 64px; height: 56px; }
.mark { width: 74px; height: 64px; color: var(--blue-soft); }

/* shared type */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.display { font: 600 clamp(52px, 9.2vw, 132px)/0.92 var(--display); letter-spacing: -0.005em; text-transform: uppercase; text-wrap: balance; }
.display span { font-weight: 500; font-size: 0.52em; letter-spacing: 0.01em; vertical-align: 0.34em; }
.fine { font-size: 13.5px; }
.center { text-align: center; justify-content: center; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease; }
.pill:active { transform: translateY(1px); }
.pill.solid { background: var(--white); color: var(--blue-deep); }
.pill.solid:hover { background: var(--blue-soft); }
.pill.ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.pill.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.pill.light { background: var(--blue-soft); color: var(--blue-deep); }
.pill.light:hover { background: var(--white); }
.pill.outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.pill.outline:hover { border-color: var(--muted); }
.membership .pill.solid { background: var(--blue); color: var(--white); }
.membership .pill.solid:hover { background: var(--blue-deep); }
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } .pill:active { transform: none; } }

/* floating bar: links, the mark in the middle, links */
.bar { position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 2 * var(--gutter)), 980px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(6, 16, 51, 0.42); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--white); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); transition: background 0.2s ease; }
.bar.is-stuck { background: rgba(6, 16, 51, 0.9); }
.bar-links { display: flex; gap: 2px; min-width: 0; }
.bar-right { justify-content: flex-end; }
.bar-links a { padding: 9px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.bar-links a:hover { background: rgba(255, 255, 255, 0.14); }
.bar-logo { display: grid; place-items: center; width: 64px; height: 52px; margin: -14px 6px; border-radius: 16px; background: linear-gradient(180deg, #1D55CF 0%, var(--blue) 100%); box-shadow: 0 8px 20px -10px rgba(0, 22, 77, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.bar-logo img { width: 40px; height: auto; }
@media (max-width: 860px) {
  .bar { grid-template-columns: auto 1fr; padding-left: 6px; }
  .bar-logo { order: -1; margin: -8px 4px -8px 0; width: 52px; height: 46px; }
  .bar-left { display: none; }
  .bar-links a { padding: 9px 10px; font-size: 11.5px; letter-spacing: 0.06em; }
}
@media (max-width: 420px) { .bar-right a:first-child { display: none; } }

/* 1. opening */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px var(--gutter) clamp(40px, 7vh, 80px); color: var(--white); overflow: hidden;
  background: radial-gradient(1100px 520px at 84% -6%, rgba(120, 160, 255, 0.5), transparent 62%), linear-gradient(140deg, var(--navy) 0%, #00287F 54%, #0B46C4 100%); }
.hero-art { position: absolute; right: var(--gutter); bottom: clamp(40px, 7vh, 80px); width: min(58vw, 860px); color: rgba(185, 200, 236, 0.26); }
.hero-art svg { width: 100%; height: auto; }
.hero-art .second { color: var(--white); }
@media (max-width: 860px) {
  .hero-art { right: 16px; left: 16px; bottom: auto; top: 108px; width: auto; }
}
/* opening footage, when main.js names a video or a still: the blue stays on top so the words stay readable */
.hero.has-film { background-image: linear-gradient(100deg, rgba(6, 16, 51, 0.9) 0%, rgba(0, 40, 127, 0.72) 46%, rgba(0, 51, 160, 0.38) 100%), var(--film-poster, none); background-size: cover; background-position: center; }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-film::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(6, 16, 51, 0.9) 0%, rgba(0, 40, 127, 0.72) 46%, rgba(0, 51, 160, 0.38) 100%); }
.hero.has-film .hero-art { display: none; }
.hero.has-film .hero-copy { z-index: 1; }
.hero-copy { position: relative; max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.hero .eyebrow { color: var(--sky); }
.hero h1 { font: 400 clamp(46px, 7.4vw, 96px)/1 var(--body); letter-spacing: -0.045em; }
.hero .lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; color: rgba(255, 255, 255, 0.9); max-width: 30ch; }
.hero .fine { color: var(--sky); }

/* 2. sundays */
.dark { background: var(--navy); color: var(--white); }
.statement { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gutter); overflow: hidden; }
.statement-copy { position: relative; z-index: 1; max-width: 900px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.statement .eyebrow { color: var(--sky); }
.statement .display { color: var(--blue-soft); }
.statement-copy > p:not(.eyebrow) { max-width: 46ch; color: rgba(255, 255, 255, 0.86); }
.tile { position: absolute; width: 220px; padding: 16px 18px 18px; border-radius: var(--r); background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; gap: 4px; }
.tile b { font: 600 34px/1.1 var(--body); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile-tag { align-self: flex-start; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 2px 8px; border-radius: 999px; }
.tile-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.meter { position: relative; height: 8px; border-radius: 4px; background: #E9EDF4; margin-top: 8px; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--blue); }
.meter u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.t1 { left: max(var(--gutter), 6%); top: 16%; rotate: -5deg; }
.t2 { right: max(var(--gutter), 7%); top: 22%; rotate: 4deg; }
.t3 { left: max(var(--gutter), 14%); bottom: 12%; rotate: 3deg; }
@media (max-width: 1100px) { .t3 { display: none; } .tile { width: 190px; } .t1 { top: 9%; } .t2 { top: auto; bottom: 7%; } }
@media (max-width: 640px) { .statement { padding-top: 150px; padding-bottom: 190px; } .tile { width: 168px; padding: 12px 14px 14px; } .tile b { font-size: 26px; } .t1 { top: 70px; left: 16px; } .t2 { bottom: 40px; right: 16px; } }

/* 3. the path */
.path { position: relative; padding: clamp(90px, 14vh, 160px) var(--gutter); color: var(--white); text-align: center;
  background: radial-gradient(900px 480px at 14% 110%, rgba(44, 95, 224, 0.55), transparent 64%), linear-gradient(200deg, #0A40B6 0%, var(--blue) 40%, var(--blue-deep) 100%); }
.path .display { font-size: clamp(44px, 7.4vw, 108px); max-width: 12ch; margin: 0 auto; }
.steps { position: relative; max-width: var(--max); margin: clamp(48px, 8vh, 88px) auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 75px; border-top: 1.5px dashed rgba(255, 255, 255, 0.4); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, 0.75); background: var(--blue); margin-bottom: 10px; }
.ring b { font: 600 40px/1 var(--display); letter-spacing: 0.01em; }
.steps h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.steps p { font-size: 15px; color: rgba(255, 255, 255, 0.86); max-width: 26ch; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; } .steps::before { display: none; } }
@media (max-width: 480px) { .ring { width: 116px; height: 116px; } .ring b { font-size: 32px; } .ico.big { width: 50px; height: 43px; } }

/* 4. what it covers */
.covers { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(80px, 12vh, 140px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.covers-head { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.covers-head h2 { font: 400 clamp(34px, 4.4vw, 56px)/1.04 var(--body); letter-spacing: -0.04em; text-wrap: balance; }
.covers-head p { color: var(--muted); max-width: 34ch; }
.covers-list article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 6px 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.covers-list article:last-child { border-bottom: 1px solid var(--line); }
.covers-list h3 { font: 400 clamp(22px, 2.4vw, 30px)/1.15 var(--body); letter-spacing: -0.03em; grid-row: span 2; }
.covers-list .q { font-weight: 600; color: var(--blue); }
.covers-list p:not(.q) { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .covers { grid-template-columns: minmax(0, 1fr); } .covers-head { position: static; } }
@media (max-width: 560px) { .covers-list article { grid-template-columns: minmax(0, 1fr); } .covers-list h3 { grid-row: auto; margin-bottom: 4px; } }

/* 5. membership */
.membership { padding: clamp(80px, 12vh, 140px) var(--gutter); background: var(--white); }
.membership-head { max-width: 640px; margin: 0 auto 44px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.membership-head .eyebrow { color: var(--blue); }
.membership-head h2 { font: 400 clamp(32px, 4.2vw, 52px)/1.06 var(--body); letter-spacing: -0.04em; text-wrap: balance; }
.membership-head p:last-child { color: var(--muted); }
.tiers { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tier { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.tier:last-child { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tier h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.tier:last-child h3 { color: var(--sky); }
.tier .price { font: 600 clamp(34px, 3.6vw, 46px)/1 var(--display); letter-spacing: 0.005em; font-variant-numeric: tabular-nums; }
.tier .price span { font: 400 14px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.tier:last-child .price span { color: var(--sky); }
.tier p:last-child { font-size: 15px; color: var(--muted); }
.tier:last-child p:last-child { color: rgba(255, 255, 255, 0.86); }
.membership .actions { margin-top: 36px; }
.membership .fine { margin-top: 14px; color: var(--muted); }
@media (max-width: 980px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

/* 6. closing statement */
.deep { background: var(--blue-deep); color: var(--white); }
.closing { position: relative; min-height: 86vh; display: grid; place-items: center; padding: 120px var(--gutter); overflow: hidden; text-align: center; }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(185, 200, 236, 0.34); }
.closing-copy { position: relative; max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.closing .eyebrow { color: var(--sky); }
.closing .display { font-size: clamp(44px, 7.6vw, 112px); color: var(--blue-soft); }
.closing-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, 0.86); }
@media (max-width: 900px) { .frame { display: none; } }

/* footer */
.foot { background: var(--navy); color: var(--white); padding: 56px var(--gutter) 32px; }
.foot-top { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.foot-brand b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.foot-brand small { display: block; font-size: 13px; color: var(--sky); }
.foot nav { display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 6vw, 88px); }
.foot nav div { display: flex; flex-direction: column; gap: 8px; }
.foot h3 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-bottom: 4px; }
.foot nav a { font-size: 15px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.disclaimer, .copyright { max-width: var(--max); margin: 40px auto 0; font-size: 13px; line-height: 1.5; color: var(--sky); }
.disclaimer { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); max-width: min(var(--max), 100%); }
.copyright { margin-top: 14px; }

/* reveal on scroll: only when the script has turned motion on */
.has-motion .reveal { opacity: 0; translate: 0 22px; transition: opacity 0.6s ease, translate 0.6s ease; }
.has-motion .reveal.is-in { opacity: 1; translate: 0 0; }
