/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --hh-terracotta: #B85C3E;
  --hh-clay: #D4876A;
  --hh-blush: #E8C9B8;
  --hh-cocoa: #6B3829;
  --hh-cocoa-light: #8C5A48;

  /* Neutrals */
  --hh-cream: #FBF5ED;
  --hh-sand: #F0E5D5;
  --hh-stone: #6B5848;
  --hh-espresso: #2C1F18;

  /* Semantic */
  --hh-bg-page: var(--hh-cream);
  --hh-bg-surface: #FFFFFF;
  --hh-bg-surface-alt: var(--hh-sand);
  --hh-text-primary: var(--hh-espresso);
  --hh-text-secondary: var(--hh-stone);
  --hh-text-on-brand: var(--hh-cream);
  --hh-border: rgba(44, 31, 24, 0.08);
  --hh-border-strong: rgba(44, 31, 24, 0.16);

  /* Categories */
  --hh-cat-food: #C99A6B;
  --hh-cat-home: #A87A5C;
  --hh-cat-travel: #94806B;
  --hh-cat-fun: #B58A8A;
  --hh-cat-health: #8C9479;
  --hh-cat-other: #C4A88C;

  /* Typography */
  --hh-font-serif: "Fraunces", Georgia, serif;
  --hh-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 999px;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--hh-bg-page);
  color: var(--hh-text-primary);
  font-family: var(--hh-font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--hh-font-sans);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: background 0.15s, opacity 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--hh-terracotta);
  color: var(--hh-cream);
}
.btn-primary:hover { background: #a54e32; }

.btn-outline {
  background: transparent;
  color: var(--hh-cream);
  border: 1.5px solid rgba(251, 245, 237, 0.5);
}
.btn-outline:hover { border-color: var(--hh-cream); }

.btn-download {
  background: var(--hh-espresso);
  color: var(--hh-cream);
  font-size: 16px;
  padding: 14px 28px;
}
.btn-download:hover { background: #3d2b1f; }

.btn-sm  { padding: 8px 16px;  font-size: 13px; }
.btn-md  { padding: 10px 20px; font-size: 15px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; }

.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 245, 237, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--hh-border);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.wordmark {
  font-family: var(--hh-font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--hh-espresso);
  letter-spacing: -0.01em;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: var(--space-3xl) var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--hh-cocoa-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.hero-headline {
  font-family: var(--hh-font-serif);
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--hh-espresso);
  margin-bottom: var(--space-lg);
}

.hero-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--hh-stone);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-note {
  font-size: 13px;
  color: var(--hh-stone);
}

/* ── Receipt card ──────────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
}

.receipt-card {
  background: var(--hh-bg-surface);
  border: 0.5px solid var(--hh-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  width: 100%;
  max-width: 340px;
}

.receipt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.receipt-store {
  font-family: var(--hh-font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--hh-espresso);
}

.receipt-date {
  font-size: 12px;
  color: var(--hh-stone);
  margin-top: 2px;
}

.receipt-divider {
  height: 0.5px;
  background: var(--hh-border);
  margin: var(--space-md) 0;
}

.receipt-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.receipt-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-sm);
  align-items: center;
  padding: 5px 0;
}

.item-name {
  font-size: 13px;
  color: var(--hh-espresso);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-chip {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chip-food   { background: var(--hh-cat-food); }
.chip-home   { background: var(--hh-cat-home); }
.chip-health { background: var(--hh-cat-health); }

.item-amount {
  font-size: 13px;
  font-weight: 500;
  color: var(--hh-espresso);
  text-align: right;
  white-space: nowrap;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
  color: var(--hh-espresso);
}

.receipt-badge {
  margin-top: var(--space-md);
  background: var(--hh-sand);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--hh-cocoa);
  text-align: center;
}

/* ── Features ──────────────────────────────────────────────────────── */
.features {
  background: var(--hh-sand);
  padding: var(--space-3xl) var(--space-lg);
}

.feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--hh-bg-surface);
  border: 0.5px solid var(--hh-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--hh-blush);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--hh-cocoa);
  flex-shrink: 0;
}

