/* ============================================================
   JAVAVN — javavn.com static brand site
   Palette lấy từ brand token của frontend_client
   ============================================================ */

:root {
  --coffee: #85491f;
  --coffee-deep: #5e3113;
  --espresso: #241510;
  --espresso-deep: #1b0e09;
  --gold: #d6ae63;
  --gold-soft: #e8cd9a;
  --cream: #f8efe6;
  --cream-2: #f2e4d4;
  --paper: #fffdf9;
  --ink: #2e1d12;
  --muted: #6b4b32;
  --line: rgba(62, 42, 26, 0.14);
  --line-strong: rgba(62, 42, 26, 0.24);
  --shadow: 0 24px 60px -32px rgba(46, 29, 18, 0.45);
  --radius: 22px;
  --wrap: 1180px;
  --font-display: "Playfair Display", "Songti SC", Georgia, serif;
  --font-body: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 4.2vw, 4rem); letter-spacing: -0.022em; }
h1 em { font-style: italic; color: var(--coffee); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.22rem; }

p { margin: 0; }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--espresso); color: var(--cream);
  padding: 12px 18px; border-radius: 999px; font-size: 14px;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px dashed var(--coffee);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease),
              border-color 220ms var(--ease), transform 220ms var(--ease);
}
.btn svg { transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn-primary {
  background: var(--coffee);
  color: #fff8ee;
  box-shadow: 0 14px 30px -18px rgba(94, 49, 19, 0.8);
}
.btn-primary:hover { background: var(--coffee-deep); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--coffee); color: var(--coffee); background: rgba(133, 73, 31, 0.05); }

.btn-lg { padding: 17px 30px; font-size: 1rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 239, 230, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--coffee);
  flex-shrink: 0;
}
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}
.brand-logo--footer { height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 8px 0;
  transition: color 180ms var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--coffee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { padding: 12px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 6vw, 64px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coffee);
}
.eyebrow-line {
  width: 34px; height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow-light { color: var(--gold); }

.lead {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  margin: clamp(34px, 5vw, 52px) 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: grid; gap: 4px; }
.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.6vw, 1.55rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-stats dd {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* hero art */

.hero-art { position: relative; }
.art-panel {
  position: relative;
  border-radius: 34px;
  background:
    radial-gradient(120% 100% at 70% 0%, #fdf6ec 0%, var(--cream-2) 58%, #ecd7bf 100%);
  border: 1px solid rgba(133, 73, 31, 0.14);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
  isolation: isolate;
}
.art-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: -1;
}

.cup-art { width: 100%; height: auto; }

.steam path { animation: steam 5.2s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 0.5s; }
.steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(-6px); }
}

.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(133, 73, 31, 0.16);
  box-shadow: 0 12px 24px -18px rgba(46, 29, 18, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--coffee-deep);
}
.chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.chip-a { top: 9%; left: -14px; }
.chip-b { bottom: 15%; right: -12px; }

.art-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(133, 73, 31, 0.16);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coffee);
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(242, 228, 212, 0.5);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding: 15px 0;
  animation: marquee 32s linear infinite;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding: clamp(68px, 9vw, 112px) 0; }

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.split .lead { margin-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-note {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 40ch;
  justify-self: end;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 24px;
}
.pillars li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pillars li:first-child { border-top: 0; padding-top: 0; }
.pillars svg { width: 30px; height: 30px; color: var(--coffee); margin-top: 4px; }
.pillars h3 { margin-bottom: 6px; font-size: 1.08rem; }
.pillars p { color: var(--muted); font-size: 0.95rem; }

/* ---------- menu cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(133, 73, 31, 0.3);
  box-shadow: 0 26px 50px -34px rgba(46, 29, 18, 0.55);
}

.card-art {
  height: 198px;
  display: grid;
  place-items: center;
  padding: 10px 8px 4px;
}
.card-art svg {
  width: min(88%, 196px);
  height: auto;
  filter: drop-shadow(0 16px 18px rgba(46, 29, 18, 0.16));
}
.art-peach { background: linear-gradient(150deg, #fbe7cd, #f4cfa9); }
.art-milktea { background: linear-gradient(150deg, #f0e2d2, #e0c8ab); }
.art-coffee { background: linear-gradient(150deg, #ecdbc9, #d9b998); }
.art-matcha { background: linear-gradient(150deg, #e9efdc, #cfe0b8); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  height: 100%;
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-top h3 { font-size: 1.12rem; }
.card-body p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

.tag {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--coffee);
  color: #fff8ee;
  margin-top: 4px;
}
.tag-soft { background: rgba(133, 73, 31, 0.1); color: var(--coffee-deep); }
.tag-new { background: var(--gold); color: var(--espresso); }

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--coffee-deep);
}
.card-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

.menu-foot {
  margin-top: 30px;
  font-size: 0.92rem;
  color: var(--muted);
}
.menu-foot a {
  color: var(--coffee-deep);
  border-bottom: 1px solid rgba(133, 73, 31, 0.4);
  padding-bottom: 1px;
}
.menu-foot a:hover { color: var(--coffee); }

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
  counter-reset: step;
}
.steps li {
  border-top: 1px solid var(--line-strong);
  padding-top: 26px;
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 56px; height: 2px;
  background: var(--gold);
}
.step-no {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--coffee);
  margin-bottom: 18px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 0.95rem; color: var(--muted); }
.steps a { color: var(--coffee-deep); border-bottom: 1px solid rgba(133, 73, 31, 0.35); }

/* ---------- system (dark) ---------- */

.system {
  background: var(--espresso);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.system::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 85% 20%, rgba(214, 174, 99, 0.12), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(214, 174, 99, 0.06), transparent 60%);
  pointer-events: none;
}
.system h2 { color: var(--cream); }
.system .lead.light { color: rgba(248, 239, 230, 0.72); }
.system-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  position: relative;
}

