/* Hallmark · macrostructure: Editorial Index (Almanac) · tone: playful-editorial · anchor hue: terracotta ~35deg
 * theme: custom (vibe: "sun-warm market-day food-travel almanac" · paper oklch(98.5% 0.012 70) · accent oklch(58% 0.18 32) warm · Fraunces + Inter)
 * pre-emit critique: P5 H4 E5 S5 R4 V5
 * Scope: LANDING ONLY. Loaded in addition to /styles.css. Does not alter shared chrome used by legal pages.
 */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600&display=swap");

:root {
  /* Palette — warm almanac paper + terracotta accent (brand #E5462A) */
  --fm-paper:      oklch(98.5% 0.012 75);
  --fm-paper-2:    oklch(96.2% 0.018 70);
  --fm-paper-3:    oklch(93.5% 0.024 66);
  --fm-ink:        oklch(24% 0.02 40);
  --fm-ink-2:      oklch(44% 0.02 45);
  --fm-rule:       oklch(88% 0.02 65);
  --fm-accent:     oklch(58% 0.184 32);   /* ≈ #E5462A */
  --fm-accent-deep:oklch(50% 0.17 32);
  --fm-accent-ink: oklch(98% 0.01 75);
  --fm-sand:       oklch(91% 0.04 78);
  --fm-leaf:       oklch(56% 0.09 145);
  --fm-focus:      oklch(55% 0.19 32);

  --fm-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --fm-font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fm-3xs: 0.25rem; --fm-2xs: 0.5rem; --fm-xs: 0.75rem;
  --fm-sm: 1rem;     --fm-md: 1.5rem;  --fm-lg: 2rem;
  --fm-xl: 3rem;     --fm-2xl: 4.5rem; --fm-3xl: 7rem;

  --fm-maxw: 1140px;

  --fm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fm-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --fm-dur: 460ms;

  --fm-radius: 16px;
  --fm-radius-lg: 24px;
  --fm-radius-pill: 999px;
}

/* ---- Reset scoped to landing body ---- */
body.fm-landing {
  margin: 0;
  font-family: var(--fm-font-body);
  color: var(--fm-ink);
  background: var(--fm-paper);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; }
body.fm-landing * { box-sizing: border-box; }
body.fm-landing img { max-width: 100%; display: block; }

.fm-shell { max-width: var(--fm-maxw); margin: 0 auto; padding: 0 24px; }

/* ============ NAV — slim floating wordmark + single CTA ============ */
.fm-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--fm-paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--fm-rule);
}
.fm-nav .fm-shell {
  display: flex; align-items: center; gap: var(--fm-md);
  padding-top: 14px; padding-bottom: 14px;
  min-width: 0;
}
.fm-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fm-ink);
}
.fm-mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--fm-accent), var(--fm-accent-deep));
  color: var(--fm-accent-ink);
  display: grid; place-items: center;
  font-family: var(--fm-font-display);
  font-weight: 600; font-size: 20px;
  box-shadow: 0 4px 14px oklch(58% 0.18 32 / 0.3);
}
.fm-wordmark {
  font-family: var(--fm-font-display);
  font-weight: 600; font-size: 21px; letter-spacing: -0.01em;
}
.fm-wordmark b { color: var(--fm-accent); font-weight: 600; }
.fm-nav-spacer { margin-left: auto; }
.fm-nav-links { display: flex; gap: 22px; font-size: 15px; }
.fm-nav-links a {
  color: var(--fm-ink-2); text-decoration: none; font-weight: 500;
  transition: color var(--fm-dur) var(--fm-ease-out);
  display: inline-flex; align-items: center; min-height: 44px;
}
.fm-nav-links a:hover { color: var(--fm-accent); }

/* ============ BUTTONS ============ */
.fm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fm-font-body); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 0;
  padding: 12px 20px; border-radius: var(--fm-radius-pill);
  transition: transform var(--fm-dur) var(--fm-ease-out),
              box-shadow var(--fm-dur) var(--fm-ease-out),
              background var(--fm-dur) var(--fm-ease-out);
  white-space: nowrap;
}
.fm-btn-primary {
  background: var(--fm-accent); color: var(--fm-accent-ink);
  box-shadow: 0 6px 18px oklch(58% 0.18 32 / 0.28);
}
.fm-btn-primary:hover { transform: translateY(-2px); background: var(--fm-accent-deep);
  box-shadow: 0 10px 26px oklch(58% 0.18 32 / 0.34); }
