:root {
  color-scheme: light;
  --navy: #071b3d;
  --navy-soft: #12346c;
  --gold: #f2b817;
  --gold-soft: #ffe08a;
  --cream: #f4f7fb;
  --paper: #fffdf8;
  --ink: #152033;
  --muted: #5d6780;
  --line: rgba(15, 35, 64, 0.12);
  --shadow: 0 28px 65px rgba(15, 35, 64, 0.15);
  --shadow-soft: 0 16px 40px rgba(15, 35, 64, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

body.landing-v2 {
  margin: 0;
  color: #f2e8d5;
  background: #0f0a05;
  font-family: "Lato", "Segoe UI", sans-serif;
}

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

.landing-v2 img {
  display: block;
  max-width: 100%;
}

.landing-v2 a {
  color: inherit;
  text-decoration: none;
}

.landing-v2 main > section {
  scroll-margin-top: 118px;
}

.landing-shell {
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto;
}

.landing-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 20px 0;
}

.landing-nav__inner {
  position: relative;
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  background: rgba(11, 17, 48, 0.82);
  border: 1px solid rgba(232, 168, 32, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.landing-nav__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 17, 48, 0.2), rgba(11, 17, 48, 0));
  pointer-events: none;
  border-radius: inherit;
}

.landing-brand,
.landing-links,
.landing-actions {
  position: relative;
  z-index: 1;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-brand img {
  height: 36px;
  width: auto;
  mix-blend-mode: screen;
  opacity: 0.95;
}

.landing-brand span,
.landing-footer__brand {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: #e8a820;
  letter-spacing: 0.03em;
}

.landing-brand span {
  font-size: 1.2rem;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-links a {
  color: rgba(242, 232, 213, 0.76);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.landing-links a:hover,
.landing-links a:focus-visible {
  color: #f2e8d5;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.landing-button:hover,
.landing-button:focus-visible {
  transform: translateY(-1px);
}

.landing-button--gold {
  background: #e8a820;
  color: #1a2d6e !important;
}

.landing-button--gold:visited,
.landing-button--gold:hover,
.landing-button--gold:focus-visible,
.landing-button--gold:active {
  color: #1a2d6e !important;
}

.landing-button--ghost {
  color: #f2b817;
  border: 2px solid rgba(242, 184, 23, 0.92);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(242, 184, 23, 0.28);
}

.landing-button--ghost:visited,
.landing-button--ghost:hover,
.landing-button--ghost:focus-visible,
.landing-button--ghost:active {
  color: #f2b817;
  border-color: #f2b817;
}

.landing-hero {
  position: relative;
  min-height: clamp(760px, 84svh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 120px;
}

.landing-hero__image,
.landing-hero__overlay,
.landing-hero__vignette {
  position: absolute;
  inset: 0;
}

.landing-hero__image {
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    url("media/optimized/saratoga-race-course-1920.webp") center 58% / cover;
}

.landing-hero__overlay {
  background:
    linear-gradient(135deg, rgba(11, 17, 48, 0.92) 0%, rgba(11, 17, 48, 0.78) 50%, rgba(11, 17, 48, 0.96) 100%);
}

.landing-hero__vignette {
  box-shadow:
    inset 100px 0 160px rgba(11, 17, 48, 0.7),
    inset -100px 0 160px rgba(11, 17, 48, 0.7);
}

.landing-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 100px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.landing-hero__copy {
  flex: 0 1 560px;
  max-width: 560px;
}

.landing-kicker,
.landing-section-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-kicker {
  margin-bottom: 32px;
}

.landing-kicker span,
.landing-section-kicker span {
  width: 32px;
  height: 1px;
}

.landing-kicker span {
  background: #e8a820;
}

.landing-kicker p,
.landing-section-kicker p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.landing-kicker p,
.landing-section-kicker--gold p {
  color: #e8a820;
}

.landing-section-kicker--navy p {
  color: #1a2d6e;
}

.landing-section-kicker--navy span {
  background: #1a2d6e;
}

.landing-section-kicker--gold span {
  background: #e8a820;
}

.landing-hero h1,
.landing-v2 h2,
.landing-v2 h3,
.landing-pullquote,
.landing-inline-quote {
  font-family: "Playfair Display", Georgia, serif;
}

.landing-hero h1 {
  margin: 0 0 24px;
  color: #f2e8d5;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.landing-hero h1 span {
  color: #e8a820;
  font-style: italic;
}

.landing-hero__lead {
  margin: 0 0 40px;
  max-width: 520px;
  color: #8a9abd;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.landing-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.landing-hero-marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
  padding-bottom: 22px;
}

.landing-hero-marquee__intro {
  margin: 0 0 14px;
  color: rgba(242, 232, 213, 0.72);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.landing-hero-marquee__viewport {
  position: relative;
  overflow: hidden;
  padding: 4px 0 10px;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  touch-action: pan-y;
  user-select: none;
}

.landing-hero-marquee__viewport:focus-visible {
  outline: 2px solid rgba(232, 168, 32, 0.82);
  outline-offset: 4px;
}

.landing-hero-marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: landingHeroMarquee 54s linear infinite;
  will-change: transform;
}

.landing-hero-marquee__viewport:hover .landing-hero-marquee__track {
  animation-play-state: paused;
}

.landing-hero-marquee__viewport.is-dragging {
  cursor: grabbing;
}

.landing-hero-marquee__viewport.is-dragging .landing-hero-marquee__track {
  animation-play-state: paused;
}

.landing-hero-marquee__card {
  flex: 0 0 clamp(220px, 24vw, 290px);
  min-height: 154px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(218, 154, 18, 0.62);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 239, 181, 0.72), rgba(247, 227, 164, 0) 58%),
    #f7e3a4;
  box-shadow:
    0 0 0 1px rgba(255, 210, 96, 0.24),
    inset 0 1px 0 rgba(255, 250, 231, 0.72),
    0 18px 34px rgba(4, 8, 24, 0.3);
}

.landing-hero-marquee__card span {
  display: block;
  margin-bottom: 10px;
  color: rgba(20, 43, 91, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-hero-marquee__card strong {
  display: block;
  margin-bottom: 10px;
  color: #071b3d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.landing-hero-marquee__card p {
  margin: 0;
  color: rgba(42, 54, 82, 0.84);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.55;
}

.landing-hero__logo {
  flex: 0 0 clamp(300px, 34vw, 480px);
  margin-bottom: -10px;
}

.landing-hero__logo img,
.landing-footer img {
  width: 100%;
  user-select: none;
  pointer-events: none;
}

.landing-hero__logo img {
  mix-blend-mode: normal;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
  filter: none;
}

.landing-footer img {
  mix-blend-mode: screen;
}

.landing-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  opacity: 0.4;
}

.landing-hero__scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #e8a820);
}

@keyframes landingHeroMarquee {
  0% {
    transform: translateX(var(--marquee-offset, 0px));
  }

  100% {
    transform: translateX(calc(var(--marquee-offset, 0px) - 50% - 9px));
  }
}

.landing-product,
.landing-how {
  background: #f5e8c8;
  color: #0b1130;
}

.landing-product,
.landing-story,
.landing-preserve,
.landing-how,
.landing-preview,
.landing-mission,
.landing-waitlist,
.landing-footer {
  padding: 72px 0;
}

.landing-product {
  padding-bottom: 24px;
}

.landing-product__inner {
  max-width: 1080px;
}

.landing-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px 56px;
  align-items: start;
  margin-top: 28px;
  padding-top: 34px;
  border-top: 1px solid rgba(26, 45, 110, 0.14);
}

.landing-product h2 {
  margin: 0;
  color: #0b1130;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.16;
  font-weight: 700;
}

.landing-product__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #2a3560;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.8;
}

.landing-product__copy p {
  margin: 0;
}

.landing-silks-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 34px auto 0;
  max-width: 620px;
}

