/* Leafwell — coming soon page. Tokens mirror Figma "Leafwell / Color" + type styles. */
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --brand-primary: #1E6B42;
  --brand-dark: #0F3A24;
  --brand-wash: #EEF7F1;
  --brand-secondary: #FFE6D6;
  --brand-on-peach: #8A3E17;
  --surface-canvas: #F7F8F4;
  --surface-raised: #FFFFFF;
  --neutral-line: #DEE5DE;
  --neutral-muted: #45564D;
  --neutral-ink: #15271E;
  --danger: #9B2E28;
  --glass-thick: rgba(255, 255, 255, .9);
  --shadow-glass: 0 6px 20px rgba(15, 58, 36, .12);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* desktop type; overridden below for mobile */
  --display-size: 60px; --display-lh: 64px; --display-ls: -1.8px;
  --h2-size: 32px; --h2-lh: 38px;
  --h3-size: 24px; --h3-lh: 30px;
  --page-pad: 48px; --section-gap: 32px; --card-pad: 24px; --hero-pad: 40px; --nav-pad: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-canvas); color: var(--neutral-ink); font: 400 16px/24px Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: Manrope, Inter, system-ui, sans-serif; font-weight: 800; color: var(--brand-dark); }

/* type styles */
.display, .h2, .h3 { font-family: Manrope, Inter, system-ui, sans-serif; font-weight: 800; color: var(--brand-dark); }
.display { font-size: var(--display-size); line-height: var(--display-lh); letter-spacing: var(--display-ls); }
.h2 { font-size: var(--h2-size); line-height: var(--h2-lh); }
.h3 { font-size: var(--h3-size); line-height: var(--h3-lh); }
.body { font-size: 16px; line-height: 24px; color: var(--neutral-muted); }
.body-sm { font-size: 14px; line-height: 20px; color: var(--neutral-muted); }
.caption { font-size: 12px; line-height: 16px; color: var(--neutral-muted); }
.label { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .13px; color: var(--brand-dark); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; }

/* navigation */
.nav { background: var(--surface-raised); }
.nav .wrap { display: flex; align-items: center; gap: 32px; padding: var(--nav-pad); }
.wordmark { flex: 1; font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: var(--h3-size); line-height: var(--h3-lh); color: var(--brand-dark); text-decoration: none; }
.pill { display: inline-flex; padding: 8px; border-radius: var(--r-pill); background: var(--brand-secondary); color: var(--brand-on-peach); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .13px; white-space: nowrap; }

/* page */
main.wrap { display: flex; flex-direction: column; gap: var(--section-gap); padding: var(--page-pad); }
.row { display: flex; gap: 24px; align-items: flex-start; }
.row > * { flex: 1 1 0; min-width: 0; }
.hero { gap: 32px; }

.hero-copy { display: flex; flex-direction: column; gap: 12px; padding: var(--hero-pad); background: var(--brand-wash); border-radius: var(--r-lg); align-items: flex-start; }
.countdown { display: flex; gap: 8px; flex-wrap: wrap; }
.countdown span { padding: 8px; background: var(--surface-raised); border-radius: var(--r-md); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .13px; color: var(--brand-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }

.hero-photo { position: relative; height: 370px; border-radius: var(--r-xl); overflow: hidden; margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.glass-caption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 20px; background: var(--glass-thick); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: var(--shadow-glass); }

.card { display: flex; flex-direction: column; gap: 12px; padding: var(--card-pad); border-radius: var(--r-lg); overflow: hidden; }
.card-raised { background: var(--surface-raised); border: 1px solid var(--neutral-line); }
.card-peach { background: var(--brand-secondary); }
.card-wash { background: var(--brand-wash); }

.kv { display: flex; align-items: center; gap: 8px; }
.kv > :first-child { flex: 1; }
.kv .label { white-space: nowrap; }

/* form */
.field { display: flex; flex-direction: column; gap: 4px; }
.field input { height: 48px; width: 100%; padding: 0 8px; border: 1px solid var(--neutral-line); border-radius: var(--r-md); background: var(--surface-raised); font: 400 14px/20px Inter, system-ui, sans-serif; color: var(--neutral-ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: var(--neutral-muted); }
.field input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(30, 107, 66, .15); }
.field.has-error input { border-color: var(--danger); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(155, 46, 40, .14); }
.field-error { display: none; font-size: 12px; line-height: 16px; color: var(--danger); }
.field.has-error .field-error { display: block; }

.actions { display: flex; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: var(--r-pill); border: 0; cursor: pointer; font: 600 13px/18px Inter, system-ui, sans-serif; letter-spacing: .13px; text-decoration: none; transition: background-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(30, 107, 66, .35); outline-offset: 2px; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: #185a37; }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-secondary { background: var(--surface-raised); color: var(--brand-primary); border: 1px solid var(--neutral-line); }
.btn-secondary:hover { background: var(--brand-wash); }

.success { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r-md); background: var(--brand-wash); }
.success .h3 { font-size: var(--h3-size); }
.success .body-sm { color: var(--neutral-ink); }
[hidden] { display: none !important; }

/* menu teaser */
.teaser { display: flex; gap: 20px; flex-wrap: wrap; }
.dish { width: 172px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--neutral-line); border-radius: var(--r-lg); background: var(--surface-canvas); }
.dish-media { width: 148px; height: 112px; border-radius: var(--r-md); overflow: hidden; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; }
.dish-info { display: flex; flex-direction: column; gap: 4px; }
.dish-price { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.dish-price .label { color: var(--brand-primary); }
.add { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--brand-wash); }
.add img { width: 24px; height: 24px; }
.teaser-more { display: none; }

.pin { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.pin img { width: 24px; height: 24px; }

/* app badges (placeholders until store links exist) */
.badges { gap: 12px; }
.badge { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: var(--brand-dark); color: #fff; text-decoration: none; }
.badge .label { color: #fff; }
.badge .caption { color: rgba(255, 255, 255, .72); }

/* footer */
.footer { margin-top: auto; background: var(--brand-dark); color: #fff; }
.footer .footer-main { display: flex; align-items: center; gap: 24px; padding: 32px; }
.footer .wordmark { color: #fff; }
.footer .label { color: #fff; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .13px; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; padding: 0 32px 24px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }
.footer-legal a, .footer-legal span { color: rgba(255, 255, 255, .72); font-size: 12px; line-height: 16px; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

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

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  :root { --display-size: 48px; --display-lh: 54px; --display-ls: -1.4px; --page-pad: 32px; --hero-pad: 32px; }
  .teaser { gap: 16px; }
}

/* ---------- mobile (Figma "Coming soon · Mobile", 390 px) ---------- */
@media (max-width: 760px) {
  :root {
    --display-size: 40px; --display-lh: 44px; --display-ls: -1.2px;
    --h2-size: 26px; --h2-lh: 32px;
    --h3-size: 20px; --h3-lh: 26px;
    --page-pad: 20px; --section-gap: 20px; --card-pad: 16px; --hero-pad: 20px; --nav-pad: 16px;
  }
  .nav .wrap { gap: 12px; }
  .row { flex-direction: column; align-items: stretch; }
  .row > * { flex: none; width: 100%; }
  .hero { gap: 16px; }
  .hero-photo { height: 232px; }
  .teaser { gap: 6px; flex-wrap: nowrap; }
  .dish { flex: 1 1 0; width: auto; min-width: 0; }
  .dish-media { width: 100%; }
  .teaser .dish:nth-child(n+3) { display: none; }
  .teaser-more { display: block; }
  .footer .footer-main { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; }
  .footer-legal { padding: 16px 20px 20px; gap: 12px; }
}

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