/* Tavla landing — fristående stilark, inga beroenden mot Tabler eller app.css.
   Aesthetic: editorial sport-magazine. Cream, ink, oxblood. Fraunces + Schibsted Grotesk. */

:root {
  /* Palette */
  --ink:        #1A1614;
  --ink-soft:   #4A4339;
  --cream:      #F4EFE6;
  --cream-deep: #E8E0D0;
  --cream-shadow: #D7CDB8;
  --paper:      #FBF8F1;
  --oxblood:    #7B1E1E;
  --oxblood-dark: #5C1414;
  --saffron:    #C89B3C;
  --moss:       #4F7A3A;
  --line:       rgba(26,22,20,0.12);
  --line-strong:rgba(26,22,20,0.22);

  /* Type */
  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --sans:  'Schibsted Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Spacing */
  --wrap-max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(80px, 10vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Subtle paper grain — created with two layered radial gradients */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(123,30,30,0.025) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(200,155,60,0.04) 0, transparent 45%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--oxblood); color: var(--cream); }

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 28px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: clamp(34px, 4vw, 58px); }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; }

.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 300; }

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 36px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(244,239,230,0.78);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark svg { width: 20px; height: 20px; flex-shrink: 0; }
.brand { display: inline-flex; align-items: baseline; gap: 1px; }
.brand-tld {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--oxblood);
  margin-left: 0;
  position: relative;
  top: -1px;
}
@media (max-width: 540px) {
  .wordmark { font-size: 18px; }
  .brand-tld { font-size: 10.5px; }
}
nav.site-nav {
  display: flex;
  gap: 32px;
}
nav.site-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 180ms;
}
nav.site-nav a:hover { color: var(--ink); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding-inline: 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), background 180ms, color 180ms, border-color 180ms;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--oxblood); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-small { height: 38px; padding-inline: 16px; font-size: 13.5px; }

/* ============ HERO ============ */
.hero {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Big decorative serif Ω-like glyph in the background — barely visible */
  content: '';
  position: absolute;
  top: 8%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--cream-deep) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-copy { animation: fadeUp 800ms cubic-bezier(.16,1,.3,1) both; }
.hero-copy .eyebrow { animation: fadeUp 800ms cubic-bezier(.16,1,.3,1) 80ms both; }
.hero-copy .headline { animation: fadeUp 900ms cubic-bezier(.16,1,.3,1) 140ms both; }
.hero-copy .lede { animation: fadeUp 900ms cubic-bezier(.16,1,.3,1) 240ms both; }
.hero-copy .hero-cta { animation: fadeUp 900ms cubic-bezier(.16,1,.3,1) 340ms both; }

.headline {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  font-variation-settings: "opsz" 144;
}
.headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--oxblood);
  font-variation-settings: "opsz" 144;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-screens {
  position: relative;
  min-height: 480px;
  animation: fadeUp 1000ms cubic-bezier(.16,1,.3,1) 200ms both;
}