.landing-silks-divider span {
  flex: 1 1 0;
  height: 1px;
  background: rgba(26, 45, 110, 0.22);
}

.landing-silks-divider img {
  width: 64px;
  height: auto;
  opacity: 0.76;
}

.landing-silks-divider--dark span {
  background: rgba(232, 168, 32, 0.26);
}

.landing-silks-divider--dark img {
  opacity: 0.9;
}

.landing-story__grid,
.landing-how__grid,
.landing-mission__grid {
  display: grid;
  gap: 48px 64px;
}

.landing-story__grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  margin-top: 40px;
}

.landing-story__aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.landing-pullquote {
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid #e8a820;
  color: #0b1130;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
}

.landing-pullquote cite {
  display: block;
  margin-top: 8px;
  color: #7e8fbf;
  font-family: "Lato", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
}

.landing-story__figure img,
.landing-how__image img,
.landing-mission__figure img {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(11, 17, 48, 0.12);
}

.landing-story__figure figcaption {
  margin-top: 10px;
  color: #536891;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.55;
}

.landing-story__copy h2,
.landing-preserve h2,
.landing-how__intro h2,
.landing-mission__copy h2,
.landing-waitlist h2 {
  margin: 0 0 24px;
  line-height: 1.2;
  font-weight: 700;
}

.landing-story__copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.landing-prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #2a3560;
  line-height: 1.9;
  font-size: 1.05rem;
}

.landing-prose p,
.landing-waitlist p,
.landing-how__intro p,
.landing-step p,
.landing-mission__foot,
.landing-footer__copy,
.landing-footer__meta p {
  margin: 0;
}

.landing-inline-quote {
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid #e8a820;
  color: #0b1130;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
}

.landing-story,
.landing-preserve,
.landing-mission,
.landing-waitlist {
  background: #0b1130;
}

.landing-story {
  color: #f2e8d5;
}

.landing-story .landing-pullquote,
.landing-story .landing-inline-quote,
.landing-story__copy h2 {
  color: #f2e8d5;
}

.landing-story .landing-prose {
  color: #9aa9c9;
}

.landing-story .landing-pullquote cite,
.landing-story__figure figcaption {
  color: #7e8fbf;
}

.landing-story__figure img {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.landing-preserve h2,
.landing-mission__copy h2,
.landing-mission__copy h3,
.landing-waitlist h2 {
  color: #f2e8d5;
}

.landing-preserve h2 {
  max-width: 620px;
  margin-bottom: 48px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
}

.landing-preserve__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(232, 168, 32, 0.15);
}

.landing-preserve__card {
  padding: 32px;
  background: #0b1130;
}

.landing-preserve__number {
  margin-bottom: 24px;
  color: #e8a820;
  opacity: 0.55;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1;
}

.landing-preserve__card h3 {
  margin: 0 0 12px;
  color: #f2e8d5;
  font-size: 1.2rem;
  font-weight: 700;
}

.landing-preserve__card p {
  margin: 0;
  color: #7e8fbf;
  font-size: 0.92rem;
  line-height: 1.75;
}

.landing-how__grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  margin-top: 32px;
}

.landing-how__intro h2,
.landing-mission__copy h2,
.landing-waitlist h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.landing-how__intro p {
  margin-bottom: 32px;
  color: #2a3560;
  line-height: 1.85;
  font-size: 1.05rem;
}

.landing-preview {
  background: #f5e8c8;
  padding-top: 28px;
}

.landing-product,
.landing-preview,
.landing-story,
.landing-preserve,
.landing-how,
.landing-mission {
  padding-bottom: 28px;
}

.landing-story,
.landing-preserve,
.landing-how,
.landing-mission,
.landing-waitlist {
  padding-top: 48px;
}

.landing-preview__header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.landing-preview__header h2 {
  margin: 0;
  color: #0b1130;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.landing-preview__header p {
  margin: 0;
  color: #46557e;
  font-size: 1rem;
  line-height: 1.8;
}

.landing-preview__profiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.landing-preview-profile {
  padding: 20px 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(7, 27, 61, 0.08);
  background: linear-gradient(145deg, rgba(244, 249, 255, 0.98), rgba(225, 236, 249, 0.95));
  box-shadow: 0 16px 34px rgba(18, 52, 108, 0.08);
}

.landing-preview-profile--active {
  background: linear-gradient(145deg, rgba(232, 240, 251, 1), rgba(214, 228, 244, 0.98));
}

.landing-preview-profile__label {
  display: block;
  margin-bottom: 8px;
  color: #536891;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-preview-profile h3 {
  margin: 0 0 10px;
  color: #0b1130;
  font-size: 1.55rem;
  font-weight: 700;
}

.landing-preview-profile p {
  margin: 0;
  color: #4b5d87;
  line-height: 1.7;
  font-size: 0.95rem;
}

.landing-preview-profile__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(7, 27, 61, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: #0b1130;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(7, 27, 61, 0.08);
}

.landing-preview-profile--active .landing-preview-profile__button {
  background: #0f275d;
  border-color: #0f275d;
  color: #fff5da;
}

.landing-preview__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.landing-phone-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(245, 250, 255, 0.98), rgba(220, 232, 246, 0.98));
  border: 1px solid rgba(7, 27, 61, 0.08);
  box-shadow: 0 20px 42px rgba(18, 52, 108, 0.12);
}

.landing-phone-card__top,
.landing-phone-card__runner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.landing-phone-card__kicker {
  margin: 0;
  color: #5b6d95;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-phone-card h3 {
  margin: 4px 0 0;
  color: #0b1130;
  font-size: 2rem;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}

.landing-phone-card__surface {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  background: #d8ead1;
  color: #1f642d;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-phone-card__switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(7, 27, 61, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.landing-phone-card__pill {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(7, 27, 61, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
}

.landing-phone-card__pill--active {
  background: #0b245a;
  color: #f2b817;
}

.landing-phone-card__winner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #f8e2a0;
  border: 1px solid rgba(194, 137, 0, 0.16);
}

.landing-phone-card__meta {
  display: block;
  margin-bottom: 6px;
  color: #7d6625;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-phone-card__winner strong,
.landing-phone-card__confidence strong,
.landing-phone-card__runner strong {
  color: #0b1130;
}

.landing-phone-card__winner strong {
  display: block;
  font-size: 1.05rem;
}

.landing-phone-card__winner p,
.landing-phone-card__runner p {
  margin: 6px 0 0;
  color: #46557e;
  line-height: 1.55;
  font-size: 0.95rem;
}

.landing-phone-card__confidence {
  flex: 0 0 auto;
  min-width: 78px;
}

.landing-phone-card__confidence strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

.landing-phone-card__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(7, 27, 61, 0.12);
  background: rgba(255, 255, 255, 0.58);
  color: #0b1130;
  font-weight: 850;
}

