@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/Inter_400Regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("./assets/fonts/Inter_500Medium.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("./assets/fonts/Inter_600SemiBold.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  src: url("./assets/fonts/PlayfairDisplay_700Bold.ttf") format("truetype");
}

:root {
  --bg: #f7f2ea;
  --surface: #fcfbf8;
  --surface-strong: #f1ece2;
  --surface-soft: #fbf8f2;
  --border: #ddd8ce;
  --border-strong: #d8cfbf;
  --text: #1f2b22;
  --text-strong: #223028;
  --muted: #6d6d67;
  --muted-strong: #506158;
  --accent: #2d6a4f;
  --accent-soft: #edf4ef;
  --danger: #b13a2d;
  --warning-bg: #fff6f4;
  --warning-border: #e8c7c0;
  --shadow: 0 22px 55px rgba(31, 43, 34, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 900px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.62;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--text-strong);
}

.page {
  margin: 0 auto;
  padding: 32px 0 64px;
  width: min(calc(100% - 32px), var(--max));
}

.shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar,
.site-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
}

.topbar {
  background: rgba(252, 251, 248, 0.94);
  border-bottom: 1px solid var(--border);
  padding: 18px 22px;
}

.site-header {
  left: 0;
  padding: 22px clamp(20px, 5vw, 56px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 600;
  gap: 12px;
  text-decoration: none;
}

.brand--light {
  color: #f9f7f2;
  text-shadow: 0 2px 18px rgba(17, 15, 12, 0.45);
}

.brand-mark {
  background: linear-gradient(135deg, #83bd95, var(--accent));
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(45, 106, 79, 0.12);
  height: 14px;
  width: 14px;
}

.brand--light .brand-mark {
  box-shadow: 0 0 0 5px rgba(249, 247, 242, 0.18);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 500;
  gap: 12px 18px;
}

.nav a {
  color: var(--muted-strong);
  text-decoration: none;
}

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

.nav--light a {
  color: rgba(249, 247, 242, 0.88);
  text-shadow: 0 2px 18px rgba(17, 15, 12, 0.45);
}

.nav--light a:hover {
  color: #ffffff;
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(45, 106, 79, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f2ea 0%, #fcfbf8 100%);
  padding: 42px 22px 28px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 4.45rem);
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 18px 0 0;
  max-width: 44rem;
}

.content {
  padding: 8px 22px 28px;
}

.section {
  border-top: 1px solid rgba(221, 216, 206, 0.82);
  padding: 22px 0;
}

.section:first-child {
  border-top: 0;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 10px;
}

.callout,
.support-card,
.link-card,
.flow-step {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.callout p:last-child,
.support-card p:last-child,
.link-card p:last-child,
.flow-step p:last-child {
  margin-bottom: 0;
}

.callout--warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

.grid {
  display: grid;
  gap: 16px;
}

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

.button {
  align-items: center;
  background: var(--text-strong);
  border: 0;
  border-radius: 20px;
  color: #ffffff;
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
  color: #ffffff;
}

.button--store {
  box-shadow: 0 12px 30px rgba(17, 15, 12, 0.26);
}

.meta {
  color: var(--muted);
  font-size: 0.93rem;
}

.footer,
.landing-footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 22px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.94em;
}

.landing-page {
  min-width: 320px;
}

.landing-hero {
  align-items: flex-end;
  display: grid;
  min-height: min(760px, 92vh);
  overflow: hidden;
  position: relative;
}

.landing-hero__shade {
  background:
    linear-gradient(90deg, rgba(17, 15, 12, 0.82), rgba(17, 15, 12, 0.4) 42%, rgba(17, 15, 12, 0.08)),
    linear-gradient(180deg, rgba(17, 15, 12, 0.44), rgba(17, 15, 12, 0.04) 44%, rgba(17, 15, 12, 0.58));
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.landing-hero__content {
  color: #f9f7f2;
  max-width: 640px;
  padding: 132px clamp(20px, 5vw, 56px) clamp(44px, 7vw, 80px);
  position: relative;
  z-index: 2;
}

.landing-hero__content h1,
.landing-hero__content .eyebrow,
.landing-hero__content .lede {
  color: #f9f7f2;
}

.landing-hero__content .eyebrow {
  color: rgba(249, 247, 242, 0.82);
}

.lede--hero {
  color: rgba(249, 247, 242, 0.86);
  font-size: clamp(1.04rem, 2.5vw, 1.22rem);
}

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

.comparison {
  --split: 70%;
  background: #d8d0c7;
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.comparison-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.comparison-before {
  clip-path: inset(0 0 0 var(--split));
  inset: 0;
  position: absolute;
}

.comparison-divider {
  background: rgba(255, 255, 255, 0.88);
  bottom: 0;
  left: var(--split);
  position: absolute;
  top: 0;
  width: 2px;
  z-index: 3;
}

.comparison-thumb {
  align-items: center;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(75, 67, 58, 0.14);
  border-radius: 999px;
  display: flex;
  height: 38px;
  justify-content: center;
  left: calc(var(--split) - 19px);
  position: absolute;
  top: calc(50% - 19px);
  width: 38px;
  z-index: 4;
}

.comparison-thumb span {
  background: #9c9488;
  border-radius: 999px;
  height: 14px;
  width: 4px;
}

.comparison-range {
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  height: 100%;
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 6;
}

.landing-section {
  background: var(--bg);
  padding: clamp(42px, 7vw, 76px) clamp(20px, 5vw, 56px);
}

.landing-section__inner {
  margin: 0 auto;
  max-width: 1100px;
}

.section-heading {
  max-width: 620px;
}

.flow-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.flow-step {
  background: var(--surface);
}

.flow-step__number {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 600;
  height: 34px;
  justify-content: center;
  margin-bottom: 18px;
  width: 34px;
}

.flow-step p {
  color: var(--muted);
  margin-top: 8px;
}

.landing-footer {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
}

.landing-footer .footer-links {
  margin-top: 0;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-hero {
    min-height: 760px;
  }

  .landing-hero__shade {
    background:
      linear-gradient(180deg, rgba(17, 15, 12, 0.62), rgba(17, 15, 12, 0.08) 38%, rgba(17, 15, 12, 0.72)),
      linear-gradient(90deg, rgba(17, 15, 12, 0.44), rgba(17, 15, 12, 0.08));
  }

  .landing-hero__content {
    padding-top: 180px;
  }

  .flow-grid,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page {
    padding-top: 16px;
    width: min(calc(100% - 20px), var(--max));
  }

  .hero,
  .content,
  .topbar,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
