/* ============================================================
   fabm.app marketing — styles.css

   Brand register. Editorial typography over SaaS templates.
   Cream page, rose-peach drench reserved for the partnership
   section. Privacy promise stated three times by design.

   Tokens mirror ../../fabmapp/public/styles.css :root semantics
   but live standalone here (no build step, no shared file).
   ============================================================ */

:root {
  /* raw palette */
  --rose-100: #fbe4e5;
  --rose-300: #d88aa0;
  --rose-500: #c0506b;
  --rose-600: #b56576;
  --rose-700: #a05262;
  --rose-900: #6b2a3a;
  --peach-300: #f0b59a;
  --peach-400: #e29578;
  --sage-100: #d1fae5;
  --sage-200: #b6ecd0;
  --sage-700: #047857;
  --sage-900: #064e3b;
  --cream-50:  #fdf6f2;
  --cream-100: #f6e1d3;
  --cream-200: #efdfd5;
  --cream-300: #e3cdbf;
  --ink-500: #8a7480;
  --ink-700: #4a3640;
  --ink-900: #1f1419;
  --white: #ffffff;

  /* semantic */
  --color-text: var(--ink-900);
  --color-text-secondary: var(--ink-700);
  --color-text-muted: var(--ink-500);
  --color-text-inverse: var(--white);
  --color-bg: var(--cream-50);
  --color-bg-elevated: var(--cream-100);
  --color-surface: var(--white);
  --color-border: var(--cream-200);
  --color-border-strong: var(--cream-300);
  --color-brand: var(--rose-600);
  --color-brand-2: var(--peach-400);
  --color-brand-ink: var(--white);

  /* type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text",
               "Segoe UI", Roboto, sans-serif;

  /* spacing */
  --pad-x: clamp(20px, 4vw, 64px);
  --col: min(1180px, 100%);
  --col-narrow: min(720px, 100%);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* elevation */
  --shadow-1: 0 2px 10px rgba(31, 20, 25, 0.06),
              0 1px 3px rgba(31, 20, 25, 0.04);
  --shadow-rose: 0 24px 60px rgba(181, 101, 118, 0.22),
                 0 8px 18px rgba(181, 101, 118, 0.12);
}

/* ============================================================
   Reset / base
   ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-brand); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 12px;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.022em; }
h1 {
  font-size: clamp(44px, 8.4vw, 96px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand);
}

/* ============================================================
   Topbar — sticky, restrained
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: rgba(253, 246, 242, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease-out),
              background 220ms var(--ease-out);
}
.topbar.is-scrolled {
  border-bottom-color: var(--color-border);
}
.brand-link { display: inline-flex; align-items: center; }
.brand-link img { height: 26px; width: auto; }
.topbar-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-brand);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--color-bg-elevated);
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}
.topbar-cta:hover {
  background: var(--color-brand);
  color: var(--color-brand-ink);
}

/* ============================================================
   Hero — restrained rose wash, editorial type, side phone
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 100% -10%,
      color-mix(in oklab, var(--rose-300) 70%, transparent) 0%,
      transparent 55%),
    radial-gradient(at -10% 90%,
      color-mix(in oklab, var(--peach-300) 70%, transparent) 0%,
      transparent 50%);
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  width: var(--col);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 9vw, 128px) var(--pad-x) clamp(48px, 7vw, 96px);
}
.hero-text .eyebrow { margin-bottom: 22px; }
.hero-text h1 { margin-bottom: 22px; }
.hero-text h1 .accent {
  background: linear-gradient(180deg, var(--color-text) 60%, var(--rose-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--rose-700);
}
.hero-lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 30em;
  margin-bottom: 32px;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 14px;
  margin: 0 0 20px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(31, 20, 25, 0.04);
}
.hero-status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-brand);
  flex-shrink: 0;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-fine {
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-fine .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: 0.5;
  display: inline-block;
}
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

/* ============================================================
   Phone bezel — dark device shell, rounded screen, soft notch.
   Inner radius is intentionally smaller than outer so the bezel
   reads as a frame and not a single rounded card.
   ============================================================ */
.phone {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 360 / 760;
  background: linear-gradient(180deg, #2a2126 0%, #1a1418 100%);
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    var(--shadow-rose),
    /* subtle highlight along the top edge */
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    /* outer hairline for the metal-band feel */
    0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: rotate(-3deg);
  transition: transform 600ms var(--ease-out);
  isolation: isolate;
}
.phone:hover { transform: rotate(0deg); }

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #0d0a0c;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--cream-50);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: clamp(40px, 7vw, 80px);
  }
  .hero-phone { order: 2; margin-top: 28px; }
  .phone { width: min(78%, 300px); }
  .cta-row .btn { flex: 1 1 auto; }
}

/* ============================================================
   Buttons — one shape, two variants. No third.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease,
              background 180ms var(--ease-out),
              box-shadow 220ms var(--ease-out),
              color 180ms var(--ease-out),
              border-color 180ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--color-brand);
  color: var(--color-brand-ink);
  box-shadow: 0 12px 26px rgba(181, 101, 118, 0.32),
              0 2px 6px rgba(181, 101, 118, 0.20);
}
.btn--primary:hover {
  background: var(--rose-700);
  box-shadow: 0 18px 34px rgba(181, 101, 118, 0.40),
              0 3px 8px rgba(181, 101, 118, 0.24);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
}
.btn--ghost:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.btn--on-rose {
  background: var(--white);
  color: var(--color-brand);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}
.btn--on-rose:hover {
  background: var(--cream-100);
}

/* ============================================================
   Promise band — under hero, the brand thesis stated big
   ============================================================ */
