/* =========================================================
   Connect Persona — website v2 (light, deck-matched)
   Swap the font in one place: --font below + the <link> in index.html
   ========================================================= */

:root {
  /* Brand (from CP_Logo.svg) */
  --brand: #3f51b5;
  --brand-dark: #303f9f;
  --brand-soft: #e8eaf6;
  --graphite: #434343;

  /* Neutrals */
  --ink: #16181d;
  --text: #3c4150;
  --muted: #6b7080;
  --line: #e4e6ee;
  --paper: #ffffff;
  --mist: #f4f5f8;

  /* Soft color washes used in the deck */
  --peach: #ffd9b8;
  --mint: #c6eed5;
  --lav: #d9d6ff;

  /* Persona accents */
  --pro: #5b36c9;
  --pro-wash: #ece6ff;
  --soc: #f07a1a;
  --soc-wash: #ffeedd;
  --cre: #2e9e57;
  --cre-wash: #e1f6e8;

  /* Flip-card back */
  --back: #1f1f1f;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --header-h: 72px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.02em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* The deck's small blue chapter labels */
.kicker {
  margin-bottom: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}

.section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
}
.section-sub {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 14px; margin-top: 28px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .2em;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--brand-soft);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: .5em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { width: 140px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
}
.site-nav a:not(.btn):hover { color: var(--brand); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero — prism photo fills the whole section
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #eeeef0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  animation: settle 1.4s var(--ease) both;
}
/* Soft fade on the left so the headline stays readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(244, 244, 246, .92) 0%, rgba(244, 244, 246, .7) 38%, rgba(244, 244, 246, 0) 62%);
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: 80px;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hero-copy p {
  max-width: 36ch;
  margin-top: 14px;
  font-size: 1.1rem;
}
.hero-copy .hero-lead { margin-top: 28px; color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@keyframes settle {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   The skeptic
   ========================================================= */
.skeptic { padding-bottom: 0; overflow: hidden; }
.dialogue {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: end;
  gap: 16px;
}
.speaker {
  position: relative;
  display: grid;
}
.speaker img { grid-area: 1 / 1; width: 100%; transition: opacity .6s ease; }
.face--b { opacity: 0; }
.dialogue.is-replied .face--a { opacity: 0; }
.dialogue.is-replied .face--b { opacity: 1; }

.bubbles {
  display: grid;
  gap: 28px;
  align-self: center;
  padding-bottom: 64px;
}
.bubble {
  position: relative;
  width: 92%;
  padding: 30px 34px;
  border-radius: 40px;
  text-align: center;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
/* Tail: a curved wedge on the bottom corner nearest the speaker */
.bubble::after {
  content: "";
  position: absolute;
  bottom: -22px;
  width: 70px;
  height: 44px;
  background: inherit;
}
/* He speaks first (left person) → bubble leans left, tail points left */
.bubble--one {
  justify-self: start;
  background: #e8eaf1;
}
.bubble--one::after {
  left: -8px;
  clip-path: path("M 44 0 L 70 0 C 60 21 34 39 0 44 C 18 31 29 16 44 0 Z");
}
/* She replies (right person) → bubble leans right, tail points right */
.bubble--two {
  justify-self: end;
  background: #d9ddf0;
}
.bubble--two::after {
  right: -8px;
  clip-path: path("M 0 0 L 26 0 C 42 16 52 31 70 44 C 36 39 10 21 0 0 Z");
}
.bubble-lead { color: var(--muted); font-size: .95rem; }
.bubble-quote {
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
}
.bubble--two .bubble-quote { margin-top: 0; }
.bubble-foot { margin-top: 10px; color: var(--muted); font-size: .95rem; }

.js .dialogue:not(.is-replied) .bubble--two {
  opacity: 0;
  transform: translateY(12px);
}

/* =========================================================
   Problem flip cards
   ========================================================= */
.problems { background: var(--mist); }
.problems--second { background: var(--paper); }

.flip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.flip { display: grid; perspective: 1800px; }
.flip-inner {
  display: grid;
  grid-template-areas: "stack";
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  grid-area: stack;
  border-radius: var(--radius);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.pcard {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 40% 1fr;
  background: #fff;
  border: 1px solid var(--line);
}
.pcard-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 20px;
  background: radial-gradient(circle at 50% 60%, var(--wash, var(--peach)) 0%, transparent 70%);
}
.pcard--peach { --wash: var(--peach); }
.pcard--mint  { --wash: var(--mint); }
.pcard--lav   { --wash: var(--lav); }
.pcard-media img { width: 100%; object-fit: contain; object-position: bottom; }
.pcard-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 30px 30px 8px;
}
.pcard h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.pcard-quote {
  margin-top: 8px;
  color: var(--brand);
  font-style: italic;
}
.pcard-story {
  margin-top: 14px;
  font-size: .93rem;
  line-height: 1.7;
}

.flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
  background: var(--back);
  color: #fff;
}
.flip-back h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.flip-list {
  display: grid;
  gap: 12px;
  padding-left: 1.2em;
  list-style: disc;
}
.flip-list li { color: #e8e8e8; line-height: 1.55; }
.flip-list li::marker { color: #cfcfcf; }

.flip-btn,
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
  transition: background-color .2s, border-color .2s, color .2s;
}
.flip-btn svg,
.back-btn svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flip-btn {
  margin-top: 22px;
  background: var(--brand-soft);
  border: 1px solid #cfd4ee;
  color: var(--brand);
}
.flip-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.back-btn {
  align-self: flex-start;
  margin-top: 26px;
  background: #3a3a3a;
  border: 1px solid #5c5c5c;
  color: #fff;
}
.back-btn:hover { background: #4a4a4a; border-color: #777; }

/* =========================================================
   Realization — taller, photo anchored to the right edge
   ========================================================= */
.realization {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 0;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 80% 60%, var(--lav) 0%, transparent 55%),
    var(--paper);
}
.realization-inner { position: relative; z-index: 1; width: 100%; }
.realization-inner > div { max-width: 520px; padding-block: 120px; }
.realization h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
}
.realization h2 em { font-style: normal; color: var(--brand); }
.realization-sub {
  margin-top: 24px;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--brand);
  font-weight: 500;
}
.realization-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: auto;
  height: 94%;
  max-width: 54%;
  object-fit: contain;
  object-position: right bottom;
}

/* =========================================================
   Root causes
   ========================================================= */
.causes { background: var(--paper); padding-bottom: 88px; }
.causes .section-head { margin-bottom: 24px; }
.causes-banner img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 32px 0 28px;
  border-bottom: 1px solid var(--line);
}
.tab-list [role="tab"] {
  position: relative;
  padding: 12px 0 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
}
.tab-list [role="tab"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.tab-list [role="tab"]:hover { color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }

.cause-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cause-points li {
  padding-top: 16px;
  border-top: 2px solid var(--brand-soft);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* =========================================================
   Solution
   ========================================================= */
.solution { background: var(--mist); overflow: hidden; padding-bottom: 0; }
.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: end;
  gap: 48px;
}
.solution-copy { align-self: center; padding-bottom: 104px; }
.solution h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 700; line-height: 1.1; }
.solution-tagline {
  margin: 20px 0 16px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
}
.solution-copy > p:not(.kicker):not(.solution-tagline) {
  max-width: 44ch;
  margin-top: 12px;
  font-size: 1.05rem;
}

.solution-art {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 600px;
}
.hand-phone {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin-bottom: -1px;
}
.float-word {
  position: absolute;
  z-index: 0;
  padding: 48px 26px;
  border-radius: 50%;
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .18);
}
.fw-customize   { left: -2%;  top: 22%;    background: radial-gradient(circle, #3fbf6c 30%, rgba(63, 191, 108, 0) 72%); }
.fw-create      { left: 0;  bottom: 22%; background: radial-gradient(circle, #a85ee8 30%, rgba(168, 94, 232, 0) 72%); }
.fw-consolidate { right: -4%; top: 10%;     background: radial-gradient(circle, #f58a2c 30%, rgba(245, 138, 44, 0) 72%); }
.fw-control     { right: -3%; top: 50%;   background: radial-gradient(circle, #6b79f0 30%, rgba(107, 121, 240, 0) 72%); }

/* Phone frame drawn in CSS — drop raw screenshots in images/app/ */
.device {
  position: relative;
  z-index: 1;
  width: min(260px, 62vw);
  padding: 10px;
  border-radius: 44px;
  background: #15161a;
  box-shadow: 0 30px 60px rgba(22, 24, 29, .22), inset 0 0 0 2px #2c2e35;
}
.device::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  z-index: 2;
  width: 76px; height: 22px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #15161a;
}
.device img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 34px;
  background: #fff;
}

/* =========================================================
   Persona switcher
   ========================================================= */
.personas { background: var(--paper); }

.tab-list--pills {
  gap: 8px;
  margin: 0 0 32px;
  border: 0;
}
.tab-list--pills [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: border-color .2s, background-color .2s, color .2s;
}
.tab-list--pills [role="tab"]::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dot);
}
.tab-list--pills [role="tab"]::after { display: none; }
.tab-list--pills [role="tab"][aria-selected="true"] {
  border-color: var(--dot);
  background: color-mix(in srgb, var(--dot) 10%, white);
  color: var(--ink);
}

.persona-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr .85fr;
  align-items: end;
  gap: 36px;
  padding: 48px 48px 0;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--wash) 0%, #fff 90%);
}
.persona-panel:not([hidden]) { animation: panel-in .5s var(--ease); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.persona-info { align-self: center; padding-bottom: 48px; }
.persona-info h3 { font-size: 1.7rem; font-weight: 700; }
.use-case {
  margin-top: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}
.persona-desc {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 16%, white);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.6;
}
.persona-middle { align-self: center; padding-bottom: 48px; }
.persona-photo {
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

/* ID cards (text is live HTML over a background image) */
.id-card,
.mini-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 5 / 3;
  padding: 18px 20px;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%),
    var(--card-bg, none) center / cover,
    var(--accent, var(--brand));
  box-shadow: 0 18px 40px rgba(22, 24, 29, .18);
}
.id-card-top { display: flex; align-items: center; gap: 10px; }
.id-card-top img { flex: none; }
.id-card-label { display: block; font-size: .75rem; opacity: .9; }
.id-card-name { display: block; font-weight: 700; font-size: 1rem; }
.id-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .72rem;
  line-height: 1.5;
}
.id-card-addr { text-align: right; }

