/* ───────────────────────────────────────────────────────────────────
   TWH FigmaImport R1 — recreated from the Figma design
   (node 40017104:15741, "Home Landing page").
   Colors, layout, typography mirror the Figma file; brand-system
   rules deliberately not enforced where the Figma differs.
   ─────────────────────────────────────────────────────────────────── */

:root {
  --purple: #919AFE;
  --purple-soft: #A8AFFE;
  /* R6 X1 audit fix: was #6B6FE6 which gave 3.4–4.2:1 on lavender — failed
     WCAG AA. #4F4FB0 measures 5.5+ on every lavender / white / pale-lime
     background the eyebrow + inline link colours sit over. */
  --purple-deep: #4F4FB0;
  --lavender-bg: #E9E6FE;
  /* hero background */
  --lavender-tint: #F4F1FE;
  /* mid sections */
  --lime: #C7D983;
  --lime-soft: #E4ECC0;
  --navy: #0E1B4D;
  /* testimonials + footer */
  --navy-deep: #081234;
  --dark-purple: #2E2A6E;
  /* snap-a-bill section */
  --ink: #0F1226;
  /* primary heading */
  --blue-ink: #2A316E;
  --ink-2: #2A2C44;
  --grey-text: #7B7F9C;
  --slate: #4A4E68;
  --slate-2: #6E7290;
  --line: #E3E5F2;
  --white: #FFFFFF;
  --card: #FFFFFF;
  --pale-lime: #F8FAEF;
  --Off-white-grey: #F9F9FB;

  /* pillar pastels */
  --pill-lime: #E7EFC8;
  --pill-lavender: #DDE1FE;
  --pill-purple: #BAA8F4;
  --pill-blue: #B7D6FA;

  /* V5 audit fix: about-page surface + secondary-text color hoisted from
     the local .info-body alias block into global :root scope. */
  --surface-light-purple: #F4F0FF;
  --fg-secondary: #414241;

  /* V3 audit fix: pricing.html h3 type scale. The legacy stylesheet
     drives plan-head + gift-plan h3 sizing today; explicit TWH classes
     below make the choice intentional and survive an eventual legacy
     CSS purge (X8). */
  --pricing-h3-size: 22px;
  --pricing-h3-size-mobile: 18px;

  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", "Times New Roman", serif;

  --max: 1280px;
  --pad-x: 24px;
}

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

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

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.5;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
  height: auto;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

ul,
ol {
  list-style: none;
}

/* Italic display serif accent (matches Figma's emphasis style) */
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--purple);
}

/* ───── EYEBROW ───── */
.eyebrow {
  font-size: 14px; /* X4 audit fix: 13 → 14 (mobile readability floor) */
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /* R6 X1 audit fix: was var(--purple) #919AFE which measured 2.4:1 on
     white sections — failed WCAG AA (needs 4.5). --purple-deep #6B6FE6
     measures ≥ 5:1 on every light background the eyebrow sits over. */
  color: var(--purple-deep);
  margin-bottom: 18px;
}

