/* ============================================================
   PERSONA LENS — Website stylesheet
   Aligned with the iOS Theme.swift brand charter (single source of truth).
   Lens hexes are tuned to the latest iOS icons.

   Brand tokens
     Navy        #25375B   primary CTA + display headings on light surfaces
     Navy deep   #1E445D   gradient pair, deep surfaces
     Cream       #F8F6F3   page surface
     Cream warm  #F2EEE8   warmer secondary surface
     White card  #FFFFFF
     Off-white   #FDFBF9
     Charcoal    #2B2622   primary text (deep brown)
     Text 2      #4A4540   secondary
     Text 3      #6F6864   tertiary / muted
     Disclaimer  #A09A92
     Border      #E8E2DA
     Sage        #7FAD90   success / green flags

   Lens colors (matched to the revised iOS icons)
     Self          #6BA7B3   teal
     Romantic      #D78377   blush rose
     Friendship    #FBB35F   soft apricot
     Professional  #A783D7   soft lavender
     Family        #83B3E3   sky blue
     Group         #FB775F   vivid coral

   Typography
     Display  TeX Gyre Bonum Bold (self-hosted .otf, LPPL-licensed)
     Body     Inter (Google Fonts), system fallback
   ============================================================ */

@font-face {
  font-family: 'TeX Gyre Bonum';
  src: url('fonts/TeXGyreBonum-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #25375B;
  --navy-deep: #1E445D;
  --navy-light: #A3BCCD;

  --cream: #F8F6F3;
  --cream-warm: #F2EEE8;
  --card: #FFFFFF;
  --elevated: #FDFBF9;
  --deep: #E8E0D4;

  --ink: #2B2622;
  --text-2: #4A4540;
  --text-3: #6F6864;
  --muted: #A09A92;

  --border: #E8E2DA;
  --border-accent: rgba(37, 55, 91, 0.25);

  --sage: #7FAD90;

  --self: #6BA7B3;
  --romantic: #D78377;
  --friendship: #FBB35F;
  --professional: #A783D7;
  --family: #83B3E3;
  --group: #FB775F;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;

  --shadow-soft: 0 8px 24px rgba(43, 38, 34, 0.06), 0 2px 4px rgba(43, 38, 34, 0.04);
  --shadow-lift: 0 18px 50px rgba(43, 38, 34, 0.10), 0 4px 10px rgba(43, 38, 34, 0.06);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow { max-width: 940px; }
.container-wide { max-width: 1320px; }

/* Display headings always use TeX Gyre Bonum */
.serif, .display, .section-title, .lens-name, .legal-page h1, .legal-page h2 {
  font-family: 'TeX Gyre Bonum', 'Bookman', 'Georgia', serif;
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 243, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.brand-name {
  font-family: 'TeX Gyre Bonum', 'Bookman', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.site-nav a { color: var(--navy); opacity: 0.82; }
.site-nav a:hover { opacity: 1; text-decoration: none; }
.header-cta { padding: 9px 18px; font-size: 14px; }

/* ---------- Language Picker (4 flags) ---------- */
.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}
.lang-flag {
  width: 24px;
  height: 16px;
  display: inline-block;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 34, 0.18);
  opacity: 0.65;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.lang-flag:hover { opacity: 1; transform: translateY(-1px); text-decoration: none; }
.lang-flag.active {
  opacity: 1;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(37, 55, 91, 0.18);
}
/* Proper country flags as inline SVG data URIs */
.flag-en {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30' preserveAspectRatio='none'><rect width='60' height='30' fill='%23012169'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23ffffff' stroke-width='6'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23C8102E' stroke-width='2'/><path d='M30,0 v30 M0,15 h60' stroke='%23ffffff' stroke-width='10'/><path d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/></svg>");
}
.flag-fr {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2' preserveAspectRatio='none'><rect width='1' height='2' x='0' fill='%23002654'/><rect width='1' height='2' x='1' fill='%23ffffff'/><rect width='1' height='2' x='2' fill='%23CE1126'/></svg>");
}
.flag-es {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4' preserveAspectRatio='none'><rect width='6' height='1' y='0' fill='%23AA151B'/><rect width='6' height='2' y='1' fill='%23F1BF00'/><rect width='6' height='1' y='3' fill='%23AA151B'/></svg>");
}
.flag-ru {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 3' preserveAspectRatio='none'><rect width='3' height='1' y='0' fill='%23ffffff'/><rect width='3' height='1' y='1' fill='%230039A6'/><rect width='3' height='1' y='2' fill='%23D52B1E'/></svg>");
}

/* ---------- Hamburger button (mobile only) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.nav-toggle:hover { background: rgba(43, 38, 34, 0.04); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 80px 20px 28px;
  z-index: 40;
  box-shadow: 0 14px 40px rgba(43, 38, 34, 0.10);
  flex-direction: column;
  gap: 4px;
  max-height: 100vh;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 14px 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  border-radius: 8px;
  border-bottom: 1px solid rgba(43, 38, 34, 0.06);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: rgba(43, 38, 34, 0.04); text-decoration: none; }
.mobile-nav .mobile-cta {
  margin-top: 18px;
  padding: 14px 22px;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  border-radius: 999px;
  border-bottom: none;
}
.mobile-nav .mobile-cta:hover { background: var(--navy-deep); color: var(--cream); }

@media (max-width: 920px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .lang-picker { margin-left: 8px; gap: 6px; }
  .lang-flag { width: 22px; height: 15px; }
  /* Hide the desktop CTA — we surface it inside the drawer instead */
  .header-cta { display: none; }
}

/* ---------- Phones: keep header on ONE line ---------- */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .brand { gap: 8px; flex-shrink: 0; min-width: 0; }
  .brand-name {
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-mark { width: 30px; height: 30px; }
  .lang-picker {
    margin-left: auto;
    gap: 6px;
    flex-shrink: 0;
  }
  .lang-flag { width: 22px; height: 15px; }
  .nav-toggle { width: 36px; height: 36px; }
}

@media (max-width: 420px) {
  .header-inner { padding: 10px 10px; gap: 6px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; }
  .lang-flag { width: 18px; height: 12px; }
  .lang-picker { gap: 4px; margin-left: 4px; }
  .nav-toggle { width: 34px; height: 34px; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 13px; }
  .lang-flag { width: 16px; height: 11px; }
  .lang-picker { gap: 3px; }
}

/* ========================================================
   MOBILE LAYOUT FIXES — pricing page, tables, grids
   ======================================================== */

/* Pricing grid — 2-col variant collapses cleanly on mobile */
.pricing-grid-2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) {
  /* Beat any inline grid-template-columns override */
  .pricing-grid,
  .pricing-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .price-card.price-featured { transform: none; }
  .price-card { padding: 26px 22px; }
  .price-amount { font-size: 38px; }
}

/* Tables — make readable on mobile via card layout */
@media (max-width: 720px) {
  /* Credit table: stack rows as cards, hide column headers */
  .credit-table { display: block; border: none; background: transparent; box-shadow: none; }
  .credit-table thead { display: none; }
  .credit-table tbody { display: block; }
  .credit-table tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
  }
  .credit-table tr.best { background: rgba(127, 173, 144, 0.08); }
  .credit-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid rgba(43, 38, 34, 0.06);
    text-align: left !important;
    font-size: 15px;
    gap: 10px;
  }
  .credit-table td:last-child { border-bottom: none; padding-top: 10px; }
  .credit-table td.right { text-align: right !important; }
  .credit-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-3);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  /* The first cell in each row contains the pack name (a strong) — show it as a heading */
  .credit-table td:first-child {
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 4px;
    font-family: 'TeX Gyre Bonum', Georgia, serif;
    font-weight: 700;
    font-size: 19px;
    color: var(--navy);
  }
  .credit-table td:first-child::before { content: none; }
  .credit-table td:first-child strong { font-weight: 700; }

  /* Compare table: also stack as cards */
  .compare-table { display: block; border: none; background: transparent; box-shadow: none; }
  .compare-table thead { display: none; }
  .compare-table tbody { display: block; }
  .compare-table tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
  }
  .compare-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid rgba(43, 38, 34, 0.06);
    text-align: left;
    font-size: 14.5px;
    gap: 12px;
  }
  .compare-table td:first-child {
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 4px;
    font-family: 'TeX Gyre Bonum', Georgia, serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--navy);
  }
  .compare-table td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-3);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  .compare-table td:last-child { border-bottom: none; }
}