.landing-phone-card__field span:last-child {
  color: #657799;
  font-size: 0.95rem;
}

.landing-phone-card__runner {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(7, 27, 61, 0.12);
  flex-wrap: wrap;
}

.landing-phone-card__runner span {
  color: #0b245a;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-how__steps {
  display: flex;
  flex-direction: column;
}

.landing-step {
  position: relative;
  padding: 32px 0 32px 24px;
  border-top: 1px solid rgba(11, 17, 48, 0.15);
}

.landing-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  width: 3px;
  height: 24px;
  background: #e8a820;
}

.landing-step__eyebrow {
  margin-bottom: 8px;
  color: #1a2d6e;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.landing-step h3 {
  margin: 0 0 10px;
  color: #0b1130;
  font-size: 1.3rem;
  font-weight: 700;
}

.landing-step p:last-child {
  color: #2a3560;
  line-height: 1.8;
  font-size: 0.95rem;
}

.landing-mission__grid {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.landing-mission__left {
  display: grid;
  gap: 20px;
}

.landing-mission__figure {
  margin: 0;
  background: #0b1130;
  margin: 28px auto 0;
  max-width: 560px;
}

.landing-mission__figure figcaption {
  margin-top: 12px;
  color: rgba(242, 232, 213, 0.8);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.6;
}

.landing-prose--light {
  color: rgba(242, 232, 213, 0.72);
  font-size: 1.02rem;
}

.landing-mission__memorial {
  margin: 0;
  display: grid;
  gap: 10px;
}

.landing-mission__memorial--stacked img {
  width: 100%;
}

.landing-mission__memorial img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.landing-mission__memorial figcaption {
  color: rgba(242, 232, 213, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

.landing-mission__divider {
  margin: 32px 0;
  border-top: 1px solid rgba(232, 168, 32, 0.25);
}

.landing-mission__foot {
  color: rgba(242, 232, 213, 0.65);
  line-height: 1.85;
  font-size: 0.97rem;
}

.landing-next-generation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  width: min(860px, 100%);
  margin: 26px auto 0;
}

.landing-next-generation__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(232, 168, 32, 0.18);
  background: rgba(242, 232, 213, 0.06);
}

.landing-next-generation__photo--tall {
  grid-row: auto;
}

.landing-next-generation__photo img {
  width: 100%;
  height: auto;
}

.landing-waitlist__inner {
  max-width: 680px;
  text-align: center;
}

.landing-waitlist p {
  max-width: 520px;
  margin: 0 auto 40px;
  color: #7e8fbf;
  line-height: 1.85;
  font-size: 1.02rem;
}

.landing-waitlist__form {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
}

.landing-waitlist__form input {
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(232, 168, 32, 0.3);
  border-right: 0;
  background: #101a3f;
  color: #f2e8d5;
}

.landing-waitlist__form button {
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid #e8a820;
  background: #e8a820;
  color: #1a2d6e !important;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-waitlist__note {
  margin-top: 24px;
  color: #1a2d6e !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.05em;
}

.landing-footer {
  padding-top: 48px;
  padding-bottom: 48px;
  background: #070c20;
  border-top: 1px solid rgba(232, 168, 32, 0.12);
}

.landing-footer__inner > img {
  height: 80px;
  width: auto;
  margin: 0 auto 32px;
  opacity: 0.7;
}

.landing-footer__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.landing-footer__brand {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.landing-footer__copy {
  color: #1a2d6e;
  font-size: 0.8rem;
  line-height: 1.6;
}

.landing-footer__meta {
  text-align: right;
}

.landing-footer__meta p {
  color: #1a2d6e;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.landing-footer__meta p + p {
  margin-top: 8px;
  color: #131d45;
  font-size: 0.72rem;
}

.landing-footer__meta span {
  color: #7e8fbf;
}

@media (max-width: 980px) {
  .landing-links {
    display: none;
  }

  .landing-hero__content,
  .landing-product__grid,
  .landing-story__grid,
  .landing-how__grid,
  .landing-mission__grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .landing-hero__content {
    gap: 32px;
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .landing-hero-marquee {
    margin-top: 0;
    padding-bottom: 26px;
  }

  .landing-hero__logo {
    width: min(340px, 70vw);
    margin: 0 auto;
  }

  .landing-preserve__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-preview__header,
  .landing-preview__profiles,
  .landing-preview__cards {
    grid-template-columns: 1fr;
  }

  .landing-mission__figure {
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .landing-shell,
  .landing-nav__inner {
    width: min(100vw - 24px, 1200px);
  }

  .landing-nav {
    padding: 14px 0;
  }

  .landing-nav__inner {
    padding: 10px 14px;
    gap: 12px;
  }

  .landing-brand span {
    font-size: 0.95rem;
  }

  .landing-actions {
    display: flex;
    flex: 0 0 auto;
  }

  .landing-story,
  .landing-product,
  .landing-preserve,
  .landing-how,
  .landing-preview,
  .landing-mission,
  .landing-waitlist,
  .landing-footer {
    padding: 64px 0;
  }

  .landing-product {
    padding-bottom: 28px;
  }

  .landing-preview {
    padding-top: 30px;
  }

  .landing-silks-divider {
    gap: 16px;
    margin-top: 28px;
  }

  .landing-silks-divider img {
    width: 48px;
  }

  .landing-hero__buttons {
    flex-direction: column;
  }

  .landing-hero__buttons .landing-button {
    width: 100%;
  }

  .landing-hero-marquee {
    margin-top: 0;
    padding-bottom: 22px;
  }

  .landing-hero-marquee__intro {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .landing-hero-marquee__track {
    animation-duration: 62s;
  }

  .landing-hero-marquee__card {
    flex-basis: 82vw;
    min-height: 144px;
  }

  .landing-nav .landing-button {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .landing-preserve__grid,
  .landing-waitlist__form,
  .landing-footer__row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .landing-waitlist__form input {
    border-right: 1px solid rgba(232, 168, 32, 0.3);
    border-bottom: 0;
  }

  .landing-footer__meta {
    text-align: left;
  }

  .landing-next-generation {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }

  .landing-next-generation__photo,
  .landing-next-generation__photo--tall {
    grid-row: auto;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) rgba(7, 27, 61, 0.34);
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 15px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(7, 27, 61, 0.28);
  border-left: 1px solid rgba(7, 27, 61, 0.18);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), #bf8500);
  border: 3px solid rgba(7, 27, 61, 0.26);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}

body {
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(242, 184, 23, 0.16), transparent 25%),
    radial-gradient(circle at 86% 10%, rgba(50, 111, 185, 0.28), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(92, 151, 215, 0.2), transparent 34%),
    linear-gradient(135deg, #c9d9ed 0%, #8eb2db 45%, #d7e4f3 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body.tool-page {
  min-height: 100vh;
  background: #0b1130;
}

main,
.site-header {
  transform-origin: center top;
  transition: transform 420ms ease, opacity 420ms ease, filter 420ms ease;
}

body.is-flipping main,
body.is-flipping .site-header {
  opacity: 0;
  filter: blur(4px);
  transform: perspective(1200px) rotateY(-18deg) translateY(10px) scale(0.96);
}

a,
button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.section-shell,
.hero {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 18px;
  background:
    linear-gradient(145deg, rgba(255, 248, 226, 0.9), rgba(226, 237, 250, 0.9));
  border: 1px solid rgba(7, 27, 61, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(7, 27, 61, 0.16));
}

.brand-text {
  display: grid;
}

.brand-text strong,
h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.brand-text strong {
  font-size: 1.1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav,
.header-actions,
.cta-row,
.hero-notes,
.sample-columns,
.testimonial-grid,
.champion-gallery {
  display: flex;
  gap: 14px;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--navy);
}

.header-actions {
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold), #c48c04);
  color: var(--navy);
  box-shadow: 0 12px 26px rgba(196, 140, 4, 0.28);
}

.button-primary:visited,
.button-primary:hover,
.button-primary:focus-visible {
  color: var(--navy);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 16px 32px rgba(196, 140, 4, 0.34);
}

.button-secondary {
  border-color: rgba(7, 27, 61, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  padding: 42px 0 28px;
  align-items: center;
}

.hero-media,
.hero-copy,
.step-card,
.sample-profile-card,
.sample-photo-card,
.memory-card,
.testimonial-card,
.faq-list details,
.final-cta-panel,
.old-friends-section {
  background:
    linear-gradient(145deg, rgba(255, 248, 226, 0.94), rgba(226, 237, 250, 0.94));
  border: 1px solid var(--line);
  box-shadow: 0 24px 58px rgba(7, 27, 61, 0.16);
}

.hero-media,
.hero-copy,
.old-friends-section,
.sample-profile-card,
.sample-photo-card,
.final-cta-panel {
  border-radius: var(--radius-xl);
}

.hero-image {
  position: relative;
  min-height: 720px;
  border-radius: inherit;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 18, 35, 0.05), rgba(10, 18, 35, 0.5)),
    url("media/optimized/saratoga-race-course-1920.webp")
      45% center/cover;
}

.hero-image-collage {
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(160deg, rgba(10, 18, 35, 0.18), rgba(10, 18, 35, 0.46)),
    radial-gradient(circle at top left, rgba(242, 184, 23, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(232, 239, 248, 0.72), rgba(193, 211, 235, 0.78));
}

.hero-collage {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: start;
  gap: 14px;
  width: 100%;
  padding: 18px;
}

.hero-photo {
  position: relative;
  overflow: visible;
  border-radius: 24px;
  min-height: 0;
  margin: 0;
  box-shadow: 0 18px 42px rgba(7, 27, 61, 0.22);
  background: rgba(7, 27, 61, 0.12);
}

.hero-photo img,
.duo-card img,
.photo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-photo img {
  object-fit: contain;
  border-radius: 24px;
}

.hero-photo-large,
.hero-photo-wide {
  grid-column: auto;
  grid-row: auto;
}

.hero-badge {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(7, 27, 61, 0.74);
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 42px rgba(7, 27, 61, 0.28);
}

.hero-badge strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(200, 162, 74, 0.28), transparent 24%),
    linear-gradient(0deg, rgba(15, 35, 64, 0.44), transparent 38%);
}

.hero-copy {
  padding: 52px 50px;
  background:
    linear-gradient(145deg, rgba(255, 248, 226, 0.96), rgba(226, 237, 250, 0.94));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 9vw, 6.7rem);
  line-height: 0.9;
  color: var(--navy);
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
  color: var(--navy);
}

h3 {
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
}

.lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 36rem;
}

