/* ================================
   Design Tokens
================================ */
:root {
  --bg: #f5f3ef;
  --surface: #f0ede7;
  --surface-alt: #ebe7df;
  --text: #272522;
  --muted: #5f5b53;
  --accent: #7d6a56;
  --accent-strong: #645240;
  --accent-soft: #d9cfbf;
  --border: #d8d1c6;
  --shadow: 0 8px 24px rgba(30, 27, 22, 0.08);
  --shadow-soft: 0 8px 20px rgba(39, 34, 27, 0.05);
  --shadow-lift: 0 16px 34px rgba(39, 34, 27, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --ease-standard: cubic-bezier(0.2, 0.65, 0.2, 1);
  --gutter: 1.25rem;

  --space-1: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  --space-2: clamp(0.75rem, 0.6rem + 0.7vw, 1.2rem);
  --space-3: clamp(1rem, 0.9rem + 0.9vw, 1.6rem);
  --space-4: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem);
  --space-5: clamp(2rem, 1.6rem + 2.2vw, 3.6rem);
  --space-6: clamp(3rem, 2.2rem + 3.8vw, 5.5rem);
  --section-space: clamp(2.8rem, 1.9rem + 4.2vw, 6rem);
  --measure: 68ch;

  --text-xs: clamp(0.75rem, 0.72rem + 0.2vw, 0.84rem);
  --text-sm: clamp(0.88rem, 0.83rem + 0.28vw, 1rem);
  --text-md: clamp(1rem, 0.94rem + 0.4vw, 1.15rem);
  --text-lg: clamp(1.16rem, 1.03rem + 0.66vw, 1.48rem);
  --text-xl: clamp(1.95rem, 1.42rem + 2.3vw, 3.22rem);
  --text-hero: clamp(2.05rem, 1.45rem + 2.7vw, 4.7rem);
}

/* ================================
   Base
================================ */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: var(--text-md);
  line-height: 1.7;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(rgba(39, 37, 34, 0.32) 0.35px, transparent 0.35px);
  background-size: 3px 3px;
}

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

a {
  color: inherit;
}

/* ================================
   Layout
================================ */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: var(--text);
  color: var(--bg);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
}

.skip-link:focus {
  top: 0.4rem;
  left: 0.4rem;
}

.container {
  width: min(1100px, calc(100% - var(--gutter)));
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100%);
}

/* POLISH: normalize vertical rhythm with a shared section cadence token */
.section {
  position: relative;
  padding-block: var(--section-space);
}

/* POLISH: subtle transitions between sections to avoid harsh breaks */
.section + .section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1120px, calc(100% - var(--gutter)));
  transform: translateX(-50%);
  border-top: 1px solid color-mix(in oklab, var(--border) 68%, transparent 32%);
}

.tonal {
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(245, 243, 239, 0.94);
  background: color-mix(in oklab, var(--bg) 84%, white 16%);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 82%, transparent 18%);
}

.nav-wrap {
  min-height: 3.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.22rem, 1.06rem + 0.55vw, 1.45rem);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 180ms var(--ease-standard), border-color 180ms var(--ease-standard);
}

.text-link {
  text-decoration: none;
  color: var(--muted);
  font-size: var(--text-sm);
  border-bottom: 1px solid transparent;
  transition:
    border-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    transform 180ms var(--ease-standard);
}

.text-link:hover,
.text-link:focus-visible {
  border-color: var(--muted);
  transform: translateY(-1px);
}

.text-link:active {
  transform: translateY(0);
}

.nav-cta {
  padding: 0.46rem 0.78rem;
  border: 1px solid color-mix(in oklab, var(--accent-soft) 58%, var(--accent-strong) 42%);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 72%, white 28%);
  color: color-mix(in oklab, var(--text) 72%, var(--accent-strong) 28%);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: color-mix(in oklab, var(--accent-strong) 72%, black 28%);
  background: color-mix(in oklab, var(--surface) 58%, white 42%);
}

.nav-cta:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 46%, white 54%);
  outline-offset: 3px;
}

.brand:hover,
.brand:focus-visible {
  color: color-mix(in oklab, var(--text) 74%, var(--accent-strong) 26%);
}

/* ================================
   Hero
================================ */
.hero {
  padding-top: clamp(2.8rem, 2.25rem + 2.2vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 var(--space-3);
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--text-hero);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 12ch;
}

.eyebrow {
  margin: 0 0 var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 500;
}

.lede,
.section-intro {
  margin-top: var(--space-2);
  font-size: var(--text-lg);
  color: #35322d;
  color: color-mix(in oklab, var(--text) 84%, var(--muted) 16%);
  max-width: 34ch;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.hero-actions .button {
  width: min(100%, 18rem);
}

.button {
  appearance: none;
  border: 1px solid color-mix(in oklab, var(--accent-strong) 76%, black 24%);
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--accent-strong) 90%, black 10%) 0%,
    color-mix(in oklab, var(--accent-strong) 74%, black 26%) 100%
  );
  color: #f8f6f2;
  padding: 0.8rem 1.35rem;
  min-height: 2.9rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(55, 43, 32, 0.12);
  transition:
    background-color 220ms var(--ease-standard),
    border-color 220ms var(--ease-standard),
    box-shadow 220ms var(--ease-standard),
    transform 220ms var(--ease-standard);
}

