@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Variables ── */
:root {
  --espresso:  #562A0E;
  --driftwood: #8A7A6A;
  --oat:       #E8E0D5;
  --cream:     #F5F0E8;
  --white:     #FDFAF6;
  --sage-mist: #C8D5C0;
  --fern:      #7E9A73;
  --forest:    #4A6741;

  --shadow-card:  0 2px 8px rgba(86,42,14,0.07);
  --shadow-float: 0 8px 32px rgba(86,42,14,0.13);
  --shadow-modal: 0 16px 48px rgba(86,42,14,0.18);

  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--espresso);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── Utilities ── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 10px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,240,232,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--oat);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 32px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--espresso);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-logo img { width: 28px; height: 28px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links > a {
  font-size: 14px;
  color: var(--driftwood);
  transition: color 0.2s;
}
.nav-links > a:hover { color: var(--espresso); }
.btn-app-store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--espresso);
  color: var(--white) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-app-store:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-app-store svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ── Hero ── */
.hero {
  padding: 48px 0 56px;
  background: var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 0; }
.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin-bottom: 20px;
}
.hero-heading h1 { text-align: center; }
.hero-bean {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 16px rgba(86,42,14,0.12));
  animation: float 4s ease-in-out infinite;
}
.hero-cta-group {
  display: flex;
  flex-direction: column;
  width: fit-content;
  gap: 10px;
}
.hero-note {
  font-size: 12px;
  color: var(--driftwood);
  opacity: 0.75;
  text-align: center;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(46px, 6.5vw, 78px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero-text h1 em { font-style: italic; color: var(--forest); }
.hero-sub {
  font-size: 19px;
  color: var(--driftwood);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 40px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--espresso);
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 999px;
  width: fit-content;
  box-shadow: var(--shadow-float);
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-primary svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.hero-note {
  font-size: 12px;
  color: var(--driftwood);
  margin-top: 12px;
  opacity: 0.75;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-preview {
  height: 540px;
  width: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  object-fit: cover;
}

/* ── Features ── */
.features { background: var(--white); }

.feature-row {
  padding: 112px 0;
  border-bottom: 1px solid var(--oat);
}
.feature-row:last-child { border-bottom: none; }
.feature-row--alt { background: var(--cream); }

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-text { display: flex; flex-direction: column; }
.feature-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 18px;
}
.feature-text h2 em { font-style: italic; color: var(--forest); }
.feature-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--driftwood);
  max-width: 440px;
}
.feature-visual {
  display: flex;
  justify-content: center;
}
.feature-preview {
  height: 580px;
  width: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  object-fit: cover;
}

