/* Remstalist website — tokens mirror the app's DesignSystem.swift 1:1.
   Never hardcode a colour or radius below; use the variables. */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --main: #38442C;
  --accent: #B0573E;
  --brand: #8C3A3A; /* brand ground: icon, banners, avatars; type on it is --surface */
  --cream-on-red: rgba(248, 243, 236, 0.72); /* secondary type on the brand ground (deck: --cream-on-red) */
  --surface: #F8F3EC;
  --card: #FFFFFF;
  --ink: #2A2622;
  --muted: #756F66;
  --soft: #E4E6DC;
  --chip: #ECE8E0;
  --hairline: rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --radius-s: 10px;
  --pill: 999px;
  --pad: 16px;
  /* Cuisine seed colours (mockup rows) */
  --italian: #8C3A3A;
  --japanese: #3E6157;
  --thai: #4F7A4A;
  --mexican: #C99A3C;
  --bars: #6B4A7A;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 300;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

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

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  border-bottom: 0.5px solid var(--hairline);
  background: var(--surface);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-weight: 500; font-size: 22px; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  color: var(--surface);
  background: var(--main);
  padding: 8px 18px;
  border-radius: var(--radius);
}
.site-nav .nav-cta:hover { color: var(--surface); filter: brightness(1.08); }

/* ── Buttons (mirror RemsterListPrimary / Ghost) ────── */

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, filter 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--main); color: var(--surface); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: var(--surface);
  color: var(--main);
  border: 0.5px solid rgba(42, 38, 34, 0.12);
}
.btn-accent { background: var(--accent); color: var(--surface); }
.btn-store {
  background: var(--ink);
  color: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-store small {
  display: block;
  font-size: 11px;
  font-weight: 300;
  opacity: 0.8;
  text-align: left;
  line-height: 1.1;
}
.btn-store .store-name { font-size: 18px; font-weight: 400; line-height: 1.2; }
/* Pre-launch state: the store button is announced but not yet clickable. */
.btn-store.is-soon { opacity: 0.65; cursor: default; pointer-events: none; user-select: none; }

/* ── Hero ───────────────────────────────────────────── */
/* The deck's title slide, as a web section: brand red ground, cream
   type, the caption line in small uppercase tracking. Buttons flip to
   cream-on-red; the only dark element is the phone bezel. */

.hero {
  padding: 64px 0 56px;
  background: var(--brand);
  color: var(--surface);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--surface);
}
.hero h1 em {
  font-style: normal;
  color: var(--surface);
}
.hero .lede {
  margin-top: 18px;
  font-size: 19px;
  color: var(--cream-on-red);
  max-width: 44ch;
}
.hero-ctas {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero .btn-store, .section-red .btn-store { background: var(--surface); color: var(--ink); }
.hero .btn-store.is-soon, .section-red .btn-store.is-soon { opacity: 0.8; }
.hero .btn-ghost, .section-red .btn-ghost {
  background: transparent;
  color: var(--surface);
  border: 1px solid rgba(248, 243, 236, 0.45);
}
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface);
  opacity: 0.8;
}

/* ── Hero screenshots ───────────────────────────────── */
/* Two real screens, the list in front and the map tucked behind it —
   the product is the picture (brand guideline). Both share one frame
   style: ink bezel, big radius, the same soft shadow the mockup had. */

.hero-shots {
  position: relative;
  height: 600px;
  margin: 0 auto;
  max-width: 420px;
}
.shot {
  position: absolute;
  margin: 0;
  width: 250px;
  background: var(--ink);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(42, 38, 34, 0.35);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}
.shot-list { left: 50%; bottom: 0; transform: translateX(-14%); z-index: 2; }
.shot-map  { left: 50%; top: 0;    transform: translateX(-92%) rotate(-4deg); z-index: 1; opacity: 0.96; }

/* ── Sections ───────────────────────────────────────── */

.section { padding: 56px 0; }
/* Cream sections follow each other with a soft hairline between them. */
.section-alt { background: var(--surface); }
.section + .section:not(.section-red) { border-top: 1px solid var(--soft); }
/* The deck's closing slide: brand red, cream type, centred. */
.section-red {
  background: var(--brand);
  color: var(--surface);
  text-align: center;
}
.section-red h2 { color: var(--surface); }
.section.section-red .section-sub { color: var(--cream-on-red); margin-left: auto; margin-right: auto; }
.section-red .hero-ctas { justify-content: center; margin-top: 0; }
.section-red .hero-note { margin-top: 20px; }
.section h2 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}
.section .section-sub { color: var(--muted); margin-bottom: 32px; max-width: 60ch; }

/* ── Scenes (the deck's slides, stacked) ─────────────── */
/* One idea per scene: kicker, big Oswald headline, one picture. Red and
   cream alternate exactly like the deck; on red the secondary type is the
   deck's 72% cream. */