.cta-row {
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-notes {
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(15, 35, 64, 0.1);
}

.hero-notes div {
  flex: 1 1 180px;
}

.hero-notes strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 4px;
}

.hero-notes span,
.story-copy p,
.step-card p,
.sample-caption span,
.support-copy p,
.greats-copy p,
.testimonial-card p,
.faq-list p,
.final-cta-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.section-shell {
  padding: 38px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.story-grid,
.duo-grid,
.mission-panel,
.photo-grid,
.memorial-grid {
  display: grid;
  gap: 20px;
}

.story-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  align-items: start;
}

.duo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.duo-card,
.mission-panel,
.photo-card {
  background:
    linear-gradient(145deg, rgba(255, 248, 226, 0.94), rgba(226, 237, 250, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-xl);
}

.duo-card {
  overflow: hidden;
}

.duo-card img {
  aspect-ratio: 4 / 3;
}

.duo-card-copy {
  padding: 22px 24px 26px;
}

.duo-card-copy p,
.mission-panel p,
.photo-card figcaption {
  color: var(--muted);
  line-height: 1.7;
}

.mission-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 28px;
  gap: 24px;
}

.gallery-section .section-heading {
  margin-bottom: 26px;
}

.photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.memorial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px 22px;
}

.photo-card {
  overflow: hidden;
  margin: 0;
}

.memorial-card {
  display: grid;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 12px;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.photo-card img {
  aspect-ratio: 4 / 3;
}

.memorial-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(7, 27, 61, 0.12);
}

.memorial-card-wide {
  grid-column: 1 / -1;
}

.memorial-card figcaption {
  padding: 0 2px;
  color: var(--muted);
  line-height: 1.6;
}

.photo-card figcaption {
  padding: 18px 18px 20px;
}

.track-divider {
  position: relative;
  width: min(760px, calc(100vw - 64px));
  height: 42px;
  margin: 2px auto;
  pointer-events: none;
}

.site-footer {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: 0 auto 30px;
  padding: 12px 6px 24px;
}

.site-footer p {
  color: rgba(21, 32, 51, 0.74);
  font-size: 0.9rem;
  line-height: 1.7;
}

.track-divider::before,
.track-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 70px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.track-divider::before {
  left: 0;
}

.track-divider::after {
  right: 0;
}

.track-divider span,
.track-divider span::before,
.track-divider span::after {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 13px;
  height: 13px;
  background: var(--gold);
  border: 2px solid var(--navy);
  box-shadow: 0 0 0 3px rgba(242, 184, 23, 0.16);
  transform: translate(-50%, -50%) rotate(45deg);
}

.track-divider span::before,
.track-divider span::after {
  content: "";
}

.track-divider span::before {
  left: -44px;
}

.track-divider span::after {
  left: 44px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 26px;
}

.story-grid,
.sample-grid,
.old-friends-section {
  display: grid;
  gap: 22px;
}

.story-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: start;
}

.story-copy {
  display: grid;
  gap: 14px;
  padding: 6px 0;
}

.memory-card {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.memory-title,
.card-label,
.pick-race strong,
.sample-caption strong {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 800;
}

.memory-list,
.step-card ul,
.style-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.55;
}