.eyebrow--on-dark {
  /* R6 X1 audit fix: was var(--purple-soft) #A8AFFE which measured 2.05:1
     on the navy --snap background — failed WCAG AA. White measures
     ~14.5:1 (AAA) and matches the existing snap-sub body colour. */
  color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════════════
   NAV — floating pill
   ═════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 var(--pad-x);
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 9999px;
  padding: 8px 12px 8px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 14px 40px -8px rgba(20, 30, 70, 0.12), 0 2px 6px rgba(20, 30, 70, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
}

.nav-mark {
  display: grid;
  place-items: center;
}

.nav-mark img {
  height: 28px;
  width: auto;
}

.nav-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.nav-links {
  display: none;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 9999px;
}

.nav-links a:hover {
  background: var(--lavender-tint);
}

.nav-cta {
  display: none;
  padding: 10px 22px;
  background: var(--purple-soft);
  color: #032356;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--purple);
}

.nav-menu {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.nav-menu span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-mobile {
  /* Center the drawer and cap its width at 80% of the nav padding box
     so it's noticeably narrower than the full pill row. */
  margin: 12px auto 0;
  max-width: 80%;
  background: var(--white);
  border-radius: 24px;
  padding: 16px 24px;
  box-shadow: 0 14px 40px -8px rgba(20, 30, 70, 0.12);
  display: flex;
  flex-direction: column;
  /* .nav header has pointer-events: none so the surrounding hero area
     under the floating pill remains clickable. The pill itself re-enables
     with .nav-pill { pointer-events: auto }; the drawer needs the same
     so its anchor links actually receive taps. */
  pointer-events: auto;
}

.nav-mobile a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.nav-mobile a:last-child {
  border-bottom: 0;
}

.nav-mobile-cta {
  margin-top: 12px;
  background: var(--purple);
  color: var(--white) !important;
  border-radius: 9999px;
  text-align: center;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--white);
  margin-top: -88px;
  padding: 168px 0 60px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/img/hero-banner-family.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  right: -10%;
  top: -10%;
  width: 70%;
  aspect-ratio: 1;
  opacity: 0.10;
  background: radial-gradient(circle at 30% 50%, var(--purple) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy {
  width: 100%;
  text-align: left;
}

.hero-h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(40px, 9vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-h1 em {
  font-size: 1em;
}

.hero-sub {
  margin-top: 24px;
  max-width: 65ch; /* X4: 620px → 65ch (scales with font size) */
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--slate);
  font-weight: 500;
}

.hero-phones {
  margin-top: 48px;
  position: relative;
  width: 100%;
  max-width: 880px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.hero-phone {
  flex: 0 1 auto;
  max-width: 70%;
  /* border-radius: 52px; */
  overflow: hidden;
  /* background: #ddd; */
  /* box-shadow: 0 30px 60px -20px rgba(20, 30, 70, 0.25); */
}

.hero-phone img {
  display: block;
  width: 70%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.hero-phone--left {
  z-index: 1;
}

.hero-phone--center {
  z-index: 3;
  box-shadow: 0 40px 80px -20px rgba(20, 30, 70, 0.35);
}

.hero-phone--right {
  z-index: 1;
}

.hero-phone--right img {
  margin-left: auto;
  margin-right: 0;
}

/* Store badges inside the hero copy block */
.hero-app-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.hero-app-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.hero-app-badge img {
  height: 56px;
  width: auto;
  border-radius: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   BALLOONS — Take a little breather
   ═════════════════════════════════════════════════════════════════ */
.balloons {
  background: var(--pale-lime);
  padding: 80px 0;
}

.balloons-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.balloons-head {
  max-width: 880px;
  margin-bottom: 48px;
}

.balloons-h2 {
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.balloons-h2 em {
  font-size: 1em;
}

.balloons-sub {
  margin-top: 18px;
  max-width: 65ch; /* X4: 720 → 65ch (narrower lines, easier scan) */
  color: var(--slate);
  font-weight: 500;
  font-size: 16px;
}

.balloon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.balloon {
  padding: 18px 18px 22px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(20, 30, 70, 0.03);
}

.balloon--doc {
  background: #F4F1FE;
  border-color: #E0DCF8;
}

.balloon--todo {
  background: #F2F6E1;
  border-color: #DCE5BB;
}

.balloon--fin {
  background: #FCEEDA;
  border-color: #F2DDB5;
}

.balloon--staff {
  background: #E5EBFC;
  border-color: #C4D0F4;
}

.b-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.balloon--doc .b-tag {
  color: #5A52B5;
}

.balloon--todo .b-tag {
  color: #6A7B2A;
}

.balloon--fin .b-tag {
  color: #A05F1F;
}

.balloon--staff .b-tag {
  color: #3B4B97;
}

.balloon p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   WHY — Built for the way Indian homes
   ═════════════════════════════════════════════════════════════════ */
.why {
  background: var(--white);
  padding: 80px 0 100px;
}

.why-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}

.why-copy {
  max-width: 560px;
}

.why-h2 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.why-h2 em {
  font-size: 1em;
}

.why-sub {
  margin-top: 28px;
  font-size: 16px;
  color: var(--slate);
  font-weight: 500;
  max-width: 480px;
}

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

.why-phone {
  width: 280px;
  border-radius: 52px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 30px 60px -20px rgba(20, 30, 70, 0.25);
}

.why-phone img {
  width: 100%;
  height: auto;
}

.why-second-phone {
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  padding: 0 var(--pad-x);
  /* background-image: url("assets/img/bg-why-home.png"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.why-second-phone figure {
  width: 360px;
  border-bottom-right-radius: 56px;
  border-bottom-left-radius: 56px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 30px 60px -20px rgba(20, 30, 70, 0.25);
}

.why-second-phone img {
  width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURES — 4-up row
   ═════════════════════════════════════════════════════════════════ */
.features {
  background: var(--white);
  background-image: url("assets/img/bg-why-home.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0px 0 100px;
}

.features-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
  font-weight: 500;
}

.feature-ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--lime);
  padding: 4px;
  margin-bottom: 14px;
  position: relative;
}

.feature-ic--doc {
  background: #dce5bb00 url("assets/icons/doc-icon.png") center / contain no-repeat;
}

.feature-ic--staff {
  background: #dde1fe00 url("assets/icons/staff-icon.png") center / contain no-repeat;
}

.feature-ic--fin {
  background: #fceeda00 url("assets/icons/fin-icon.png") center / contain no-repeat;
}

.feature-ic--task {
  background: #e4ecc000 url("assets/icons/task-icon.png") center / contain no-repeat;
}

/* ═══════════════════════════════════════════════════════════════════
   SNAP A BILL — dark purple, two column
   ═════════════════════════════════════════════════════════════════ */
.snap {
  background: linear-gradient(135deg, #2C2A6E 0%, #3A3686 60%, #4A4496 100%);
  background-image: url("assets/img/bg-built-for-families.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  position: relative;
  /* clip-path instead of overflow:hidden so the inner .snap-visual sticky
     can pin to the viewport (overflow on ancestor breaks sticky). */
  clip-path: inset(0);
}

.snap::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
}

.snap-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
  /* start, not center — text scrolls naturally */
}

.snap-copy {
  color: var(--white);
}

.snap-h2 {
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}

.snap-h2 em {
  color: var(--lime);
  font-size: 1em;
}

.snap-sub {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  max-width: 520px;
  font-weight: 500;
}

.snap-checks {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.snap-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--lime);
  border-radius: 50%;
  position: relative;
  margin-top: 2px;
}

.check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #2C2A6E;
  border-bottom: 2px solid #2C2A6E;
  transform: rotate(45deg);
}

.snap-visual {
  display: flex;
  justify-content: center;
  /* On mobile the phone sits below the copy in flow (no sticky). */
}

/* The screenshot PNG already contains the phone bezel — no frame, no
   border, no background, no rounded corners on the wrapper. */
.snap-phone {
  width: 280px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  /* JS sets `style.opacity` per phone for cross-fade. Default = 1 so the
     image is visible before JS attaches. */
  opacity: 1;
  transition: opacity 80ms linear;
  will-change: opacity;
}

.snap-phone img {
  width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   WHAT SETS US APART — 2 photo cards with chat phones
   ═════════════════════════════════════════════════════════════════ */
.apart {
  background: var(--Off-white-grey);
  padding: 100px 0;
}

.apart-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.apart-h2 {
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.apart-h2 em {
  font-size: 1em;
}

.apart-sub {
  margin-top: 18px;
  font-size: 16px;
  color: var(--slate);
  font-weight: 500;
  max-width: 520px;
}

.apart-carousel {
  --apart-gap: 28px;
  position: relative;
  margin-top: 56px;
}

.apart-viewport {
  overflow: hidden;
}

.apart-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--apart-gap);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.apart-card {
  flex: 0 0 624px;
  width: 624px;
  height: 546px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.apart-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: none;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.apart-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.apart-arrow--prev {
  left: -16px;
}

.apart-arrow--next {
  right: -16px;
}

.apart-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  transform: translateY(-50%);
}

.apart-photo {
  flex: 1;
  width: 100%;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 30%, #F4F1FE, #DDE1FE 70%);
  position: relative;
}

.apart-photo--a {
  background: linear-gradient(135deg, #F1F4DC, #DCE5BB);
  background-image: url("assets/img/bg-card1-what-sets-us-apart.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.apart-photo--b {
  background: linear-gradient(135deg, #DDE1FE, #B7D6FA);
  background-image: url("assets/img/bg-card2-what-sets-us-apart.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.apart-card h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.apart-card p {
  font-size: 15px;
  color: var(--slate);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   PILLARS — Your family data, sticky-note style
   ═════════════════════════════════════════════════════════════════ */
.pillars {
  background: var(--white);
  padding: 100px 0;
}

.pillars-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0px var(--pad-x);
}

.pillars-head {
  max-width: 920px;
  margin-bottom: 64px;
}

.pillars-h2 {
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pillars-h2 em {
  font-size: 1em;
}

.pillars-sub {
  margin-top: 20px;
  font-size: 16px;
  color: var(--slate);
  max-width: 720px;
  font-weight: 500;
}

.pillar-grid {
  display: grid;
  gap: 100px;
  grid-template-columns: 1fr;
}

.pillar {
  padding: 16px 24px 30px;
  border-radius: 24px;
  transform: rotate(-2deg);
  box-shadow: 0 21px 42px -15px rgba(20, 30, 70, 0.18);
  position: relative;
}

.pillar:nth-child(2) {
  transform: rotate(1deg);
}

.pillar:nth-child(3) {
  transform: rotate(-3deg);
}

.pillar:nth-child(4) {
  transform: rotate(2deg);
}

.pillar--lime {
  background: var(--pill-lime) url("assets/img/bg-pillar-grid-card1.png") center / 200% 200% no-repeat;
}

.pillar--lavender {
  background: var(--pill-lavender);
}

.pillar--purple {
  background: var(--pill-purple);
}

.pillar--blue {
  background: var(--pill-blue);
}

.pillar-ic {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  background: transparent;
  margin-bottom: 18px;
}

.pillar-ic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left;
}

.pillar h3 {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue-ink);
  margin-bottom: 12px;
}

.pillar p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--grey-text);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS — Running our home (dark navy)
   ═════════════════════════════════════════════════════════════════ */
.testi {
  background: var(--navy);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.testi::before {
  content: "";
  position: absolute;
  left: -8%;
  top: 20%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 154, 254, 0.18), transparent 60%);
}

.testi-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

.testi-copy {
  color: var(--white);
}

.testi-h2 {
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
}

.testi-h2 em {
  font-size: 1em;
  color: var(--purple-soft);
}

.testi-sub {
  margin-top: 28px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 420px;
  font-weight: 500;
}

.testi-cols {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.testi-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testi-card {
  background: rgba(20, 30, 80, 0.55);
  border: 1px solid rgba(145, 154, 254, 0.22);
  border-radius: 20px;
  padding: 18px 20px 20px;
  backdrop-filter: blur(8px);
}

/* Alternating card backgrounds — odd cards on solid #021C45,
   even cards on white at 6% (a soft translucent panel). */
.testi-col .testi-card:nth-child(odd) {
  background: #021C45;
}

.testi-col .testi-card:nth-child(even) {
  background: rgba(255, 255, 255, 0.06);
}

.testi-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.testi-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EC8B6A, #8C3A2A);
  flex-shrink: 0;
}

.testi-card header strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.testi-card header span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.testi-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ — Questions Answered
   ═════════════════════════════════════════════════════════════════ */
.faq {
  background: var(--white);
  padding: 100px 0;
}

.faq-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

.faq-copy {
  max-width: 420px;
}

.faq-h2 {
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.faq-h2 em {
  font-size: 1em;
}

.faq-sub {
  margin-top: 18px;
  max-width: 65ch; /* X4: add reading-width cap */
  font-size: 15px;
  color: var(--slate);
  font-weight: 500;
}

.faq-sub a {
  /* R6 X1 audit fix: inline body link — was --purple #919AFE at 2.4:1 on
     white. --purple-deep #4F4FB0 measures 6.8:1 (AAA). */
  color: var(--purple-deep);
  text-decoration: underline;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

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

.faq-list summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--slate-2);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "−";
  color: var(--purple);
}

.faq-list details>div {
  padding: 0 0 22px;
}

.faq-list details p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   DOWNLOAD CTA — Start running your home today (matches Figma 40017332:1974)
   Full-bleed family photograph; copy top-left, wordmark top-right, store
   badges sitting low against the grass.
   ═════════════════════════════════════════════════════════════════════ */
.cta {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: clamp(560px, 56vw, 820px);
  isolation: isolate;
}

.cta-photo {
  position: absolute;
  inset: 0;
  background-image: url("assets/img/bg-start-running-home.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.cta-photo::after {
  /* Soft top fade so the headline + sub read crisply against the photo */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.18) 28%, transparent 55%);
  pointer-events: none;
}

/* Logo + wordmark — top-right */
.cta-brand {
  position: absolute;
  top: 60px;
  right: 56px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.cta-brand-mark {
  display: inline-flex;
}

.cta-brand-mark img {
  height: 36px;
  width: auto;
}

.cta-brand-text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Headline + sub — top-left. Width allows the H2 to wrap to 2 lines
   ("Start running your" / "home better — today.") as in Figma. */
.cta-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
  /* padding-top matches .cta-brand top:60px so .cta-h2 and the brand logo
     share the same horizontal top edge. */
  padding: 60px 24px 0 80px;
}

.cta-h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

.cta-h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--purple);
  font-size: 1em;
}

.cta-sub {
  margin-top: 18px;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 500;
  max-width: 520px;
}

/* App Store + Google Play badges — pinned over the grass, slightly
   inboard of centre (~ 38–55% from left at desktop, matching Figma) */
.cta-stores {
  position: absolute;
  z-index: 1;
  left: 38%;
  bottom: 14%;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.cta-store {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.cta-store img {
  height: 64px;
  width: auto;
  border-radius: 16px;
}

.cta-store-ic {
  flex-shrink: 0;
}

.cta-store-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.cta-store-sub {
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}

.cta-store-main {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.62);
  padding: 64px 0 28px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  /* Mobile: brand → socials → cols, all stacked. Desktop overrides below
     turn row 1 into [brand | socials] and put cols on row 2 full-width. */
  grid-template-areas:
    "brand"
    "socials"
    "cols";
}

.footer-brand {
  grid-area: brand;
}

.footer-socials {
  grid-area: socials;
}

.footer-cols {
  grid-area: cols;
}

/* Social icons row — 72×72 (2× the 36 baseline), top-aligned with brand row */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-socials a {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: transform 200ms ease, opacity 200ms ease;
  opacity: 0.85;
}

.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-socials img {
  width: 72px;
  height: 72px;
  display: block;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-mark img {
  height: 28px;
  width: auto;
}

.footer-logo .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  margin: 0 1px;
  vertical-align: middle;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.footer-cols {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(2, 1fr);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col a {
  /* X3 audit fix: vertical padding bumped 4 → 8 to lift tap-box from ~30 px to
     ~38 px (≥ 32 px WCAG-recommended). Footer columns are the worst mis-tap
     zone on mobile because of tight column stacking. */
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
}

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

/* X6 audit fix: placeholders for footer items whose destination doesn't
   exist yet (Blog, Press, Roadmap, Help centre, How it works, Setup
   guide, Data Processing, DPDP compliance). Rendered like a footer
   link visually but with no anchor (no broken in-page jump). */
.footer-tbd {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.32);
  cursor: default;
}

.footer-meta {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  /* Row layout: "Built with care in Mumbai" on the left, copyright on the right.
     The copyright <p> is first in the HTML; we use flex `order` to flip it
     visually without touching markup. */
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
}

.footer-meta p:first-child {
  order: 2;
  text-align: right;
}

.footer-meta p:last-child {
  order: 1;
  text-align: left;
}

.footer-meta p {
  margin: 0;
}

/* On narrow mobile, stack vertically with copyright on top (HTML order). */
@media (max-width: 639px) {
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta p:first-child,
  .footer-meta p:last-child {
    order: 0;
    text-align: left;
  }
}

/* CTA mobile (< 640px) — relax the heavy left-padding, drop the absolute
   wordmark down so it can't overlap the headline */
@media (max-width: 639px) {
  .cta {
    min-height: clamp(620px, 130vw, 760px);
  }

  .cta-brand {
    position: static;
    display: flex;
    justify-content: flex-end;
    padding: 24px var(--pad-x) 0;
  }

  .cta-brand-text {
    font-size: 18px;
  }

  .cta-copy {
    padding: 32px var(--pad-x) 0;
    max-width: none;
  }

  .cta-stores {
    position: static;
    padding: 28px var(--pad-x) 36px;
    flex-direction: column;
    left: auto;
    bottom: auto;
  }

  .cta-store {
    width: 100%;
    max-width: 280px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .balloon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apart-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Desktop: brand on left, socials on right (same row), cols span row 2 */
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand socials"
      "cols  cols";
  }

  .footer-socials {
    justify-self: end;
    /* push to the right edge of footer */
    align-self: start;
    /* top-align: icons sit on the same row as the brand logo */
  }
}

@media (min-width: 768px) {
  :root {
    --pad-x: 40px;
  }

  .balloon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testi-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad-x: 56px;
  }

  /* Nav: full pill with text links + CTA */
  .nav-links {
    display: flex;
    /* Extra left padding so the menu items sit further away from the
       nav-brand + separator, giving the pill a roomier feel. */
    padding-left: 32px;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
  }

  .nav-menu {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  /* Hero: text block left, phones right, top-aligned */
  .hero {
    padding: 100px 0 80px;
  }

  .hero-inner {
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    gap: 48px;
  }

  .hero-copy {
    flex: 1 1 0;
    max-width: 520px;
    display: flex;
    flex-direction: column;
  }

  /* Push badges toward the bottom of the copy column to fill the lower-left space.
     Then nudge them down so they sit 48px above the hero section's bottom edge:
     the copy-column bottom is 32px (hero-inner pb) + 80px (hero pb) = 112px above
     the section edge, so translateY(64px) lands the badges at 48px. */
  .hero-app-badges {
    margin-top: auto;
    transform: translateY(64px);
  }

  .hero-sub {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-phones {
    margin-top: 0;
    flex: 1 1 0;
    gap: 0;
  }

  .hero-phone {
    max-width: 100%;
    flex-basis: auto;
  }

  /* Balloons: 6-up */
  .balloon-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Why: 2-column text+phone */
  .why-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }

  .why-phone {
    width: 320px;
  }

  .why-second-phone figure {
    width: 560px;
  }

  /* Features: 4-up */
  .features-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  /* Snap (R4): each .snap-inner is shorter than the viewport so the
     section's top + bottom edges remain visible while the user scrolls
     through it. Inside each block:
       • .snap-copy is position:sticky at top:14vh — it scrolls UP with the
         page, then PINS at the top edge of the phone for a few scrolls,
         then exits with the block.
       • .snap-phone (fixed positioning, JS-controlled) appears to stay
         stationary; JS cross-fades adjacent phones, completing the fade
         as the NEXT block's top reaches the phone's BOTTOM edge.  */
  .snap {
    padding: 80px 0;
  }

  .snap-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    /* R4: shorter than the viewport — gives ~16vh of breathing room so the
       user can see the section edges while still leaving enough scroll
       budget for the pin + cross-fade. */
    min-height: 84vh;
    align-items: start;
    position: relative;
  }

  .snap-copy {
    /* R5: padding-top removed so the eyebrow's TOP aligns with the
       top edge of the sticky-pinned .snap-phone (both end up at
       viewport y = 14vh once the section is in its stationary state). */
    padding-top: 0;
    /* R5: min-height matches the phone height (~76vh) so the natural
       sticky release moment — parent.bottom <= top + element.height —
       coincides with the next block's snap-copy top reaching the phone's
       bottom edge. Content sits at the top of the box (heading / sub /
       checks) and the remaining height acts as a "buffer" so the previous
       snap-copy stays pinned until the incoming snap-copy has crossed
       all the way down to the phone bottom, then both start scrolling
       up together with a clear vertical gap between them. */
    min-height: 76vh;
    /* R4: position:sticky so the text pins at top-of-phone (top:14vh)
       once it scrolls up to that line. Sticky range = block-height -
       text-height - 14vh ≈ ~30vh of "paused" scroll per block. */
    position: sticky;
    top: 14vh;
    align-self: start;
  }

  /* Placeholder column: reserves the layout slot so .snap-copy keeps its
     proper width, but the phone inside is taken out of flow. */
  .snap-visual {
    min-height: 70vh;
    position: relative;
  }

  .snap-phone {
    position: fixed;
    top: 14vh;
    /* Right edge of phone aligns with right edge of section content
       (max-width 1280 + var(--pad-x)). Falls back to var(--pad-x) on
       narrow viewports so the phone never escapes the viewport. */
    right: max(var(--pad-x), calc(50vw - 640px + var(--pad-x)));
    width: 320px;
    opacity: 0;
    /* JS reveals only the active phone(s) */
    pointer-events: none;
    z-index: 5;
  }
}

@media (min-width: 1280px) {
  .snap-phone {
    width: 340px;
  }
}

/* Apart: keep 2-column */
.apart-carousel {
  --apart-gap: 40px;
}

/* Pillars: 4-up sticky-notes */
.pillar-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar {
  padding: 32px 28px 36px;
}

.pillar h3 {
  font-size: 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   PILLARS — desktop redesign (≥1024 px)
   Fixed 320 × 360 cards laid out in a flex row that lets adjacent
   cards overlap at the corners. Cards are slightly tilted (≤ 3°) in
   alternating directions. Icons are absolutely positioned so a small
   portion (≈ 12% of their width) tucks behind the card's right edge.
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .pillar-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    grid-template-columns: none;
  }

  .pillar-grid .pillar {
    width: 320px;
    height: 360px;
    flex: 0 0 320px;
    box-sizing: border-box;
    /* Reserve the upper area for the absolute-positioned icon. */
    padding: 200px 28px 28px;
    /* Clip the portion of the icon that pokes past the right edge so
       only ~85% of the icon is visible. */
    overflow: hidden;
  }

  /* Every card except the first nudges left, creating a corner-overlap
     with the previous card. */
  .pillar-grid .pillar+.pillar {
    margin-left: -40px;
  }

  /* Stagger z-index so cards layer left-to-right: each later card sits
     visually on top of its neighbour to the left. */
  .pillar-grid .pillar:nth-child(1) {
    z-index: 1;
  }

  .pillar-grid .pillar:nth-child(2) {
    z-index: 2;
  }

  .pillar-grid .pillar:nth-child(3) {
    z-index: 3;
  }

  .pillar-grid .pillar:nth-child(4) {
    z-index: 4;
  }

  /* Card 3's existing -3° rotation is at the boundary; nudge it to
     -2.5° so every tilt is strictly under 3°. */
  .pillar-grid .pillar:nth-child(3) {
    transform: rotate(-2.5deg);
  }

  /* Vary the vertical position of alternate cards by ±12 px (24 px total
     spread) so the row isn't perfectly horizontal — gives the cluster a
     hand-pinned scrapbook feel. */
  .pillar-grid .pillar:nth-child(odd) {
    margin-top: -12px;
  }

  .pillar-grid .pillar:nth-child(even) {
    margin-top: 12px;
  }

  /* Icon: positioned absolutely with right: -22px so ~22px (≈ 12% of
     its 180-px width) is clipped by the card's overflow: hidden. */
  .pillar-grid .pillar-ic {
    position: absolute;
    top: 28px;
    right: -22px;
    width: 180px;
    height: 180px;
    margin: 0;
  }
}

/* Testimonials: 1/3 copy + 2/3 cards */
.testi-inner {
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
}

.testi-cols {
  grid-template-columns: 1fr 1fr;
}

/* FAQ: 2-column */
.faq-inner {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

/* CTA: copy padding widens to match Figma at ≥1024px.
   padding-top matches .cta-brand top:72px so .cta-h2 and the brand logo
   share the same horizontal top edge at desktop. */
.cta-copy {
  padding: 72px var(--pad-x) 0 80px;
}

.cta-stores {
  padding: 64px var(--pad-x) 80px 80px;
}

.cta-brand {
  top: 72px;
  right: 80px;
}


@media (min-width: 1280px) {
  :root {
    --pad-x: 80px;
  }

  .hero-phone {
    max-width: 340px;
    flex-basis: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   WHY — sticky-pinned scroll-jack
   Ported from TWH-website-Koshmoney-design-R4 .usps-pinned mechanics.
   • .why-pinned spans 4 beats × 80vh of scroll height (≈ 320vh)
   • Right column is align-items: stretch so it fills the full grid row;
     .why-phone-frame inside it uses position: sticky; top: 14vh and
     therefore stays pinned through every beat
   • Each .why-beat-text is min-height: 80vh, opacity 0.22 by default;
     IntersectionObserver toggles .is-active → opacity 1
   • Phone screens stack absolutely inside .why-phone-screen; only the
     .is-active one is visible (opacity 1), others opacity 0
   ═════════════════════════════════════════════════════════════════════ */
.why-lead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: left;
}

.why-lead .eyebrow {
  /* R6 X1 audit fix: this was overriding the base .eyebrow rule with the
     lower-contrast --purple token. Inherit the new --purple-deep instead. */
  color: var(--purple-deep);
  margin-bottom: 14px;
}

.why-lead .why-h2 {
  max-width: 720px;
}

.why-lead .why-sub {
  max-width: 560px;
}

/* The pinned wrapper. NO overflow:hidden here — any non-visible overflow
   on an ancestor disables sticky in the child. */
.why-pinned {
  position: relative;
  margin-top: 80px;
}

.why-pinned-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.why-pinned-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.why-col {
  display: flex;
  flex-direction: column;
}

.why-col-phone {
  align-items: center;
  justify-content: flex-start;
}

/* The phone screenshot assets already include the device bezel — no frame,
   no border, no background here. .why-phone-frame is purely a positioning
   wrapper that becomes sticky on desktop. */
.why-phone-frame {
  position: static;
  width: 280px;
  /* aspect mirrors the source PNG (≈ 9:18.5 for the screenshots in /assets/img) */
  aspect-ratio: 9 / 18.5;
  height: auto;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.why-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 0;
}

.why-phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* keep the full screenshot visible */
  object-position: top;
  opacity: 0;
  /* No CSS transition — JS drives opacity smoothly via scroll progress.
     A tiny easing on opacity prevents subpixel flicker but keeps things tied
     to scroll. */
  transition: opacity 80ms linear;
  will-change: opacity;
}

/* Compatibility default — if JS doesn't run, show the first screen. */
.why-phone-screen img:first-child {
  opacity: 1;
}

.why-beat-text {
  /* Default (mobile / no-JS): rendered statically — every beat visible. */
  opacity: 1;
  padding: 24px 0;
}

/* Inner wrapper that holds the actual copy — mobile: in flow, desktop: sticky. */
.why-beat-text-inner {
  /* mobile default — no sticky, no opacity tween */
}

.why-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-deep); /* AA: eyebrow on light bg */
  margin-bottom: 14px;
}

.why-num::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--purple);
  border-radius: 9999px;
}