.fm-btn-primary:active { transform: translateY(0); }
.fm-btn-ghost {
  background: transparent; color: var(--fm-ink);
  border: 1px solid var(--fm-rule); padding: 11px 19px;
}
.fm-btn-ghost:hover { transform: translateY(-2px); border-color: var(--fm-accent); color: var(--fm-accent); }
.fm-btn:focus-visible { outline: 3px solid var(--fm-focus); outline-offset: 2px; }

/* ============ HERO — asymmetric postcard ============ */
.fm-hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: clip; }
.fm-hero::before {
  /* faint contour-map texture */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 30%, oklch(58% 0.18 32 / 0.06) 0 1px, transparent 1px),
    repeating-radial-gradient(circle at 80% 18%, transparent 0 38px, oklch(56% 0.09 145 / 0.06) 38px 39px);
  background-size: 26px 26px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}
.fm-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.fm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fm-accent); margin-bottom: 18px;
}
.fm-eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--fm-accent); }
.fm-h1 {
  font-family: var(--fm-font-display);
  font-weight: 500; font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1.02;
  letter-spacing: -0.025em; margin: 0 0 22px;
  overflow-wrap: anywhere; min-width: 0;
}
.fm-h1 em { font-style: italic; color: var(--fm-accent); }
.fm-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--fm-ink-2); max-width: 30ch; margin: 0 0 30px; }
.fm-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fm-hero-note { font-size: 14px; color: var(--fm-ink-2); margin-top: 18px; }
.fm-hero-note b { color: var(--fm-ink); font-weight: 600; }

/* Postcard art — Tier-A CSS */
.fm-postcard {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--fm-radius-lg);
  background:
    linear-gradient(180deg, var(--fm-sand), var(--fm-paper-3));
  border: 1px solid var(--fm-rule);
  box-shadow: 0 30px 60px -30px oklch(24% 0.02 40 / 0.35);
  overflow: hidden;
  transform: rotate(1.6deg);
}
.fm-postcard::before { /* map roads */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 48%, var(--fm-paper) 48% 50%, transparent 50%),
    linear-gradient(60deg, transparent 0 66%, var(--fm-paper) 66% 67.4%, transparent 67.4%),
    radial-gradient(circle at 30% 75%, oklch(56% 0.09 145 / 0.18) 0 80px, transparent 80px);
  opacity: 0.8;
}
.fm-postcard-stamp {
  position: absolute; top: 16px; right: 16px;
  width: 60px; height: 72px; border-radius: 6px;
  background: var(--fm-accent); color: var(--fm-accent-ink);
  display: grid; place-items: center; font-size: 26px;
  border: 3px solid var(--fm-paper);
  box-shadow: 0 6px 14px oklch(24% 0.02 40 / 0.2);
  transform: rotate(-6deg);
}
.fm-pin {
  position: absolute; display: flex; flex-direction: column; align-items: center;
  font-size: 12px; font-weight: 600; color: var(--fm-ink);
}
.fm-pin .dot {
  width: 18px; height: 18px; border-radius: 50% 50% 50% 0;
  background: var(--fm-accent); transform: rotate(-45deg);
  box-shadow: 0 4px 10px oklch(58% 0.18 32 / 0.4);
  margin-bottom: 6px;
}
.fm-pin .tag {
  background: var(--fm-paper); padding: 3px 9px; border-radius: var(--fm-radius-pill);
  border: 1px solid var(--fm-rule); box-shadow: 0 3px 8px oklch(24% 0.02 40 / 0.12);
  white-space: nowrap;
}
.fm-pin-1 { top: 26%; left: 18%; }
.fm-pin-2 { top: 54%; left: 56%; }
.fm-pin-3 { top: 74%; left: 24%; }
.fm-pin .dot { animation: fm-pulse 3.4s var(--fm-ease-in-out) infinite; }
.fm-pin-2 .dot { animation-delay: 0.5s; }
.fm-pin-3 .dot { animation-delay: 1s; }
@keyframes fm-pulse {
  0%, 100% { box-shadow: 0 4px 10px oklch(58% 0.18 32 / 0.4); }
  50% { box-shadow: 0 4px 18px oklch(58% 0.18 32 / 0.65); }
}