/* Hide desktop nav CTA on mobile properly (override inline classes) */
@media (max-width: 920px) {
  .site-header .header-cta { display: none !important; }
}

/* Hero/section title text overflow safety on mobile */
@media (max-width: 640px) {
  .section-title, .display, h1, h2 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  /* Prevent FAQ example-card padding from overflowing */
  .example-card { padding: 22px 20px !important; }
  .example-card h3 { font-size: 16.5px !important; }
  .legal-page .container { padding: 0 18px; }
  /* Section padding tighter on mobile */
  .section, .section-tight { padding: 56px 0; }
}

/* ---------- Phones: typography + spacing ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-inner { gap: 38px; }
  .hero-copy .display { font-size: clamp(32px, 8.5vw, 44px); }
  .section-title { font-size: clamp(26px, 7.5vw, 38px); }
  .section-lede { font-size: 16px; margin-bottom: 36px; }
  .lede { font-size: 17px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .persona-card { max-width: 320px; padding: 22px 20px; }
  .persona-card-title { font-size: 24px; }
  .lens-name-display { font-size: clamp(38px, 11vw, 56px); }
  .lens-hero { padding: 44px 0 40px; }
  .lens-section { padding: 56px 0; }
  .footer-inner { gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
  }
  .cta-strip { padding: 48px 0; }
  .cta-strip h2 { font-size: 26px; }
  /* Tables become scrollable instead of overflowing */
  .credit-table, .compare-table { display: block; overflow-x: auto; }
  .legal-page { padding: 56px 0 72px; }
  .legal-page h1 { font-size: 32px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 8px 22px rgba(37, 55, 91, 0.22);
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-lightcream {
  background: var(--cream);
  color: var(--navy);
}

/* ---------- Eyebrow / Section title ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }
.eyebrow.tinted-self { color: var(--self); }
.eyebrow.tinted-romantic { color: var(--romantic); }
.eyebrow.tinted-friendship { color: var(--friendship); }
.eyebrow.tinted-professional { color: var(--professional); }
.eyebrow.tinted-family { color: var(--family); }
.eyebrow.tinted-group { color: var(--group); }

.section-title {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  color: var(--navy);
  margin: 0 0 18px;
  text-align: center;
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.section-title.left { text-align: left; }
.section-title.white { color: var(--cream); }

.section-lede {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.65;
}
.section-lede.white { color: rgba(248, 246, 243, 0.88); }
.section-lede.left { text-align: left; margin-left: 0; margin-right: 0; }

.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }

/* ---------- HERO ---------- */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-copy .display {
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.04;
  color: var(--navy);
  margin: 6px 0 22px;
  text-wrap: balance;
}
.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.88;
  max-width: 540px;
  margin: 0 0 28px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-meta {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}
.hero-meta.white { color: rgba(248, 246, 243, 0.7); }

.hero-visual { display: flex; justify-content: center; }

/* Persona Card visual — used in hero + sample */
.persona-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border);
  transform: rotate(-1.5deg);
  position: relative;
}
.persona-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--romantic), var(--friendship));
  opacity: 0.18;
  z-index: -1;
  filter: blur(20px);
}
.persona-card-header { margin-bottom: 14px; }
.persona-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--romantic);
  background: rgba(215, 131, 119, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
}
.persona-card-title {
  font-family: 'TeX Gyre Bonum', 'Bookman', Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 18px;
}
.persona-card-trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.trait-pill {
  background: var(--elevated);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.persona-card-quote {
  font-family: 'TeX Gyre Bonum', 'Bookman', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.42;
  color: var(--ink);
  margin: 0 0 20px;
}
.persona-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.persona-card-lens-icon { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .persona-card { transform: none; }
}

/* ---------- LENSES (homepage preview) ---------- */
.section-lenses { background: var(--cream); }
.lens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 14px;
}
@media (max-width: 880px) { .lens-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .lens-grid { grid-template-columns: 1fr; } }

