:root {
  --ink: #171412;
  --paper: #fbf6ef;
  --salt: #fffdf8;
  --coffee: #4b2c22;
  --coral: #d66f5e;
  --aqua: #7da9a9;
  --sage: #9aa36f;
  --line: rgba(23, 20, 18, 0.14);
  --shadow: 0 24px 70px rgba(51, 31, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: flex;
  width: min(calc(100% - 32px), 1160px);
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(251, 246, 239, 0.78);
  box-shadow: 0 12px 40px rgba(23, 20, 18, 0.08);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.nav-links,
.hero-actions,
.price-row,
.plan-toggle,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--salt);
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 12px 15px;
  color: rgba(23, 20, 18, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  background: var(--salt);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--salt);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  align-items: end;
  overflow: hidden;
  padding: 116px 24px 42px;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(23, 20, 18, 0.78), rgba(23, 20, 18, 0.2) 52%, rgba(251, 246, 239, 0.16)),
    linear-gradient(0deg, rgba(23, 20, 18, 0.76), rgba(23, 20, 18, 0.02) 45%);
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  color: var(--salt);
}

.eyebrow,
.mini-label {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd5bf;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(64px, 11vw, 156px);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.05;
}

.hero-text {
  max-width: 620px;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.4;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--salt);
}

.button.ghost {
  border-color: rgba(255, 253, 248, 0.6);
  color: var(--salt);
}

.button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.button.muted {
  background: var(--salt);
}

.button.full {
  width: 100%;
}

.hero-card {
  position: absolute;
  right: 24px;
  bottom: 42px;
  z-index: 2;
  width: min(300px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid rgba(255, 253, 248, 0.46);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.16);
  color: var(--salt);
  backdrop-filter: blur(16px);
}

.hero-card strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 44px;
  line-height: 1;
}

.hero-card p {
  margin: 10px 0 0;
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.45;
}

.ticker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--salt);
  scrollbar-width: none;
}

.ticker span {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(255, 253, 248, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro,
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 52px;
  align-items: start;
}

.intro > p,
.about-copy p {
  color: rgba(23, 20, 18, 0.7);
  font-size: 20px;
  line-height: 1.55;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

.product-card,
.plan-card,
.steps article,
.badge-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
  box-shadow: 0 12px 38px rgba(51, 31, 22, 0.08);
}

.product-card {
  overflow: hidden;
}

.product-card.featured {
  background: var(--salt);
}

.product-visual {
  display: grid;
  min-height: 240px;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.product-visual span {
  display: grid;
  place-items: center;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.passport-visual {
  background: linear-gradient(135deg, #fff9ef, #e7c6b2 54%, #1c1715);
}

.passport-visual span {
  width: 118px;
  height: 162px;
  border: 1px solid rgba(23, 20, 18, 0.22);
  border-radius: 8px;
  background: var(--paper);
  color: var(--coffee);
  font-size: 32px;
  box-shadow: var(--shadow);
}

.badge-visual {
  background: linear-gradient(135deg, #dae9e8, #fffdf8);
}

.badge-visual span,
.social-badge {
  border-radius: 50%;
  background: var(--ink);
  color: var(--salt);
}

.badge-visual span {
  width: 132px;
  height: 132px;
  border: 8px solid var(--coral);
  font-size: 19px;
}

.tote-visual {
  background: linear-gradient(135deg, #f6e3cf, #9aa36f);
}

.tote-visual span {
  width: 146px;
  height: 132px;
  border: 2px solid var(--ink);
  border-radius: 8px 8px 18px 18px;
  background: var(--salt);
  color: var(--ink);
  font-size: 28px;
}

.product-info,
.plan-card,
.steps article,
.badge-panel {
  padding: 24px;
}

.product-info p:not(.mini-label),
.plan-card li,
.badge-panel p,
.steps p {
  color: rgba(23, 20, 18, 0.66);
  line-height: 1.5;
}

.price-row {
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.price-row span {
  font-size: 22px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.split .section-heading {
  display: block;
  margin-bottom: 0;
}

.steps {
  display: grid;
  gap: 12px;
}

.steps article span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--aqua);
  font-size: 13px;
  font-weight: 900;
}

.ranking {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - 1160px) / 2));
  padding-left: max(16px, calc((100vw - 1160px) / 2));
  background: #efe3d5;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
}

.leaderboard {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--salt);
}

.rank-row.top {
  background: var(--ink);
  color: var(--salt);
}

.rank-row span {
  color: var(--coral);
  font-weight: 900;
}

.rank-row strong {
  overflow: hidden;
  font-size: clamp(18px, 3vw, 32px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: rgba(23, 20, 18, 0.58);
  font-style: normal;
  font-weight: 800;
}

.rank-row.top em {
  color: rgba(255, 253, 248, 0.68);
}

.badge-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--salt);
}

.social-badge {
  display: grid;
  width: min(260px, 100%);
  aspect-ratio: 1;
  place-items: center;
  margin: 8px auto 22px;
  padding: 28px;
  text-align: center;
}

.social-badge span,
.social-badge small {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.social-badge strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 74px;
  line-height: 0.9;
}

.plans {
  padding-bottom: 64px;
}

.plan-toggle {
  width: fit-content;
  margin: 0 0 16px auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--salt);
}

.plan-toggle button {
  min-width: 104px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 20, 18, 0.58);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.plan-toggle button.active {
  background: var(--ink);
  color: var(--salt);
}

.plan-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
}

.plan-card.selected {
  background: var(--ink);
  color: var(--salt);
}

.plan-card.selected .mini-label,
.plan-card.selected li {
  color: rgba(255, 253, 248, 0.72);
}

.plan-price {
  margin: 14px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 68px;
  line-height: 1;
}

.plan-price::after {
  content: "/mo";
  margin-left: 4px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.season .plan-price::after {
  content: "/season";
}

ul {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

li::before {
  content: "+";
  margin-right: 8px;
  color: var(--coral);
  font-weight: 900;
}

.plan-card .button {
  margin-top: auto;
}

.about {
  border-top: 1px solid var(--line);
}

footer {
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  min-height: 92px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: rgba(23, 20, 18, 0.62);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: var(--salt);
    box-shadow: var(--shadow);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 16px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 42px;
  }

  .intro,
  .about,
  .split,
  .ranking-layout,
  .product-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .ranking {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand span:last-child {
    max-width: 152px;
  }

  .hero {
    min-height: 760px;
    padding: 96px 16px 28px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(23, 20, 18, 0.78), rgba(23, 20, 18, 0.34)),
      linear-gradient(0deg, rgba(23, 20, 18, 0.78), rgba(23, 20, 18, 0.05) 48%);
  }

  .button {
    width: 100%;
  }

  .ticker {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section {
    width: calc(100% - 28px);
  }

  .rank-row {
    grid-template-columns: 42px 1fr;
  }

  .rank-row em {
    grid-column: 2;
  }

  footer {
    display: grid;
    gap: 12px;
    padding: 24px 0;
  }
}
