/* =========================================================
   The Rio de Janeiro Field Guide — sales page
   ========================================================= */

:root {
  --ink: #1c1622;
  --ink-soft: #4a4353;
  --paper: #fbf6ef;
  --paper-2: #f3ebdf;
  --line: #e4d9c8;
  --green: #14663f;
  --green-deep: #0f4d2f;
  --coral: #e0563a;
  --coral-deep: #c4472e;
  --plum: #241830;
  --gold: #e6a95c;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(28, 22, 34, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 500; }
h1 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1rem; }
s, .price-was { text-decoration: line-through; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.4rem); }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--coral);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; letter-spacing: 0.005em;
  padding: 0.95rem 1.6rem; border-radius: 999px; border: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(224, 86, 58, 0.65);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(224, 86, 58, 0.7); background: var(--coral-deep); }
.btn:active { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.075rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 0.55rem 0;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(251, 246, 239, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0,0,0,0.3);
}
.header-inner { display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; transition: color 0.4s; white-space: nowrap; }
.scrolled .brand { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; color: var(--gold); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.header-nav { margin-left: auto; display: flex; gap: 1.6rem; font-size: 0.92rem; font-weight: 500; }
.header-nav a { color: rgba(255,255,255,0.82); text-decoration: none; transition: color 0.2s; }
.header-nav a:hover { color: #fff; }
.scrolled .header-nav a { color: var(--ink-soft); }
.scrolled .header-nav a:hover { color: var(--ink); }
.header-nav + .btn { flex: none; margin-left: auto; }

@media (max-width: 860px) {
  .header-nav { display: none; }
}
@media (max-width: 520px) {
  .brand-text { display: none; }
  .site-header .btn-sm { padding: 0.55rem 0.95rem; font-size: 0.85rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 8rem 0 4.5rem;
  overflow: hidden;
  color: #fff;
}
.hero-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 58%;
  transform-origin: center;
  transform: scale(1.14);
  will-change: transform;
  animation: heroIn 1.2s var(--ease) both;
}
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,12,20,0.56) 0%, rgba(17,12,20,0.30) 40%, rgba(17,12,20,0.74) 100%),
    linear-gradient(90deg, rgba(17,12,20,0.60) 0%, rgba(17,12,20,0.15) 55%, rgba(17,12,20,0) 82%);
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to bottom, rgba(251,246,239,0) 0%, rgba(251,246,239,0.12) 60%, var(--paper) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,0.85); margin-bottom: 1.3rem;
}
.hero h1 { text-shadow: 0 2px 30px rgba(20,10,25,0.35); }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.6;
  max-width: 34em; margin: 1.5rem 0 2rem; color: rgba(255,255,255,0.92);
}
.hero-cta { display: flex; align-items: center; gap: 1.1rem 1.4rem; flex-wrap: wrap; }
.cta-note { font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.cta-note s { opacity: 0.7; }
.hero-trust {
  list-style: none; margin: 2.4rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem;
  font-size: 0.9rem; color: rgba(255,255,255,0.85);
}
.hero-trust li { position: relative; padding-left: 1.35rem; }
.hero-trust li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 2;
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.5); border-radius: 14px;
  transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; border-radius: 2px;
  background: #fff; transform: translateX(-50%);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 600px) {
  .hero { min-height: auto; padding: 6.5rem 0 3.5rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; }
  .scroll-cue { display: none; }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--plum); color: var(--paper-2);
  padding: 0.85rem 0; overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(255,255,255,0.08);
}
.ticker-track {
  display: inline-flex; gap: 2.6rem; align-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  animation: ticker 34s linear infinite;
}
.ticker-track span { position: relative; }
.ticker-track span::after {
  content: "◦"; position: absolute; right: -1.55rem; top: 0; color: var(--gold); font-style: normal;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.kicker, .card-tag, .price-flag {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 600;
  color: var(--coral); margin-bottom: 0.9rem;
}
.intro { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.lead {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem); line-height: 1.5; letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- Stats ---------- */
.stats-section { padding: 0 0 clamp(3rem, 7vw, 5rem); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--paper); padding: 2rem 1.4rem; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; color: var(--green); line-height: 1; }
.stat-label { display: block; margin-top: 0.55rem; font-size: 0.86rem; color: var(--ink-soft); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Chapters ---------- */
.chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.chapter {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.chapter:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8c9b1; }
.ch-no {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.05em;
}
.chapter h3 { margin: 0.5rem 0 0.6rem; }
.chapter p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
@media (max-width: 720px) { .chapters { grid-template-columns: 1fr; } }

/* ---------- Preview ---------- */
.preview { background: var(--paper-2); }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
}
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--green-deep); }
.card-phrases ul { list-style: none; margin: 0; padding: 0; }
.card-phrases li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; color: var(--ink-soft);
}
.card-phrases li:last-child { border-bottom: 0; }
.card-phrases li span { font-family: var(--font-display); font-style: italic; color: var(--ink); }
@media (max-width: 720px) { .preview-grid { grid-template-columns: 1fr; } }

/* ---------- Split / who-why ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.two-col h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.9rem; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--green);
  -webkit-mask: no-repeat center / 0.7rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  mask: no-repeat center / 0.7rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing { background: var(--plum); color: var(--paper); }
.pricing .kicker { color: var(--gold); }
.pricing .section-head h2 { color: #fff; }
.price-card {
  background: var(--paper); color: var(--ink);
  border-radius: 20px; padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}
.price-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.price-top h3 { font-size: 1.4rem; }
.price-sub { font-size: 0.9rem; color: var(--ink-soft); margin: 0.3rem 0 0; }
.price-tag { text-align: right; line-height: 1.1; }
.price-now { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--green); }
.price-was { display: inline-block; margin-left: 0.5rem; color: var(--ink-soft); font-size: 1.1rem; }
.price-flag { display: block; margin-top: 0.4rem; color: var(--coral); }
.price-list { list-style: none; margin: 1.8rem 0; padding: 1.6rem 0; border-block: 1px solid var(--line); }
.price-list li { position: relative; padding-left: 1.7rem; margin-bottom: 0.8rem; font-size: 0.98rem; }
.price-list li:last-child { margin-bottom: 0; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 0.4em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--green);
  -webkit-mask: no-repeat center / 0.65rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  mask: no-repeat center / 0.65rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}
.price-fine { font-size: 0.82rem; color: var(--ink-soft); text-align: center; margin: 1rem 0 0; }

/* ---------- FAQ ---------- */
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 1.5rem; line-height: 1;
  color: var(--coral); transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0.9rem 0 0; color: var(--ink-soft); max-width: 60ch; }
.faq-list details[open] p { animation: fadeUp 0.4s var(--ease) both; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; background: var(--paper-2); }
.final-cta h2 { margin-bottom: 0.8rem; }
.final-cta p { color: var(--ink-soft); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: rgba(255,255,255,0.7); padding: 3.5rem 0; font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-display); color: #fff; font-size: 1.05rem; margin-bottom: 0.3rem; }
.footer-meta { max-width: 34rem; text-align: right; }
.footer-meta p { margin: 0 0 0.4rem; }
.footer-credit { font-size: 0.78rem; color: rgba(255,255,255,0.42); }
@media (max-width: 640px) { .footer-meta { text-align: left; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.chapters .chapter { transition-delay: calc(var(--i, 0) * 60ms); }
.preview-grid .card { transition-delay: calc(var(--i, 0) * 60ms); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-photo { transform: scale(1.05) !important; animation: none !important; }
}
