:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-300: #ffc6a5;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;

  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(40px, 5.8vw, 72px); line-height: 1.08; letter-spacing: 0; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
h3 { font-size: 21px; line-height: 1.25; }

p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-2-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-2-800); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 13px;
  margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 62%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* — nav — */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) clamp(20px, 5vw, 64px);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-heading);
  font-size: 18px;
}
.nav-brand img { width: 30px; height: auto; }

/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.2;
  min-height: 44px;
  padding: var(--space-2) 22px;
  border: none;
  border-radius: 999px;
  background: var(--color-accent-2-600);
  color: #f7f1e4;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--color-accent-2-700); }
.btn:active { background: var(--color-accent-2-800); }
.btn-on-surface {
  background: var(--color-bg);
  color: var(--color-accent-2-800);
}
.btn-on-surface:hover { background: var(--color-accent-2-100); }

/* — tag — */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-accent-2-100);
  color: var(--color-accent-2-800);
  margin-left: 4px;
}

/* — form — */
.input {
  width: 100%;
  min-width: 220px;
  min-height: 44px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }

/* — sticky notify bar — */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: 14px;
  margin-inline: auto;
  width: fit-content;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-accent-2-700);
  color: #f7f1e4;
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  box-shadow: var(--shadow-lg);
  animation: rise 0.35s both;
}
.sticky-bar[hidden] { display: none; }
.sticky-bar .btn { min-height: 36px; }

/* — hero — */
.hero {
  position: relative;
  min-height: min(calc(100svh - 84px), 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 40px;
}
.hero-underline {
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 88%;
  height: 0.18em;
  overflow: visible;
}
.hero-underline path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw 1s 0.5s forwards;
}
.hero-lede {
  font-size: 17px;
  line-height: 1.65;
  max-width: 56ch;
  margin: 28px 0 0;
  color: color-mix(in srgb, var(--color-text) 85%, transparent);
}

.signup { margin-top: 34px; min-height: 76px; scroll-margin-top: 45vh; }
.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 480px;
}
.signup-note {
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.signup-thanks {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-accent-2-100);
  border-radius: 999px;
  padding: 14px 24px;
  max-width: fit-content;
}
.signup-error {
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  color: var(--color-accent);
  font-weight: 600;
}
.signup-thanks[hidden], .signup-form[hidden], .signup-note[hidden], .signup-error[hidden] { display: none; }
.check-badge {
  display: grid;
  place-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-2-600);
  color: #f7f1e4;
  font-weight: 700;
  font-size: 15px;
  flex: none;
}

/* — decorative blobs — */
.blob { position: absolute; pointer-events: none; z-index: -1; }
.blob-circle { border-radius: 50%; animation: floaty 9s ease-in-out infinite; }

/* — section headers — */
.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-2-700);
  margin-bottom: 14px;
}
section {
  scroll-margin-top: 24px;
  padding: clamp(48px, 6vw, 80px) 0;
  animation: rise 0.8s both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}
#how { padding-top: 0; }

/* — how-it-works cards — */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 44px clamp(28px, 4vw, 56px);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-surface);
  border-radius: calc(1.15 * var(--radius-lg));
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.step-num {
  display: grid;
  place-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-accent-2-800);
}
.step p { font-size: 15.5px; line-height: 1.7; margin: 0; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* — voice profile — */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px clamp(32px, 5vw, 72px);
  align-items: center;
}
.voice-grid p { font-size: 15.5px; line-height: 1.7; max-width: 52ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.voice-card {
  background: var(--color-neutral-100);
  border-radius: calc(1.15 * var(--radius-lg));
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  width: min(400px, 100%);
  justify-self: end;
}
.voice-card-head { display: flex; align-items: center; gap: 14px; }
.voice-card-icon {
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-2-300);
  flex: none;
}
.voice-card-title { display: block; font-family: var(--font-heading); font-size: 17px; }
.voice-card-sub { display: block; font-size: 13px; color: color-mix(in srgb, var(--color-text) 62%, transparent); }
.voice-traits { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
.voice-trait { display: flex; align-items: center; gap: 11px; font-size: 14.5px; }
.voice-trait-check {
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent-2-100);
  color: var(--color-accent-2-700);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

/* — demo placeholder — */
.demo-frame {
  margin: 48px 0 0;
  border-radius: calc(2 * var(--radius-lg));
  overflow: hidden;
}
.demo-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(2 * var(--radius-lg));
}

/* — final CTA — */
.cta-panel {
  position: relative;
  overflow: hidden;
  background: var(--color-accent-2-100);
  border-radius: calc(2 * var(--radius-lg));
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 64px);
}
.cta-panel p { font-size: 15.5px; line-height: 1.7; margin: 16px 0 0; max-width: 56ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.cta-body { margin-top: 28px; min-height: 76px; }
.cta-panel .btn { animation: pulse 2.6s 1.2s infinite; }

/* — footer — */
.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0 56px;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.footer img { width: 22px; height: auto; opacity: 0.85; }
.footer-tagline { margin-right: auto; font-family: var(--font-heading); color: var(--color-text); }

/* — animations — */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(122, 138, 94, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(122, 138, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 138, 94, 0); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes plx-a { from { transform: translateY(50px); } to { transform: translateY(-110px); } }
@keyframes plx-b { from { transform: translateY(30px); } to { transform: translateY(-70px); } }
@keyframes plx-c { from { transform: translateY(60px); } to { transform: translateY(-60px); } }
@keyframes plx-d { from { transform: translateY(25px); } to { transform: translateY(-25px); } }

.btn.email-valid { animation: pop 0.4s, pulse 2.6s 1.2s infinite; }

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