/* Fluffington — fluffington.app marketing site
   Tokens per brand-spec.md / repo DESIGN.md. Dark is the brand;
   gold is the action color (≤2 moments per screen); sky rationed to kickers. */

:root {
  --bg:          #05070d;
  --bg-elev:     #0b0f1a;
  --surface:     #111827;
  --surface-alt: #1a2233;
  --fg:          #f8fafc;
  --muted:       #9ca3af;
  --border:      rgba(248, 250, 252, 0.08);
  --accent:      #f59e0b;
  --accent-deep: #d97706;
  --sky:         #38bdf8;

  --font-display: 'Space Grotesk', 'Avenir Next', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --radius: 16px;
  --measure: 65ch;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: rgba(245, 158, 11, 0.35); }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }

.display {
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 { font-size: 20px; letter-spacing: -0.01em; }

.kicker {
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
}

.lede {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  max-width: 46ch;
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font: 600 16px/1 var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 0;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(2px); }
.btn:hover { text-decoration: none; }

.btn-gold {
  background: var(--accent);
  color: #171003;
}
.btn-gold:hover { background: var(--accent-deep); color: #171003; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(248, 250, 252, 0.25); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font: 700 19px/1 var(--font-display);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }

.header-cta { min-height: 42px; padding: 10px 20px; font-size: 14px; }

/* ---------- shared layout ---------- */

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

section { padding: clamp(64px, 10vw, 120px) 0; }

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

.hero { padding-top: clamp(48px, 8vw, 96px); }

.hero .wrap {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy .display span.gradient {
  background: linear-gradient(100deg, #f59e0b 10%, #ec4899 52%, #38bdf8 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.hero-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}

@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 5fr 6fr; }
}

/* ---------- studios gallery ---------- */

.studios { background: var(--bg-elev); border-block: 1px solid var(--border); }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 60ch; }
.section-head .lede { margin-top: 14px; }

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.studio {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease;
}
.studio:hover { transform: translateY(-4px); }
.studio img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.studio figcaption {
  padding: 12px 14px;
  font: 600 13px/1.3 var(--font-body);
  letter-spacing: 0.01em;
}
.studio figcaption small {
  display: block;
  margin-top: 3px;
  font: 400 12px/1.4 var(--font-body);
  color: var(--muted);
}

@media (min-width: 720px) {
  .studio-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 700 15px/1 var(--font-display);
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; text-wrap: pretty; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- pricing ---------- */

.pricing { background: var(--bg-elev); border-block: 1px solid var(--border); }

.price-grid { display: grid; gap: 20px; }

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan.featured { border-color: rgba(245, 158, 11, 0.45); }

.plan .plan-name {
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan.featured .plan-name { color: var(--accent); }

.plan .price {
  font: 700 clamp(30px, 4vw, 40px)/1.05 var(--font-display);
  letter-spacing: -0.02em;
}
.plan .price small { font: 500 15px/1 var(--font-body); color: var(--muted); letter-spacing: 0; }

.plan p { color: var(--muted); font-size: 15px; text-wrap: pretty; }

.price-note { margin-top: 24px; color: var(--muted); font-size: 14px; max-width: 60ch; }

@media (min-width: 760px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- closing CTA ---------- */

.closing { text-align: center; }
.closing .wrap { display: grid; justify-items: center; gap: 24px; }
.closing .lede { margin-inline: auto; }
.closing .mascot { width: clamp(120px, 18vw, 180px); }

/* App Store badge placeholder — swap for the official badge at launch */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 24px;
  border-radius: 12px;
  border: 1px solid rgba(248, 250, 252, 0.25);
  color: var(--fg);
  text-align: left;
  line-height: 1.15;
}
.appstore-badge:hover { text-decoration: none; border-color: rgba(248, 250, 252, 0.5); }
.appstore-badge .apple-mark { width: 26px; height: 26px; fill: currentColor; flex: none; }
.appstore-badge small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.appstore-badge strong { font: 600 17px/1.2 var(--font-body); }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  background: var(--bg);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--fg); text-decoration: none; }

/* ---------- legal / support pages ---------- */

.page { padding: clamp(48px, 8vw, 88px) 0 clamp(64px, 10vw, 120px); }

.page .wrap { max-width: 780px; }

.page h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }

.page h2 { font-size: clamp(22px, 3vw, 28px); margin: 44px 0 14px; }
.page h3 { margin: 28px 0 10px; }

.page p, .page li { color: var(--muted); max-width: var(--measure); text-wrap: pretty; }
.page p + p { margin-top: 14px; }
.page ul, .page ol { padding-left: 22px; margin: 14px 0; display: grid; gap: 8px; }
.page strong { color: var(--fg); font-weight: 600; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}
.callout p { color: var(--fg); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 8px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font: 600 16px/1.4 var(--font-body);
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font: 500 22px/1 var(--font-display);
  color: var(--muted);
  transition: transform 0.15s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; }
.faq details p + p { margin-top: 10px; }

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