/* =========================================================================
   coffee.css — Bevano marketing site
   Sleek, modern stylesheet built on the Espresso/Cream palette.
   Light mode only.
   ========================================================================= */

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --espresso:        #2B1A12;
  --espresso-deep:   #1F120C;
  --espresso-ink:    #150B07;
  --cream:           #E9DCC9;
  --cream-hi:        #EFE3CF;
  --cream-soft:      #F4EBDB;
  --caramel:         #A56A3E;
  --caramel-deep:    #8E5630;
  --gold:            #D4A24C;
  --gold-soft:       #E8B868;
  --sage:            #1F3A2E;

  /* Type */
  --font-sans: "Inter Tight", "Helvetica Neue", ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;

  /* Scale (fluid) */
  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.18vw, 1.05rem);
  --step-1:  clamp(1.10rem, 1.04rem + 0.30vw, 1.25rem);
  --step-2:  clamp(1.30rem, 1.20rem + 0.50vw, 1.55rem);
  --step-3:  clamp(1.60rem, 1.40rem + 1.00vw, 2.10rem);
  --step-4:  clamp(2.10rem, 1.70rem + 2.00vw, 3.00rem);
  --step-5:  clamp(2.70rem, 2.00rem + 3.50vw, 4.50rem);
  --step-6:  clamp(3.50rem, 2.50rem + 5.00vw, 6.50rem);

  /* Radius */
  --r-xs:  6px;  --r-sm:  10px; --r-md:  14px;
  --r-lg:  20px; --r-xl:  28px; --r-2xl: 40px; --r-pill: 999px;

  /* Spacing (8pt) */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;  --s-5: 20px;
  --s-6: 24px; --s-7: 32px;  --s-8: 40px;  --s-9: 56px;  --s-10: 80px; --s-11: 120px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 140ms; --t-base: 220ms; --t-slow: 420ms;

  /* Semantic tokens */
  --bg:              var(--cream);
  --bg-elev:         var(--cream-soft);
  --bg-sunken:       #DCCDB6;
  --surface:         #FFFFFF;
  --surface-muted:   #F1E6D2;
  --surface-inverse: var(--espresso);
  --border:          #C9B59A;
  --border-strong:   #8E7558;
  --divider:         rgba(43, 26, 18, 0.10);

  --text:            var(--espresso);
  --text-muted:      #5A4136;
  --text-faint:      #8E7558;
  --text-inverse:    var(--cream-hi);
  --text-on-primary: var(--cream-hi);
  --text-on-accent:  var(--cream-hi);

  --primary:         var(--espresso);
  --primary-hover:   var(--espresso-deep);
  --primary-active:  var(--espresso-ink);
  --accent:          var(--caramel);
  --accent-hover:    var(--caramel-deep);
  --highlight:       var(--gold);

  --ring:      0 0 0 3px rgba(165, 106, 62, 0.35);
  --shadow-xs: 0 1px 2px rgba(43, 26, 18, 0.06);
  --shadow-sm: 0 1px 2px rgba(43, 26, 18, 0.06), 0 2px 6px -2px rgba(43, 26, 18, 0.08);
  --shadow-md: 0 4px 14px -4px rgba(43, 26, 18, 0.12), 0 10px 30px -12px rgba(43, 26, 18, 0.18);
  --shadow-lg: 0 18px 50px -20px rgba(43, 26, 18, 0.30);
  --grain-opacity: 0.04;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  z-index: 0;
}
img, svg, video { display: block; max-width: 100%; height: auto; }

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); letter-spacing: -0.03em; }
h3 { font-size: var(--step-3); letter-spacing: -0.02em; }
h4 { font-size: var(--step-2); }
h5 { font-size: var(--step-1); }
p  { margin: 0 0 var(--s-4); max-width: 64ch; text-wrap: pretty; }
.lede { font-size: var(--step-2); line-height: 1.4; color: var(--text-muted); max-width: 56ch; }