.why-beat-text h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}

.why-beat-text p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate);
  font-weight: 500;
  max-width: 460px;
}

/* Desktop ≥ 1024px — sticky scroll-jack with smooth scroll-progress cross-fade.
   • Each .why-beat-text is min-height: 80vh — the section is 4 × 80vh tall.
   • .why-phone-frame is sticky at top: 14vh (top of phone aligns with top of
     the first beat's sticky text).
   • Inside each beat, .why-beat-text-inner is ALSO sticky at top: 14vh, so the
     active copy sits right next to the top of the phone screen.
   • Opacity is NOT toggled via .is-active. JS sets `style.opacity` per beat
     based on a continuous scroll-progress value, so transitions are smooth
     and tied to scroll position. */
@media (min-width: 1024px) {
  .why {
    padding: 80px 0 100px;
  }

  .why-lead {
    padding-bottom: 8vh;
  }

  .why-pinned {
    margin-top: 0;
  }

  .why-pinned-grid {
    grid-template-columns: 1fr minmax(300px, 380px);
    column-gap: 80px;
    align-items: start;
  }

  /* Phone column — stretches the full grid row so the sticky element can
     pin for the entire scroll length of the section. */
  .why-col-phone {
    align-self: stretch;
  }

  .why-phone-frame {
    position: sticky;
    top: 14vh;
    width: 340px;
    margin: 0 auto;
  }

  /* Each beat is 80vh tall; the text inside is sticky-pinned to the top
     of the phone so the active copy and the phone header align. */
  .why-beat-text {
    min-height: 80vh;
    display: block;
    padding-right: 16px;
    position: relative;
  }

  .why-beat-text-inner {
    position: sticky;
    top: 14vh;
    padding-top: 8px;
    /* Default starting opacity for the slot — JS will set the exact value
       on every scroll frame; this avoids a flash before JS boots. */
    opacity: 0;
    transition: opacity 80ms linear;
    will-change: opacity;
  }

  /* First beat is visible on initial paint (before scroll JS attaches). */
  .why-beat-text:first-child .why-beat-text-inner {
    opacity: 1;
  }
}