/* ── Meet Bean ── */
.meet-bean {
  background: var(--white);
  padding: 96px 0;
}
.meet-bean-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.meet-bean-visual {
  display: flex;
  justify-content: center;
}
.meet-bean-img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(86,42,14,0.12));
  animation: float 5s ease-in-out infinite;
}
.meet-bean-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}
.meet-bean-text h2 em { font-style: italic; color: var(--forest); }
.meet-bean-text > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--driftwood);
  margin-bottom: 28px;
  max-width: 380px;
}
.quote-stack { display: flex; flex-direction: column; gap: 12px; }
.quote-bubble {
  background: var(--cream);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
}
.quote-bubble .line {
  font-size: 15px;
  font-style: italic;
  color: var(--espresso);
}
.quote-bubble .mood {
  font-size: 11px;
  color: var(--driftwood);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── Download CTA ── */
.download {
  padding: 100px 0;
  background: #351908;
  text-align: center;
}
.download .eyebrow { color: var(--sage-mist); }
.download h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.download h2 em { font-style: italic; color: var(--fern); }
.download > .container > p {
  font-size: 16px;
  color: var(--driftwood);
  max-width: 380px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.download-bean {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--espresso);
  font-size: 17px;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 999px;
  box-shadow: var(--shadow-float);
  transition: opacity 0.2s, transform 0.15s;
}
.btn-light:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-light svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.download-note {
  font-size: 12px;
  color: var(--driftwood);
  margin-top: 14px;
  opacity: 0.6;
}

/* ── Footer ── */
footer {
  background: #351908;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 32px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--white);
  opacity: 0.8;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px;
  color: var(--driftwood);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 12px;
  color: var(--driftwood);
  opacity: 0.55;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  padding: 0 32px;
}

/* ── Legal pages ── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}
.legal-page h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 8px;
}
.legal-page .updated {
  font-size: 14px;
  color: var(--driftwood);
  margin-bottom: 48px;
}
.legal-page h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 44px 0 14px;
  color: var(--espresso);
  letter-spacing: -0.2px;
}
.legal-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--espresso);
}
.legal-page p, .legal-page li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--driftwood);
  margin-bottom: 14px;
}
.legal-page ul { padding-left: 22px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--fern); text-decoration: underline; }
.legal-page strong { color: var(--espresso); font-weight: 600; }
.legal-page .vendor h3 {
  margin-top: 28px;
  margin-bottom: 6px;
  font-size: 17px;
}
.legal-page .vendor p {
  margin-bottom: 6px;
}
.legal-page .vendor p:last-of-type {
  margin-bottom: 18px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--driftwood);
  margin-bottom: 40px;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--espresso); }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  font-size: 16px;
  font-weight: 500;
  color: var(--espresso);
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--fern);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--driftwood);
  padding: 0 20px 18px;
  margin: 0;
}

/* ── Support page ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.support-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.support-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--espresso);
}
.support-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--driftwood);
  margin-bottom: 16px;
}
.support-card a.link-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fern);
  border: 1.5px solid var(--fern);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background 0.2s, color 0.2s;
}
.support-card a.link-btn:hover { background: var(--fern); color: var(--white); }

/* ── Contact form ── */
.contact-form-wrap {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-card);
  margin-top: 40px;
}
.contact-form-wrap h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--espresso);
  margin-bottom: 6px;
}
.contact-intro {
  font-size: 14px;
  color: var(--driftwood);
  margin-bottom: 24px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .form-row { display: flex; flex-direction: column; gap: 6px; }
.contact-form label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--espresso);
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--espresso);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--fern);
  background: var(--white);
}
.contact-form .botcheck {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
}
.form-submit {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--fern);
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.form-submit:hover:not(:disabled) { background: var(--forest); }
.form-submit:active:not(:disabled) { transform: translateY(1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status {
  font-size: 13px;
  margin-top: 4px;
  min-height: 1em;
}
.form-status.success { color: var(--forest); }
.form-status.error { color: #b3422a; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Nav */
  .nav-inner { height: 60px; padding: 0 20px; }
  .nav-logo { font-size: 18px; gap: 8px; }
  .nav-logo img { width: 26px; height: 26px; }
  .nav-links { gap: 14px; }
  .nav-links > a { font-size: 13px; }
  .nav-links > .btn-app-store { display: none; }

  /* Hero */
  .hero { padding: 56px 0 48px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-heading { margin-bottom: 12px; }
  .hero-bean { width: 150px; height: 150px; margin-bottom: 8px; }
  .hero-sub { max-width: 100%; font-size: 17px; margin-bottom: 28px; }
  .hero-preview { height: 440px; max-width: 100%; }
  .btn-primary { font-size: 16px; padding: 14px 26px; }

  /* Features */
  .feature-row { padding: 64px 0; }
  .feature-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .feature-row--alt .feature-visual { order: 1; }
  .feature-row--alt .feature-text { order: -1; }
  .feature-text { align-items: center; }
  .feature-text p { max-width: 100%; font-size: 16px; }
  .feature-preview { height: 420px; max-width: 100%; }

  /* Meet Bean */
  .meet-bean { padding: 64px 0; }
  .meet-bean-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .meet-bean-text > p { max-width: 100%; }
  .meet-bean-img { width: 220px; height: 220px; }

  /* Download */
  .download { padding: 72px 0; }
  .download-bean { width: 110px; height: 110px; margin-bottom: 20px; }
  .btn-light { font-size: 16px; padding: 14px 26px; }

  /* Footer */
  .footer-inner { justify-content: center; text-align: center; padding: 0 20px; }
  .footer-copy { padding: 0 20px; }

  /* Legal / Support */
  .legal-page { padding: 48px 20px 80px; }
  .legal-page h1 { font-size: 32px; }
  .legal-page h2 { font-size: 20px; margin-top: 36px; }
  .legal-page p, .legal-page li { font-size: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }

  /* Nav — tighter for narrow phones */
  .nav-inner { height: 56px; padding: 0 16px; }
  .nav-logo { font-size: 16px; }
  .nav-logo img { width: 24px; height: 24px; }
  .nav-links { gap: 10px; }
  .nav-links > a { font-size: 12px; }

  /* Hero */
  .hero { padding: 40px 0 36px; }
  .hero-bean { width: 130px; height: 130px; }
  .hero-preview { height: 360px; }
  .hero-sub { font-size: 16px; }

  /* Features */
  .feature-row { padding: 48px 0; }
  .feature-preview { height: 340px; }
  .feature-text p { font-size: 15px; }

  /* Download */
  .download { padding: 56px 0; }
  .download-bean { width: 90px; height: 90px; }

  /* Legal */
  .legal-page { padding: 36px 18px 64px; }
  .legal-page h1 { font-size: 26px; }
  .support-card { padding: 22px 18px; }
  .contact-form-wrap { padding: 24px 20px; border-radius: 20px; }
  .contact-form-wrap h2 { font-size: 22px; }
  .faq-item summary { padding: 16px 16px; font-size: 15px; }
  .faq-item p { padding: 0 16px 16px; font-size: 14.5px; }
}