.scene { padding: 96px 0; background: var(--surface); color: var(--ink); }
.scene + .scene:not(.scene-red) { border-top: 1px solid var(--soft); }
.scene-red { background: var(--brand); color: var(--surface); }
.scene h2 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0 0 18px;
}
.kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.scene-red .kicker { color: var(--cream-on-red); }
.scene-sub { font-size: 19px; color: var(--muted); max-width: 42ch; text-wrap: pretty; margin: 0 0 12px; }
.scene-sub strong { font-weight: 400; color: var(--ink); }
.scene-red .scene-sub { color: var(--cream-on-red); }
.scene-red .scene-sub strong { color: var(--surface); }
.scene-red a, .scene-red a:hover { color: var(--surface); }
/* The deck's single terracotta highlight, on cream only. */
.scene-emph { font-size: 21px; font-weight: 400; color: var(--accent); margin-top: 20px; }

.scene-grid {
  display: grid;
  grid-template-columns: 46fr 54fr;
  gap: 56px;
  align-items: center;
}
.scene-grid.flip .scene-copy { order: 2; }
.scene-grid.flip .scene-stage { order: 1; }
.scene-stage { display: flex; justify-content: center; align-items: center; min-height: 380px; }
.scene-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
.scene-head .scene-sub { text-align: right; max-width: 34ch; margin: 0 0 6px; }
.scene-head h2 { margin-bottom: 0; }

/* Real screenshots in an ink bezel, tilted a touch so they feel placed,
   not pasted. */
.device {
  margin: 0;
  width: 280px;
  background: var(--ink);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 30px 70px rgba(42, 38, 34, 0.28);
}
.device img { display: block; width: 100%; height: auto; border-radius: 32px; }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(3deg); }

/* A typographic statement scene: the headline is the picture. */
.scene-statement { text-align: center; padding: 120px 0; }
.scene-statement h2 { font-size: clamp(40px, 6.2vw, 76px); margin: 0 auto 22px; max-width: 14ch; }
.scene-statement .scene-sub { margin: 0 auto 28px; max-width: 46ch; font-size: 20px; }
.scene-statement .cap { color: var(--cream-on-red); }
.cap { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

/* FAQ: an editorial list, not a stack of boxes */
.faq-grid { display: grid; grid-template-columns: 40fr 60fr; gap: 56px; align-items: start; }
.faq-intro { position: sticky; top: 96px; }
.faq-intro h2 { font-size: clamp(28px, 3.4vw, 40px); }
.faq-list details { border-top: 1px solid var(--soft); }
.faq-list details:last-child { border-bottom: 1px solid var(--soft); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-size: 21px;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; color: var(--accent); font-size: 26px; font-weight: 300; flex: none;
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 22px 0; color: var(--muted); font-size: 17px; max-width: 60ch; }

/* Scroll reveal: a quiet rise, once. Off under reduced motion (JS adds
   .in immediately) and for browsers without IntersectionObserver. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: rgba(248, 243, 236, 0.85);
  padding: 40px 0 32px;
  margin-top: 24px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--surface); text-decoration: none; margin-right: 20px; font-size: 15px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copyright { font-size: 14px; opacity: 0.7; }

/* ── Sticky mobile CTA ──────────────────────────────── */

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(248, 243, 236, 0.94);
  backdrop-filter: blur(8px);
  border-top: 0.5px solid var(--hairline);
  z-index: 50;
}
.mobile-cta .btn { width: 100%; }

/* ── Subpages (legal, support, list, 404) ───────────── */

.page { padding: 48px 0 64px; }
.page-narrow { max-width: 720px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a { color: var(--muted); }
.page h1 { font-size: 36px; font-weight: 400; margin-bottom: 24px; }
.page h2 { font-size: 22px; font-weight: 400; margin: 32px 0 10px; }
.page h3 { font-size: 18px; font-weight: 400; margin: 24px 0 8px; }
.page p, .page li { color: var(--ink); margin-bottom: 10px; }
.page ul { padding-left: 22px; margin-bottom: 12px; }
.page .lead { color: var(--muted); font-size: 18px; }
.legal-block {
  background: var(--card);
  border: 0.5px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.placeholder {
  background: #FBEAE3;
  color: var(--accent);
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 400;
}
.note {
  background: var(--chip);
  border-radius: var(--radius-s);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
}

.center-card {
  background: var(--card);
  border: 0.5px solid var(--hairline);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.center-card img.icon { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 20px; }
.center-card h1 { font-size: 30px; margin-bottom: 10px; }
.center-card p { color: var(--muted); margin-bottom: 20px; }

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-shots { height: 520px; max-width: 360px; }
  .shot { width: 210px; }
  .scene { padding: 64px 0; }
  .scene-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .scene-grid.flip .scene-copy { order: 1; }
  .scene-grid.flip .scene-stage { order: 2; }
  .scene-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 40px; }
  .scene-head .scene-sub { text-align: left; }
  .faq-intro { position: static; }
  .scene-statement { padding: 80px 0; }
}
@media (max-width: 719px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
  .site-nav .nav-cta { display: none; }
}