.eyebrow {
  display: inline-block;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
small, .text-sm { font-size: var(--step--1); color: var(--text-muted); }
.muted  { color: var(--text-muted); }
.faint  { color: var(--text-faint); }
.text-accent { color: var(--accent); }

a, a:visited, a:link {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t-base) var(--ease-out), color var(--t-fast) var(--ease-out);
}
a:hover { background-size: 100% 2px; color: var(--accent); }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* ── Layout primitives ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s-6); position: relative; z-index: 1; }
.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1440px; }
.section { padding-block: var(--s-11); }
.section--tight { padding-block: var(--s-9); }
.stack > * + * { margin-top: var(--s-5); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.row { display: flex; gap: var(--s-4); align-items: center; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.center-text { text-align: center; }
.text-balance { text-wrap: balance; }
.fill-espresso { background: var(--espresso); color: var(--cream-hi); }
.hidden { display: none !important; }

/* ── Card ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  background: rgba(233, 220, 201, 0.85); /* fallback */
  background: color-mix(in oklch, var(--bg) 75%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--divider);
}
.nav__brand {
  display: flex; align-items: center; gap: var(--s-3);
  font-weight: 600; letter-spacing: -0.02em; font-size: var(--step-1);
  background: none; color: var(--text);
}
.nav__brand img {
  display: block;
  width: 28px !important; height: 28px !important;
  max-width: 28px; max-height: 28px;
  border-radius: 7px; flex-shrink: 0;
}
.nav__brand:hover { color: var(--accent); background-image: none; }
.nav__links { display: flex; gap: var(--s-6); align-items: center; }
.nav__links a, .nav__links a:visited, .nav__links a:link { font-size: var(--step--1); font-weight: 500; color: var(--text-muted); background: none; }
.nav__links a:hover { color: var(--accent); background-image: none; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  font-size: var(--step--1); font-weight: 600; line-height: 1;
  background: var(--primary); color: var(--text-on-primary);
  border: 1px solid transparent; border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none; background-image: none;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.btn, .btn:link, .btn:visited { color: var(--text-on-primary); background-image: none; }
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); background-image: none; color: var(--text-on-primary); }
.btn:active { background: var(--primary-active); transform: translateY(0); }
.btn--accent, .btn--accent:link, .btn--accent:visited { background: var(--accent); color: var(--text-on-accent); }
.btn--accent:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.btn--ghost, .btn--ghost:link, .btn--ghost:visited { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-muted); border-color: var(--border-strong); }
.btn--lg { padding: 16px 28px; font-size: var(--step-0); }
.btn--sm { padding: 8px 14px; font-size: var(--step--2); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: var(--s-11);
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-10);
}
.hero__eyebrow { color: var(--accent); }
.hero__inner { flex: 1; max-width: 560px; position: relative; z-index: 1; }
.hero__title { font-size: var(--step-5); letter-spacing: -0.035em; margin-bottom: var(--s-5); }
.hero__title em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--accent); }
.hero__lede { font-size: var(--step-1); color: var(--text-muted); max-width: 52ch; margin-bottom: var(--s-7); line-height: 1.6; }
.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.hero__note { font-size: var(--step--2); color: var(--text-faint); }
.hero__art {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px; border-radius: 50%;
  background:
    radial-gradient(closest-side, color-mix(in oklch, var(--accent) 35%, transparent), transparent 70%),
    radial-gradient(closest-side, color-mix(in oklch, var(--highlight) 25%, transparent), transparent 80%);
  filter: blur(0.5px);
  z-index: 0; pointer-events: none;
}
.hero__phone { flex-shrink: 0; position: relative; z-index: 1; }

/* ── Phone mockup ──────────────────────────────────────────────────────── */
.phone {
  width: 220px; height: 440px;
  background: var(--espresso); border-radius: 36px;
  border: 5px solid var(--espresso-deep);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(43,26,18,0.1);
  display: flex; flex-direction: column; overflow: hidden;
}
.phone-notch { width: 72px; height: 22px; background: var(--espresso); border-radius: 0 0 14px 14px; margin: 0 auto; border: 4px solid var(--espresso-deep); border-top: none; }
.phone-screen { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.phone-title { color: var(--cream-hi); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; padding: 2px 0 6px; }
.phone-search { background: rgba(255,255,255,0.08); border-radius: 8px; height: 28px; }
.phone-chips { display: flex; gap: 5px; }
.phone-chip { background: rgba(255,255,255,0.08); border-radius: var(--r-pill); height: 20px; width: 48px; }
.phone-chip.active { background: var(--caramel); }
.phone-card { background: rgba(255,255,255,0.06); border-radius: 10px; height: 64px; display: flex; align-items: center; padding: 10px; gap: 10px; }
.phone-card-img { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, var(--caramel) 0%, var(--espresso-deep) 100%); flex-shrink: 0; }
.phone-card-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.phone-card-line { height: 7px; border-radius: 4px; background: rgba(239,227,207,0.15); }
.phone-card-line.short { width: 55%; }