.memory-close {
  margin-top: 20px;
  color: var(--navy);
  font-weight: 700;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.step-card {
  border-radius: var(--radius-lg);
  padding: 30px;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 18px;
  background: linear-gradient(145deg, rgba(200, 162, 74, 0.2), rgba(15, 35, 64, 0.08));
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.step-card p + p,
.step-emphasis {
  margin-top: 16px;
}

.step-emphasis {
  color: var(--navy);
  font-weight: 800;
}

.sample-grid {
  grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.2fr);
}

.sample-photo-card {
  overflow: hidden;
}

.sample-photo {
  min-height: 440px;
  background:
    linear-gradient(180deg, rgba(15, 35, 64, 0.05), rgba(15, 35, 64, 0.48)),
    url("media/optimized/joe-profile-900.webp")
      center/cover;
  filter: sepia(0.18) saturate(0.75);
}

.sample-caption {
  padding: 22px 24px 26px;
  background: linear-gradient(145deg, rgba(255, 248, 226, 0.94), rgba(226, 237, 250, 0.92));
}

.sample-profile-card {
  padding: 34px;
}

.sample-columns {
  align-items: start;
  flex-wrap: wrap;
}

.sample-columns > div {
  flex: 1 1 240px;
}

.picks-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(242, 184, 23, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(7, 27, 61, 0.98), rgba(18, 52, 108, 0.96));
}

.picks-card .card-label,
.picks-card .pick-race strong,
.picks-card dt,
.picks-card dd {
  color: white;
}

.pick-race {
  margin-top: 12px;
}

.pick-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.pick-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.pick-list dt {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pick-list dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.sample-profile-card blockquote,
.testimonial-card {
  position: relative;
}

.sample-profile-card blockquote {
  margin: 26px 0 0;
  padding: 20px 22px 0;
  border-top: 1px solid rgba(15, 35, 64, 0.1);
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.old-friends-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding: 34px;
}

.support-copy {
  padding: 6px 6px 6px 0;
}

.old-friends-feature {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.old-friends-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(7, 27, 61, 0.12);
}

.old-friends-feature figcaption {
  color: var(--muted);
  line-height: 1.6;
}

.champion-gallery {
  flex-wrap: wrap;
}

.champion-tile {
  flex: 1 1 170px;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background-position: center;
  background-size: cover;
}

.champion-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 35, 64, 0.08), rgba(15, 35, 64, 0.62));
}

.champion-tile span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
}

.champion-tile-one {
  background-image: url("media/optimized/silver-charm-1200.webp");
}

.champion-tile-two {
  background-image: url("media/optimized/curlin-700.webp");
}

.champion-tile-three {
  background-image: url("media/optimized/churchill-downs-entrance-960.webp");
}

.greats-marquee {
  overflow: hidden;
  padding: 10px 0 6px;
}

.greats-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 18px;
  animation: marquee 28s linear infinite;
}

.great-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(15, 35, 64, 0.12);
  background:
    linear-gradient(145deg, rgba(242, 184, 23, 0.26), rgba(7, 27, 61, 0.96)),
    linear-gradient(180deg, rgba(255, 248, 226, 0.14), rgba(7, 27, 61, 0.78));
  color: white;
  display: flex;
  align-items: end;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  box-shadow: var(--shadow-soft);
}

.greats-copy {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  max-width: 620px;
}

.testimonial-grid {
  flex-wrap: wrap;
}

.testimonial-card {
  flex: 1 1 240px;
  margin: 0;
  padding: 30px;
  border-radius: var(--radius-lg);
}

.testimonial-card p {
  color: var(--navy);
  font-size: 1.05rem;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border-radius: 20px;
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin-top: 12px;
}

.final-cta {
  padding-bottom: 56px;
}

.final-cta-panel {
  min-height: 460px;
  padding: 56px 52px;
  display: grid;
  align-content: center;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(15, 35, 64, 0.28), rgba(15, 35, 64, 0.74)),
    url("media/optimized/churchill-downs-entrance-960.webp")
      center/cover;
}

.final-cta-panel h2,
.final-cta-panel p {
  color: white;
  max-width: 620px;
}

.final-cta-panel .button {
  justify-self: start;
  margin-top: 8px;
}

.final-card-button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
}

.site-footer {
  width: min(var(--max-width), calc(100vw - 32px));
  margin: -28px auto 36px;
  color: rgba(15, 35, 64, 0.58);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(200, 162, 74, 0.65);
  text-underline-offset: 3px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-28%);
  }
}

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

  .button,
  .greats-track,
  .landing-hero-marquee__track {
    transition: none;
    animation: none;
  }
}

@media (max-width: 1080px) {
  .site-header {
    border-radius: 30px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .story-grid,
  .sample-grid,
  .old-friends-section,
  .duo-grid,
  .mission-panel,
  .photo-grid,
  .memorial-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 520px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 760px) {
  .site-header,
  .section-shell,
  .hero {
    width: min(var(--max-width), calc(100vw - 48px));
  }

  .site-header {
    margin-top: 10px;
    padding: 16px;
    border-radius: 28px;
    align-items: flex-start;
    top: 8px;
    transition:
      padding 220ms ease,
      border-radius 220ms ease,
      box-shadow 220ms ease,
      transform 220ms ease,
      opacity 420ms ease,
      filter 420ms ease;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
    transition: width 220ms ease, height 220ms ease;
  }

  .site-nav,
  .header-actions,
  .cta-row,
  .hero-notes,
  .sample-columns,
  .testimonial-grid,
  .champion-gallery {
    flex-direction: column;
  }

  .site-nav,
  .header-actions {
    width: 100%;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }

  .site-nav a {
    font-size: 1rem;
  }

  .header-actions .button,
  .cta-row .button {
    width: 100%;
  }

  body.has-scrolled .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
  }

  body.has-scrolled .brand {
    gap: 8px;
  }

  body.has-scrolled .brand-logo {
    width: 38px;
    height: 38px;
  }

  body.has-scrolled .brand-text strong {
    font-size: 1rem;
  }

  body.has-scrolled .brand-text small,
  body.has-scrolled .site-nav,
  body.has-scrolled .header-actions .button:not([data-flip-link]) {
    display: none;
  }

  body.has-scrolled .header-actions {
    width: auto;
    flex-direction: row;
  }

  body.has-scrolled .header-actions .button[data-flip-link] {
    width: auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .hero {
    gap: 18px;
    padding-top: 18px;
  }

  .track-divider {
    width: min(330px, calc(100vw - 52px));
    height: 34px;
  }

  .hero-media {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .hero-copy,
  .sample-profile-card,
  .old-friends-section,
  .final-cta-panel {
    width: 100%;
    min-width: 0;
    padding: 28px 22px;
  }

  .hero-notes {
    gap: 18px;
    margin-top: 24px;
    padding-top: 22px;
  }

  .hero-notes div {
    flex: 0 0 auto;
    min-height: 0;
  }

  .hero-notes strong {
    margin-bottom: 2px;
  }

  .hero-notes span {
    line-height: 1.55;
  }

  .hero-image {
    min-height: 360px;
  }

  .hero-collage {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, auto));
  }

  .hero-photo-large,
  .hero-photo-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-badge {
    position: static;
    margin: 0 18px 18px;
  }

  h1 {
    font-size: 2.75rem;
    line-height: 1;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  h3 {
    font-size: 1.7rem;
  }

  .lead {
    max-width: 18rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .greats-track {
    grid-auto-columns: minmax(150px, 1fr);
  }

  .champion-tile {
    min-height: 220px;
  }

  .site-footer {
    margin: 0 auto 28px;
  }

  .memorial-card img {
    max-height: 240px;
  }

  .memorial-card-wide img {
    max-height: 280px;
  }
}

/* Handicapping tool styles */
.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.workspace {
  display: grid;
  gap: 18px;
}

.topbar,
.input-panel,
.summary-strip,
.profile-panel,
.race-card,
.empty-state {
  background:
    linear-gradient(145deg, rgba(247, 251, 255, 0.95), rgba(221, 234, 249, 0.95));
  border: 1px solid rgba(7, 27, 61, 0.14);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(7, 27, 61, 0.15);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-top: 4px solid var(--gold);
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.96), rgba(239, 245, 252, 0.96));
}