.feat {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.feat li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 239, 230, 0.14);
}
.feat li:first-child { border-top: 0; padding-top: 0; }
.feat svg { width: 26px; height: 26px; color: var(--gold); margin-top: 3px; }
.feat strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}
.feat span { font-size: 0.9rem; color: rgba(248, 239, 230, 0.64); }

.machine-art { position: relative; display: grid; place-items: center; }
.machine-art svg { width: min(100%, 380px); height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45)); }
.machine-glow {
  position: absolute;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 174, 99, 0.22), transparent 65%);
  filter: blur(20px);
  z-index: -1;
}

/* ---------- places ---------- */

.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.place {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
.place:hover { transform: translateY(-4px); border-color: rgba(133, 73, 31, 0.28); box-shadow: 0 24px 44px -34px rgba(46, 29, 18, 0.5); }
.place-mark {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(214, 174, 99, 0.18);
  color: var(--coffee);
  margin-bottom: 18px;
}
.place-mark svg { width: 24px; height: 24px; }
.place h3 { font-size: 1.08rem; margin-bottom: 6px; }
.place p { font-size: 0.9rem; color: var(--muted); }
.place-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coffee-deep);
  font-weight: 600;
}
.place-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3f7d4e;
  box-shadow: 0 0 0 3px rgba(63, 125, 78, 0.16);
}
.places-cta { margin-top: 34px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact .lead { max-width: 44ch; }
.contact-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.contact-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}
.contact-points svg { width: 18px; height: 18px; color: var(--coffee); flex-shrink: 0; }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.contact-card > p { color: var(--muted); font-size: 0.95rem; }
.contact-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-list div { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.contact-list dt {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd { margin: 0; font-weight: 500; font-size: 0.95rem; }
.contact-list a { color: var(--coffee-deep); border-bottom: 1px solid rgba(133, 73, 31, 0.35); }
.contact-card .btn { width: 100%; justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--espresso-deep);
  color: rgba(248, 239, 230, 0.78);
  padding: clamp(56px, 7vw, 80px) 0 34px;
  margin-top: clamp(20px, 4vw, 40px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: clamp(28px, 5vw, 60px);
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(248, 239, 230, 0.14);
}
.footer-brand p { margin-top: 16px; max-width: 30ch; font-size: 0.9rem; color: rgba(248, 239, 230, 0.6); }
.site-footer .brand { color: var(--gold); }

.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(248, 239, 230, 0.72);
  transition: color 180ms var(--ease);
}
.footer-col a:hover { color: var(--cream); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(248, 239, 230, 0.14);
}
.legal-lines { display: grid; gap: 6px; font-size: 0.8rem; color: rgba(248, 239, 230, 0.55); }
.legal-lines strong { color: rgba(248, 239, 230, 0.85); font-weight: 600; }
.legal-lines .ph { color: var(--gold-soft); }

.bct-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 16px;
  border: 1px solid rgba(214, 174, 99, 0.4);
  border-radius: 12px;
  color: var(--gold-soft);
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.bct-badge:hover { border-color: var(--gold); background: rgba(214, 174, 99, 0.08); }
.bct-badge svg { width: 26px; height: 26px; flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  font-size: 0.76rem;
  color: rgba(248, 239, 230, 0.42);
}
.footer-bottom p { margin: 0; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-note { justify-self: start; }
  .system-grid { grid-template-columns: 1fr; }
  .system-art { order: -1; max-width: 380px; margin: 0 auto; width: 100%; }
  .machine-art { max-width: 380px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav { min-height: 68px; gap: 14px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    height: calc(100dvh - 68px);
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 0;
    margin: 0;
    padding: 10px clamp(20px, 4vw, 32px) 32px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  }
  body.nav-open { overflow: hidden; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 22px 0; border-top: 1px solid var(--line); }
  .steps li::before { display: none; }
  .places-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(2.3rem, 9.6vw, 3rem); }
  .eyebrow { letter-spacing: 0.14em; font-size: 0.7rem; }
  .cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px 28px; }
  .hero-stats div { min-width: 118px; }
  .chip-a { left: 6px; }
  .chip-b { right: 4px; }
  .footer-top { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Policy page
   ============================================================ */

.nav-links.is-static {
  position: static;
  top: auto;
  bottom: auto;
  height: auto;
  overflow: visible;
  padding: 0;
  align-content: normal;
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-left: auto;
}

.policy-page { padding: clamp(48px, 7vw, 84px) 0 clamp(60px, 8vw, 100px); }

.policy-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.policy-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.policy-head .lead { max-width: 60ch; }

.policy-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 2px;
  padding: 18px;
  background: rgba(255, 253, 249, 0.6);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.toc a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.83rem;
  color: var(--muted);
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.toc a:hover { color: var(--ink); background: rgba(133, 73, 31, 0.07); }

.prose { max-width: 760px; }
.prose section { padding: 28px 0; border-top: 1px solid var(--line); }
.prose section:first-child { border-top: 0; padding-top: 0; }
.prose h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin-bottom: 16px;
}
.prose h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--coffee-deep);
  margin: 22px 0 6px;
}
.prose p { font-size: 0.95rem; color: var(--muted); margin-bottom: 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 10px 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.prose li { font-size: 0.95rem; color: var(--muted); }
.prose a { color: var(--coffee-deep); border-bottom: 1px solid rgba(133, 73, 31, 0.35); }
.prose .ph { color: var(--coffee); background: rgba(214, 174, 99, 0.18); padding: 1px 6px; border-radius: 5px; }

.info-list { margin: 0; display: grid; gap: 0; }
.info-list > div {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.info-list > div:first-child { border-top: 0; }
.info-list dt { font-size: 0.84rem; color: var(--muted); }
.info-list dd { margin: 0; font-size: 0.92rem; font-weight: 500; }

.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.doc {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.5);
}
.doc span { font-size: 0.86rem; font-weight: 600; }
.doc em { font-size: 0.78rem; font-style: normal; color: var(--muted); }

.muted-note { font-size: 0.86rem !important; }

@media (max-width: 900px) {
  .policy-grid { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-list > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 820px) {
  .nav-links.is-static { display: flex; gap: 2px 16px; flex-wrap: wrap; height: auto; }
  .nav-links.is-static a { padding: 6px 0; border-bottom: 0; font-size: 0.86rem; }
}
@media (max-width: 560px) {
  .nav-links.is-static a:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
  .doc-grid { grid-template-columns: 1fr; }
  .toc { grid-template-columns: 1fr; }
}

/* nav toggle icon states + mobile CTA */
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-bars { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile-cta { display: none; }

@media (max-width: 820px) {
  .nav-mobile-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--coffee);
    color: #fff8ee !important;
    font-weight: 600;
  }
  .nav-mobile-cta::after { display: none; }
}

/* phones: hero stats become label/value rows (no cramped 3-col) */
@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-stats div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-stats div:last-child { border-bottom: 0; }
  .hero-stats dt { font-size: 1.15rem; }
  .hero-stats dd { text-align: right; }
}

/* small phones: keep hero headline readable */
@media (max-width: 380px) {
  h1 { font-size: clamp(1.7rem, 8.2vw, 2.25rem); }
  .eyebrow { letter-spacing: 0.12em; font-size: 0.66rem; }
  .nav-links a { font-size: 0.95rem; }
}

/* policy TOC on phones: compact chip row */
@media (max-width: 560px) {
  .toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 4px;
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .toc a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.78rem;
  }
}
/* anchor offset under sticky header */
[id] { scroll-margin-top: 88px; }

@media (max-width: 340px) {
  .nav-links.is-static a:nth-child(3) { display: none; }
}