@media (min-width: 1280px) {
  .why-phone-frame {
    width: 360px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGE LAYER — for content pages under /pages/* (privacy, terms,
   sitemap, about, faq, etc.). Long-form prose styled to match the TWH
   homepage tokens: Manrope sans body, italic Playfair em accents,
   #919AFE purple, soft lavender hero band, dark navy footer.
   ═════════════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(180deg, var(--lavender-bg) 0%, #EFEDFE 60%, #F4F2FE 100%);
  /* Pull the hero up behind the floating nav pill (same trick as homepage .hero)
     so the lavender band reaches the top edge — no white strip above the nav.
     Top padding compensates so visible content sits below the nav at ~80px. */
  margin-top: -88px;
  padding: 168px 0 64px;
  text-align: center;
}

.page-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.page-eyebrow {
  display: inline-block;
  font-size: 14px; /* X4 audit fix: 13 → 14 (mobile readability) */
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* R6 X1 audit fix: was var(--purple) #919AFE which measured ~2.5:1 on
     the lavender hero gradient — failed WCAG AA. --purple-deep #6B6FE6
     measures ≥ 5:1 on the same gradient. */
  color: var(--purple-deep);
  margin-bottom: 18px;
}

.page-h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.page-h1 em {
  font-size: 1em;
}

.page-lead {
  margin-top: 18px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--slate);
  font-weight: 500;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-body {
  background: var(--white);
  padding: 56px 0 96px;
  color: var(--ink-2);
}

.page-body-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-body-inner h1,
.page-body-inner h2,
.page-body-inner h3,
.page-body-inner h4 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.page-body-inner h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 56px 0 18px;
  line-height: 1.1;
}