.button:hover,
.button:focus-visible {
  background: color-mix(in oklab, var(--accent-strong) 68%, black 32%);
  border-color: color-mix(in oklab, var(--accent-strong) 62%, black 38%);
  box-shadow: 0 10px 22px rgba(55, 43, 32, 0.16);
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid #c8b9a6;
  outline: 3px solid color-mix(in oklab, var(--accent) 46%, white 54%);
  outline-offset: 3px;
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(55, 43, 32, 0.12);
}

.hero-image-frame {
  margin: var(--space-2) auto 0;
  width: min(100%, clamp(220px, 72vw, 370px));
  justify-self: center;
}

.hero-image-frame img {
  width: 100%;
  height: auto;
}

/* ================================
   Type + Content
================================ */
h2 {
  margin: 0 0 var(--space-2);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
  font-size: var(--text-xl);
}

p,
ul,
blockquote {
  margin: 0;
}

p {
  max-width: var(--measure);
}

h2 + p,
h2 + ul {
  margin-top: var(--space-1);
}

/* ================================
   Cards + Media
================================ */
.feature-section {
  text-align: center;
}

.feature-shell {
  position: relative;
  padding: clamp(1.05rem, 0.86rem + 1.1vw, 2.05rem);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in oklab, var(--border) 72%, transparent 28%);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--surface) 70%, white 30%), color-mix(in oklab, var(--surface-alt) 80%, white 20%));
  box-shadow:
    0 14px 32px rgba(36, 32, 26, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.feature-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 34%;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.feature-section h2 {
  margin-inline: auto;
  max-width: 18ch;
}

.feature-section .section-intro {
  margin-inline: auto;
}

.solution-focus {
  text-align: center;
}

.solution-focus h2 {
  margin-inline: auto;
  max-width: 18ch;
}

.solution-focus .eyebrow {
  margin-bottom: var(--space-2);
}

.solution-points {
  list-style: none;
  margin: var(--space-3) auto 0;
  padding: 0;
  width: min(100%, 30rem);
  display: grid;
  gap: 0.62rem;
}

.solution-points li {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.08rem, 0.98rem + 0.72vw, 1.52rem);
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: color-mix(in oklab, var(--text) 90%, var(--accent-strong) 10%);
  padding: clamp(0.72rem, 0.56rem + 0.5vw, 1rem) clamp(1rem, 0.7rem + 1vw, 1.6rem);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklab, var(--border) 76%, transparent 24%);
  background: color-mix(in oklab, var(--bg) 62%, white 38%);
  box-shadow: 0 8px 18px rgba(38, 33, 27, 0.05);
  opacity: 1;
  transform: none;
}

.js .solution-focus .solution-points li {
  opacity: 0;
  transform: translateY(14px);
}

.js .solution-focus.is-visible .solution-points li {
  animation: solution-item-in 560ms var(--ease-standard) forwards;
}

.js .solution-focus.is-visible .solution-points li:nth-child(2) {
  animation-delay: 90ms;
}

.js .solution-focus.is-visible .solution-points li:nth-child(3) {
  animation-delay: 180ms;
}

.js .solution-focus.is-visible .solution-points li:nth-child(4) {
  animation-delay: 270ms;
}

@keyframes solution-item-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.final-cta h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.final-cta {
  text-align: center;
}

.video-embed {
  margin-top: var(--space-3);
  position: relative;
  padding-top: 56.25%;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-embed iframe {
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.waitlist-shell {
  text-align: center;
}

.waitlist-shell h2 {
  margin-inline: auto;
}

.waitlist-disclaimer {
  margin: var(--space-2) auto 0;
  width: min(100%, 34rem);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: color-mix(in oklab, var(--muted) 90%, var(--text) 10%);
}

.site-footer {
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent 30%);
  padding-block: var(--space-4);
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: flex-start;
  color: var(--muted);
  font-size: var(--text-sm);
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.ig-link svg {
  flex-shrink: 0;
}

/* ================================
   Motion
================================ */
.reveal {
  opacity: 1;
  transform: none;
}

/* POLISH: smoother, less jumpy reveal easing and distance */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms var(--ease-standard), transform 620ms var(--ease-standard);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Responsive
================================ */
@media (min-width: 720px) {
  :root {
    --gutter: 4rem;
  }

  .container {
    width: min(1120px, calc(100% - var(--gutter)));
  }

  .footer-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-6);
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-actions .button {
    width: auto;
  }

  .hero-image-frame {
    width: min(100%, 390px);
    justify-self: end;
    margin-top: 0;
  }

}

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

  .reveal,
  .button,
  .text-link,
  .nav-cta,
  .brand {
    transition: none;
  }

  .js .solution-focus .solution-points li,
  .js .solution-focus.is-visible .solution-points li {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