.tool-brand-heading {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}

.tool-brand-heading .eyebrow,
.tool-brand-heading h1 {
  grid-column: 2;
}

.tool-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(7, 27, 61, 0.16));
}

.topbar h1,
.print-header h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
}

.control-stack {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 320px;
}

.surface-toggle,
.bias-toggle,
.actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.surface-toggle,
.bias-toggle {
  align-items: center;
  display: grid;
  grid-template-columns: 62px repeat(4, minmax(54px, auto));
  justify-content: end;
}

.surface-toggle {
  grid-template-columns: 62px repeat(3, minmax(54px, auto)) 62px;
}

.surface-toggle .segmented,
.bias-toggle .segmented {
  min-width: 54px;
}

.toggle-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.segmented,
.primary-button,
.ghost-button {
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.segmented {
  background: #f7f9fd;
  color: var(--ink);
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.segmented:hover,
.segmented:focus-visible {
  border-color: rgba(7, 27, 61, 0.34);
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(7, 27, 61, 0.1);
}

.segmented.active,
.primary-button {
  border-color: var(--navy);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 10px 20px rgba(7, 27, 61, 0.16);
}

.primary-button {
  color: white;
}

.segmented.active {
  color: var(--gold);
}

.segmented.active:hover,
.segmented.active:focus-visible {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
  transform: translateY(-1px);
}

.ghost-button {
  background: transparent;
  color: var(--navy);
}

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

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.input-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(246, 250, 255, 0.94), rgba(219, 233, 249, 0.94));
}

.daily-entry-panel {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 12px 14px;
  position: relative;
}

.daily-entry-panel strong {
  display: block;
  margin-top: 2px;
}

.daily-entry-status {
  color: var(--muted);
  font-size: 0.86rem;
  min-width: 7rem;
  text-align: right;
}

.entry-date-control {
  display: grid;
  gap: 3px;
  position: relative;
}

.entry-date-control input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 800;
  padding: 0 10px;
}

.entry-date-picker {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(8.5rem, 1fr) 36px;
  min-height: 38px;
  overflow: hidden;
}

.entry-date-picker input {
  border: 0;
  border-radius: 0;
  min-height: 36px;
  width: 100%;
}

.entry-date-picker-button {
  align-items: center;
  align-self: stretch;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  position: relative;
}

.entry-date-picker-button::before {
  border: 2px solid var(--navy);
  border-radius: 3px;
  content: "";
  display: block;
  height: 15px;
  width: 15px;
}

.entry-date-picker-button::after {
  background: var(--navy);
  content: "";
  height: 2px;
  position: absolute;
  transform: translateY(-4px);
  width: 13px;
}

.entry-date-popover {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(7, 18, 48, 0.18);
  justify-self: end;
  padding: 10px;
  position: absolute;
  right: calc(14px + 7rem + 24px);
  top: 72px;
  width: 248px;
  z-index: 20;
}

.entry-date-calendar-head,
.entry-date-calendar-foot {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.entry-date-calendar-head strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.entry-date-calendar-head button,
.entry-date-calendar-foot button {
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  min-height: 30px;
  min-width: 34px;
}

.entry-date-calendar-head button::before {
  content: "<";
}

.entry-date-calendar-head button:last-child::before {
  content: ">";
}

.entry-date-weekdays,
.entry-date-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.entry-date-weekdays {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 10px;
  text-transform: uppercase;
}

.entry-date-day {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
  min-height: 30px;
}

.entry-date-day.outside-month {
  color: #7c8798;
  opacity: 0.7;
}

.entry-date-day.today {
  border-color: rgba(242, 184, 23, 0.85);
}

.entry-date-day.selected {
  background: var(--navy);
  color: #ffffff;
}

.entry-date-calendar-foot {
  margin-top: 8px;
}

.demo-reset-button {
  min-height: 38px;
  white-space: nowrap;
}

.track-selector-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(242, 184, 23, 0.14), transparent 42%),
    rgba(240, 246, 253, 0.9);
}

.track-selector-panel strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
}