/* ============ SCREEN ILLUSTRATIONS ============ */
.screen {
  position: absolute;
  margin: 0;
  filter: drop-shadow(0 30px 50px rgba(26,22,20,0.18)) drop-shadow(0 6px 12px rgba(26,22,20,0.1));
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.screen .bezel {
  background: linear-gradient(180deg, #1F1A18 0%, #0E0C0B 100%);
  border-radius: 14px;
  padding: 14px;
  position: relative;
}
.screen .bezel::after {
  /* tiny camera/LED notch */
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
}
.screen .screen-content {
  background: #0B0908;
  border-radius: 4px;
  overflow: hidden;
  color: #F1ECE2;
  font-family: var(--sans);
}
.screen figcaption {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

/* Landscape — anchored top-left of the column, slight CCW tilt */
.screen-landscape {
  top: 20px; left: 0;
  width: min(100%, 560px);
  transform: rotate(-2.5deg);
  z-index: 2;
}
.screen-landscape:hover { transform: rotate(-1deg) translateY(-4px); }
.screen-landscape .screen-content { aspect-ratio: 16/9; }

/* Portrait — anchored bottom-right, overlapping */
.screen-portrait {
  bottom: 0; right: 0;
  width: min(48%, 220px);
  transform: rotate(4deg) translateY(60px);
  z-index: 3;
}
.screen-portrait:hover { transform: rotate(2deg) translateY(54px); }
.screen-portrait .screen-content { aspect-ratio: 9/16; }

@media (max-width: 700px) {
  .hero-screens { min-height: 420px; }
  .screen-landscape { width: 88%; }
  .screen-portrait { width: 36%; }
}

/* ====== Board content (the "screenshot" insides) ====== */
.board {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-feature-settings: "tnum" 1, "ss01" 1;
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C5BFB2;
}
.board-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E9D6A8;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #D44747;
  box-shadow: 0 0 0 0 rgba(212,71,71,0.7);
  animation: livePulse 1600ms ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0   rgba(212,71,71,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(212,71,71,0); }
  100% { box-shadow: 0 0 0 0   rgba(212,71,71,0); }
}

.board-title {
  padding: 14px 16px 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.board-title .race-no {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #C89B3C;
  text-transform: uppercase;
}
.board-title .race-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.board-meta {
  padding: 0 16px 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9C9486;
}
.board-list {
  flex: 1;
  padding: 6px 16px 14px;
  display: grid;
  align-content: start;
  gap: 4px;
}
.board-row {
  display: grid;
  grid-template-columns: 18px 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.board-row:last-child { border-bottom: 0; }
.board-row .pos {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  text-align: center;
  color: #D9CFB8;
}
.board-row .name {
  font-weight: 500;
  letter-spacing: -0.005em;
}
.board-row .driver {
  font-size: 11px;
  color: #ADA391;
  margin-top: 2px;
}
.board-row .time, .board-row .prize {
  font-family: var(--mono);
  font-size: 11.5px;
  font-feature-settings: "tnum" 1;
  color: #E9D6A8;
}
.board-row.podium-1 { background: linear-gradient(90deg, rgba(200,155,60,0.12), transparent); }
.board-row.podium-1 .pos { color: #E9D6A8; }
.board-row.podium-1 .name { color: #FFF6E2; }

/* Portrait board (schedule) */
.schedule-head {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.schedule-bana {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.schedule-title {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C89B3C;
  margin-top: 8px;
}
.schedule-date {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #9C9486;
  text-transform: uppercase;
  margin-top: 4px;
}
.schedule-list { padding: 8px 12px; }
.sched-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 10.5px;
}
.sched-row:last-child { border-bottom: 0; }
.sched-row .when {
  font-family: var(--mono);
  color: #E9D6A8;
  font-size: 11px;
}
.sched-row .what .num {
  font-family: var(--serif);
  font-size: 11px;
  color: #C5BFB2;
  letter-spacing: 0.06em;
}
.sched-row .what .label {
  display: block;
  margin-top: 2px;
  color: #ADA391;
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.sched-row.now {
  background: linear-gradient(90deg, rgba(123,30,30,0.45), transparent 80%);
  padding-left: 8px;
  margin-left: -8px;
}
.sched-row.now .when { color: #FFD9B5; }
.sched-row.now .what .num { color: #FFF; }

/* ============ FEATURES ============ */
.features {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--oxblood);
}
.section-head p {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 48px);
}
@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.feature .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--oxblood);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  display: block;
}
.feature h3 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.012em;
}
.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============ SHOWCASE ============ */
.showcase {
  padding-block: var(--section-pad);
  background: var(--cream);
  border-top: 1px solid var(--line);
  position: relative;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
  margin-top: 60px;
}
.showcase-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.showcase-item .frame {
  background: var(--cream-deep);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.showcase-item .frame::after {
  /* floor reflection */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--cream-shadow));
  pointer-events: none;
}
.showcase-item .mini-screen {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #1F1A18 0%, #0E0C0B 100%);
  border-radius: 8px;
  padding: 7px;
  filter: drop-shadow(0 20px 30px rgba(26,22,20,0.25));
}
.showcase-item .mini-screen > div {
  background: #0B0908;
  border-radius: 3px;
  width: 100%; height: 100%;
}
.showcase-item .label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}
.showcase-item .label strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
}
.showcase-item .label .dim {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--oxblood);
}

/* layout: 3 across, varied sizes */
.showcase-item.a { grid-column: 1 / span 4; }
.showcase-item.b { grid-column: 5 / span 4; }
.showcase-item.b .frame { min-height: 420px; }
.showcase-item.c { grid-column: 9 / span 4; }

.showcase-item.a .mini-screen { width: 100%; aspect-ratio: 9/16; }
.showcase-item.b .mini-screen { width: 100%; aspect-ratio: 16/10; }
.showcase-item.c .mini-screen { width: 80%; aspect-ratio: 4/3; }

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase-item.a, .showcase-item.b, .showcase-item.c { grid-column: 1; }
}