.shared { margin-top: 22px; }
.shared-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white);
  color: var(--ink);
  font-size: .85rem;
}

/* =========================================================
   What makes Personas special — card stack
   ========================================================= */
.special { background: var(--mist); }
.special-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.card-stack {
  position: relative;
  height: 420px;
}
.mini-card {
  position: absolute;
  left: 0;
  width: min(420px, 100%);
  --accent: #3b4a6b;
  transition: transform .55s var(--ease), opacity .45s ease;
}
.mini-card:nth-child(1) { top: 0;     z-index: 1; }
.mini-card:nth-child(2) { top: 70px;  z-index: 2; }
.mini-card:nth-child(3) { top: 140px; z-index: 3; }

/* Only show as many cards as the chosen feature needs */
.card-stack[data-level="1"] .mini-card:nth-child(n+2),
.card-stack[data-level="2"] .mini-card:nth-child(3) {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}

.feature-accordion { display: grid; gap: 12px; }
.fa-item {
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.fa-item.is-open {
  border-color: #cfd4ee;
  box-shadow: 0 10px 30px rgba(63, 81, 181, .08);
}
.fa-trigger {
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: none;
  text-align: left;
}
.fa-title {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
}
.fa-tagline { display: block; margin-top: 4px; color: var(--brand); }
.fa-panel { padding: 0 24px 22px; }

/* =========================================================
   Paradigm shift
   ========================================================= */
.paradigm {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  min-height: 820px;
  padding: 140px 0;
  background: #f2f3f6;
}
.paradigm-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}
.paradigm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, 0) 80%);
}
.paradigm-inner { position: relative; z-index: 2; }
.paradigm h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 700; line-height: 1.08; }
.paradigm p:not(.kicker) {
  max-width: 58ch;
  margin-top: 22px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink);
}

/* =========================================================
   Feature rows
   ========================================================= */
.features { background: var(--paper); }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.feature-row + .feature-row { margin-top: 120px; }
.feature-row--flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.15; }
.feature-copy > p:not(.kicker) { max-width: 44ch; margin-top: 14px; font-size: 1.08rem; }
.feature-art {
  display: grid;
  place-items: center;
  padding: 48px 0;
  border-radius: 32px;
}
.feature-art--lav   { background: radial-gradient(circle at 50% 55%, var(--lav) 0%, transparent 62%); }
.feature-art--peach { background: radial-gradient(circle at 50% 55%, var(--peach) 0%, transparent 62%); }
.feature-art--mint  { background: radial-gradient(circle at 50% 55%, var(--mint) 0%, transparent 62%); }

/* =========================================================
   Closing
   ========================================================= */