.lens-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
}
.lens-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.lens-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--lens);
}
.lens-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: block;
}
.lens-card h3 {
  font-family: 'TeX Gyre Bonum', 'Bookman', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.lens-card .lens-target {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lens);
  margin: 0 0 12px;
}
.lens-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 14px;
}
.lens-card .more {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.lens-footnote {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  margin-top: 40px;
}

/* ---------- HOW IT WORKS ---------- */
.section-how { background: var(--cream-warm); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; gap: 36px; } }

.how-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}
.how-num {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--romantic);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.how-sources, .how-lensrow {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.how-sources img { width: 40px; height: 40px; border-radius: 9px; }
.how-lensrow img { width: 32px; height: 32px; }
.how-output { margin-bottom: 22px; }
/* Mini Persona Card preview — visual stand-in for "the reading" */
.mini-card {
  width: 132px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 12px 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: rotate(-2deg);
}
.mini-card::before {
  content: "ROMANTIC LENS";
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--romantic);
  background: rgba(215, 131, 119, 0.14);
  padding: 3px 6px;
  border-radius: 4px;
  align-self: flex-start;
}
.mini-card::after {
  content: "The Devoted Strategist";
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.15;
  color: var(--navy);
  margin-top: 2px;
}
.mini-card-pills {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.mini-card-pill {
  height: 8px;
  flex: 1;
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.mini-card-pill:nth-child(1) { background: rgba(107, 167, 179, 0.30); border-color: rgba(107, 167, 179, 0.30); }
.mini-card-pill:nth-child(2) { background: rgba(215, 131, 119, 0.30); border-color: rgba(215, 131, 119, 0.30); }
.mini-card-pill:nth-child(3) { background: rgba(251, 179, 95, 0.30); border-color: rgba(251, 179, 95, 0.30); }
.how-step h3 {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 10px;
}
.how-step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

/* ---------- SAMPLE / AWARDS ---------- */
.section-sample { background: var(--cream); }
.sample-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .sample-inner { grid-template-columns: 1fr; gap: 40px; } }

.sample-copy p {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--friendship);
  box-shadow: 0 0 0 4px rgba(251, 179, 95, 0.18);
}