/* Mini-board styles for showcase */
.mini-board {
  width: 100%; height: 100%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 8px;
  color: #C5BFB2;
}
.mini-board .mh {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mini-board .mh .dot { color: #D44747; }
.mini-board .mt {
  font-family: var(--serif);
  color: #FFF;
  font-size: 13px;
  letter-spacing: -0.01em;
  margin-top: 4px;
  line-height: 1.1;
}
.mini-board .mt em { color: #C89B3C; font-style: normal; font-size: 8px; font-family: var(--sans); letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.mini-board .ml {
  display: grid; gap: 3px;
  margin-top: 6px;
  font-size: 8px;
  flex: 1;
}
.mini-board .ml > div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mini-board .ml > div .p { font-family: var(--serif); font-style: italic; color: #E9D6A8; text-align: center; }
.mini-board .ml > div .n { color: #F1ECE2; }
.mini-board .ml > div .t { font-family: var(--mono); color: #E9D6A8; font-size: 7.5px; }

/* ============ HOW IT WORKS ============ */
.how {
  padding-block: var(--section-pad);
  background: var(--ink);
  color: var(--cream);
}
.how .eyebrow { color: var(--saffron); }
.how h2 { color: var(--cream); }
.how h2 em { font-style: italic; font-weight: 300; color: var(--saffron); }
.how .section-head p { color: rgba(244,239,230,0.7); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 80px;
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 48px; } }
.step {
  padding-top: 28px;
  border-top: 1px solid rgba(244,239,230,0.18);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 56px;
  line-height: 0.9;
  color: var(--saffron);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.step h3 {
  font-size: 26px;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.step p {
  margin: 0;
  font-size: 15px;
  color: rgba(244,239,230,0.75);
  line-height: 1.6;
  max-width: 32ch;
}

/* ============ PRICING BANNER ============ */
.pricing {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.pricing::before {
  /* subtle warm glow behind the price */
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(200,155,60,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.pricing-band {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 920px) {
  .pricing-band { grid-template-columns: 1fr; text-align: left; gap: 36px; }
}

.pricing-pitch h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 6px 0 14px;
  font-variation-settings: "opsz" 144;
}
.pricing-pitch h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--oxblood);
}
.pricing-fine {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: -0.005em;
}
.pricing-vat {
  font-size: 11.5px;
  color: var(--ink-soft);
  opacity: 0.7;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-top: 4px;
}

.pricing-month {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(20px, 3vw, 40px);
}
@media (max-width: 920px) {
  .pricing-month { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 28px; }
}

.price {
  font-family: var(--serif);
  font-weight: 380;
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.price .amount {
  font-size: clamp(72px, 9vw, 124px);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.price .cur {
  font-family: var(--sans);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.period {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pricing-year {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(20px, 3vw, 40px);
}
@media (max-width: 920px) {
  .pricing-year { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 28px; }
}

.alt-line { display: flex; flex-direction: column; gap: 4px; }
.alt-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.alt-amount {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.save-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 8px;
  background: var(--oxblood);
  color: var(--cream);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.save-pill strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.save-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--saffron);
}

/* ============ CLOSING CTA ============ */
.closing {
  padding-block: var(--section-pad);
  background: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw; height: 90vw;
  max-width: 1200px; max-height: 1200px;
  background: radial-gradient(circle, var(--cream-deep) 0%, transparent 55%);
  z-index: 0;
}
.closing > * { position: relative; z-index: 1; }
.closing h2 {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 380;
  max-width: 18ch;
  margin-inline: auto;
  font-variation-settings: "opsz" 144;
}
.closing h2 em { font-style: italic; font-weight: 300; color: var(--oxblood); }
.closing p {
  margin: 28px auto 40px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--ink-soft);
  max-width: 50ch;
}
.closing .btn { height: 56px; padding-inline: 28px; font-size: 15.5px; }

/* ============ FOOTER ============ */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .wordmark { font-size: 20px; }
.site-footer .meta { display: flex; gap: 28px; align-items: center; }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-attribution {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0.85;
  padding-left: 32px; /* align with wordmark text past the icon */
}
.footer-attribution strong {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.01em;
}
@media (max-width: 540px) {
  .footer-attribution { padding-left: 0; font-size: 11.5px; }
}

/* ============ LOGIN MODAL ============ */
.login-modal {
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow:
    0 30px 70px rgba(26,22,20,0.25),
    0 10px 20px rgba(26,22,20,0.12);
  overflow: hidden;
}
.login-modal::backdrop {
  background: rgba(26,22,20,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.login-modal[open] { animation: modalIn 320ms cubic-bezier(.16,1,.3,1); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-form {
  padding: 40px 36px 32px;
  display: grid;
  gap: 16px;
  position: relative;
}
.login-form .modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms;
}
.login-form .modal-close:hover { background: var(--cream-deep); color: var(--ink); }
.login-form .eyebrow { margin: 0; }
.login-form h2 {
  font-size: 32px;
  letter-spacing: -0.015em;
  margin: 4px 0 8px;
  font-variation-settings: "opsz" 24;
}
.login-form h2 em { font-style: italic; font-weight: 300; color: var(--oxblood); }
.login-form .field { display: grid; gap: 6px; }
.login-form .field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.login-form input[type="email"],
.login-form input[type="password"] {
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 180ms, background 180ms;
}
.login-form input:focus {
  outline: 2px solid var(--oxblood);
  outline-offset: 2px;
  border-color: var(--oxblood);
  background: #FFF;
}
.login-form .forgot {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: color 180ms, text-decoration-color 180ms;
}
.login-form .forgot:hover { color: var(--oxblood); text-decoration-color: var(--oxblood); }
.login-form .btn-primary { height: 50px; margin-top: 6px; }
.login-form .alert {
  background: rgba(123,30,30,0.08);
  color: var(--oxblood-dark);
  border: 1px solid rgba(123,30,30,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