.track-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.track-code-button {
  position: relative;
  min-height: 40px;
  min-width: 58px;
  border: 1px solid rgba(7, 27, 61, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.track-code-button::after {
  content: "";
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
  min-height: 0.6rem;
  text-transform: uppercase;
}

.track-code-button.has-card {
  border-color: rgba(242, 184, 23, 0.46);
  background: linear-gradient(135deg, #fff3c7, #f7dda0);
  color: var(--navy);
  box-shadow: 0 7px 16px rgba(120, 83, 0, 0.1);
}

.track-code-button.needs-purchase::after {
  content: "Buy";
}

.track-code-button.preparing-card {
  border-color: rgba(120, 120, 120, 0.3);
  background: linear-gradient(135deg, #f5f2eb, #e9e1d2);
  color: var(--navy);
}

.track-code-button.preparing-card::after {
  content: "Prep";
}

.track-code-button.ready-card::after {
  content: "View";
}

.track-code-button.active {
  border-color: var(--navy);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
}

.track-code-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.track-code-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.track-code-button.has-card:not(.active):hover {
  border-color: rgba(242, 184, 23, 0.68);
  background: linear-gradient(135deg, #fff7da, #fbe6ad);
}

.track-selector-status {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.drop-zone {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 260px;
  border: 2px dashed rgba(242, 184, 23, 0.75);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 184, 23, 0.12), transparent 34%),
    rgba(240, 246, 253, 0.86);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  padding: 24px;
}

.drop-zone.dragging {
  border-color: var(--gold);
  background: #fff8df;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--navy);
  color: var(--navy);
  color: var(--gold);
  font-weight: 900;
}

.drop-title {
  margin-top: 16px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.drop-meta {
  margin-top: 6px;
  max-width: 280px;
}

.summary-strip {
  display: grid;
  grid-template-columns: minmax(8rem, 0.42fr) minmax(22rem, 1.8fr) auto;
  gap: 1px;
  overflow: hidden;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.profile-builder {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(247, 251, 255, 0.95), rgba(221, 234, 249, 0.95));
  border: 1px solid rgba(7, 27, 61, 0.14);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(7, 27, 61, 0.15);
}

.profile-builder__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-builder__header strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
}

.profile-builder__header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-builder__status {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: right;
}

.profile-builder__form {
  display: grid;
  gap: 12px;
}

.profile-builder__form label {
  display: grid;
  gap: 6px;
}

.profile-builder__form input,
.profile-builder__form textarea,
.profile-builder__form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(7, 27, 61, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.profile-builder__form textarea {
  min-height: 88px;
  resize: vertical;
}

.profile-builder__hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.profile-builder__wide {
  grid-column: 1 / -1;
}

.profile-interview-stage {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 340px;
  padding: 16px;
  border: 1px solid rgba(7, 27, 61, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 255, 0.86)),
    radial-gradient(circle at 10% 12%, rgba(242, 184, 23, 0.16), transparent 28%);
}

.profile-interview-progress {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.profile-interview-meter {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 27, 61, 0.18);
}

.profile-interview-meter span {
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 180ms ease;
}

.profile-interview-step {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 240px;
  max-width: 760px;
}

.profile-interview-step[hidden] {
  display: none !important;
}

.profile-interview-step h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.profile-interview-step p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-preference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-builder__selected,
.profile-builder__search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-builder__search-results {
  min-height: 52px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
  will-change: opacity, transform;
}

.profile-builder__search-results.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.profile-builder__search-results.is-loading {
  opacity: 0.62;
  filter: saturate(0.88);
}

.profile-builder__search-results.is-empty {
  min-height: 0;
}

.profile-builder__selected {
  min-height: 42px;
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.profile-builder__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  border: 1px solid rgba(242, 184, 23, 0.5);
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(255, 248, 224, 0.92);
  color: var(--navy);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(5px);
  animation: profile-chip-arrive 180ms ease forwards;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.profile-chip:nth-child(2) { animation-delay: 20ms; }
.profile-chip:nth-child(3) { animation-delay: 40ms; }
.profile-chip:nth-child(4) { animation-delay: 60ms; }
.profile-chip:nth-child(5) { animation-delay: 80ms; }
.profile-chip:nth-child(6) { animation-delay: 100ms; }
.profile-chip:nth-child(7) { animation-delay: 120ms; }
.profile-chip:nth-child(8) { animation-delay: 140ms; }
.profile-chip:nth-child(9) { animation-delay: 160ms; }
.profile-chip:nth-child(10) { animation-delay: 180ms; }

.profile-chip:hover,
.profile-chip:focus-visible {
  border-color: rgba(7, 27, 61, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(7, 27, 61, 0.1);
  transform: translateY(-1px);
}

@keyframes profile-chip-arrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-chip small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(7, 27, 61, 0.16);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-selected-chip strong {
  font-size: 1rem;
  line-height: 1;
}

.profile-builder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-interview-report {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(7, 27, 61, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.profile-interview-report__header strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
}

.profile-interview-report__header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-interview-report__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-checklist,
.profile-next-questions {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.profile-checklist li,
.profile-next-questions li {
  margin: 0 0 8px;
  line-height: 1.45;
}

.profile-panel {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
}

.profile-panel-empty {
  background:
    linear-gradient(135deg, rgba(242, 184, 23, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.7);
}

.profile-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  line-height: 1.35;
}

.profile-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.profile-select-button {
  justify-self: start;
  min-height: 40px;
  border: 1px solid rgba(7, 27, 61, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}

.profile-select-button.active {
  border-color: var(--navy);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: white;
}

.profile-select-button--disabled {
  cursor: default;
  opacity: 0.7;
}

.summary-strip > div {
  padding: 16px 18px;
  background:
    linear-gradient(145deg, rgba(255, 250, 236, 0.76), rgba(239, 246, 254, 0.8));
}

.summary-confidence {
  display: flex;
  align-items: center;
}

.summary-confidence p {
  margin: 6px 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.summary-hidden-metric {
  display: none;
}

.summary-strip .summary-action {
  display: grid;
  align-content: center;
  gap: 8px;
  justify-items: start;
}

.summary-strip .summary-action[hidden] {
  display: none;
}

.summary-strip strong {
  display: block;
  margin-top: 2px;
  font-size: 1.6rem;
}

.metric-label,
.race-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.race-kicker {
  min-height: 4.75em;
  line-height: 1.24;
}

.print-header {
  display: none;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.results--measuring {
  position: absolute;
  left: -99999px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}

.race-card,
.empty-state {
  padding: 18px;
}

.race-card {
  min-height: var(--stable-card-min-height, 0);
  background:
    linear-gradient(145deg, rgba(248, 252, 255, 0.96), rgba(224, 236, 250, 0.96));
}

.empty-state {
  grid-column: 1 / -1;
  border-style: dashed;
  color: var(--muted);
  text-align: center;
}

.race-header,
.winner-row,
.runner-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.race-header {
  min-height: 104px;
}

.race-header > div:first-child {
  min-width: 0;
}

.winner-row,
.runner-row {
  position: relative;
}

.runner-row--untagged {
  align-items: flex-start;
}

.winner-row--scratched,
.runner-row--scratched {
  overflow: hidden;
  opacity: 0.78;
}

.winner-row--updating {
  border-color: rgba(18, 84, 166, 0.34);
  background:
    linear-gradient(145deg, rgba(235, 244, 255, 0.98), rgba(255, 246, 217, 0.96));
  box-shadow: inset 0 0 0 1px rgba(18, 84, 166, 0.12);
}

.winner-row--updating .winner-signals {
  color: #24476f;
  font-weight: 850;
}

.winner-update-status {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(18, 84, 166, 0.12);
  color: #123f74;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  vertical-align: middle;
}

.winner-row--scratched::before,
.runner-row--scratched::before {
  content: "";
  position: absolute;
  inset: 50% -12px auto;
  height: 3px;
  background: rgba(178, 28, 28, 0.74);
  transform: rotate(-8deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
}

.winner-row--scratched::after,
.runner-row--scratched::after {
  content: "SCRATCHED";
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 3px 12px;
  border: 1px solid rgba(178, 28, 28, 0.38);
  border-radius: 999px;
  background: rgba(255, 235, 235, 0.62);
  color: rgba(178, 28, 28, 0.72);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
  z-index: 2;
}

.race-header-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.race-profile-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(7, 27, 61, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.race-profile-switch button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(7, 27, 61, 0.72);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 9px;
}

.race-profile-switch button.active {
  background: var(--navy);
  color: var(--gold);
}

.race-card h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  line-height: 1.05;
  white-space: nowrap;
}

.surface-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: #efe0c5;
  color: #765321;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.surface-badge.dirt {
  background: #ead5b1;
  color: #6d4617;
}

.surface-badge.turf {
  background: #d8ead1;
  color: #1f642d;
}

.surface-badge.synthetic {
  background: #1c2430;
  color: #f6f0df;
}

.winner-row {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f7e3a4;
  border: 1px solid rgba(194, 137, 0, 0.18);
}

.winner-name,
.winner-confidence {
  display: block;
  margin-top: 2px;
  font-size: 1.1rem;
}

.winner-signals,
.runner-reasons,
.tough-race-note {
  color: var(--muted);
  line-height: 1.35;
}

.scratch-panel {
  margin-top: 12px;
  border: 1px solid rgba(7, 27, 61, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 251, 239, 0.86), rgba(234, 242, 253, 0.86));
  overflow: hidden;
}

.scratch-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 850;
}

.scratch-summary::marker {
  color: var(--gold);
}

.scratch-summary-title {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.scratch-summary-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.scratch-board {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.scratch-runner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 9px 8px 12px;
  border: 1px solid rgba(7, 27, 61, 0.1);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.82);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.scratch-name {
  position: relative;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 750;
}

.scratch-name::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -8px;
  top: 48%;
  height: 9px;
  background:
    linear-gradient(174deg, transparent 0 22%, rgba(184, 32, 32, 0.9) 23% 34%, transparent 35% 100%),
    linear-gradient(186deg, transparent 0 40%, rgba(220, 54, 45, 0.88) 41% 51%, transparent 52% 100%),
    linear-gradient(178deg, transparent 0 60%, rgba(145, 18, 22, 0.82) 61% 70%, transparent 71% 100%);
  opacity: 0;
  transform: rotate(-1deg) scaleX(0.2);
  transform-origin: left center;
  transition:
    opacity 160ms ease,
    transform 220ms ease;
}

.scratch-button {
  position: relative;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(7, 27, 61, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(7, 27, 61, 0.08);
}

.scratch-button:hover,
.scratch-button:focus-visible {
  border-color: rgba(242, 184, 23, 0.72);
  outline: none;
  transform: translateY(-1px);
}

.scratch-runner.scratched {
  border-color: rgba(7, 27, 61, 0.2);
  background:
    linear-gradient(135deg, rgba(7, 27, 61, 0.08), rgba(242, 184, 23, 0.12)),
    rgba(255, 253, 248, 0.72);
}

.scratch-runner.scratched .scratch-name {
  color: rgba(7, 27, 61, 0.62);
}

.scratch-runner.scratched .scratch-name::after {
  opacity: 1;
  transform: rotate(-1deg) scaleX(1);
}

.scratch-runner.scratched .scratch-button {
  background: var(--navy);
  border-color: var(--navy);
  color: #fffdf8;
}

.scratch-runner--locked .scratch-button,
.scratch-runner--locked .scratch-button:hover,
.scratch-runner--locked .scratch-button:focus-visible {
  cursor: not-allowed;
  transform: none;
  opacity: 0.72;
}

.runner-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.runner-row {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.runner-main {
  min-width: 0;
}

.runner-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 850;
}

.program-number {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdfa;
  color: var(--navy);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
}

.runner-score {
  align-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(194, 137, 0, 0.28);
  border-radius: 7px;
  background: rgba(255, 250, 236, 0.8);
  color: var(--navy);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

@media print {
  @page {
    size: letter portrait;
    margin: 0.42in;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    width: auto;
    min-height: auto;
    margin: 0;
    background: #ffffff !important;
    color: #071b3d;
    font-size: 9.5pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .app-shell {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .workspace {
    display: block;
  }

  .topbar,
  .input-panel,
  .profile-grid,
  .summary-strip,
  .race-header-actions,
  .scratch-panel,
  .empty-state {
    display: none !important;
  }

  .print-header {
    display: block;
    margin: 0 0 0.18in;
    padding: 0 0 0.12in;
    border-bottom: 2px solid #071b3d;
  }

  .print-header .eyebrow {
    margin: 0;
    color: #8a650d;
    font-size: 8pt;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .print-header h1 {
    margin: 0.03in 0 0;
    color: #071b3d;
    font-size: 22pt;
    line-height: 1;
  }

  .print-meta {
    margin: 0.06in 0 0;
    color: #36465f;
    font-size: 8.5pt;
    font-weight: 700;
  }

  .results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.12in;
  }

  .race-card {
    break-inside: avoid;
    page-break-inside: avoid;
    min-height: 0 !important;
    padding: 0.12in;
    border: 1px solid #b9c3d1;
    border-radius: 0;
    background: #ffffff !important;
  }

  .race-header,
  .winner-row,
  .runner-row {
    gap: 0.08in;
  }

  .race-header,
  .race-kicker {
    min-height: 0;
  }

  .race-kicker,
  .metric-label {
    color: #516079;
    font-size: 7pt;
    font-weight: 900;
  }

  .race-card h2 {
    margin: 0.02in 0 0;
    color: #071b3d;
    font-size: 12pt;
    line-height: 1.12;
  }

  .winner-row {
    margin-top: 0.08in;
    padding: 0.08in;
    border: 1px solid #d6b24f;
    border-radius: 0;
    background: #fff2c2 !important;
  }

  .winner-name,
  .winner-confidence {
    font-size: 10.5pt;
  }

  .winner-signals,
  .runner-reasons,
  .tough-race-note {
    margin: 0.04in 0 0;
    color: #24334c;
    line-height: 1.22;
  }

  .runner-list {
    gap: 0.06in;
    margin-top: 0.08in;
  }

  .runner-row {
    padding-top: 0.06in;
    border-top: 1px solid #d9dee8;
  }

  .runner-name {
    gap: 0.04in;
    font-size: 9.2pt;
  }

  .program-number {
    min-height: auto;
    padding: 1px 4px;
    border-color: #b9c3d1;
    border-radius: 0;
    background: #ffffff !important;
    font-size: 7.5pt;
  }

  .runner-score {
    min-height: auto;
    padding: 1px 4px;
    border-color: #d6b24f;
    border-radius: 0;
    background: #fff8de !important;
    color: #071b3d;
    font-size: 8pt;
  }

  .winner-row--scratched,
  .runner-row--scratched {
    opacity: 0.58;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 20px, 1180px);
    padding: 10px 0;
  }

  .topbar {
    display: grid;
  }

  .tool-brand-heading {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 12px;
  }

  .tool-logo {
    width: 64px;
    height: 64px;
  }

  .topbar h1 {
    font-size: 2.35rem;
  }

  .control-stack,
  .surface-toggle,
  .bias-toggle {
    width: 100%;
  }

  .control-stack {
    min-width: 0;
  }

  .surface-toggle,
  .bias-toggle {
    grid-template-columns: 1fr repeat(4, minmax(0, 1fr));
  }

  .surface-toggle {
    grid-template-columns: 1fr repeat(3, minmax(0, 1fr)) 1fr;
  }

  .toggle-label {
    text-align: left;
  }

  .segmented {
    flex: 1;
  }

  .daily-entry-panel {
    grid-template-columns: 1fr;
  }

  .entry-date-popover {
    justify-self: stretch;
    left: 14px;
    right: 14px;
    top: 116px;
    width: auto;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-builder__header,
  .profile-builder__form,
  .profile-preference-grid {
    grid-template-columns: 1fr;
  }

  .profile-interview-stage {
    min-height: 380px;
    padding: 14px;
  }

  .profile-interview-progress {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-builder__status {
    max-width: none;
    text-align: left;
  }

  .daily-entry-status {
    min-width: 0;
    text-align: left;
  }

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

  .summary-confidence {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .race-header {
    flex-direction: column;
    align-items: stretch;
  }

  .race-header-actions {
    justify-items: start;
  }

  .race-profile-switch {
    width: 100%;
  }

  .race-profile-switch button {
    flex: 1 1 0;
  }
}