/* ── Features section ──────────────────────────────────────────────────── */
.features-head { max-width: 640px; margin-bottom: var(--s-8); }
.features-head h2 { margin: 0; }
.features { gap: var(--s-7); }
.feature {
  position: relative;
  padding: var(--s-7) var(--s-2) 0;
  border-top: 1px solid var(--border);
}
.feature__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.feature__title { font-size: var(--step-2); margin: 0 0 var(--s-3); letter-spacing: -0.015em; }
.feature__body { margin: 0; color: var(--text-muted); font-size: var(--step-0); line-height: 1.55; max-width: 38ch; }

/* ── Quote section (beans background) ─────────────────────────────────── */
.quote {
  position: relative; overflow: hidden;
  padding-block: clamp(120px, 14vw, 200px);
  color: var(--cream-hi);
  isolation: isolate;
}
.quote__bg {
  position: absolute; inset: 0;
  background-image: url("assets/beans-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}
.quote::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(21,10,5,0.55) 0%, rgba(21,10,5,0.82) 65%, rgba(21,10,5,0.92) 100%);
  z-index: -1;
}
.quote__inner { max-width: 880px; margin-inline: auto; text-align: center; padding-inline: var(--s-6); }
.quote__mark {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(80px, 14vw, 160px);
  line-height: 0.6; color: var(--gold); opacity: 0.55;
  display: block; margin-bottom: var(--s-3);
}
.quote__text {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.18; letter-spacing: -0.02em;
  color: var(--cream-hi); text-wrap: balance;
  margin: 0 0 var(--s-7);
}
.quote__text em { color: var(--gold); font-style: italic; }
.quote__attrib {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(239, 227, 207, 0.75);
}
.quote__attrib::before, .quote__attrib::after { content: ""; width: 32px; height: 1px; background: rgba(212,162,76,0.6); }
.quote__attrib strong { color: var(--cream-hi); font-weight: 600; letter-spacing: 0.04em; text-transform: none; font-size: var(--step-0); }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band { text-align: center; padding-block: var(--s-10); border-top: 1px solid var(--divider); }
.cta-band h2 { margin-bottom: var(--s-7); }

/* ── Site footer ───────────────────────────────────────────────────────── */
.site-footer { background: var(--espresso); }
.site-footer p, .site-footer strong, .site-footer span { color: var(--cream-hi); }
.site-footer .faint { color: rgba(239, 227, 207, 0.4); }
.site-footer a, .site-footer a:visited, .site-footer a:link { color: rgba(239,227,207,0.55); background: none; }
.site-footer a:hover { color: var(--cream-hi); background-image: none; }

/* ── Page hero (support / privacy) ────────────────────────────────────── */
.page-hero { padding-block: var(--s-9) var(--s-7); border-bottom: 1px solid var(--divider); }
.page-hero h1 { margin-bottom: var(--s-3); }
.page-hero p { font-size: var(--step--1); color: var(--text-faint); margin: 0; }

/* ── Page content ──────────────────────────────────────────────────────── */
.page-content { padding-block: var(--s-8) var(--s-11); }
.page-content h2 { font-size: var(--step-2); margin: var(--s-8) 0 var(--s-4); }
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--text-muted); line-height: 1.75; }
.page-content a { color: var(--accent); background: none; }
.page-content a:hover { color: var(--accent-hover); background-image: none; }

/* ── Contact box ───────────────────────────────────────────────────────── */
.contact-box {
  background: var(--surface-muted); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s-5) var(--s-6);
  margin: var(--s-5) 0 var(--s-8);
}
.contact-box p { margin: 0; font-size: var(--step--1); max-width: none; }
.contact-box a { color: var(--accent); font-weight: 600; background: none; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { margin-top: var(--s-8); }
.faq-item { border-top: 1px solid var(--divider); padding-block: var(--s-5); }
.faq-item:last-child { border-bottom: 1px solid var(--divider); }
.faq-item h3 { font-size: var(--step-0); font-weight: 600; margin-bottom: var(--s-2); }
.faq-item p { font-size: var(--step--1); color: var(--text-muted); margin: 0; line-height: 1.65; max-width: none; }

/* ── Utilities ─────────────────────────────────────────────────────────── */
::selection { background: var(--accent); color: var(--text-on-accent); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-pill); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: var(--s-3) var(--s-4); }
  .nav__links { gap: var(--s-4); }
  .hero { flex-direction: column; padding-block: var(--s-9); }
  .hero__phone, .hero__art { display: none; }
  .section, .section--tight { padding-block: var(--s-9); }
  .container { padding-inline: var(--s-4); }
  .spread { flex-direction: column; align-items: flex-start; }
  .features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  body::before, .nav, .hero__art, .hero__phone { display: none; }
  .card { box-shadow: none; border-color: #ccc; }
}
