/* =========================================================
   Marrakech Compass — landing site
   Aesthetic: matches the app — clean off-white, photo-forward,
   serif headlines, terracotta pill badges, rounded cards.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,600;1,700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  /* Match AppColors from lib/core/theme/app_colors.dart */
  --terracotta: #C4754B;
  --terracotta-light: #D4956B;
  --terracotta-dark: #B85A2F;
  --saffron: #E8A838;
  --jade: #2D7D6F;
  --indigo: #3D4F7C;
  --rose: #D4728C;

  --sand: #FAF9F7;
  --sand-dark: #F0EDE8;
  --cream: #FFFDF9;
  --white: #FFFFFF;
  --charcoal: #1A1A1A;

  --text-dark: #1A1A1A;
  --text-medium: #5A5A5A;
  --text-light: #8A8A8A;
  --border: #E8E2D6;
  --border-soft: #EFEAE0;

  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(26, 26, 26, 0.04), 0 12px 28px -10px rgba(26, 26, 26, 0.12);
  --shadow-card-hover: 0 1px 2px rgba(26, 26, 26, 0.04), 0 24px 48px -14px rgba(26, 26, 26, 0.18);

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-medium);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* =========================================================
   Layout primitives
   ========================================================= */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

section { position: relative; }

/* =========================================================
   Typography
   ========================================================= */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-dark);
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-medium);
  font-weight: 400;
  max-width: 56ch;
}

/* Pill badges — match app's tagline pill exactly */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--soft {
  background: rgba(196, 117, 75, 0.1);
  color: var(--terracotta-dark);
}

.pill--saffron {
  background: var(--saffron);
  color: var(--charcoal);
}

/* Section heading pattern */
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 16px;
  max-width: 18ch;
}

.section-title em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}

.section-sub {
  font-size: 17px;
  color: var(--text-medium);
  max-width: 56ch;
  line-height: 1.6;
}

/* =========================================================
   Header / nav
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.08), 0 4px 12px -4px rgba(196, 117, 75, 0.18);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  line-height: 1.05;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-medium);
  transition: color 180ms ease;
}

.nav-links a:hover { color: var(--terracotta); }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius-pill);
  transition: all 220ms ease;
  box-shadow: 0 1px 2px rgba(184, 90, 47, 0.2), 0 6px 14px -4px rgba(196, 117, 75, 0.3);
}

.nav-cta:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(184, 90, 47, 0.2), 0 10px 22px -4px rgba(196, 117, 75, 0.4);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: clamp(56px, 9vw, 100px) 0 clamp(64px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.16), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(196, 117, 75, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero-text { max-width: 620px; }

.hero h1.display {
  font-size: clamp(50px, 7.6vw, 110px);
  line-height: 0.98;
  font-weight: 800;
  margin: 18px 0 24px;
  letter-spacing: -0.035em;
}

.hero-lede {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--text-medium);
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: 36px;
}

/* Hero card stack — mimics the app's "Our Picks" layout */
.hero-cards {
  position: relative;
  width: 100%;
  height: 580px;
}

@media (max-width: 920px) {
  .hero-cards { height: 520px; max-width: 460px; margin: 0 auto; }
}

.hero-card {
  position: absolute;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: var(--white);
}

.hero-card .pill { align-self: flex-start; margin-bottom: 12px; }

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 253, 246, 0.85);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card.card-front {
  inset: 80px 30px 60px 60px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.hero-card.card-back {
  inset: 0 0 250px 0;
  z-index: 2;
  transform: rotate(-3deg);
  opacity: 0.95;
  animation: floatBack 7s ease-in-out infinite;
}

.hero-card.card-back h3 { font-size: 22px; }
.hero-card.card-back p { display: none; }
.hero-card.card-back .card-overlay { padding: 18px; }

.hero-card.card-deep {
  inset: 30px 60px 110px 0;
  z-index: 1;
  transform: rotate(4deg);
  opacity: 0.7;
}

.hero-card.card-deep .card-overlay { padding: 14px; }
.hero-card.card-deep h3 { font-size: 18px; }
.hero-card.card-deep p { display: none; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatBack {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(6px); }
}

/* Decorative compass star above hero cards */
.hero-star {
  position: absolute;
  top: -40px;
  right: -10px;
  width: 90px;
  height: 90px;
  z-index: 4;
  color: var(--saffron);
  opacity: 0.7;
  animation: spin 80s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .hero-star { top: -20px; right: 10px; width: 70px; height: 70px; }
}

/* =========================================================
   Download buttons
   ========================================================= */

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 18px;
  border-radius: 14px;
  background: var(--charcoal);
  color: var(--cream);
  transition: all 220ms ease;
  border: 1px solid var(--charcoal);
  cursor: pointer;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(26, 26, 26, 0.4);
}