.awards {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-lift);
}
.awards-title {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 22px;
}
.award {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.award:last-child { border-bottom: none; }
.award-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--group);
  margin-bottom: 8px;
}
.award-recipient {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  margin-right: 8px;
}
.award-quote {
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

/* ---------- TESTIMONIALS (homepage preview) ---------- */
.section-testimonials { background: var(--cream-warm); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.testi-quote {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lens, var(--navy));
  color: var(--cream);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
}
.testi-meta {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.35;
}
.testi-meta strong { color: var(--ink); font-weight: 600; }
.testi-lens-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lens, var(--navy));
  margin-bottom: 10px;
}

/* ---------- PRIVACY ---------- */
.section-privacy { background: var(--cream); }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 20px auto 0;
}
@media (max-width: 720px) { .privacy-grid { grid-template-columns: 1fr; } }

.privacy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.privacy-card h3 {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 10px;
}
.privacy-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

/* ---------- PRICING (preview + full page) ---------- */
.section-pricing { background: var(--cream-warm); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 20px;
}
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.price-card.price-featured {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.price-card.price-featured .price-eyebrow,
.price-card.price-featured .price-line,
.price-card.price-featured ul li,
.price-card.price-featured .price-fineprint {
  color: rgba(248, 246, 243, 0.82);
}
.price-card.price-featured .price-amount { color: var(--cream); }
.price-card.price-featured ul li { border-bottom-color: rgba(248, 246, 243, 0.14); }
.price-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}
.price-amount {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 48px;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.price-amount span {
  font-size: 16px;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-left: 4px;
}
.price-line {
  color: var(--text-3);
  font-size: 14px;
  margin: 0 0 22px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: left;
  flex-grow: 1;
}
.price-card ul li {
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.price-card ul li:last-child { border-bottom: none; }
.price-fineprint {
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
}

/* Per-credit table (pricing detail page) */
.credit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.credit-table th, .credit-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.credit-table th {
  background: var(--elevated);
  font-weight: 600;
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.credit-table tr:last-child td { border-bottom: none; }
.credit-table td.right, .credit-table th.right { text-align: right; }
.credit-table .best { background: rgba(127, 173, 144, 0.08); }
.credit-table .savings {
  display: inline-block;
  background: rgba(127, 173, 144, 0.16);
  color: #4F7A60;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 8px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 15px;
  vertical-align: top;
}
.compare-table th {
  font-weight: 700;
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  color: var(--navy);
  font-size: 17px;
}
.compare-table th.col-feature { width: 38%; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-yes { color: var(--sage); font-weight: 700; }
.compare-no { color: var(--muted); }

/* ---------- DOWNLOAD ---------- */
.section-download {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.section-download::after {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(163, 188, 205, 0.18), transparent 70%);
  pointer-events: none;
}
.download-inner { text-align: center; position: relative; z-index: 1; }
.section-download .btn-lightcream { margin: 16px auto 18px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--elevated);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  align-items: flex-start;
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: var(--text-2); font-size: 14px; }
.footer-col a:hover { color: var(--navy); text-decoration: none; }

.footer-brand-col { padding-right: 20px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-mark { width: 40px; height: 40px; border-radius: 9px; box-shadow: var(--shadow-soft); }
.footer-name {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin: 0;
}
.footer-tag { font-size: 14px; color: var(--text-3); margin: 0; line-height: 1.45; }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- LENS DETAIL PAGES ---------- */
.lens-hero {
  padding: 64px 0 56px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.lens-hero-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .lens-hero-inner { grid-template-columns: 1fr; gap: 36px; }
}
.lens-hero-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.lens-hero-icon {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(43, 38, 34, 0.14));
}
.lens-hero-content .lens-target-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.lens-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-2);
}
.lens-tag.lens-tag-color {
  background: var(--lens-tint, rgba(0, 0, 0, 0.05));
  color: var(--lens, var(--navy));
}
.lens-name-display {
  font-family: 'TeX Gyre Bonum', 'Bookman', Georgia, serif;
  font-weight: 700;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1;
  color: var(--navy);
  margin: 0 0 14px;
}
.lens-tagline {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  color: var(--lens, var(--navy));
  margin: 0 0 18px;
  line-height: 1.3;
}
.lens-intro {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 22px;
}

.lens-section { padding: 80px 0; }
.lens-section h2 {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--navy);
  margin: 0 0 12px;
}
.lens-section h3 {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 8px;
}
.lens-section .section-lede.left { color: var(--text-2); }

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}
@media (max-width: 740px) { .who-grid { grid-template-columns: 1fr; } }

