/*
 * The same design system as the app, in CSS.
 *
 * The values are `mobile/src/theme/tokens.ts` — not approximations of it. Somebody who reads
 * the site and then opens the app has to arrive at the same product, and the fastest way for
 * that to stop being true is two sets of hexadecimals maintained apart.
 */

:root {
  --bg: #F5F0E8;
  --sand: #E8E1D6;
  --surface: #FFFDF9;
  --ink: #14120F;
  --muted: #6E675C;
  --line: rgba(20, 18, 15, 0.10);
  --accent: #0F766E;
  --on-accent: #FFFDF9;
  --panel: #14120F;
  --panel-ink: #FFFDF9;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Serif for proper nouns and headings — the rule the whole design rests on. */
h1, h2, h3, .serif { font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif; font-weight: 400; }
h1, h2, h3 { letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 6.5vw, 68px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); font-size: 15px; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.hero p.lead { font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 34em; }

/* ── Email capture ──────────────────────────────────────────────────── */
.signup { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input {
  flex: 1 1 240px; height: 52px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit;
}
.signup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.signup-note { font-size: 14px; color: var(--muted); }
.signup-status { font-size: 15px; min-height: 1.5em; }
.signup-status[data-state='error'] { color: #A6403A; }
.signup-status[data-state='ok'] { color: var(--accent); }

/* ── Phone frames ───────────────────────────────────────────────────── */
.phone {
  width: 100%; max-width: 300px; aspect-ratio: 390 / 844;
  border-radius: 42px; border: 1px solid var(--line);
  background: var(--bg); overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 18, 15, 0.12);
}
.phones { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 44ch; }

.steps { display: grid; gap: 32px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px;
}

/* The dark block. One per page: it is the emphasis, and two would be none. */
.panel { background: var(--panel); color: var(--panel-ink); }
.panel h2, .panel h3 { color: var(--panel-ink); }
.panel .muted { color: rgba(255, 253, 249, 0.66); }
.panel-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .panel-grid { grid-template-columns: 1fr 1fr; } }
.ticks { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: '·'; color: var(--accent); font-weight: 700; }

.cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px; display: grid; gap: 8px; align-content: start;
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 0; max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 18px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 12px; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); font-size: 15px; }
.copyright { margin-top: 40px; font-size: 14px; color: var(--muted); }

/* ── Legal pages ────────────────────────────────────────────────────── */
.legal { padding: clamp(40px, 6vw, 72px) 0 96px; }
.legal .wrap { max-width: 760px; }
.legal-summary {
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 20px; padding: 24px; margin: 28px 0 40px;
}
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 48px; }
.legal h3 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { color: var(--muted); margin-top: 12px; }
.legal strong { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 600; }
.legal td { color: var(--muted); }
.legal-updated { font-size: 14px; color: var(--muted); }

/* Respect a reduced-motion preference: nothing here needs to move. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   El teléfono
   
   Un marco de iPhone dibujado en CSS, no una imagen: pesa nada, es nítido en
   cualquier pantalla y las capturas de dentro son HTML real — así que el texto
   se puede leer, buscar y traducir, y no hay seis PNG que rehacer cada vez que
   cambia una pantalla de la app.
   ═══════════════════════════════════════════════════════════════════════ */

.iphone {
  position: relative;
  width: 300px;
  aspect-ratio: 393 / 852;
  border-radius: 58px;
  padding: 11px;
  /* El bisel de titanio: un degradado, no un gris plano. */
  background: linear-gradient(150deg, #6f6f73 0%, #b9b8bd 18%, #86868b 42%, #d6d5da 68%, #77777c 100%);
  box-shadow: 0 30px 70px rgba(20, 18, 15, 0.24), 0 2px 6px rgba(20, 18, 15, 0.18);
  flex: none;
}
.iphone__screen {
  position: relative;
  height: 100%;
  border-radius: 48px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
/* La isla. Va sobre la pantalla, no dentro del contenido. */
.iphone__island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 94px; height: 27px; border-radius: 999px; background: #000; z-index: 5;
}
/* Los cuatro botones laterales. */
.iphone::before, .iphone::after {
  content: ''; position: absolute; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #8d8d92, #cfced3, #83838a);
}
.iphone::before { left: -3px; top: 118px; height: 34px; }   /* silencio */
.iphone::after  { left: -3px; top: 168px; height: 62px; }   /* volumen  */

.iphone__status {
  flex: none; height: 56px; display: flex; align-items: flex-end;
  justify-content: space-between; padding: 0 22px 6px;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.iphone__body { flex: 1; overflow: hidden; padding: 0 16px 16px; }

/* Un segundo teléfono detrás, ligeramente girado, para dar profundidad. El
   principal va recto: una pantalla inclinada no se lee. */
.phone-pair { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone-pair .iphone--back {
  position: absolute; right: 4%; top: 42px; transform: rotate(7deg) scale(0.9);
  opacity: 0.96; z-index: 0;
}
.phone-pair .iphone--front { position: relative; z-index: 1; }
@media (max-width: 899px) { .phone-pair .iphone--back { display: none; } }

/* ── Las pantallas de dentro ───────────────────────────────────────── */
.scr { font-size: 12px; line-height: 1.4; }
.scr h4 { margin: 0; font-size: 19px; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
.scr .row { display: flex; align-items: center; gap: 8px; }
.scr .card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; display: grid; gap: 4px;
}
.scr .label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.scr .muted { color: var(--muted); font-size: 11px; }
.scr .strong { font-weight: 600; font-size: 13px; }

.daystrip { display: flex; gap: 5px; overflow: hidden; }
.daystrip div {
  flex: none; width: 34px; padding: 5px 0; border-radius: 10px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
}
.daystrip div.on { background: #A65B3F; border-color: #A65B3F; color: #FFFDF9; }
.daystrip span { display: block; font-size: 8px; text-transform: uppercase; opacity: 0.75; }
.daystrip b { display: block; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 15px; }

.plan { display: grid; grid-template-columns: 38px 1fr; gap: 6px 10px; }
.plan .t { font-family: 'Instrument Serif', Georgia, serif; font-size: 13px; color: var(--muted); }

.bubble { border-radius: 14px; padding: 10px 12px; font-size: 11.5px; line-height: 1.45; }
.bubble--me { background: var(--accent); color: var(--on-accent); margin-left: 32px; }
.bubble--ai { background: var(--surface); border: 1px solid var(--line); margin-right: 20px; }

.tourmap {
  position: relative; height: 108px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(140deg, #dfe7e2, #cdd8d1 55%, #e3e8e2);
}
.tourmap .pin {
  position: absolute; width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--surface);
}
.tourmap .attr { position: absolute; right: 6px; bottom: 5px; font-size: 7px; color: var(--muted); background: rgba(255,253,249,.8); padding: 2px 5px; border-radius: 5px; }

.askbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 11px; color: var(--muted);
}

/* ── La sección de tours ───────────────────────────────────────────── */
.tour-split { display: grid; gap: clamp(28px, 4vw, 44px); }
@media (min-width: 980px) { .tour-split { grid-template-columns: 1fr 1fr; align-items: center; } }
.tour-points { display: grid; gap: 22px; }
.tour-point { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--accent); }