.store-btn .glyph {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-btn .label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-btn .label small {
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.78;
  margin-bottom: 2px;
  font-weight: 400;
}

.store-btn .label strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-family: var(--font-body);
}

.store-note {
  font-size: 13px;
  color: var(--text-light);
  margin-left: 8px;
  font-weight: 500;
}

.hero-meta {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

.hero-meta-item { display: flex; align-items: center; gap: 8px; }

.hero-meta-item svg { width: 16px; height: 16px; color: var(--terracotta); }

@media (max-width: 480px) {
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* =========================================================
   Picks grid — matches the in-app "Our Picks" cards
   ========================================================= */

.picks {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.picks-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.picks-head .section-eyebrow { display: block; }

.picks-head .section-title {
  margin-left: auto;
  margin-right: auto;
}

.picks-head .section-sub { margin: 0 auto; }

.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .picks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .picks-grid { grid-template-columns: 1fr; }
}

.pick-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card);
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 380ms ease;
  background: var(--charcoal);
}

.pick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.pick-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pick-card:hover img { transform: scale(1.04); }

.pick-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.72) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: var(--white);
}

.pick-card .pill { align-self: flex-start; margin-bottom: 14px; }

.pick-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--white);
}

.pick-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 253, 246, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured first card spans full width */
.pick-card.featured {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

@media (max-width: 600px) {
  .pick-card.featured { aspect-ratio: 4 / 5; }
}

.pick-card.featured h3 { font-size: clamp(28px, 3.5vw, 44px); }

.pick-card.featured p {
  font-size: 15px;
  -webkit-line-clamp: 3;
  max-width: 60ch;
}

/* =========================================================
   Why / Features — clean white cards on cream
   ========================================================= */

.why {
  padding: clamp(80px, 10vw, 120px) 0;
}

.why-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
}

@media (max-width: 800px) {
  .why-head { grid-template-columns: 1fr; }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px;
  border: 1px solid var(--border-soft);
  transition: all 240ms ease;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.why-card:hover {
  border-color: var(--terracotta-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(196, 117, 75, 0.1);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.why-icon svg { width: 26px; height: 26px; }

.why-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.55;
  flex: 1;
}

/* =========================================================
   App preview — phone showing actual "Our Picks" screen
   ========================================================= */

.preview {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--cream);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.preview::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.10), transparent 65%);
  pointer-events: none;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  position: relative;
}

@media (max-width: 880px) { .preview-grid { grid-template-columns: 1fr; } }

.preview-text { max-width: 540px; }

.preview-text .section-title { max-width: 14ch; }

.spec-list {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 16px;
}

.spec-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-medium);
  align-items: start;
}

.spec-list li svg {
  width: 18px;
  height: 18px;
  color: var(--terracotta);
  margin-top: 4px;
}

.spec-list li strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Phone frame */
.phone-frame {
  position: relative;
  width: min(330px, 100%);
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(135deg, #1A1A1A, #2A2A2A);
  border-radius: 44px;
  padding: 11px;
  box-shadow:
    0 50px 80px -25px rgba(26, 26, 26, 0.45),
    0 18px 36px -12px rgba(196, 117, 75, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--sand);
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 5;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.phone-status .status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.phone-content {
  flex: 1;
  padding: 18px 18px 86px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.phone-sub {
  font-size: 13px;
  color: var(--text-medium);
  margin-bottom: 16px;
}

.phone-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: 0 4px 12px -4px rgba(26, 26, 26, 0.18);
  margin-bottom: 12px;
}

.phone-card.large { aspect-ratio: 4 / 3; }
.phone-card.small { aspect-ratio: 4 / 3; }

.phone-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-card .pc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.7));
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}