.feature-card h3 {
  font-family: var(--hh-font-serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--hh-espresso);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--hh-stone);
}

/* ── How it works ──────────────────────────────────────────────────── */
.how-it-works {
  padding: var(--space-3xl) var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-headline {
  font-family: var(--hh-font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  color: var(--hh-espresso);
  margin-bottom: var(--space-xl);
  line-height: 1.2;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-lg);
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: left;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--hh-terracotta);
  color: var(--hh-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--space-md);
}

.step h3 {
  font-family: var(--hh-font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--hh-espresso);
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--hh-stone);
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 8px;
  flex-shrink: 0;
}

/* ── Together strip ────────────────────────────────────────────────── */
.together-strip {
  background: var(--hh-sand);
  padding: var(--space-3xl) var(--space-lg);
}

.together-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.together-circles {
  display: flex;
  gap: -var(--space-md);
  flex-shrink: 0;
  position: relative;
}

.partner-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hh-font-serif);
  font-size: 36px;
  color: var(--hh-cream);
  position: relative;
  flex-direction: column;
}

.partner-circle > span {
  font-family: var(--hh-font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--hh-cream);
  line-height: 1;
  margin-bottom: 2px;
}

.circle-a {
  background: var(--hh-terracotta);
  z-index: 2;
}

.circle-b {
  background: var(--hh-cocoa);
  margin-left: -20px;
  z-index: 1;
}

.circle-label {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--hh-stone);
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}

.circle-label span {
  font-weight: 500;
  color: var(--hh-espresso);
}

.together-copy {
  max-width: 480px;
}

.together-headline {
  font-family: var(--hh-font-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--hh-espresso);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.together-subtext {
  font-size: 16px;
  line-height: 1.65;
  color: var(--hh-stone);
}

/* ── Download ──────────────────────────────────────────────────────── */
.download {
  background: var(--hh-cocoa);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.download-inner {
  max-width: 560px;
  margin: 0 auto;
}

.download .section-headline {
  color: var(--hh-cream);
}

.download-body {
  color: var(--hh-blush);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

.placeholder-note {
  font-size: 12px;
  color: rgba(232, 201, 184, 0.6);
  margin-top: var(--space-sm);
}

/* Waitlist */
.waitlist {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 0.5px solid rgba(251, 245, 237, 0.12);
}

.waitlist-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--hh-blush);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.waitlist-form {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.waitlist-input {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(251, 245, 237, 0.25);
  background: rgba(251, 245, 237, 0.08);
  color: var(--hh-cream);
  font-family: var(--hh-font-sans);
  font-size: 15px;
  width: 260px;
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-input::placeholder { color: rgba(251, 245, 237, 0.35); }
.waitlist-input:focus { border-color: rgba(251, 245, 237, 0.55); }

.waitlist-confirmation {
  color: var(--hh-blush);
  font-size: 15px;
  margin-top: var(--space-md);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  padding: var(--space-xl) var(--space-lg);
  background: var(--hh-espresso);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  border-top: 0.5px solid rgba(251, 245, 237, 0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-wordmark {
  font-family: var(--hh-font-serif);
  font-size: 15px;
  color: rgba(251, 245, 237, 0.5);
}

.footer-copy {
  font-size: 12px;
  color: rgba(251, 245, 237, 0.3);
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
}

.footer-nav a {
  font-size: 13px;
  color: rgba(251, 245, 237, 0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover { color: rgba(251, 245, 237, 0.75); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .together-inner {
    flex-direction: column;
    text-align: center;
  }

  .together-copy {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: var(--space-2xl) var(--space-md);
    gap: var(--space-xl);
  }

  .hero-visual { display: none; }

  .steps {
    flex-direction: column;
    align-items: flex-start;
    max-width: 400px;
    margin: 0 auto;
  }

  .step-connector {
    transform: rotate(90deg);
    margin-left: 6px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --space-3xl: 64px;
    --space-2xl: 48px;
  }

  .nav { padding: var(--space-md); }

  .waitlist-form { flex-direction: column; align-items: stretch; }
  .waitlist-input { width: 100%; }
  .waitlist .btn-outline { width: 100%; justify-content: center; }
}