/* ============ TRUST STRIP ============ */
.fm-strip {
  border-top: 1px solid var(--fm-rule); border-bottom: 1px solid var(--fm-rule);
  background: var(--fm-paper-2);
}
.fm-strip .fm-shell {
  display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center;
  padding: 18px 24px; font-size: 14px; color: var(--fm-ink-2);
}
.fm-strip span { display: inline-flex; align-items: center; gap: 8px; }
.fm-strip .ico { color: var(--fm-accent); font-size: 16px; }

/* ============ SECTION SCAFFOLD ============ */
.fm-section { padding: clamp(56px, 9vw, 104px) 0; }
.fm-section-head { max-width: 40ch; margin-bottom: clamp(32px, 5vw, 56px); }
.fm-section-head .fm-eyebrow { margin-bottom: 14px; }
.fm-h2 {
  font-family: var(--fm-font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 14px; overflow-wrap: anywhere; min-width: 0;
}
.fm-h2 em { font-style: italic; color: var(--fm-accent); }
.fm-section-head p { color: var(--fm-ink-2); margin: 0; font-size: 1.05rem; }

/* ---- Picks row: feed preview ---- */
.fm-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fm-pick {
  border-radius: var(--fm-radius); overflow: hidden;
  border: 1px solid var(--fm-rule); background: var(--fm-paper);
  transition: transform var(--fm-dur) var(--fm-ease-out), box-shadow var(--fm-dur) var(--fm-ease-out);
}
.fm-pick:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px oklch(24% 0.02 40 / 0.4); }
.fm-pick-photo { aspect-ratio: 5 / 4; position: relative; }
.fm-pick-1 .fm-pick-photo { background: linear-gradient(140deg, oklch(70% 0.12 55), oklch(56% 0.16 32)); }
.fm-pick-2 .fm-pick-photo { background: linear-gradient(140deg, oklch(72% 0.09 145), oklch(52% 0.1 160)); }
.fm-pick-3 .fm-pick-photo { background: linear-gradient(140deg, oklch(74% 0.1 85), oklch(60% 0.14 48)); }
.fm-pick-kind {
  position: absolute; top: 12px; left: 12px;
  font-size: 12px; font-weight: 600; color: var(--fm-ink);
  background: var(--fm-paper); padding: 4px 10px; border-radius: var(--fm-radius-pill);
}
.fm-pick-body { padding: 16px 18px 20px; }
.fm-pick-body h3 { font-family: var(--fm-font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 4px; }
.fm-pick-body .place { font-size: 13px; color: var(--fm-ink-2); margin: 0 0 12px; display: flex; align-items: center; gap: 5px; }
.fm-pick-body .note { font-size: 14px; color: var(--fm-ink-2); margin: 0; font-style: italic; }

/* ---- How it works: numbered editorial track ---- */
.fm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fm-step { position: relative; padding-top: 22px; border-top: 2px solid var(--fm-rule); }
.fm-step .num {
  font-family: var(--fm-font-display); font-style: italic; font-weight: 500;
  font-size: 1.4rem; color: var(--fm-accent); margin-bottom: 10px;
}
.fm-step h3 { font-family: var(--fm-font-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 8px; }
.fm-step p { color: var(--fm-ink-2); margin: 0; font-size: 0.98rem; }

/* ---- Map + concierge split ---- */
.fm-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center;
  background: var(--fm-ink); color: var(--fm-paper);
  border-radius: var(--fm-radius-lg); padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
}
.fm-split .fm-h2 { color: var(--fm-paper); }
.fm-split p { color: oklch(82% 0.01 70); }
.fm-split .fm-eyebrow { color: oklch(74% 0.13 45); }
.fm-split .fm-eyebrow::before { background: oklch(74% 0.13 45); }
/* chat mockup */
.fm-chat {
  background: oklch(30% 0.015 40); border-radius: var(--fm-radius); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid oklch(40% 0.02 40);
}
.fm-bubble { padding: 12px 15px; border-radius: 14px; font-size: 14.5px; max-width: 88%; line-height: 1.45; }
.fm-bubble.user { align-self: flex-end; background: var(--fm-accent); color: var(--fm-accent-ink); border-bottom-right-radius: 4px; }
.fm-bubble.bot { align-self: flex-start; background: oklch(38% 0.015 40); color: var(--fm-paper); border-bottom-left-radius: 4px; }
.fm-bubble.bot b { color: oklch(80% 0.12 50); }

/* ============ CTA ============ */
.fm-cta { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.fm-cta .fm-h2 { margin-left: auto; margin-right: auto; max-width: 18ch; }
.fm-cta p { color: var(--fm-ink-2); max-width: 46ch; margin: 0 auto 28px; }
.fm-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER — statement ============ */
.fm-footer { background: var(--fm-paper-2); border-top: 1px solid var(--fm-rule); }
.fm-footer .fm-shell { padding: clamp(40px, 6vw, 64px) 24px 32px; }
.fm-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.fm-footer-brand { max-width: 30ch; }
.fm-footer-brand .fm-wordmark { display: block; margin-bottom: 10px; }
.fm-footer-brand p { color: var(--fm-ink-2); font-size: 14px; margin: 0; }
.fm-footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.fm-footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fm-ink-2); margin: 0 0 12px; font-weight: 600; }
.fm-footer-col a { display: flex; align-items: center; min-height: 40px; color: var(--fm-ink); text-decoration: none; font-size: 14px; transition: color var(--fm-dur) var(--fm-ease-out); }
.fm-footer-col a:hover { color: var(--fm-accent); }
.fm-footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--fm-rule); font-size: 13px; color: var(--fm-ink-2); }
.fm-footer-bottom .sp { margin-left: auto; }
.fm-footer-bottom a { color: var(--fm-ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.fm-footer-bottom a:hover { color: var(--fm-accent); }
.fm-footer-bottom .badge-link { opacity: 0.7; transition: opacity var(--fm-dur) var(--fm-ease-out); }
.fm-footer-bottom .badge-link:hover,
.fm-footer-bottom .badge-link:focus-visible { opacity: 1; }

/* ============ REVEAL ============ */
.fm-reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms var(--fm-ease-out), transform 650ms var(--fm-ease-out); }
.fm-reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .fm-hero-grid { grid-template-columns: 1fr; }
  .fm-postcard { max-width: 420px; margin: 0 auto; transform: rotate(1deg); }
  .fm-picks { grid-template-columns: 1fr 1fr; }
  .fm-steps { grid-template-columns: 1fr; }
  .fm-split { grid-template-columns: 1fr; }
  .fm-nav-links { display: none; }
}
@media (max-width: 560px) {
  .fm-picks { grid-template-columns: 1fr; }
  .fm-lede { max-width: none; }
  .fm-footer-top { flex-direction: column; }
  .fm-strip .fm-shell { gap: 10px 24px; padding: 16px 20px; }
}