.phone-card .pc-pill {
  align-self: flex-start;
  background: var(--terracotta);
  color: white;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.phone-card .pc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.phone-tabbar {
  position: absolute;
  inset: auto 0 0 0;
  height: 76px;
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 14px;
}

.phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-light);
  flex: 1;
}

.phone-tab svg { width: 22px; height: 22px; }

.phone-tab.active { color: var(--terracotta); font-weight: 600; }

/* =========================================================
   Final CTA — warm cream, NOT dark
   ========================================================= */

.cta {
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(232, 168, 56, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(196, 117, 75, 0.18), transparent 50%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin: 18px 0 22px;
}

.cta h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}

.cta p {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--text-medium);
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.cta .download-row {
  justify-content: center;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--sand);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand p {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-medium);
  max-width: 38ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: grid; gap: 10px; }

.footer-col a {
  font-size: 14.5px;
  color: var(--text-medium);
  transition: color 180ms ease;
}

.footer-col a:hover { color: var(--terracotta); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* =========================================================
   Document pages (privacy & support)
   ========================================================= */

.doc-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--border-soft);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.doc-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.14), transparent 60%);
  pointer-events: none;
}

.doc-hero .section-eyebrow { font-size: 12px; }

.doc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.4vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin: 14px 0 22px;
  max-width: 16ch;
}

.doc-hero h1 em { font-style: italic; color: var(--terracotta); font-weight: 400; }

.doc-hero .lede { max-width: 60ch; font-size: clamp(17px, 1.6vw, 19px); }

.doc-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
  position: relative;
}

.doc-meta strong {
  display: block;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 6px;
  font-size: 11px;
}

.doc-meta span {
  color: var(--text-dark);
  font-size: 14px;
}

.doc-body {
  padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 120px);
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } }

.doc-toc {
  position: sticky;
  top: 86px;
  font-size: 13px;
}

.doc-toc h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.doc-toc ol {
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: toc;
}

.doc-toc li { counter-increment: toc; }

.doc-toc a {
  display: flex;
  gap: 12px;
  color: var(--text-medium);
  transition: color 180ms ease;
  line-height: 1.4;
  font-weight: 500;
}

.doc-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--terracotta);
  font-weight: 700;
  flex-shrink: 0;
}

.doc-toc a:hover { color: var(--text-dark); }

@media (max-width: 900px) {
  .doc-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
}

.doc-content {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-medium);
}

.doc-content section { margin-bottom: 56px; counter-increment: docsec; scroll-margin-top: 100px; }

.doc-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.doc-content h2::before {
  content: counter(docsec, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  font-family: var(--font-body);
}

.doc-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.doc-content p { margin-bottom: 18px; }

.doc-content ul,
.doc-content ol {
  margin: 0 0 22px 22px;
  display: grid;
  gap: 8px;
}

.doc-content li::marker { color: var(--terracotta); }

.doc-content a {
  color: var(--terracotta-dark);
  border-bottom: 1px solid rgba(196, 117, 75, 0.4);
  padding-bottom: 1px;
  transition: all 180ms ease;
}

.doc-content a:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.doc-content strong { color: var(--text-dark); font-weight: 600; }

.doc-callout {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 22px 24px;
  background: rgba(196, 117, 75, 0.08);
  border-radius: 14px;
  border-left: 3px solid var(--terracotta);
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

.doc-callout svg {
  width: 22px;
  height: 22px;
  color: var(--terracotta);
  margin-top: 2px;
}

/* Support contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 36px;
}

@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: all 240ms ease;
  display: block;
}

.contact-card:hover {
  border-color: var(--terracotta-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.contact-card .cc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(196, 117, 75, 0.1);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.contact-card .cc-icon svg { width: 22px; height: 22px; }

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.5;
  margin-bottom: 16px;
}

.contact-card .cc-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: none;
  padding-bottom: 0;
}

.contact-card .cc-link::after {
  content: '→';
  transition: transform 220ms ease;
}

.contact-card:hover .cc-link::after { transform: translateX(4px); }

/* FAQ */
.faq {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 24px;
  color: var(--terracotta);
  font-weight: 300;
  transition: transform 220ms ease;
  flex-shrink: 0;
  font-family: var(--font-body);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.7;
  max-width: 60ch;
}

/* =========================================================
   Reduce motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: var(--terracotta);
  color: var(--white);
}
