/* ==========================================================================
   Trinity v17: centered hero, blue buttons, bigger logo, centered sections.
   Loaded after app.css (document order), so it wins at equal specificity.
   ========================================================================== */
:root {
  --blue: #0077ff;
  --blue-ink: #0062d6;
  --blue-deep: #0056bd;
  --ice: #eaf3ff;
  --ice-2: #f4f9ff;
  --nav-h: 80px;
  --ring: 0 0 0 3px #fff, 0 0 0 5px var(--blue);
  --shadow-blue: 0 1px 2px rgba(0, 72, 160, 0.12), 0 6px 18px -6px rgba(0, 119, 255, 0.45);
  --shadow-blue-hi: 0 2px 4px rgba(0, 72, 160, 0.14), 0 12px 28px -8px rgba(0, 119, 255, 0.55);
}

/* ---------- type scale (refined) ---------- */
.display-xl { font-size: clamp(2.75rem, 7.1vw, 6.6rem); line-height: 0.94; letter-spacing: -0.045em; }
.display-l  { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 0.98; letter-spacing: -0.035em; }
.lede { font-size: clamp(1.05rem, 1.25vw, 1.175rem); }

/* ---------- buttons ---------- */
.btn { font-weight: 600; letter-spacing: -0.005em; min-height: 50px; padding: 0 26px; }
.btn--ink {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--ink:hover {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
  color: #fff;
  box-shadow: var(--shadow-blue-hi);
  transform: translateY(-1px);
}
.btn--ink:active { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(0); box-shadow: var(--shadow-blue); }
.btn--line {
  background: #fff;
  border: 1.5px solid var(--blue);
  color: var(--blue-ink);
}
.btn--line:hover { background: var(--ice); border-color: var(--blue); color: var(--blue-ink); transform: translateY(-1px); }
.btn--line:active { background: #dcebff; transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--ink:focus-visible { box-shadow: var(--ring), var(--shadow-blue); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }
.btn--sm.btn--ink { box-shadow: none; }
.btn--sm.btn--ink:hover { box-shadow: var(--shadow-blue); }
.legal a.btn--ink, .legal a.btn--ink:hover { color: #fff; }
.legal a.btn--line { color: var(--blue-ink); }
.pills button { min-height: 44px; }
.pills button:hover { border-color: var(--blue); color: var(--blue-ink); }
.pills button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pills button:focus-visible, .faq-item button:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 999px; }
.faq-item button:focus-visible { border-radius: 6px; }

/* ---------- nav + logo ---------- */
.nav__bar { height: var(--nav-h); }
.nav__logo { width: clamp(230px, 23vw, 340px); min-width: 0; line-height: 0; }
.nav__logo-svg { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 108; overflow: visible; }
.nav__logo img { aspect-ratio: 1200 / 108; }
@keyframes logo-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .nav__swoosh { animation: logo-wipe 1.1s var(--ease) 0.2s both; }
.nav__logo:hover .nav__swoosh { animation: logo-wipe 0.7s var(--ease) both; }
.nav__logo:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
@media (min-width: 1101px) {
  .nav__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; }
  .nav__links { margin: 0; justify-content: center; }
  .nav__actions { justify-self: end; }
}
.nav__links a { padding: 8px 0; }

/* ---------- hero (centered) ---------- */
.hero { padding: clamp(36px, 6.5vh, 84px) 0 0; position: relative; }
.hero::before {
  /* soft blue wash, from the brand blue, behind the column */
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  width: min(1100px, 120vw);
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 119, 255, 0.07), rgba(0, 119, 255, 0) 70%);
  pointer-events: none;
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.hero__eyebrow::before, .hero__eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--line-2); }
.hero__eyebrow::after { background: var(--blue); }
.hero__title { max-width: 14ch; margin-inline: auto; }
.hero__title .line { margin-inline: auto; }
.hero__sub {
  max-width: 34rem;
  margin-top: clamp(18px, 2.2vw, 28px);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: balance;
  opacity: 0;
  animation: v17-fade 0.9s var(--ease) 0.45s forwards;
}
.hero__actions {
  justify-content: center;
  margin-top: clamp(24px, 2.8vw, 36px);
  opacity: 0;
  animation: v17-fade 0.9s var(--ease) 0.6s forwards;
}
@keyframes v17-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__title { max-width: none; }

/* swoosh centerpiece */
.brandline {
  width: calc(100% + 2 * var(--gutter));
  max-width: 1600px;
  height: auto;
  aspect-ratio: 1350 / 276;
  margin: clamp(20px, 3vw, 40px) calc(var(--gutter) * -1) 0;
  align-self: center;
  overflow: visible;
}
.brandline > svg { overflow: visible; }
.brandline::before {
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 55%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 70% at 50% 55%, #000 30%, transparent 100%);
}
@keyframes pulse { 0% { transform: translateX(0); } 40%, 100% { transform: translateX(1600px); } }