.page-body-inner h1.center {
  text-align: center;
}

.page-body-inner h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 48px 0 14px;
  line-height: 1.2;
}

.page-body-inner h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin: 36px 0 10px;
  line-height: 1.25;
}

.page-body-inner h4 {
  font-size: 16px;
  margin: 24px 0 8px;
}

.page-body-inner p {
  margin: 12px 0;
  color: var(--ink-2);
}

.page-body-inner a {
  color: var(--purple-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-body-inner a:hover {
  color: var(--navy); /* AA: darken hover (base is --purple-deep) */
}

.page-body-inner ul,
.page-body-inner ol {
  padding-left: 28px;
  margin: 12px 0;
}

.page-body-inner ul ul,
.page-body-inner ul ol,
.page-body-inner ol ul,
.page-body-inner ol ol {
  margin: 6px 0;
}

.page-body-inner ul {
  list-style: disc outside;
}

.page-body-inner ol {
  list-style: decimal outside;
}

.page-body-inner ol ol {
  list-style: lower-alpha outside;
}

.page-body-inner ol ol ol {
  list-style: lower-roman outside;
}

.page-body-inner li {
  margin: 6px 0;
}

.page-body-inner li>ol,
.page-body-inner li>ul {
  margin-top: 6px;
}

.page-body-inner strong,
.page-body-inner b {
  font-weight: 700;
  color: var(--ink);
}

.page-body-inner em,
.page-body-inner i {
  /* Inside body copy, lean on plain italic — don't pull Playfair onto
     every italicised legal phrase, only on intentional accent spans. */
  font-family: inherit;
  font-style: italic;
  font-weight: inherit;
  color: inherit;
}

.page-body-inner .Hyperlink,
.page-body-inner span.Hyperlink {
  color: var(--purple-deep);
  text-decoration: underline;
}

.page-body-inner table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0;
  font-size: 15px;
}

.page-body-inner th,
.page-body-inner td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.page-body-inner th {
  background: var(--surface-lp, #F4F1FE);
  font-weight: 700;
}

.page-body-inner hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* Sitemap-specific list of links */
.page-sitemap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .page-sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

.page-sitemap-col h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-deep); /* AA: eyebrow-like heading on light bg */
  margin: 0 0 12px;
}