/* ---- Small phones: 320–430px ---- */
@media (max-width: 430px) {
  .fm-shell { padding: 0 18px; }
  .fm-nav .fm-shell { gap: 12px; }
  /* Let the CTA shrink before it forces the wordmark to overflow */
  .fm-nav .fm-btn-primary { padding: 12px 15px; font-size: 14px; }
  .fm-wordmark { font-size: 19px; }

  /* Buttons go full-width so they never clip */
  .fm-hero-cta .fm-btn,
  .fm-cta-row .fm-btn { flex: 1 1 auto; justify-content: center; }

  /* Keep postcard art from clipping its pin labels */
  .fm-postcard { max-width: 100%; aspect-ratio: 5 / 4; transform: rotate(0.6deg); }
  .fm-pin { font-size: 11px; }
  .fm-pin .tag { padding: 2px 7px; }
  .fm-pin-2 { left: 48%; }
  .fm-postcard-stamp { width: 50px; height: 60px; font-size: 22px; }

  .fm-footer .fm-shell { padding-left: 18px; padding-right: 18px; }
  .fm-footer-cols { gap: 28px 40px; }
}

@media (max-width: 360px) {
  .fm-footer-cols { gap: 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-reveal { opacity: 1; transform: none; transition: opacity 150ms linear; }
  .fm-pin .dot { animation: none; }
  .fm-btn, .fm-pick, .fm-nav-links a { transition: none; }
}
