/* Remimo landing — "Tactile Playground" tokens, mirrored from frontend/app/globals.css */
:root {
  --surface: #fff5e7;
  --surface-lowest: #ffffff;
  --surface-low: #ffefd1;
  --surface-container: #ffe6ae;
  --surface-high: #ffdf95;
  --primary: #7b5400;
  --primary-container: #feb300;
  --on-primary: #fff1df;
  --on-surface: #3c2c00;
  --on-surface-variant: #6e5922;
  --secondary: #9720ab;
  --secondary-container: #fcbcff;
  --on-secondary-container: #7c0091;
  --tertiary: #a83206;
  --tertiary-container: #ff9473;
  --shadow: 0 12px 40px rgba(60, 44, 0, 0.06);
  --font-headline: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1a0a2e;
    --surface-lowest: #120720;
    --surface-low: #221340;
    --surface-container: #2d1a50;
    --surface-high: #3a2260;
    --primary: #feb300;
    --primary-container: #7b5400;
    --on-primary: #382400;
    --on-surface: #f0e0ff;
    --on-surface-variant: #c9b0e0;
    --secondary: #f9a7ff;
    --secondary-container: #5d006d;
    --on-secondary-container: #fcbcff;
    --tertiary: #ff9473;
    --tertiary-container: #6e1c00;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--secondary); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Background orbs */
.orbs { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.orbs::before, .orbs::after { content: ""; position: absolute; border-radius: 50%; }
.orbs::before { top: 15%; left: -80px; width: 320px; height: 320px; background: var(--secondary-container); opacity: .4; filter: blur(100px); }
.orbs::after { bottom: 10%; right: -80px; width: 380px; height: 380px; background: var(--primary-container); opacity: .3; filter: blur(120px); }

main, header, footer { position: relative; z-index: 1; }

/* Header */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.logo {
  font-family: var(--font-headline); font-weight: 800; font-size: 1.6rem;
  color: var(--primary); text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--on-surface-variant); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 9999px;
  font-family: var(--font-headline); font-weight: 700; text-decoration: none;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.btn:hover { transform: scale(1.05) rotate(1deg); }
.btn-primary {
  background: linear-gradient(135deg, #7b5400, #feb300);
  color: #fff1df; box-shadow: var(--shadow);
}
.btn-secondary { background: var(--secondary-container); color: var(--on-secondary-container); }

/* Hero */
.hero { padding: 56px 0 72px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 9999px;
  background: var(--surface-container); color: var(--primary);
  font-weight: 600; font-size: .85rem; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-headline); font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 auto 24px; max-width: 14ch; color: var(--on-surface);
}
.hero h1 span { color: var(--primary); }
.hero p.lead { font-size: 1.15rem; color: var(--on-surface-variant); max-width: 36rem; margin: 0 auto 36px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Card mock */
.card-mock {
  margin: 56px auto 0; max-width: 420px; aspect-ratio: 1.586;
  border-radius: 32px; padding: 28px; text-align: left;
  background: linear-gradient(135deg, #feb300, #ff9473);
  color: #3c2c00; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(-3deg);
}
.card-mock .brand { font-family: var(--font-headline); font-weight: 800; font-size: 1.4rem; }
.card-mock .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.5rem;
  letter-spacing: .25em; background: rgba(255, 255, 255, .55); border-radius: 9999px;
  padding: 8px 18px; align-self: flex-start;
}
.card-mock .hint { font-size: .85rem; opacity: .8; }

/* Sections */
section { padding: 64px 0; }
.section-title {
  font-family: var(--font-headline); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em;
  text-align: center; margin: 0 0 12px;
}
.section-sub { text-align: center; color: var(--on-surface-variant); max-width: 34rem; margin: 0 auto 40px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile {
  background: var(--surface-low); border-radius: 32px; padding: 32px;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.tile:hover { transform: scale(1.03); }
.tile .num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-headline); font-weight: 800; margin-bottom: 16px;
  background: #feb300; color: #3c2c00;
}
.tile h3 { font-family: var(--font-headline); font-weight: 700; font-size: 1.2rem; margin: 0 0 8px; color: var(--primary); }
.tile p { margin: 0; color: var(--on-surface-variant); font-size: .95rem; }
.tile.purple .num { background: #fcbcff; color: #7c0091; }
.tile.purple h3 { color: var(--secondary); }
.tile.orange .num { background: #ff9473; color: #5f1600; }
.tile.orange h3 { color: var(--tertiary); }

.band {
  background: var(--surface-container); border-radius: 48px; padding: 48px 32px;
}
.band .grid { margin-top: 8px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.band .tile { background: var(--surface-lowest); }

.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--surface-low); border-radius: 24px; padding: 18px 24px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-family: var(--font-headline); font-weight: 700; }
.faq details p { color: var(--on-surface-variant); margin: 12px 0 0; }

/* Footer */
footer.site {
  margin-top: 48px; background: var(--surface-container);
  border-radius: 48px 48px 0 0; padding: 40px 16px;
  text-align: center;
}
footer.site .logo { font-size: 1.3rem; }
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 16px 0; }
footer.site nav a { color: var(--primary); text-decoration: none; font-size: .95rem; }
footer.site nav a:hover { text-decoration: underline; }
footer.site small { color: var(--on-surface-variant); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 0 48px; }
.legal h1 {
  font-family: var(--font-headline); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 2.8rem); margin: 16px 0 4px;
}
.legal .updated { color: var(--on-surface-variant); margin: 0 0 32px; }
.legal h2 { font-family: var(--font-headline); font-weight: 700; font-size: 1.3rem; margin: 40px 0 8px; color: var(--primary); }
.legal h3 { font-family: var(--font-headline); font-weight: 700; font-size: 1.05rem; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--on-surface); }
.legal ul { padding-left: 1.25rem; }
.legal .callout { background: var(--surface-low); border-radius: 24px; padding: 20px 24px; margin: 24px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; vertical-align: top; }
.legal tr:nth-child(odd) td { background: var(--surface-low); }
.legal th { background: var(--surface-container); font-family: var(--font-headline); }
.table-scroll { overflow-x: auto; }

@media (max-width: 600px) {
  .nav-links a.hide-sm { display: none; }
  .band { padding: 32px 16px; border-radius: 32px; }
  .card-mock { padding: 20px; }
  .card-mock .code { font-size: 1.15rem; }
}

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