.page-sitemap-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-sitemap-col li {
  /* X3 audit fix: was margin: 8px 0. The link's own padding now carries the
     vertical rhythm; we keep a small li margin so adjacent rows stay distinct
     without doubling the visible gap. */
  margin: 0;
}

.page-sitemap-col a {
  /* X3 audit fix: was unpadded (~18 px tall). Adding 8 px vertical padding +
     display:block makes the entire row tappable at ~36 px. Sitemap was the
     worst page in the audit with 40 sub-32 px targets. */
  display: block;
  padding: 8px 0;
  font-size: 16px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-sitemap-col a:hover {
  color: var(--purple-deep);
  border-bottom-color: var(--purple-deep);
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE NAV — brand on the left, hamburger on the right.
   Scoped to viewports below the desktop breakpoint (≥1024px). Desktop
   already sets .nav-menu { display: none } via its own media query.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .nav-menu {
    /* default DOM order, pushed right by the existing margin-left:auto
       on .nav-menu in the base rule. Brand sits at the left of the pill. */
    order: 0;
    margin-right: 0;
  }

  .nav-sep {
    display: none;
    /* separator would dangle awkwardly between brand and the empty space
       to its right since nav-links are hidden at mobile. */
  }
}

/* ───────────────────────────────────────────────────────────────────
   Fix: .nav-mobile { display: flex } above was overriding the native
   browser rule [hidden] { display: none }. With this selector, the
   drawer truly hides when initMobileNav() sets menu.hidden = true.
   ─────────────────────────────────────────────────────────────────── */
.nav-mobile[hidden] {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ — filter pills + accordion (TWH brand colors, legacy structure)
   Used on pages/faq.html. .trigger li → pill filter, .faq-item.act → visible.
   Accordion: .faq-item.active → answer expanded.
   ═══════════════════════════════════════════════════════════════════ */
.faq-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Filter pills row ──────────────────────────────────────────────── */
.faq-container .trigger {
  list-style: none;
  text-align: center;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.faq-container .trigger li {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 22px;
  border: 1px solid rgba(145, 154, 254, 0.35);
  border-radius: 9999px;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #1F2940);
  background: #fff;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  user-select: none;
}

.faq-container .trigger li:hover {
  background: rgba(145, 154, 254, 0.10);
  border-color: var(--purple-soft, #919AFE);
}

.faq-container .trigger li.act {
  background: var(--purple-soft, #919AFE);
  color: #fff;
  border-color: var(--purple-soft, #919AFE);
  font-weight: 700;
  box-shadow: 0 6px 18px -6px rgba(145, 154, 254, 0.6);
}

/* ── FAQ item card + accordion ─────────────────────────────────────── */
.faq-container .faq-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-container .faq-item {
  background: #fff;
  border: 1px solid var(--line, rgba(20, 30, 70, 0.08));
  border-radius: 20px;
  padding: 22px 28px;
  display: none;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.faq-container .faq-item.act {
  display: block;
}

.faq-container .faq-item:hover {
  border-color: rgba(145, 154, 254, 0.45);
  box-shadow: 0 8px 24px -10px rgba(20, 30, 70, 0.10);
}

/* Question row — clickable, with +/× indicator on the right */
.faq-container .faq-question {
  position: relative;
  cursor: pointer;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink, #1F2940);
  padding-right: 40px;
}

.faq-container .faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: rgba(145, 154, 254, 0.12);
  color: var(--purple-soft, #919AFE);
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  transition: transform 280ms cubic-bezier(0.22, 1.0, 0.36, 1.0), background 200ms ease;
}

.faq-container .faq-item.active .faq-question::after {
  content: '×';
  transform: translateY(-50%) rotate(180deg);
  background: var(--purple-soft, #919AFE);
  color: #fff;
}

/* Answer — collapsed by default, opens via max-height transition */
.faq-container .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms cubic-bezier(0.22, 1.0, 0.36, 1.0);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2, #3D4666);
}

.faq-container .faq-item.active .faq-answer {
  max-height: 1200px;
  /* large enough for any answer */
}

.faq-container .faq-answer p {
  margin: 14px 0 0;
}

.faq-container .faq-answer ul,
.faq-container .faq-answer ol {
  margin: 10px 0 0 18px;
  padding-left: 4px;
}

.faq-container .faq-answer li {
  margin: 4px 0;
}

.faq-container .faq-answer a {
  color: var(--purple-soft, #919AFE);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-container .faq-answer a:hover {
  color: var(--purple-deep, #5b65d1);
}

/* Mobile: tighter padding + smaller question text */
@media (max-width: 768px) {
  .faq-container {
    padding: 0 8px;
  }

  .faq-container .trigger {
    gap: 8px;
    margin-bottom: 24px;
  }

  .faq-container .trigger li {
    padding: 8px 14px;
    font-size: 13px;
  }

  .faq-container .faq-item {
    padding: 16px 18px;
    border-radius: 16px;
  }

  .faq-container .faq-question {
    font-size: 15px;
    padding-right: 32px;
  }

  .faq-container .faq-question::after {
    width: 24px;
    height: 24px;
    font-size: 19px;
    line-height: 24px;
  }

  .faq-container .faq-answer {
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   R5 — Homepage MOBILE overrides (<640 px)
   Scoped strictly to (max-width: 639px) so desktop and tablet are
   completely unaffected. Targets index.html only via the existing
   section classes.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 639px) {

  /* 1. BALLOONS — 2-column grid, cells share equal width and stretch to
     equal height within each row. Text wraps inside each cell as needed. */
  .balloon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 12px;
  }

  .balloon-grid .balloon {
    height: 100%;
    display: flex;
    flex-direction: column;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* 2. PILLARS — 2×2 grid for the 4 pillars, equal cell width + height.
     Icons shrunk by 60% (180 -> 72px) so card heights shorten accordingly. */
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 16px;
  }

  .pillar-grid .pillar {
    height: 100%;
    display: flex;
    flex-direction: column;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 20px 16px 22px;
  }

  .pillar-grid .pillar-ic {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
  }

  /* 3. TESTIMONIALS — testi-copy on top, testi-cols beneath, both full width.
     Each card also full screen width. */
  .testi-inner {
    grid-template-columns: 1fr;
  }

  .testi-copy {
    max-width: none;
    width: 100%;
  }

  .testi-cols {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .testi-col {
    flex-direction: column;
    width: 100%;
  }

  .testi-card {
    width: 100%;
    box-sizing: border-box;
  }

  /* 4. FAQ — copy block + question list stack vertically at full width,
     instead of the desktop 2-column grid. */
  .faq-inner {
    grid-template-columns: 1fr;
  }

  .faq-copy {
    max-width: none;
    width: 100%;
  }

  .faq-list {
    width: 100%;
  }

  /* 5. CTA DOWNLOAD — re-order so copy is first (with breathing room),
     brand below it, and store badges side-by-side under that.
     .cta-photo is position:absolute (full-bleed bg) — keep as-is. */
  .cta {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .cta-photo {
    order: 0;
  }

  .cta-copy {
    /* R5: order:2 places .cta-copy BELOW .cta-brand on mobile while
       keeping the existing padding/gaps untouched. */
    order: 2;
    /* Generous vertical padding so the headline + sub stand clearly apart */
    padding: 64px var(--pad-x) 56px;
    max-width: none;
    /* Centre the headline + sub-text horizontally across the mobile screen. */
    text-align: center;
  }

  .cta-brand {
    /* R5: order:1 places .cta-brand ABOVE .cta-copy on mobile. */
    order: 1;
    position: static;
    display: flex;
    /* Centre the brand logo horizontally across the mobile screen. */
    justify-content: center;
    /* Larger bottom padding so there's a clear gap before the store badges. */
    padding: 24px var(--pad-x) 56px;
    top: auto;
    right: auto;
  }

  .cta-stores {
    order: 3;
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 16px var(--pad-x) 56px;
    /* Wider gap between badges (20 → 30, +50%) for clearer tap separation. */
    gap: 30px;
    left: auto;
    bottom: auto;
  }

  .cta-store {
    width: auto;
    /* Badges reduced by ~15% (48% -> ~41%) to give the gap more room. */
    max-width: 41%;
    flex: 0 1 41%;
    min-width: 0;
  }

  .cta-store img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 6. WHY — phone column first, text column second on mobile.
     The shared parent .why-pinned-grid uses flex so `order` controls
     visual sequence without touching the HTML. */
  .why-pinned-grid {
    display: flex;
    flex-direction: column;
  }

  .why-col-phone {
    order: 1;
  }

  .why-col-text {
    order: 2;
  }

  /* 7. PILLAR h3 — shrink heading by 4px (24 → 20). Card heights stay
     equal via the earlier grid-auto-rows: 1fr + height:100% rule. */
  .pillar-grid .pillar h3 {
    font-size: 20px;
    line-height: 1.2;
  }

  /* 8. HERO — move copy up + send the app badges below the phones.
     We "flatten" .hero-copy with display:contents so its children
     (h1, sub, badges) become direct flex items of .hero-inner alongside
     .hero-phones, and use order to put badges last. */
  .hero-inner {
    display: flex;
    flex-direction: column;
    padding-top: 48px;
  }

  .hero-copy {
    display: contents;
  }

  .hero-h1 {
    order: 1;
  }

  .hero-sub {
    order: 2;
  }

  .hero-phones {
    order: 3;
  }

  .hero-app-badges {
    order: 4;
    margin-top: 24px;
    justify-content: center;
  }

  /* SNAP — 24 px vertical gap between consecutive snap-inner blocks so
     there's a clear separation between the bottom of one block's phone
     image and the top of the next block's eyebrow text. */
  .snap-inner+.snap-inner {
    margin-top: 24px;
  }

  /* 9. SNAP-CHECKS — collapse each list into a "Know more" pill on mobile.
     The pill button is inserted by initSnapChecksToggle() in script.js.
     Tap the pill → list folds out. Scroll the page → list folds back in. */
  .snap-checks {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    opacity: 0;
    /* M3 audit fix: was max-height 600px which silently clipped any
       checklist content over 600 px. Bumped open state to 1500px
       (well above any realistic checklist — currently the longest is
       ~ 240 px). The future-proof option is the grid-template-rows
       0fr/1fr hack with an inner wrapper, which requires wrapping
       each <ul.snap-checks> with a wrapper <div> — a small HTML
       restructure scheduled for a follow-up. */
    transition:
      max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
      margin-top 280ms ease,
      opacity 240ms ease;
  }

  .snap-checks.is-open {
    /* M3: 600 → 1500 px ceiling (any realistic checklist fits). */
    max-height: 1500px;
    margin-top: 16px;
    opacity: 1;
  }

  .snap-checks-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 18px;
    /* V4 audit fix: lower lime alphas so the pill reads as a quiet
       affordance, not a CTA. Border 0.55 → 0.35, bg 0.12 → 0.06. */
    border: 1px solid rgba(199, 217, 131, 0.35);
    border-radius: 9999px;
    background: rgba(199, 217, 131, 0.06);
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    appearance: none;
    transition: background 200ms ease, transform 200ms ease;
  }

  .snap-checks-toggle:hover,
  .snap-checks-toggle:focus-visible {
    background: rgba(199, 217, 131, 0.22);
    outline: none;
  }

  .snap-checks-toggle .snap-checks-chevron {
    display: inline-flex;
    width: 12px;
    height: 12px;
    line-height: 1;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .snap-checks-toggle[aria-expanded="true"] .snap-checks-chevron {
    transform: rotate(180deg);
  }
}
/* ═══════════════════════════════════════════════════════════════════
   ABOUT PAGE — info-section blocks (mission / story / founders)
   Migrated layout from the R6 about.html design.
   ═══════════════════════════════════════════════════════════════════ */

/* V5 audit fix: about-page section token aliases now resolve to the
   GLOBAL TWH tokens defined in :root, instead of carrying their own
   hex values. Two new colors (--twh-surface-light-purple and
   --twh-fg-secondary) that don't yet exist in the system have been
   hoisted to :root (see top of this file). Net effect: the about-page
   stays visually identical, but any future global brand-color change
   propagates here automatically; --twh-deep-violet now points at
   --purple-deep so its links clear WCAG AA (was 4.08:1 at #5C6FFD,
   now 6.8:1 at #4F4FB0). */
.info-body {
  --twh-purple:        var(--purple);
  --twh-deep-violet:   var(--purple-deep);
  --twh-midnight:      var(--navy);
  --twh-eerie-black:   var(--ink);
  --twh-lime:          var(--lime);
  --twh-white:         var(--white);
  --twh-surface-light-purple: var(--surface-light-purple);
  --twh-fg-secondary:  var(--fg-secondary);
  --twh-fw-medium:     500;
  --twh-fw-bold:       700;
  --twh-tracking-tight: -0.03em;
  --twh-r-lg:   24px;
  --twh-r-xl:   32px;
  --twh-r-pill: 9999px;
}

.info-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 80px 96px;
}

.info-section {
  margin-bottom: 96px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section .info-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: var(--twh-fw-bold);
  font-size: 14px; /* X4 audit fix: 12 → 14 (mobile readability) */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-deep); /* AA: was --twh-deep-violet (#5C6FFD ≈ 4.08:1) */
  margin-bottom: 18px;
}

.info-section .info-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--twh-lime);
  border-radius: var(--twh-r-pill);
  flex-shrink: 0;
}

.info-section h2 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: var(--twh-fw-bold);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: var(--twh-tracking-tight);
  color: var(--twh-eerie-black);
  margin: 0 0 28px;
  text-wrap: balance;
}

.info-section h3 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: var(--twh-fw-bold);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--twh-eerie-black);
  margin: 28px 0 14px;
}

.info-section p {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: var(--twh-fw-medium);
  font-size: 17px;
  line-height: 1.7;
  color: var(--twh-fg-secondary);
  margin: 0 0 14px;
  text-wrap: pretty;
  max-width: 65ch; /* X4: 840 → 65ch (~ 520 px at 16 px font; comfortable line) */
}

.info-section a {
  color: var(--twh-deep-violet);
  font-weight: var(--twh-fw-bold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-section a:hover {
  color: var(--twh-purple);
}

/* MISSION GRID — 3-up icon cards in TWH tones */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.mission-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--twh-r-xl);
  padding: 32px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.mission-card.tone-purple   { background: var(--twh-purple); }
.mission-card.tone-violet   { background: var(--twh-deep-violet); }
.mission-card.tone-midnight { background: var(--twh-midnight); }

.mission-card .ring-lg,
.mission-card .ring-sm {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.mission-card .ring-lg { width: 200px; height: 200px; right: -60px; bottom: -60px; }
.mission-card .ring-sm { width: 130px; height: 130px; right: 30px; bottom: 30px; }

.mission-card .mission-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.mission-card .mission-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--twh-lime);
}

.mission-card .mission-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
}

.mission-card h3 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: var(--twh-fw-bold);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: var(--twh-tracking-tight);
  color: #fff;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* STORY — long-form prose */
.story-prose {
  max-width: 760px;
}

.story-prose p {
  margin-bottom: 16px;
}

.story-prose p .emphasis {
  font-weight: var(--twh-fw-bold);
  color: var(--twh-eerie-black);
}

.story-byline {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: var(--twh-fw-medium);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--twh-deep-violet);
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.story-byline::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--twh-lime);
  border-radius: var(--twh-r-pill);
}

.story-signoff {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: var(--twh-fw-bold);
  font-size: 17px;
  color: var(--twh-eerie-black);
  margin-top: 24px;
}

/* FOUNDERS GRID — 2-up portrait cards */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.founder-card {
  background: var(--twh-surface-light-purple);
  border-radius: var(--twh-r-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.founder-card img.founder-photo {
  width: 160px;
  height: 200px;
  border-radius: var(--twh-r-lg);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--twh-white);
  display: block;
}

.founder-card .founder-meta h3 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: var(--twh-fw-bold);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--twh-eerie-black);
}