.promise {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(48px, 6vw, 80px) var(--pad-x);
}
.promise-inner {
  width: var(--col);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.promise-mark {
  width: clamp(56px, 7vw, 84px);
  height: clamp(56px, 7vw, 84px);
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-brand-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.promise-mark svg { width: 56%; height: 56%; }
.promise-text {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--color-text);
}
.promise-text .quiet {
  display: block;
  margin-top: 10px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-text-muted);
}
@media (max-width: 600px) {
  .promise-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Values — editorial numbered list. NOT a card grid.
   ============================================================ */
.values {
  padding: clamp(80px, 11vw, 160px) var(--pad-x);
}
.values-inner {
  width: var(--col);
  margin: 0 auto;
}
.values-header {
  max-width: 36rem;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.values-header h2 { margin-bottom: 16px; }
.values-header p {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--color-text-secondary);
  line-height: 1.55;
}
.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}
.value-row {
  display: grid;
  grid-template-columns: clamp(72px, 9vw, 140px) 1fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--color-border);
}
.value-num {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--color-brand);
  font-variant-numeric: tabular-nums;
}
.value-body h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.value-body p {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 38em;
}
.value-body p + p { margin-top: 12px; }

/* ============================================================
   How it works — three steps, three small phone frames
   ============================================================ */
.how {
  background: var(--color-bg-elevated);
  padding: clamp(72px, 10vw, 140px) var(--pad-x);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.how-inner {
  width: var(--col);
  margin: 0 auto;
}
.how-header {
  max-width: 36rem;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.how-header h2 { margin-bottom: 16px; }
.how-header p {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--color-text-secondary);
  line-height: 1.55;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.how-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.how-step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.how-step h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.how-step p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 8px;
}
@media (max-width: 760px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Partnership — the only rose-peach drench section
   ============================================================ */
.partner {
  position: relative;
  color: var(--white);
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  background:
    radial-gradient(at 80% 110%, rgba(255,255,255,0.10) 0%, transparent 50%),
    linear-gradient(135deg, var(--rose-600) 0%, var(--peach-400) 100%);
  overflow: hidden;
  isolation: isolate;
}
.partner::after {
  /* hairline noise to keep the gradient from feeling like a stock template */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 1px, transparent 1.5px);
  background-size: 4px 4px;
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.partner-inner {
  width: var(--col-narrow);
  margin: 0 auto;
}
.partner .eyebrow {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 18px;
}
.partner h2 {
  color: var(--white);
  margin-bottom: 22px;
  font-size: clamp(36px, 5.6vw, 64px);
  letter-spacing: -0.035em;
}
.partner-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
  max-width: 36em;
  margin-bottom: 36px;
}
.partner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  margin: 0 0 36px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,0.20);
}
.partner-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.partner-stat-n {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}
.partner-stat-l {
  font-size: 13px;
  color: rgba(255,255,255,0.84);
  letter-spacing: 0.04em;
}
.partner-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.partner-tag {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
@media (max-width: 600px) {
  .partner-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   FAQ — native details, hairline dividers, big hit areas
   ============================================================ */
.faq {
  padding: clamp(80px, 11vw, 140px) var(--pad-x);
}
.faq-inner {
  width: var(--col-narrow);
  margin: 0 auto;
}
.faq h2 {
  margin-bottom: clamp(28px, 4vw, 52px);
  text-align: left;
}
.faq-list { border-top: 1px solid var(--color-border); }
.faq-list details {
  border-bottom: 1px solid var(--color-border);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--color-brand);
  transition: transform 220ms var(--ease-out);
  flex-shrink: 0;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list .faq-answer {
  padding: 0 0 24px;
  max-width: 38em;
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 16px;
}
.faq-list .faq-answer p + p { margin-top: 10px; }

/* ============================================================
   Mission — sage tint, RRM Foundation
   ============================================================ */
.mission {
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--sage-100) 50%, var(--cream-50)) 0%,
    var(--cream-50) 100%);
  padding: clamp(72px, 10vw, 140px) var(--pad-x);
  border-top: 1px solid var(--color-border);
}
.mission-inner {
  width: var(--col-narrow);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.mission-eyebrow { color: var(--sage-700); }
.mission h2 { letter-spacing: -0.03em; }
.mission p {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 36em;
}
.mission-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* repeat-promise — third instance of the privacy promise */
.repeat-promise {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  font-size: 16px;
  color: var(--color-text);
  max-width: 36em;
}
.repeat-promise svg {
  width: 28px; height: 28px;
  color: var(--color-brand);
  flex-shrink: 0;
}
.repeat-promise strong { font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #1f1419;
  color: #d8c4cc;
  padding: clamp(48px, 6vw, 72px) var(--pad-x) clamp(28px, 3vw, 40px);
}
.footer-inner {
  width: var(--col);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.footer-brand img {
  height: 26px; width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.footer-fine {
  color: #b09098;
  font-size: 14px;
  line-height: 1.55;
  max-width: 28em;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7480;
  margin: 0 0 6px;
}
.footer-nav a {
  color: #f2dde2;
  text-decoration: none;
  font-size: 15px;
}
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-meta {
  width: var(--col);
  margin: clamp(32px, 4vw, 48px) auto 0;
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  font-size: 12px;
  color: #6b5159;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .hero-phone-frame { transform: none; }
}
