/* brand.css — Piano Enhancer marketing brand system ("Ivory Studio").
   Shared across landing, legal and support pages.
   Palette + type lifted from the app's theme so web ↔ app stay one family. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Core palette (theme/Color.kt) */
  --ivory: #F5F0E8;
  --ivory-light: #FAF8F4;
  --ivory-mid: #EBE5D9;
  --ivory-dark: #DED6C6;
  --ink: #1A1A1A;
  --ink-soft: #3D3530;
  --bronze: #8B7355;
  --bronze-light: #A89070;
  --gold: #C9A84C;
  --gold-deep: #B8932E;
  --warm-gray: #9A8E80;
  --piano-black: #0E0C0A;
  --red-soft: #B44C4C;
  --green-soft: #5A8A5E;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Accessible keyboard focus (production) */
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

/* ── Type ───────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--bronze);
}
.display {
  font-family: var(--serif); font-weight: 500; line-height: 1.02;
  letter-spacing: -0.01em; color: var(--ink);
  font-size: clamp(44px, 7vw, 88px);
}
.h2 {
  font-family: var(--serif); font-weight: 500; line-height: 1.06;
  letter-spacing: -0.01em; font-size: clamp(34px, 4.6vw, 56px);
}
.h3 {
  font-family: var(--serif); font-weight: 500; line-height: 1.1;
  font-size: clamp(24px, 2.6vw, 32px);
}
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-soft); }
.body { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.muted { color: var(--warm-gray); }
.serif-italic { font-family: var(--serif); font-style: italic; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.center { text-align: center; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: #000; }
.btn-bronze { background: var(--bronze); color: var(--ivory); }
.btn-bronze:hover { background: #7a6449; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ivory-dark); }
.btn-ghost:hover { border-color: var(--bronze); }

/* ── Chips / pills ──────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  background: var(--gold-muted, rgba(201,168,76,0.12));
  border: 1px solid rgba(201,168,76,0.4); color: var(--ink-soft);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ── Cards / surfaces ───────────────────────────────────────────────── */
.card {
  background: var(--ivory-light); border: 1px solid var(--ivory-dark);
  border-radius: var(--radius);
}
.surface-dark { background: var(--piano-black); color: var(--ivory); }

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(245,240,232,0.78);
  border-bottom: 1px solid var(--ivory-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--bronze); }

/* ── Wordmark ───────────────────────────────────────────────────────── */
.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.wordmark .mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--ink); display: grid; place-items: center;
}
.wordmark .name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark .name b { font-weight: 500; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer { background: var(--piano-black); color: var(--ivory); padding: 64px 0 40px; }
.footer a { color: var(--bronze-light); font-size: 14px; }
.footer a:hover { color: var(--gold); }

/* ── Legal doc layout ───────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 28px 120px; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px,5vw,52px); margin: 8px 0 6px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 44px 0 12px; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 26px 0 8px; letter-spacing: 0.01em; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--warm-gray); font-size: 13px; letter-spacing: 0.04em; }
.doc a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }

/* ── Waitlist form helpers (production) ─────────────────────────────── */
.signup-error { color: var(--red-soft); font-size: 13px; margin-top: 6px; display: none; }
/* Honeypot — visually & semantically hidden, off-screen, never focusable. */
.hp-field {
  position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  opacity: 0 !important; pointer-events: none !important;
}

/* ── Reveal-on-scroll (transform-only; never hides content even if frozen) ── */
@keyframes peFadeUp { from { transform: translateY(16px); } to { transform: none; } }
.reveal { }
.reveal.anim { animation: peFadeUp .6s ease both; }
@media (prefers-reduced-motion: reduce) { .reveal.anim { animation: none; } }

@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
}