.who-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.who-card p {
  font-size: 15px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}
@media (max-width: 740px) { .module-list { grid-template-columns: 1fr; } }
.module-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.module-list strong {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  display: block;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 4px;
}
.module-list span {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.does-doesnt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 740px) { .does-doesnt { grid-template-columns: 1fr; } }
.dd-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.dd-card.dd-does { border-top: 4px solid var(--sage); }
.dd-card.dd-doesnt { border-top: 4px solid var(--muted); }
.dd-card h3 { margin-top: 0; }
.dd-card ul { list-style: none; padding: 0; margin: 0; }
.dd-card li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}
.dd-card.dd-does li::before {
  content: "✓";
  position: absolute; left: 0; top: 7px;
  color: var(--sage);
  font-weight: 700;
}
.dd-card.dd-doesnt li::before {
  content: "—";
  position: absolute; left: 0; top: 8px;
  color: var(--muted);
}

.example-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-soft);
  margin-top: 24px;
  position: relative;
}
.example-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--lens, var(--navy));
  border-radius: 4px 0 0 4px;
}
.example-quote {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 12px;
}
.example-meta {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* Group lens chat mock */
.chat-mock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}
.chat-mock-title {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 6px;
}
.chat-mock-sub { font-size: 13px; color: var(--text-3); margin: 0 0 14px; }
.chat-line {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.chat-line:last-child { border-bottom: none; }
.chat-name {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}
.chat-msg { color: var(--ink); font-size: 15px; line-height: 1.5; }

/* Compare grid for "what each lens does" homepage box */
.lens-purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}
@media (max-width: 860px) { .lens-purpose-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .lens-purpose-grid { grid-template-columns: 1fr; } }

.lens-purpose {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.lens-purpose-stripe {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--lens);
  border-radius: 3px 0 0 3px;
}
.lens-purpose img { width: 36px; height: 36px; }
.lens-purpose strong {
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-size: 17px;
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}
.lens-purpose span { font-size: 14px; color: var(--text-2); }

/* Award page-level (used in group lens detail) */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
@media (max-width: 740px) { .awards-grid { grid-template-columns: 1fr; } }
.award-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.award-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--group);
}
.award-tile .award-label {
  display: block;
  margin-bottom: 6px;
  color: var(--group);
}
.award-tile .award-recipient {
  display: block;
  font-family: 'TeX Gyre Bonum', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 6px;
}
.award-tile .award-because {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* CTA strip used at the bottom of detail pages */
.cta-strip {
  background: var(--navy);
  color: var(--cream);
  padding: 60px 0;
  text-align: center;
}
.cta-strip h2 { color: var(--cream); margin-bottom: 12px; font-family: 'TeX Gyre Bonum', Georgia, serif; font-weight: 700; font-size: 36px; }
.cta-strip p { color: rgba(248, 246, 243, 0.82); margin: 0 0 22px; }

/* Legal pages */
.legal-page { padding: 80px 0 100px; }
.legal-page h1 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.06;
  color: var(--navy);
  margin: 0 0 8px;
}
.legal-meta { color: var(--text-3); margin-bottom: 40px; font-size: 14px; }
.legal-page h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 36px 0 10px;
}
.legal-page p, .legal-page li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
.legal-page ul { padding-left: 22px; }
.legal-page .container { max-width: 760px; }