.closing { background: var(--mist); }
.collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(22, 24, 29, .12);
}
.tile { position: relative; }
.tile img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(.35);
}
.tile figcaption {
  position: absolute;
  left: 0;
  padding: 6px 18px;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  background: var(--tag);
}
.t-family, .t-friends, .t-adventures { --pos: top; }
.t-family figcaption, .t-friends figcaption, .t-adventures figcaption { top: 0; }
.t-social figcaption, .t-personal figcaption, .t-work figcaption { bottom: 0; }
.t-family     { --tag: #f4a95b; }
.t-friends    { --tag: #4fc27a; }
.t-adventures { --tag: #b98cf0; }
.t-social     { --tag: #5cc3e6; }
.t-personal   { --tag: #f28b8b; }
.t-work       { --tag: #8e9bf0; }
.collage-brand {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 36px 48px;
}
.collage-brand img { width: min(280px, 60vw); }
.collage-brand p {
  color: var(--graphite);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cta { margin-top: 88px; text-align: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.cta > p { margin: 14px 0 32px; font-size: 1.15rem; }
.cta-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 28px;
  color: var(--muted);
  font-size: .9rem;
}
.cta-points li::before { content: "✓ "; color: var(--brand); font-weight: 700; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 40px 0;
  background: #1a1c23;
  color: #b9bdc9;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .flip-grid { grid-template-columns: 1fr; }
  .persona-panel { grid-template-columns: 1fr 1fr; padding: 36px 36px 0; }
  .persona-info { grid-column: 1 / -1; padding-bottom: 0; }
  .persona-middle { padding-bottom: 36px; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(22, 24, 29, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }

  .hero-inner { align-items: flex-start; min-height: 88svh; padding-block: 56px 45vw; }
  .hero-bg { object-position: 72% bottom; }
  .hero::before {
    background: linear-gradient(180deg, rgba(244, 244, 246, .96) 0%, rgba(244, 244, 246, .85) 45%, rgba(244, 244, 246, 0) 72%);
  }

  .bubble { width: 100%; }
  .bubble--one::after { left: 18%; }
  .bubble--two::after { right: 18%; }

  .dialogue { grid-template-columns: 1fr 1fr; }
  .bubbles { grid-column: 1 / -1; grid-row: 1; padding-bottom: 8px; }
  .speaker { max-width: 260px; }
  .speaker--right { justify-self: end; }

  .realization-inner,
  .solution-inner,
  .special-inner,
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .realization { display: block; min-height: 0; }
  .realization-inner > div { padding-block: 72px 24px; }
  .realization-photo {
    position: static;
    height: auto;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
  }
  .feature-row--flip .feature-copy { order: 0; }
  .feature-row + .feature-row { margin-top: 80px; }

  .causes-banner img { aspect-ratio: 2 / 1; }
  .cause-points { grid-template-columns: 1fr; gap: 16px; }

  .solution-art {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .float-word {
    position: static;
    justify-self: stretch;
    padding: 10px 16px;
    border-radius: 999px;
    text-align: center;
    text-shadow: none;
    font-size: .95rem;
  }
  .fw-customize   { background: #2f9e57; }
  .fw-create      { background: #9447d6; }
  .fw-consolidate { background: #d9701a; }
  .fw-control     { background: #5563d9; }
  .solution-copy { padding-bottom: 0; }
  .solution-art .hand-phone { grid-column: 1 / -1; margin-top: 18px; }

  .persona-panel { grid-template-columns: 1fr; padding: 28px 24px 0; }
  .persona-middle { padding-bottom: 0; }
  .persona-photo { max-width: 240px; }

  .card-stack { height: 360px; }
  .paradigm { min-height: 640px; padding: 88px 0; }

  .collage { grid-template-columns: repeat(3, 1fr); }
  .collage-brand { padding: 24px; justify-content: center; text-align: center; }
  .tile figcaption { padding: 4px 10px; font-size: .75rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .pcard { grid-template-columns: 1fr; }
  .pcard-media { max-height: 260px; }
  .pcard-media img { max-width: 240px; }
  .pcard-body { padding: 8px 24px 28px; }
  .flip-back { padding: 28px 24px; }
  .tab-list { gap: 0 20px; }
  .id-card-bottom { font-size: .66rem; }
  .collage { grid-template-columns: repeat(2, 1fr); }
  .tile.t-adventures, .tile.t-work { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  /* Flip cards cross-fade instead of rotating */
  .flip-inner,
  .flip.is-flipped .flip-inner,
  .flip-back { transform: none !important; }
  .flip-face { transition: opacity .35s ease !important; }
  .flip-back { opacity: 0; }
  .flip.is-flipped .flip-front { opacity: 0; }
  .flip.is-flipped .flip-back { opacity: 1; }
}

/* =========================================================
   Legal pages (privacy.html, terms.html)
   ========================================================= */
.legal { padding: 56px 0 104px; background: var(--paper); }
.legal-notice {
  margin-bottom: 40px;
  padding: 14px 18px;
  border: 1px solid #f1d58a;
  border-radius: 12px;
  background: #fff8e1;
  color: #6b5200;
  font-size: .95rem;
}
.legal-head {
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.legal-head h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
}
.legal-meta { margin-top: 12px; color: var(--muted); }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: .9rem;
}
.legal-toc-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 600;
}
.legal-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--brand); }

.legal-body { max-width: 72ch; }
.legal-body section + section { margin-top: 40px; }
.legal-body h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 600;
}
.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p { margin-top: 12px; }
.legal-body ul {
  display: grid;
  gap: 8px;
  padding-left: 1.3em;
  list-style: disc;
}
.legal-body li::marker { color: var(--brand); }
.legal-body a { color: var(--brand); }
.legal-body strong { color: var(--ink); }

.site-footer a[aria-current="page"] { color: #fff; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc {
    position: static;
    padding: 20px;
    border-radius: 14px;
    background: var(--mist);
  }
}