/* ticker, centered under the swoosh */
.status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: clamp(16px, 2vw, 28px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.status__list { width: 100%; max-width: 760px; }
.status__list li { justify-content: center; flex-wrap: wrap; row-gap: 4px; }
.status__text { flex: 0 1 auto; }

/* ---------- section heads + logo dividers (centered) ---------- */
.head { justify-items: center; text-align: center; }
.head .lede, .head p { margin-inline: auto; max-width: 36rem; }
.head h2 { max-width: 18ch; margin-inline: auto; }
.swoosh-rule { justify-items: center; gap: 14px; margin-bottom: 8px; }
.swoosh-rule__label { justify-content: center; }
.swoosh-rule__track {
  --mw: clamp(150px, 15vw, 210px);
  width: min(100%, 720px);
  height: calc(var(--mw) * 70 / 1150 + 4px);
  margin-inline: auto;
}
.swoosh-rule__hair {
  left: 0; right: 0; top: 0;
  background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.14) 22%, rgba(10, 10, 10, 0.14) 78%, transparent);
}
.swoosh-rule__blue {
  left: 50%; top: -0.25px; width: 46%;
  background: linear-gradient(90deg, rgba(0, 119, 255, 0), var(--blue) 40%, var(--blue) 60%, rgba(0, 119, 255, 0));
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}
.swoosh-rule.is-in .swoosh-rule__blue, .head.is-in .swoosh-rule__blue { transform: translateX(-50%) scaleX(1); }
.swoosh-rule__mark {
  left: 50%; right: auto; top: 0;
  width: var(--mw);
  height: calc(var(--mw) * 70 / 1150);
  transform: translateX(-50%);
}
@media (prefers-reduced-motion: reduce) {
  .swoosh-rule__blue { transform: translateX(-50%) scaleX(1) !important; }
}

/* moves / stack line */
.moves__head { flex-direction: column; align-items: center; text-align: center; }
.pills { justify-content: center; }
.stackline { justify-content: center; text-align: center; }
.stackline ul { justify-content: center; }
.also { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
.also ul { width: 100%; text-align: left; }

/* FAQ: one centered column */
.faq__wrap { display: grid; justify-items: center; }
.faq__wrap .head { margin-bottom: clamp(32px, 4vw, 52px); }
.faq__list { width: 100%; max-width: 860px; }
.faq-item button { min-height: 64px; }

/* Book: centered intro + founder */
.book .head { margin-bottom: clamp(24px, 3vw, 36px); }
.founder {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  max-width: 40rem;
  margin: 0 auto clamp(32px, 4vw, 56px);
  padding: 0;
  border: 0;
}
.founder .actions { justify-content: center; }
.founder__offer { margin-inline: auto; }

/* about caption + roi stay as balanced two-up; estimate centered on phones below */

/* ---------- footer ---------- */
.foot__mark { margin-inline: auto; max-width: 1200px; }
.foot__col a { padding: 6px 0; }
.foot__base { justify-content: center; text-align: center; flex-direction: column; gap: 8px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 18px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav__logo { width: clamp(176px, calc(100vw - 196px), 260px); }
  .nav__menu { width: 44px; height: 44px; }
  .brandline { height: auto; }
  .status__list li { display: flex; justify-content: center; text-align: center; }
  .founder { padding-top: 0; border-top: 0; }
  .foot__grid > * { padding-inline: 0; }
  .foot__grid { text-align: center; }
  .foot__grid > * { justify-items: center; }
  .foot__cta .btn, .foot__col a { justify-self: center; }
  .foot__grid > :nth-child(3) { border-left: 1px solid var(--line); }
}

/* ---------- phones ---------- */
@media (max-width: 600px) {
  .hero { padding-top: 28px; }
  .hero__title .line > span { white-space: normal; }
  .hero__sub { max-width: 22rem; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; gap: 10px; }
  .hero__actions .btn { width: 100%; min-height: 52px; }
  .brandline { margin-top: 20px; }
  .status { padding: 14px 0; }
  .status__text { font-size: 0.875rem; }
  .founder .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .founder .actions .btn { width: 100%; }
  .stackline { flex-direction: column; align-items: center; }
  .also ul { text-align: center; }
  .moves__head h3 { max-width: 16ch; }
}
@media (max-width: 520px) {
  .foot__grid > :nth-child(3) { border-left: 0; }
}
@media (max-width: 380px) {
  .btn { padding: 0 20px; }
  .nav__actions { gap: 8px; }
  .nav__actions .btn--sm { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__sub, .hero__actions { animation: none; opacity: 1; }
  .js .nav__swoosh, .nav__logo:hover .nav__swoosh { animation: none; }
}

/* ---------- v17 QA pass 2 ---------- */
.hero::before { width: 100%; max-width: 1100px; }
.hero { padding-top: clamp(28px, 5vh, 64px); }
.hero__sub { max-width: 44rem; }
.brandline { max-width: 1280px; }
.brandline > svg {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 100%);
}
@media (min-width: 1281px) {
  .brandline { width: 100%; margin-inline: auto; }
}
/* work links read as secondary buttons: blue outline */
.proj__link { border: 1.5px solid var(--blue); color: var(--blue-ink); font-weight: 600; }
.proj__link:hover { background: var(--ice); color: var(--blue-ink); }
.proj__link:focus-visible { outline: none; background: var(--ice); color: var(--blue-ink); box-shadow: var(--ring); }
/* tap targets */
.nav__links a { padding: 12px 0; }
.nav__logo { padding-block: 8px; box-sizing: content-box; }
.nav__cmd { height: 44px; }
.foot__col a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.foot__grid { row-gap: 0; }
.foot__grid > * { gap: 4px; }
.about__caption a { display: inline-block; padding: 14px 0; }
input[type="range"] { height: 32px; }
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .nav__logo { width: min(260px, calc(100vw - 168px)); }
  .nav__actions .btn--sm { padding: 0 15px; }
  .nav__bar { gap: 8px; }
}
@media (max-width: 380px) {
  .nav__actions .btn--sm { padding: 0 14px; }
}

/* ---------- v17 QA pass 3: logo scale ---------- */
@media (min-width: 1101px) {
  .nav__logo { width: clamp(260px, 24.5vw, 360px); }
}
@media (max-width: 900px) {
  .nav__logo { padding-block: 12px; }
}
.swoosh-rule__track { height: calc(var(--mw) * 70 / 1150 + 10px); }