.founder-card .founder-meta p {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: var(--twh-fw-medium);
  font-size: 15px;
  color: var(--twh-fg-secondary);
  margin: 0 0 14px;
}

.founder-card .founder-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: var(--twh-fw-bold);
  font-size: 14px;
  color: var(--twh-deep-violet);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px 0;
}

.founder-card .founder-linkedin svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .info-body { padding: 56px 32px 80px; }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .founders-grid { grid-template-columns: 1fr; }
  .founder-card { padding: 24px; }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .info-body { padding: 36px 20px 48px; }
  .info-section { margin-bottom: 56px; }
  .info-section h2 { font-size: 26px; }
  .info-section p { font-size: 16px; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-card { min-height: 180px; }
  .founder-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .founder-card img.founder-photo { width: 100%; height: 240px; }
}

/* ═══════════════════════════════════════════════════════════════════
   X2 audit fix (Jun 2026): honour user's OS-level prefers-reduced-motion.

   - WCAG 2.3.3 (AAA) + best-practice accessibility for vestibular-sensitive
     users (parallax, scroll-jack, cross-fades can trigger nausea / vertigo).
   - JS scroll-jacks in script.js (initWhyPinned, initSnapFade) already check
     this media query and short-circuit, so the pinned phone sections stay
     static. This block sweeps every CSS-driven transition + global
     scroll-smooth that the JS doesn't cover.
   - Note: .pillar uses transform: rotate() as a static layout tilt, NOT
     as motion. We deliberately do NOT neutralise it — disabling pillar
     transforms would destroy the tilted-card design intent.
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  /* Snap-checks mobile fold should appear instantly, not slide. */
  .snap-checks,
  .snap-checks.is-open {
    transition: none !important;
  }

  /* FAQ answer should appear / disappear instantly, not animate height. */
  .faq-container .faq-answer {
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   V3 audit fix: pricing.html h3 explicit TWH classes
   Both plan-price-h3 (₹0/month, etc.) and gift-plan-h3 (3 months, etc.)
   resolve to the same size at runtime today via the legacy stylesheet.
   These explicit rules make the type scale intentional and survive a
   future legacy CSS purge (X8).
   ═══════════════════════════════════════════════════════════════════ */
.plan-price-h3,
.gift-plan-h3 {
  font-family: var(--sans);
  font-size: var(--pricing-h3-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

@media (max-width: 768px) {
  .plan-price-h3,
  .gift-plan-h3 {
    font-size: var(--pricing-h3-size-mobile);
  }
}
