/* ================================================================
   TENKAN V4 — App Landing Page (Figma-template style)
   Light/white design, bold typography, phone + circles aesthetic
   ================================================================ */

/* Plus Jakarta Sans loaded via <link> in <head> for faster first paint */

/* ----------------------------------------------------------------
   1. TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg:       #FFFFFF;
  --bg-soft:  #F8F9FC;
  --bg-alt:   #F2F4F8;

  /* Text */
  --ink:      #101828;
  --ink-2:    #344054;
  --body:     #667085;
  --muted:    #6F7B93; /* darkened 2026-07-12 for WCAG AA on small text */

  /* Brand */
  --primary:       #5864FF;
  --primary-dark:  #3F4AE8;
  --primary-light: #F0F1FF;
  --primary-mid:   rgba(88,100,255,0.12);
  --primary-ring:  rgba(88,100,255,0.14);

  /* Accents */
  --gold:          #F5A623;
  --gold-light:    #FFF8EC;
  --gold-ring:     rgba(245,166,35,0.20);
  --lavender:      #C5BAFD;

  /* Border / shadow */
  --border:    #E4E7EC;
  --border-2:  #D0D5DD;
  --shadow-sm: 0 1px 3px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);
  --shadow-md: 0 4px 16px rgba(16,24,40,0.08), 0 2px 6px rgba(16,24,40,0.04);
  --shadow-lg: 0 12px 40px rgba(16,24,40,0.10), 0 4px 12px rgba(16,24,40,0.06);

  /* Fonts */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  48px;
  --s6:  64px;
  --s7:  80px;
  --s8:  112px;

  /* Section rhythm */
  --sy:    clamp(48px, 6vw, 80px);
  --sy-sm: clamp(36px, 4vw, 56px);

  /* Containers */
  --w:    1240px;
  --w-md: 960px;
  --w-sm: 720px;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Ease */
  --ease: cubic-bezier(0.25,0.10,0.25,1.00);
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul, ol { list-style: none; }
input, textarea { font-family: var(--font); }

/* ----------------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------------- */
.h-display {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.10;
  color: var(--ink);
}
.h-xl {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.h-lg {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.20;
  color: var(--ink);
}
.h-md {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.014em;
  line-height: 1.30;
  color: var(--ink);
}
.body-lg {
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 400;
  line-height: 1.70;
  color: var(--body);
}
.body-md {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
}
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.label--muted { color: var(--muted); }

/* ----------------------------------------------------------------
   4. LAYOUT
   ---------------------------------------------------------------- */
.wrap      { width: 100%; max-width: var(--w);    margin: 0 auto; padding: 0 var(--s4); }
.wrap--md  { width: 100%; max-width: var(--w-md); margin: 0 auto; padding: 0 var(--s4); }
.wrap--sm  { width: 100%; max-width: var(--w-sm); margin: 0 auto; padding: 0 var(--s4); }
.section   { padding: var(--sy) 0; }
.section--sm { padding: var(--sy-sm) 0; }

/* ----------------------------------------------------------------
   5. PRELOADER
   ---------------------------------------------------------------- */
.v4-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.v4-loader.done { opacity: 0; visibility: hidden; }
.v4-loader__spin {
  width: 28px; height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin4 0.8s linear infinite;
}
@keyframes spin4 { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------
   6. SCROLL REVEAL — soft rise (product page presence)
   ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

.sr4 {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.sr4.on { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: 0.06s; }
[data-d="2"] { transition-delay: 0.12s; }
[data-d="3"] { transition-delay: 0.18s; }
[data-d="4"] { transition-delay: 0.24s; }
[data-d="5"] { transition-delay: 0.30s; }
[data-d="6"] { transition-delay: 0.36s; }
[data-d="7"] { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .sr4 { transform: none; transition: opacity 0.3s ease; }
  [data-d="1"], [data-d="2"], [data-d="3"], [data-d="4"],
  [data-d="5"], [data-d="6"], [data-d="7"] { transition-delay: 0s; }
}

/* ----------------------------------------------------------------
   7. BUTTONS
   ---------------------------------------------------------------- */
.btn4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  line-height: 1;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn4--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn4--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88,100,255,0.30);
}
.btn4--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-2);
}
.btn4--outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
.btn4--dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn4--dark:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn4--ghost {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.btn4--ghost:hover {
  background: rgba(255,255,255,0.18);
}

/* Video link (secondary CTA) */
.video-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s var(--ease);
}
.video-link:hover { gap: 14px; }
.video-link__play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1.5px solid rgba(88,100,255,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.video-link:hover .video-link__play {
  background: var(--primary-mid);
  transform: scale(1.08);
}
.video-link__play svg { width: 14px; height: 14px; fill: var(--primary); margin-left: 2px; }

/* Store badges */
.store-row4 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.store-btn4 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--ink);
  border-radius: var(--r-md);
  color: #fff;
  border: 2px solid var(--ink);
  transition: all 0.22s var(--ease);
  line-height: 1;
}
.store-btn4:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.store-btn4 svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-btn4__sub  { display: block; font-size: 9.5px; font-weight: 500; opacity: 0.6; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
.store-btn4__name { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.store-btn4__sep  { display: block; width: 1px; height: 28px; background: rgba(255,255,255,0.25); flex-shrink: 0; }

/* ----------------------------------------------------------------
   8. NAVBAR
   ---------------------------------------------------------------- */
.v4-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  padding: 0;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s;
}
.v4-nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.v4-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--s4);
}
.v4-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.v4-nav__logo img { height: 30px; width: auto; }

.v4-nav__links { display: flex; align-items: center; gap: var(--s3); }
.v4-nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.18s;
  letter-spacing: -0.01em;
}
.v4-nav__link:hover { color: var(--primary); }
.v4-nav__link.is-active,
.v4-nav__link--active {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(88,100,255,0.35);
}

.v4-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.v4-nav__login {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.18s;
  padding: 10px 16px;
}
.v4-nav__login:hover { color: var(--primary-dark); }

.v4-nav__cta { padding: 10px 20px; font-size: 14px; }

.v4-nav__burger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--r-sm);
}
.v4-nav__burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.22s var(--ease);
}
.v4-nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.v4-nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.v4-nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.v4-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  padding: var(--s4);
  gap: var(--s2);
  border-top: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), visibility 0.25s, transform 0.25s var(--ease);
}
.v4-mobile.open { opacity: 1; visibility: visible; transform: none; }
.v4-mobile__link {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s;
}
.v4-mobile__link:last-of-type { border-bottom: none; }
.v4-mobile__link:hover { color: var(--primary); }

/* ----------------------------------------------------------------
   9. HERO — single-viewport product composition
   ---------------------------------------------------------------- */
.v4-hero {
  background:
    radial-gradient(90% 70% at 85% 20%, rgba(197, 186, 253, 0.35) 0%, transparent 55%),
    radial-gradient(70% 60% at 10% 80%, #F1EFFC 0%, transparent 50%),
    linear-gradient(165deg, #FFFFFF 0%, #F8F9FC 48%, #F1EFFC 100%);
  padding-top: 0;
  overflow: clip;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.v4-hero--product {
  padding-bottom: 0;
  height: 100svh;
  min-height: 100svh;
}
.v4-hero__main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding-top: 88px;
  min-height: 0;
}
.v4-hero__frame {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  width: 100%;
  padding-top: clamp(8px, 1.5vw, 20px);
  padding-bottom: clamp(16px, 2.5vw, 28px);
}
.v4-hero__copy {
  max-width: 560px;
  margin: 0;
  text-align: left;
  padding: 0;
}
.v4-hero__brand {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 8px;
}
.v4-hero__label { margin-bottom: 10px; }
.v4-hero__h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.8vw, 48px);
  text-wrap: balance;
}
.v4-hero__sub {
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  max-width: 460px;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.v4-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}
.v4-hero__note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 420px;
  margin: 0;
}
.v4-hero__note a { color: var(--primary); }
.v4-hero__note strong { color: var(--ink); font-weight: 700; }
.v4-hero__note .v4-hero__save { color: var(--primary); font-weight: 700; white-space: nowrap; }

/* Bottom strip — closes the first viewport */
.v4-hero__strip {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(228, 231, 236, 0.95);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
}
.v4-hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
}
.v4-hero__meta li {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
}
.v4-hero__meta li:not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: var(--lavender);
  font-weight: 700;
}

.v4-hero__media {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
}
.v4-hero__glow {
  position: absolute;
  inset: 8% 6% 12% 6%;
  background: radial-gradient(circle at 50% 45%, rgba(88, 100, 255, 0.18), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}
.v4-hero__media img {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  display: block;
  filter: drop-shadow(0 32px 48px rgba(16, 24, 40, 0.18));
  transform: none;
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .v4-hero__media img { animation: none; }
}

/* Legacy selectors kept inert on home product hero only */
.v4-hero--product .v4-hero__stage { display: none; }

/* Classic split hero (tenkanapp + older pages) */
.v4-hero:not(.v4-hero--product) {
  min-height: auto;
  align-items: stretch;
  padding: 120px 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(80% 70% at 90% 20%, rgba(197, 186, 253, 0.28) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.v4-hero:not(.v4-hero--product) .v4-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.v4-hero:not(.v4-hero--product) .v4-hero__text { max-width: 540px; }
.v4-hero:not(.v4-hero--product) .v4-hero__h1 { font-size: clamp(36px, 4.5vw, 56px); }
.v4-hero:not(.v4-hero--product) .v4-hero__sub {
  margin: 0 0 28px;
  max-width: 480px;
}
.v4-hero:not(.v4-hero--product) .v4-hero__ctas { justify-content: flex-start; }
.v4-hero:not(.v4-hero--product) .v4-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.v4-hero:not(.v4-hero--product) .v4-hero__blob {
  position: absolute;
  width: min(90%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #F1EFFC, rgba(197, 186, 253, 0.35));
  filter: blur(2px);
}
.v4-hero:not(.v4-hero--product) .v4-hero__rings {
  position: absolute;
  inset: 10% 12%;
  pointer-events: none;
}
.v4-hero:not(.v4-hero--product) .v4-hero__ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(88, 100, 255, 0.16);
  border-radius: 50%;
}
.v4-hero:not(.v4-hero--product) .v4-hero__ring:nth-child(2) { inset: 10%; }
.v4-hero:not(.v4-hero--product) .v4-hero__ring:nth-child(3) { inset: 20%; }
.v4-hero:not(.v4-hero--product) .v4-hero__phones-img {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
}
.v4-hero:not(.v4-hero--product) .v4-hero__phones-img img {
  width: 100%;
  filter: drop-shadow(0 28px 48px rgba(16, 24, 40, 0.16));
}
@media (max-width: 960px) {
  .v4-hero:not(.v4-hero--product) .v4-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .v4-hero:not(.v4-hero--product) .v4-hero__text { margin: 0 auto; }
  .v4-hero:not(.v4-hero--product) .v4-hero__sub { margin-left: auto; margin-right: auto; }
  .v4-hero:not(.v4-hero--product) .v4-hero__ctas { justify-content: center; }
}

/* Classic trust strip (tenkanapp) */
.v4-trust:not(.v4-trust--inline) {
  background: var(--bg);
  border-top: 1px solid transparent;
  padding: 18px 0 28px;
}
.v4-trust:not(.v4-trust--inline) .v4-trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 8px;
}
.v4-trust:not(.v4-trust--inline) .v4-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.v4-trust:not(.v4-trust--inline) .v4-trust__item svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
}
.v4-trust:not(.v4-trust--inline) .v4-trust__dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lavender);
  margin: 0 10px;
}

@media (max-width: 960px) {
  .v4-hero--product {
    height: auto;
    min-height: 100svh;
  }
  .v4-hero__main { align-items: flex-start; padding-top: 96px; }
  .v4-hero__frame {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .v4-hero__copy {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }
  .v4-hero__sub { margin-left: auto; margin-right: auto; }
  .v4-hero__ctas { justify-content: center; }
  .v4-hero__note { margin: 0 auto; text-align: center; }
  .v4-hero__media img { width: min(100%, 380px); }
  .v4-hero__strip { padding: 12px 0; }
  .v4-hero__meta {
    justify-content: center;
    row-gap: 6px;
  }
  .v4-hero__meta li:not(:last-child)::after { margin: 0 10px; }
}

/* ----------------------------------------------------------------
   10. TRUST BAR — open inline strip
   ---------------------------------------------------------------- */
.v4-trust,
.v4-story,
.v4-app,
.v4-tools,
.v4-ai,
.v4-how,
.v4-cta,
.v4-contact,
.v4-footer,
.v4-features-group {
  overflow-x: clip;
}

.v4-trust {
  background: transparent;
  border: none;
  padding: 22px 0 8px;
}
.v4-trust--inline .v4-trust__inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.v4-trust--inline .v4-trust__inline li {
  position: relative;
}
.v4-trust--inline .v4-trust__inline li + li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lavender);
  transform: translateY(-50%);
}
.v4-trust__grid,
.v4-trust__cell,
.v4-trust__inner,
.v4-trust__item,
.v4-trust__dot { display: none; }
.v4-trust--inline .v4-trust__inline { display: flex; }

/* ----------------------------------------------------------------
   11. SECTION HEADER (reusable centered)
   ---------------------------------------------------------------- */
.sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s5);
}
.sec-head .label { margin-bottom: var(--s2); }
.sec-head .h-xl  { margin-bottom: var(--s3); }
.sec-head .body-lg { max-width: 520px; margin: 0 auto; }

/* ----------------------------------------------------------------
   12. FEATURES GROUP wrapper
   App in Action + AI Insights + Practice Tools share one visual band.
   ---------------------------------------------------------------- */
.v4-features-group {
  background:
    radial-gradient(80% 50% at 50% 0%, #F1EFFC 0%, transparent 60%),
    var(--bg);
  border: none;
}
/* Let individual sections inherit the group background */
.v4-features-group .v4-app,
.v4-features-group .v4-ai  { background: transparent; }
.v4-features-group .v4-tools { background: var(--bg-alt); }

/* ----------------------------------------------------------------
   FEATURES / APP IN ACTION (#about)
   ---------------------------------------------------------------- */
.v4-app {
  background: var(--bg);
  padding: var(--sy-sm) 0;
}
.v4-app--alt { background: var(--bg-soft); }
.v4-app__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

/* Stacked features narrative: phone on top, accordion below */
.v4-app--stack .v4-app__inner {
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
  gap: clamp(28px, 4vw, 48px);
}
.v4-app--stack .v4-phone-wrap {
  min-height: 520px;
}
.v4-app--stack .v4-acc-col {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* Phone side with decorative dashed rings */
.v4-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}
.v4-phone-wrap__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.v4-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.v4-ring--solid { border-color: var(--primary-ring); }
.v4-ring--dashed { border-style: dashed; border-color: rgba(88,100,255,0.22); }
.v4-ring--gold-solid  { border-color: var(--gold-ring); }
.v4-ring--gold-dashed { border-style: dashed; border-color: rgba(245,166,35,0.25); }
.v4-ring-sm  { width: 340px; height: 340px; }
.v4-ring-md  { width: 460px; height: 460px; }
.v4-ring-lg  { width: 580px; height: 580px; }

.v4-phone-wrap__img {
  position: relative;
  z-index: 2;
  width: 260px;
  flex-shrink: 0;
}
.v4-phone-wrap__img img {
  width: 100%;
  filter: drop-shadow(0 20px 56px rgba(16,24,40,0.18));
  border-radius: 32px;
}

/* phonescroll widget inside phone wrap */
.v4-phone-wrap #iphone-scroll-widget {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 56px rgba(16,24,40,0.18));
}
.v4-phone-wrap .iphone-container { border-color: #181818 !important; }

/* Accordion right column — fixed height prevents sections below from jumping */
.v4-acc-col { min-height: 880px; }

/* Feature accordion */
.v4-accordion { display: flex; flex-direction: column; }

.v4-acc-item {
  border-left: 3px solid var(--border);
  padding: var(--s3) 0 var(--s3) var(--s4);
  transition: border-color 0.25s var(--ease);
  cursor: pointer;
}
.v4-acc-item + .v4-acc-item { margin-top: var(--s3); }
.v4-acc-item.is-active { border-left-color: var(--primary); }
.v4-acc-item.is-active .v4-acc-item__title { color: var(--ink); }

.v4-acc-item__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.012em;
  line-height: 1.35;
  transition: color 0.2s;
  user-select: none;
}
.v4-acc-item__title:hover { color: var(--ink); }

.v4-acc-item__body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin-top 0.3s;
  opacity: 0;
  margin-top: 0;
}
.v4-acc-item.is-active .v4-acc-item__body {
  max-height: 200px;
  opacity: 1;
  margin-top: var(--s2);
}

.v4-acc-content { display: flex; flex-direction: column; gap: var(--s2); }
.v4-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}
.v4-acc-chevron {
  width: 20px; height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), color 0.2s;
}
.v4-acc-item.is-active .v4-acc-chevron { transform: rotate(180deg); color: var(--primary); }

/* ----------------------------------------------------------------
   13. WHY TENKAN / PILLARS (#features)
   ---------------------------------------------------------------- */
/* ----------------------------------------------------------------
   13. WHY TENKAN — Scroll Story (#features)
   ---------------------------------------------------------------- */

/* ---- Intro panel — sticky base card (z-index 0, cards slide over it) ---- */
.v4-story__intro {
  position: sticky;
  top: 72px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  padding: var(--sy-sm) 0 clamp(40px, 5vw, 60px);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 48px rgba(16,24,40,0.06);
}

.v4-story__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.v4-story__orb--1 {
  width: 560px; height: 560px;
  top: -140px; left: -180px;
  background: radial-gradient(circle at 40% 40%, rgba(88,100,255,0.09), transparent 65%);
}
.v4-story__orb--2 {
  width: 440px; height: 440px;
  bottom: -100px; right: -120px;
  background: radial-gradient(circle at 55% 55%, rgba(197,186,253,0.14), transparent 65%);
}
.v4-story__orb--3 {
  width: 300px; height: 300px;
  top: 38%; left: 52%;
  background: radial-gradient(circle at 50% 50%, rgba(88,100,255,0.05), transparent 70%);
}

.v4-story__intro-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
  padding: 0 var(--s4) var(--s4);
  width: 100%;
}

/* Bridge lines pinned to bottom of the merged intro panel */
.v4-story__intro-bridge {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--s4);
}

.v4-story__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s3);
}

.v4-story__intro-h2 {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.026em;
  line-height: 1.10;
  color: var(--ink);
  margin-bottom: var(--s4);
}

.v4-story__intro-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.70;
  color: var(--body);
  max-width: 480px;
  margin: 0 auto var(--s4);
}

/* ---- Bridge lines (inside merged intro panel) ---- */
.v4-story__bridge-line {
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.40;
  color: var(--ink-2);
}
.v4-story__bridge-line--dim {
  color: var(--muted);
}

/* ---- Stacked cards ---- */
.v4-story-stack {
  /* wrapper — natural height from stacked cards */
}

.v4-stack-card {
  position: sticky;
  top: 72px;
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 48px rgba(16,24,40,0.08);
  overflow: hidden;
  transform-origin: top center;
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.25,0.10,0.25,1);
}

/* Section label bar — ties each card back to Why Tenkan */
.v4-stack-card::before {
  content: 'WHY TENKAN';
  display: block;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  opacity: 0.55;
  padding: 14px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
}
/* Increment z-index so each card sits on top of the previous */
.v4-stack-card:nth-child(1) { z-index: 1; }
.v4-stack-card:nth-child(2) { z-index: 2; background: var(--bg-soft); }
.v4-stack-card:nth-child(3) { z-index: 3; }
.v4-stack-card:nth-child(4) { z-index: 4; background: var(--bg-soft); }
.v4-stack-card:nth-child(5) { z-index: 5; background: var(--primary-light); }

.v4-stack-card__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  width: 100%;
  flex: 1;
  padding: clamp(32px, 5vh, 56px) clamp(24px, 5vw, 80px);
}
.v4-stack-card__inner--flip {
  direction: rtl;
}
.v4-stack-card__inner--flip > * {
  direction: ltr;
}

.v4-stack-card__count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--muted);
  margin-bottom: var(--s3);
}
.v4-stack-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.v4-stack-card__statement {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.026em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: var(--s3);
}
.v4-stack-card__body {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.74;
  color: var(--body);
  max-width: 380px;
}
.v4-stack-card__support {
  font-size: clamp(14px, 1.35vw, 15px);
  line-height: 1.72;
  color: var(--muted);
  max-width: 380px;
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--border);
}

/* ---- Visual column ---- */
.v4-stack-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

/* Journal cards */
.v4-story__vis--journal {
  position: relative;
  width: 280px;
  height: 220px;
}
.v4-story__vis-card {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  max-width: 200px;
}
.v4-story__vis-card--1 {
  top: 0; left: 0;
  animation: sfloat1 6s ease-in-out infinite;
}
.v4-story__vis-card--2 {
  top: 72px; right: 0;
  background: var(--primary-light);
  border-color: rgba(88,100,255,0.14);
  color: var(--primary-dark);
  animation: sfloat2 7.5s ease-in-out infinite;
}
.v4-story__vis-card--3 {
  bottom: 0; left: 24px;
  animation: sfloat3 8.5s ease-in-out infinite;
}

/* Dots */
.v4-story__vis--dots svg {
  width: 240px;
  height: 200px;
  animation: sfloat1 9s ease-in-out infinite;
}

/* Clock */
.v4-story__vis--time {
  animation: sfloat2 11s ease-in-out infinite;
}
.v4-story__vis--time svg {
  width: 180px;
  height: 180px;
}

/* Ripple */
.v4-story__vis--ripple {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v4-story__ripple {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(88,100,255,0.22);
  animation: sripple 4.2s ease-out infinite;
}
.v4-story__ripple--1 { width: 56px;  height: 56px;  animation-delay: 0s; }
.v4-story__ripple--2 { width: 110px; height: 110px; animation-delay: 0.9s; }
.v4-story__ripple--3 { width: 174px; height: 174px; animation-delay: 1.8s; }
.v4-story__ripple-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
  z-index: 2;
}

/* Calm orbs */
.v4-story__vis--calm {
  position: relative;
  width: 260px;
  height: 220px;
}
.v4-story__calm-orb {
  position: absolute;
  border-radius: 50%;
}
.v4-story__calm-orb--1 {
  width: 200px; height: 200px;
  top: 10px; left: 10px;
  background: radial-gradient(circle, rgba(88,100,255,0.10), transparent 70%);
  animation: sfloat1 10s ease-in-out infinite;
}
.v4-story__calm-orb--2 {
  width: 130px; height: 130px;
  bottom: 10px; right: 16px;
  background: radial-gradient(circle, rgba(197,186,253,0.18), transparent 70%);
  animation: sfloat3 13s ease-in-out infinite;
}

/* ---- Closing panel ---- */
.v4-story__close {
  position: sticky;
  top: 72px;
  z-index: 6;
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 48px rgba(16,24,40,0.08);
  transform-origin: top center;
  will-change: transform;
}
.v4-story__orb--c1 {
  width: 640px; height: 640px;
  top: -160px; right: -220px;
  background: radial-gradient(circle at 50% 50%, rgba(88,100,255,0.07), transparent 62%);
}
.v4-story__orb--c2 {
  width: 380px; height: 380px;
  bottom: -90px; left: -100px;
  background: radial-gradient(circle at 50% 50%, rgba(197,186,253,0.11), transparent 62%);
}

.v4-story__close-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: var(--s5) var(--s4);
  position: relative;
  z-index: 2;
}

.v4-story__close-h2 {
  font-size: clamp(30px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: var(--s5);
}

.v4-story__close-cta {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  flex-wrap: wrap;
}

/* ---- Keyframes ---- */
@keyframes sfloat1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes sfloat2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes sfloat3 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes sripple {
  0%   { opacity: 0.65; transform: scale(0.80); }
  100% { opacity: 0;    transform: scale(1.22); }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .v4-story__vis-card,
  .v4-story__vis--dots svg,
  .v4-story__vis--time,
  .v4-story__ripple,
  .v4-story__calm-orb--1,
  .v4-story__calm-orb--2,
  .v4-why__vis svg { animation: none !important; }
}

/* ---- Mobile ---- */
@media (max-width: 860px) {
  /* Disable sticky stack — cards become normal scroll sections */
  .v4-stack-root,
  .v4-stack-card,
  .v4-story__close {
    position: relative !important;
    top: auto !important;
    min-height: auto;
    box-shadow: none;
    border-radius: var(--r-xl);
    transform: none !important;
    will-change: auto;
    margin-bottom: var(--s2);
  }

  /* Hide "WHY TENKAN" bar — too much repeated overhead on mobile */
  .v4-stack-card::before { display: none; }

  /* Intro panel */
  .v4-stack-root {
    border-radius: var(--r-xl);
    padding: var(--sy-sm) var(--s4);
    text-align: center;
  }
  .v4-story__intro-inner { padding: 0 0 var(--s3); }
  .v4-story__intro-bridge { padding: 0; }
  .v4-story__bridge-line { font-size: clamp(16px, 4vw, 22px); }

  /* Story cards */
  .v4-stack-card__inner {
    grid-template-columns: 1fr;
    gap: var(--s3);
    padding: var(--s4);
  }
  .v4-stack-card__inner--flip { direction: ltr; }
  .v4-stack-card__visual { order: -1; min-height: 140px; }
  .v4-stack-card__statement { font-size: clamp(32px, 8vw, 48px); }
  .v4-stack-card__body { max-width: 100%; }

  /* Close panel */
  .v4-story__close {
    padding: var(--sy-sm) var(--s4);
    min-height: auto;
  }
  .v4-story__close-inner {
    padding: 0;
    text-align: center;
  }

  /* Remove z-index overrides — not needed without stacking */
  .v4-stack-card:nth-child(1),
  .v4-stack-card:nth-child(2),
  .v4-stack-card:nth-child(3),
  .v4-stack-card:nth-child(4),
  .v4-stack-card:nth-child(5) { z-index: auto; }
}

/* ----------------------------------------------------------------
   14. PRACTICE TOOLS (#tools-gallery) — dark tab layout
   ---------------------------------------------------------------- */
.v4-tools {
  background: var(--bg-alt);
  padding: var(--sy-sm) 0;
}

/* Left-aligned two-tone heading */
.v4-tools__head { max-width: 640px; margin-bottom: var(--s5); }
.v4-tools__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s3);
}
.v4-tools__h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.10;
  color: var(--muted);
  margin-bottom: var(--s3);
}
.v4-tools__h2 span { color: var(--ink); display: block; }
.v4-tools__sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  max-width: 480px;
  margin-bottom: var(--s3);
}

/* "Just added" nudge line */
.v4-tools__update {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.v4-tools__update-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
  flex-shrink: 0;
}

/* "New" badge on tab */
.v4-tools__new {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-ring);
  border-radius: var(--r-pill);
  padding: 1px 6px;
  line-height: 1.6;
  vertical-align: middle;
  margin-left: 5px;
  position: relative;
  top: -1px;
}

/* Tab nav row */
.v4-tools__nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s4);
}
.v4-tools__tabs {
  display: flex;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.v4-tools__tabs::-webkit-scrollbar { display: none; }
.v4-tools__tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 0 var(--s3) var(--s3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.v4-tools__tab:first-child { padding-left: 0; }
.v4-tools__tab:hover { color: var(--ink-2); }
.v4-tools__tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.v4-tools__arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: var(--s3);
}
.v4-tools__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.v4-tools__arrow:hover {
  background: var(--bg);
  border-color: var(--border-2);
  color: var(--ink);
}
.v4-tools__arrow svg { width: 16px; height: 16px; stroke: currentColor; }

/* Panels */
.v4-tools__panel { display: none; }
.v4-tools__panel.is-active { display: block; animation: toolsFade 0.3s var(--ease); }
@keyframes toolsFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Large tool card */
.v4-tool-big {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s6);
  min-height: 280px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.v4-tool-big:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(88,100,255,0.28);
}
.v4-tool-big__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s3);
}
.v4-tool-big__title {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
}
.v4-tool-big__desc {
  font-size: 16px;
  line-height: 1.70;
  color: var(--body);
  margin-bottom: var(--s4);
}
.v4-tool-big__benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}
.v4-tool-big__benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body);
}
.v4-tool-big__benefit-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid var(--primary-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.v4-tool-big__benefit-dot svg { width: 9px; height: 9px; stroke: var(--primary); }
.v4-tool-big__deco {
  display: flex;
  align-items: center;
  justify-content: center;
}
.v4-tool-big__deco svg { width: 200px; height: 200px; }

@media (max-width: 720px) {
  /* Section head */
  .v4-tools__head { max-width: 100%; margin-bottom: var(--s4); }
  .v4-tools__h2   { font-size: clamp(28px, 7vw, 40px); }

  /* Hide tab nav entirely — replaced by stacked cards below */
  .v4-tools__nav  { display: none; }

  /* Show ALL panels as stacked cards */
  .v4-tools__panel,
  .v4-tools__panel.is-active {
    display: block;
    margin-bottom: var(--s3);
    animation: none;
  }

  /* Tool card — single column, compact */
  .v4-tool-big {
    grid-template-columns: 1fr;
    padding: var(--s4);
    gap: var(--s3);
    min-height: auto;
  }
  .v4-tool-big__deco  { display: none; }
  .v4-tool-big__title { font-size: clamp(20px, 6vw, 28px); }
  .v4-tool-big__desc  { font-size: 15px; margin-bottom: var(--s3); }
  .v4-tool-big__benefit { font-size: 13px; }
}

/* ----------------------------------------------------------------
   15. AI INSIGHTS (#insights)
   ---------------------------------------------------------------- */
.v4-ai {
  background: var(--bg-soft);
  padding: var(--sy) 0;
}
.v4-ai__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

/* Insights: copy band above full-width media */
.v4-ai--stack .v4-ai__inner {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
  gap: clamp(28px, 4vw, 48px);
  text-align: center;
}
.v4-ai--stack .v4-ai__list {
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.v4-ai--stack .v4-ai__img {
  max-width: 420px;
  margin: 0 auto;
}
.v4-ai__label { margin-bottom: var(--s3); }
.v4-ai__h2 { margin-bottom: var(--s3); }
.v4-ai__lead { margin-bottom: var(--s5); }
.v4-ai__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--s5);
}
.v4-ai__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.v4-ai__item-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1.5px solid rgba(88,100,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.v4-ai__item-icon svg { width: 10px; height: 10px; stroke: var(--primary); }
.v4-ai__img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.v4-ai__img img,
.v4-ai__img video {
  width: 100%;
  height: clamp(340px, 40vw, 520px);
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------------------
   16. HOW IT WORKS (#why)
   ---------------------------------------------------------------- */
/* ---- HOW IT WORKS — horizontal scroll-driven track ---- */
.v4-how {
  background: var(--bg);
  border-top: 3px solid var(--primary);
  position: relative;
  height: auto; /* set by JS to exactly pin-height + maxTx */
}
.v4-how__pin {
  position: sticky;
  top: 72px;
  height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.v4-how__hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(28px, 3.5vw, 48px) clamp(24px, 5vw, 80px) 8px;
  gap: var(--s4);
  flex-shrink: 0;
}
.v4-how__hd-text .label    { margin-bottom: var(--s2); }
.v4-how__hd-text .h-xl     { margin-bottom: var(--s2); }
.v4-how__hd-text .body-lg  { margin: 0 0 var(--s2); max-width: 520px; white-space: nowrap; }
.v4-how__tagline {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
  margin: 0;
}
.v4-how__counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.v4-how__counter-cur {
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.v4-how__nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.v4-how__nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  padding: 0;
}
.v4-how__nav-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}
.v4-how__nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.v4-how__track-clip {
  height: 320px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.v4-how__track {
  display: flex;
  gap: clamp(14px, 1.8vw, 22px);
  padding: 12px clamp(24px, 5vw, 80px) 0;
  will-change: transform;
  align-items: stretch;
  position: relative;
}
/* Traversing dotted line — runs through all circle centers */
.v4-how__line-bg,
.v4-how__line-fill {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  right: clamp(24px, 5vw, 80px);
  pointer-events: none;
}
.v4-how__line-bg {
  top: 64px; /* 12px track-pt + 28px card-pt + 24px circle-center */
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--border-2) 0,
    var(--border-2) 5px,
    transparent 5px,
    transparent 13px
  );
  z-index: 0;
}
.v4-how__line-fill {
  top: 63px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  z-index: 1;
}
.v4-step {
  flex: 0 0 clamp(220px, 24vw, 300px);
  background: var(--bg);
  border-radius: 20px;
  padding: 28px 24px 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.v4-step.is-active {
  border-color: rgba(88,100,255,0.35);
  box-shadow: 0 0 0 4px var(--primary-ring), 0 8px 32px rgba(88,100,255,0.08);
}
.v4-step__num {
  width: 48px; height: 48px;
  min-width: 48px; min-height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1.5px solid rgba(88,100,255,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.v4-step.is-active .v4-step__num {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(88,100,255,0.28);
}
.v4-step__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 6px;
  text-align: left;
}
.v4-step__title {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s2);
  line-height: 1.30;
  text-align: left;
  letter-spacing: -0.01em;
}
.v4-step__body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--body);
  text-align: left;
}
.v4-step__list {
  margin: 6px 0 8px 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--body);
  text-align: left;
}
.v4-step__list li + li { margin-top: 2px; }
.v4-step--close {
  background: #5864FF;
  border-color: #5864FF;
  color: #ffffff;
}
.v4-step--close .v4-step__title {
  color: #ffffff;
  opacity: 1;
}
.v4-step--close .v4-step__body {
  color: #ffffff;
}

/* ----------------------------------------------------------------
   18. HOW IT WORKS — why it works strip (inside pin, below cards)
   ---------------------------------------------------------------- */
.v4-how__why {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 2.5vw, 32px) clamp(24px, 5vw, 80px);
  gap: clamp(12px, 1.4vw, 18px);
}
.v4-how__why-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.65;
  margin: 0;
}
.v4-how__why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.v4-how__why-lead {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
}
.v4-how__why-right {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.8vw, 10px);
  border-left: 2px solid var(--border);
  padding-left: clamp(20px, 2.5vw, 32px);
}
.v4-how__why-body {
  font-size: clamp(12px, 1.2vw, 13.5px);
  line-height: 1.68;
  color: var(--body);
  margin: 0;
}
.v4-how__why-close {
  font-size: clamp(13px, 1.35vw, 15px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin: clamp(4px, 0.5vw, 6px) 0 0;
}

/* ----------------------------------------------------------------
   19. DOWNLOAD CTA
   ---------------------------------------------------------------- */
.v4-cta {
  background: var(--primary);
  padding: var(--sy) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.v4-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.v4-cta__label { color: rgba(255,255,255,0.65); margin-bottom: var(--s4); }
.v4-cta__h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.10;
  margin-bottom: var(--s3);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Editorial left-aligned CTA band */
.v4-cta--editorial {
  text-align: left;
}
.v4-cta--editorial .wrap {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.v4-cta--editorial .v4-cta__h2 {
  margin-left: 0;
  margin-right: 0;
}
.v4-cta--editorial .v4-cta__sub,
.v4-cta--editorial .v4-cta__note {
  margin-left: 0;
  margin-right: 0;
  max-width: 520px;
}
.v4-cta--editorial .v4-cta__btns {
  justify-content: flex-start;
}
.v4-cta--editorial::before {
  left: 12%;
  transform: none;
}
.v4-cta__sub {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto var(--s6);
}
.v4-cta__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.store-btn4--white {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.store-btn4--white:hover {
  background: #f5f5f5;
  border-color: #f5f5f5;
}
.store-btn4--white .store-btn4__sub { opacity: 0.55; }
.store-btn4--outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.store-btn4--outline-white:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.60);
}
.v4-cta__note {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ----------------------------------------------------------------
   19. CONTACT (#contact)
   ---------------------------------------------------------------- */
.v4-contact {
  background: var(--bg);
  padding: var(--sy) 0;
}
.v4-contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.v4-contact__img {
  position: sticky;
  top: 90px;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.v4-contact__img img {
  width: 100%;
  height: clamp(400px, 50vw, 580px);
  object-fit: cover;
  display: block;
}
.v4-contact__label { margin-bottom: var(--s3); }
.v4-contact__h2 { margin-bottom: var(--s2); font-size: clamp(28px, 3.5vw, 44px); }
.v4-contact__lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: var(--s5);
}

.v4-form { display: flex; flex-direction: column; gap: var(--s3); }
.v4-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.v4-field { display: flex; flex-direction: column; gap: 6px; }
.v4-field label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.v4-field input,
.v4-field textarea {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--ink);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
  -webkit-appearance: none;
}
.v4-field input:focus,
.v4-field textarea:focus {
  background: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-mid);
}
.v4-field textarea { resize: vertical; min-height: 120px; }
.v4-field input::placeholder,
.v4-field textarea::placeholder { color: var(--muted); }

.v4-form__msg { display: none; padding: 14px 16px; border-radius: var(--r-md); font-size: 14px; }
.v4-form__msg--ok  { background: #ECFDF3; border: 1px solid #ABEFC6; color: #067647; }
.v4-form__msg--err { background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; }

/* ----------------------------------------------------------------
   20. FOOTER
   ---------------------------------------------------------------- */
.v4-footer {
  background: var(--ink);
  padding: clamp(56px, 7vw, 96px) 0 var(--s4);
}
.v4-footer__top {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: var(--s4);
}
.v4-footer__brand-logo img { height: 28px; width: auto; margin-bottom: var(--s3); }
.v4-footer__tagline { font-size: 13px; line-height: 1.60; color: rgba(255,255,255,0.45); margin-bottom: var(--s3); }
.v4-footer__powered { font-size: 12px; color: rgba(255,255,255,0.28); }
.v4-footer__powered a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.v4-footer__powered a:hover { color: rgba(255,255,255,0.70); }
.v4-footer__col-head { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.30); margin-bottom: var(--s3); }
.v4-footer__links { display: flex; flex-direction: column; gap: 10px; }
.v4-footer__link { font-size: 14px; color: rgba(255,255,255,0.50); transition: color 0.2s; }
.v4-footer__link:hover { color: rgba(255,255,255,0.80); }
.v4-footer__socials { display: flex; gap: 10px; margin-top: var(--s3); }
.v4-footer__soc {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: all 0.2s;
}
.v4-footer__soc:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.80); }
.v4-footer__soc svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.v4-footer__app-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--s4); }
.v4-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); }
.v4-footer__copy { font-size: 13px; color: rgba(255,255,255,0.28); }
.v4-footer__legal { display: flex; gap: var(--s4); }
.v4-footer__legal a { font-size: 13px; color: rgba(255,255,255,0.28); transition: color 0.2s; }
.v4-footer__legal a:hover { color: rgba(255,255,255,0.55); }
/* Back to top */
.v4-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--ink);
  border: 1px solid var(--border);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: var(--shadow-md);
  transition: background 0.2s, transform 0.2s;
}
.v4-top:hover { background: var(--primary); }
.v4-top svg { width: 16px; height: 16px; stroke: #fff; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  /* how-it-works: handled by JS, no grid override needed */
  .v4-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .v4-app__inner { grid-template-columns: 1fr; }
  .v4-phone-wrap { min-height: 440px; }
  .v4-ring-sm  { width: 260px; height: 260px; }
  .v4-ring-md  { width: 360px; height: 360px; }
  .v4-ring-lg  { width: 460px; height: 460px; }
  .v4-phone-wrap__img { width: 200px; }

  .v4-tools__grid   { grid-template-columns: 1fr 1fr; }
  .v4-ai__inner { grid-template-columns: 1fr; }
  .v4-contact__inner { grid-template-columns: 1fr; }
  .v4-contact__img { display: none; }
  .v4-footer__top { grid-template-columns: 1fr 1fr; }
}

/* Tablet — stack how-it-works, form, accordion before phones get it */
@media (max-width: 768px) {
  /* Remove fixed min-height on feature accordion col */
  .v4-acc-col       { min-height: auto; }
  /* Prevent nowrap text overflowing narrow screens */
  .v4-how__hd-text .body-lg { white-space: normal; }
  /* Stack "How it Works" cards */
  .v4-how           { height: auto; }
  .v4-how__pin      { position: static; height: auto; overflow: visible; }
  .v4-how__hd       { flex-direction: column; align-items: flex-start; padding: var(--sy-sm) clamp(20px, 5vw, 40px) var(--s3); }
  .v4-how__counter  { display: none; }
  .v4-how__nav      { display: none; }
  .v4-how__track-clip { overflow: visible; height: auto; }
  .v4-how__track    { flex-direction: column; padding: 0 clamp(20px, 5vw, 40px); transform: none !important; }
  .v4-step          { flex: none; width: 100%; }
  .v4-how__why      { flex: none; padding: var(--s4) clamp(20px, 5vw, 40px); }
  .v4-how__why-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .v4-how__why-right { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: var(--s3); }
  /* Stack contact form fields */
  .v4-form-row      { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap,
  .wrap--md,
  .wrap--sm { padding: 0 20px; }

  .v4-nav__links,
  .v4-nav__actions { display: none; }
  .v4-nav__burger { display: flex; }
  .v4-mobile { display: flex; }

  /* Raise nav above any page stacking contexts on mobile */
  .v4-nav { z-index: 9000; }
  .v4-mobile { z-index: 8999; }

  /* iOS Safari: remove will-change:transform from all decorative/animated
     elements on mobile. GPU compositing layers (created by will-change or
     CSS animations that animate transform/opacity) inside overflow:hidden
     containers can trap position:fixed elements on iOS Safari, causing the
     nav to scroll with the page instead of staying fixed to the viewport.
     We disable ALL will-change hints and CSS float animations on mobile —
     they are purely decorative and not needed on small screens. */
  .v4-story__orb,
  .v4-story__vis-card,
  .v4-story__ripple,
  .v4-story__ripple-dot,
  .v4-story__calm-orb,
  .v4-how__track,
  .v4-stack-card {
    will-change: auto !important;
    animation: none !important;
  }

  /* Trust bar: 2×2 cells */
  .v4-trust__grid { grid-template-columns: 1fr 1fr; }
  .v4-trust__cell {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .v4-trust__cell:nth-child(2n) { border-right: none; }
  .v4-trust__cell:nth-child(n+3) { border-bottom: none; }

  .v4-tools__grid   { grid-template-columns: 1fr; }
  .v4-footer__top   { grid-template-columns: 1fr; }
  .v4-footer__bottom { flex-direction: column; text-align: center; }
  .v4-cta__btns { flex-direction: column; }
  .v4-cta--editorial .v4-cta__btns { align-items: flex-start; }
  .store-row4 { justify-content: center; }
}

@media (max-width: 440px) {
  .h-display { font-size: 38px; }
  .v4-hero__media img { width: min(100%, 420px); }
  .store-row4 { flex-direction: column; align-items: stretch; }
  .store-btn4 { justify-content: center; }
}

/* ================================================================
   PRODUCT PAGE LAYOUT — open editorial (Yuna-inspired rhythm)
   No bordered box stacks. Soft bands, large type, open air.
   ================================================================ */

/* Why — compact zigzag left / right */
.v4-why--editorial { padding: 0; background: var(--bg); }
.v4-why__intro-band {
  padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 4vw, 40px);
  background:
    radial-gradient(90% 80% at 50% 0%, #F1EFFC 0%, transparent 70%),
    var(--bg);
}
.v4-why__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}
.v4-why__intro-main .label { margin-bottom: 10px; }
.v4-why__intro-main h2 {
  margin-bottom: 12px;
  text-wrap: balance;
  font-size: clamp(28px, 3.4vw, 42px);
}
.v4-why__intro-main .body-lg {
  margin: 0;
  max-width: 34em;
  font-size: clamp(15px, 1.4vw, 17px);
}
.v4-why__bridge {
  margin: 0;
  padding: 20px 0 4px 28px;
  border-left: 2px solid rgba(88, 100, 255, 0.2);
}
.v4-why__bridge p {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
.v4-why__bridge p + p { color: var(--muted); margin-top: 4px; font-weight: 700; }

.v4-why__chapters {
  padding: clamp(12px, 2vw, 24px) 0 clamp(28px, 4vw, 40px);
  background:
    linear-gradient(180deg, transparent 0%, #F8F9FC 12%, #F1EFFC 100%);
}
.v4-why__chapters-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
  max-width: 1080px;
}
.v4-why__chapter {
  padding: 0;
  background: none;
}
.v4-why__chapter-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  max-width: none;
  margin: 0;
  padding: clamp(22px, 3vw, 32px) 0;
  border-top: 1px solid rgba(228, 231, 236, 0.9);
}
.v4-why__chapter:first-child .v4-why__chapter-inner { border-top: none; padding-top: 8px; }
.v4-why__chapter:nth-child(even) .v4-why__chapter-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.v4-why__chapter:nth-child(even) .v4-why__head { order: 2; text-align: right; }
.v4-why__chapter:nth-child(even) .v4-why__body { order: 1; }
.v4-why__chapter:nth-child(even) .v4-why__num {
  margin-left: auto;
}

.v4-why__head { min-width: 0; position: relative; overflow: hidden; }
.v4-why__vis {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
.v4-why__vis svg { width: 100%; height: 100%; animation: sfloat1 12s ease-in-out infinite; }
.v4-why__chapter:nth-child(even) .v4-why__vis {
  right: auto;
  left: -10%;
}
.v4-why__head > *:not(.v4-why__vis) { position: relative; z-index: 1; }
.v4-why__num {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(88, 100, 255, 0.28);
  margin: 0 0 10px;
}
.v4-why__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.v4-why__head h3 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}
.v4-why__lead {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 10px;
  max-width: none;
}
.v4-why__body p:not(.v4-why__lead) {
  color: var(--body);
  line-height: 1.65;
  margin: 0;
  max-width: none;
  font-size: 14.5px;
}
.v4-why__close-band {
  padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
  background:
    radial-gradient(70% 80% at 50% 100%, rgba(197, 186, 253, 0.28) 0%, transparent 55%),
    var(--bg-soft);
  overflow: hidden;
}
.v4-why__close-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 768px) {
  .v4-why__close-grid { grid-template-columns: 1fr; }
  .v4-why__close { text-align: center; }
  .v4-why__close .store-row4 { justify-content: center; }
  .v4-why__voices-track { max-height: 260px; }
}
.v4-why__close {
  max-width: none;
  margin: 0;
  text-align: left;
  padding: 0;
  background: none;
  border: none;
}
.v4-why__close h2 {
  margin: var(--s3) 0 var(--s5);
  max-width: none;
  text-wrap: balance;
  font-size: clamp(26px, 3.2vw, 40px);
}
.v4-why__close .store-row4 { justify-content: flex-start; }

/* Testimonial voices — right column */
.v4-why__quotes-label {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.v4-why__voices {
  display: flex;
  flex-direction: column;
}
.v4-why__voices-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 340px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.v4-why__voices-track::-webkit-scrollbar { display: none; }
.v4-why__quote {
  background: var(--bg);
  border-radius: 14px;
  padding: 20px 24px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  scroll-snap-align: start;
}
.v4-why__quote blockquote {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  font-style: italic;
  position: relative;
  padding-left: 20px;
}
.v4-why__quote blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  color: var(--lavender);
  line-height: 1;
}
.v4-why__quote figcaption {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding-left: 20px;
}
.v4-why__quote figcaption strong {
  color: var(--ink);
  font-weight: 700;
}
.v4-why__quote figcaption span {
  color: var(--muted);
}
.v4-why__quote--accent {
  background: var(--gold-light);
  text-align: center;
  align-items: center;
  justify-content: center;
  border-left-color: var(--gold);
}
.v4-why__quote--accent blockquote {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  font-style: normal;
  padding-left: 0;
}
.v4-why__quote--accent blockquote::before { display: none; }
.v4-why__quote--accent figcaption { padding-left: 0; justify-content: center; }
.v4-why__quote--accent figcaption {
  justify-content: center;
}

@media (max-width: 860px) {
  .v4-why__intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .v4-why__bridge {
    padding: 0 0 0 18px;
  }
  .v4-why__chapter-inner,
  .v4-why__chapter:nth-child(even) .v4-why__chapter-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .v4-why__chapter:nth-child(even) .v4-why__head {
    order: 0;
    text-align: left;
  }
  .v4-why__chapter:nth-child(even) .v4-why__body { order: 0; }
  .v4-why__chapter:nth-child(even) .v4-why__num { margin-left: 0; }
  .v4-why__vis { width: 140px; height: 140px; right: -16%; opacity: 0.6; }
  .v4-why__chapter:nth-child(even) .v4-why__vis { left: -16%; }
}

/* Features product split */
.v4-app--product {
  background: transparent;
  padding: clamp(64px, 9vw, 112px) 0;
}
.v4-product-head {
  max-width: 640px;
  margin: 0 0 clamp(40px, 6vw, 64px);
  text-align: left;
}
.v4-product-head .label { margin-bottom: 12px; }
.v4-product-head h2 { margin-bottom: 14px; }
.v4-app__product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.v4-phone-static {
  position: sticky;
  top: 96px;
  display: flex;
  justify-content: center;
}
.v4-phone-aura {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,100,255,0.2), transparent 70%);
  filter: blur(20px);
  top: 18%;
  pointer-events: none;
}
.v4-app--product .v4-phone-static img {
  position: relative;
  width: min(100%, 260px);
  border-radius: 32px;
  box-shadow: 0 28px 60px rgba(16, 24, 40, 0.18);
}
.v4-practice-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.v4-practice {
  padding: 22px 0;
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  background: none;
}
.v4-practice:first-child { padding-top: 0; }
.v4-practice:last-child { border-bottom: none; }
.v4-practice h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.v4-practice p {
  margin: 0;
  color: var(--body);
  line-height: 1.65;
  font-size: 15px;
  max-width: 42em;
}
.v4-practice-cta { margin-top: 32px; }

/* Insights product */
.v4-ai--product {
  padding: clamp(64px, 9vw, 112px) 0;
  background:
    linear-gradient(180deg, transparent 0%, #F1EFFC 40%, #F1EFFC 100%);
}
.v4-ai__product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.v4-ai__copy .label { margin-bottom: 12px; }
.v4-ai__copy h2 { margin-bottom: 14px; }
.v4-ai__lead { margin-bottom: 28px; max-width: 34em; }
.v4-ai__flow {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.v4-ai__flow li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}
.v4-ai__flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lavender);
}
.v4-ai__media {
  position: relative;
  display: flex;
  justify-content: center;
}
.v4-ai__media-glow {
  position: absolute;
  inset: 10% 12%;
  background: radial-gradient(circle, rgba(121, 102, 254, 0.22), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.v4-ai__media video {
  position: relative;
  width: min(100%, 280px);
  border-radius: 32px;
  box-shadow: 0 28px 60px rgba(16, 24, 40, 0.16);
  background: #fff;
}
.v4-ai__media img {
  position: relative;
  display: block;
  width: min(100%, 280px);
  height: auto;
  filter: drop-shadow(0 28px 40px rgba(16, 24, 40, 0.18));
}

/* How — flowing steps */
.v4-how--flow {
  height: auto !important;
  background: var(--bg);
  padding: clamp(64px, 9vw, 112px) 0;
}
.v4-how-flow__hd {
  max-width: 680px;
  margin: 0 auto clamp(48px, 7vw, 80px);
  text-align: center;
}
.v4-how-flow__hd h2 { margin: 12px 0 16px; }
.v4-how-flow__lede { margin-top: 12px; color: var(--ink-2); }
.v4-how-flow__steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 64px);
  max-width: 980px;
  margin: 0 auto clamp(48px, 7vw, 80px);
}
.v4-flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 0;
  background: none;
  border: none;
}
.v4-flow-step__num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(88, 100, 255, 0.28);
  line-height: 1;
}
.v4-flow-step__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.v4-flow-step h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  letter-spacing: -0.015em;
}
.v4-flow-step p {
  margin: 0 0 8px;
  color: var(--body);
  line-height: 1.65;
  font-size: 15px;
}
.v4-flow-step p:last-child { margin-bottom: 0; }
.v4-how-flow__why {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(36px, 5vw, 56px) 0 0;
  border-top: 1px solid rgba(228, 231, 236, 0.9);
  background: none;
}
.v4-how-flow__why-lead {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 12px 0 12px;
  text-wrap: balance;
}
.v4-how-flow__why p { color: var(--body); line-height: 1.55; margin: 0 0 6px; font-size: 15px; }
.v4-how-flow__why-close {
  margin-top: 10px !important;
  font-weight: 700;
  color: var(--ink-2) !important;
}

/* Companions section air */
#companions {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  background: var(--bg);
}

/* Soft CTA editorial */
.v4-cta--editorial {
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(197, 186, 253, 0.25) 0%, transparent 55%),
    var(--ink);
}

/* Tools / quotes on app page — less boxy */
/* ---- Practice Tools — horizontal rows ---- */
.v4-tools-static {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.v4-tool-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: auto auto 1fr;
  gap: 0 clamp(28px, 4vw, 48px);
  padding: clamp(24px, 3.5vw, 36px) 0;
  border-bottom: 1px solid var(--border);
  background: none;
  border-radius: 0;
}
.v4-tool-block:last-child { border-bottom: none; }

/* Left column: tag + title + description */
.v4-tool-block__tag { grid-column: 1; grid-row: 1; }
.v4-tool-block h3   { grid-column: 1; grid-row: 2; }
.v4-tool-block > p:not([class]) { grid-column: 1; grid-row: 3; }

/* Right column: benefits list */
.v4-tool-block ul { grid-column: 2; grid-row: 1 / -1; align-self: center; }

/* Alternating rows get a soft tint */
.v4-tool-block:nth-child(even) {
  background: var(--bg-soft);
  margin: 0 -28px;
  padding-left: 28px;
  padding-right: 28px;
  border-radius: 16px;
  border-bottom-color: transparent;
}
.v4-tool-block:nth-child(even) + .v4-tool-block { border-top: none; }

/* Tag */
.v4-tool-block__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

/* Title */
.v4-tool-block h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
}

/* Description */
.v4-tool-block > p:not([class]) {
  color: var(--body);
  line-height: 1.65;
  margin: 0;
  font-size: 15px;
}

/* Benefits */
.v4-tool-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.v4-tool-block li {
  margin-bottom: 10px;
  line-height: 1.55;
  font-size: 14px;
  padding-left: 18px;
  position: relative;
  color: var(--ink-2);
}
.v4-tool-block li:last-child { margin-bottom: 0; }
.v4-tool-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lavender);
}

.v4-tool-block .v4-tools__new {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@media (max-width: 700px) {
  .v4-tool-block {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .v4-tool-block__tag { grid-column: 1; grid-row: auto; }
  .v4-tool-block h3   { grid-column: 1; grid-row: auto; }
  .v4-tool-block > p   { grid-column: 1; grid-row: auto; }
  .v4-tool-block ul    { grid-column: 1; grid-row: auto; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.05); }
  .v4-tool-block:nth-child(even) { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
}

.v4-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: var(--s5);
}
.v4-quote-card {
  padding: 8px 4px 8px 0;
  background: none;
  border: none;
  border-radius: 0;
  border-top: 2px solid var(--lavender);
}
.v4-quote-card p { margin: 14px 0 14px; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.v4-quote-card__meta { font-size: 13px; font-weight: 600; color: var(--muted); }

@media (max-width: 960px) {
  .v4-app__product,
  .v4-ai__product { grid-template-columns: 1fr; }
  .v4-phone-static { position: static; }
  .v4-product-head { text-align: center; margin-left: auto; margin-right: auto; }
  .v4-how-flow__steps { grid-template-columns: 1fr; }
  .v4-quote-grid { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .v4-quote-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Kill legacy sticky/slide behaviors if old markup remains */
.v4-stack-root,
.v4-stack-card,
.v4-story__close,
.v4-how__pin {
  position: static !important;
  top: auto !important;
  height: auto !important;
  transform: none !important;
}
.v4-how { height: auto !important; }
.v4-how__track {
  transform: none !important;
  flex-direction: column !important;
}
.v4-how__track-clip { overflow: visible !important; height: auto !important; }
.v4-how__nav { display: none !important; }
.v4-how__counter { display: none !important; }

/* ----------------------------------------------------------------
   HOME — Companions Grid
   ---------------------------------------------------------------- */
#companions .sec-head { max-width: 780px; }
#companions .sec-head .body-lg { text-wrap: pretty; }
.home-comp__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1020px;
  margin: 48px auto 0;
}
.home-comp__detail {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 28px 28px 24px;
}
.home-comp__detail-h {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
}
.home-comp__detail p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
}
.home-comp__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1020px;
  margin: 0 auto;
}
.home-comp__card {
  background: var(--cbg);
  border-radius: 28px;
  padding: 28px 16px 24px;
  text-align: center;
  border: none;
  box-shadow: none;
}
.home-comp__blob {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}
.home-comp__name { font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 4px; }
.home-comp__tag { font-size: 13.5px; line-height: 1.45; color: var(--body); margin: 0; }
.home-comp__note { text-align: center; font-size: 14px; color: var(--body); margin: 20px 0 0; }

/* ----------------------------------------------------------------
   HOME — Testimonials
   ---------------------------------------------------------------- */
.home-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1020px;
  margin: 0 auto;
}
.home-quotes__featured {
  background: #F1EFFC;
  border-radius: 24px;
  padding: 40px 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-quotes__mark {
  width: 36px;
  height: 28px;
  color: var(--lavender);
  opacity: 0.5;
  margin-bottom: 16px;
}
.home-quotes__featured blockquote {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
.home-quotes__featured figcaption {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-quotes__stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-quotes__card {
  background: var(--bg);
  border-radius: 20px;
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.home-quotes__card blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.home-quotes__card figcaption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-quotes__card--accent {
  background: var(--gold-light);
  text-align: center;
  justify-content: center;
  align-items: center;
}
.home-quotes__card--accent blockquote {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.home-quotes__card--accent figcaption {
  justify-content: center;
}
.home-quotes__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.home-quotes__since {
  font-size: 13px;
  color: var(--muted);
}
.home-quotes__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1020px;
  margin: 20px auto 0;
}
@media (max-width: 900px) {
  .home-quotes { grid-template-columns: 1fr; }
  .home-quotes__row { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .home-quotes__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .home-comp__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .home-comp__details { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
}
@media (max-width: 380px) {
  .home-comp__grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   HOME — FAQ Accordion
   ---------------------------------------------------------------- */
.home-faq {
  max-width: 760px;
  margin: 48px auto 0;
}
.home-faq__accordion { display: flex; flex-direction: column; }
.home-faq__item {
  border-left: 3px solid transparent;
  padding-left: 20px;
  transition: border-color 0.2s;
}
.home-faq__item + .home-faq__item { margin-top: 12px; }
.home-faq__item.is-open { border-left-color: var(--primary); }
.home-faq__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  outline: none;
}
.home-faq__head:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.home-faq__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--body);
  margin: 0;
  line-height: 1.4;
  padding: 14px 0;
  transition: color 0.2s;
}
.home-faq__item.is-open .home-faq__title { color: var(--ink); }
.home-faq__body {
  font-size: 14px;
  color: var(--body);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
  padding-bottom: 0;
}
.home-faq__item.is-open .home-faq__body {
  max-height: 480px;
  padding-bottom: 18px;
}
.home-faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.2s;
}
.home-faq__item.is-open .home-faq__chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.home-faq__body a {
  color: var(--primary);
  text-decoration: none;
}
.home-faq__body a:hover { text-decoration: underline; }

.sec-head .h-xl { font-size: clamp(40px, 4.8vw, 62px); }

/* ================================================================
   LIVE FEATURE DEMO (#app): phone + feature list
   Phone interior replicates the app UI (its own colours and Urbanist).
   List uses site tokens.
   ================================================================ */
@font-face{font-family:'Urbanist';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/urbanist-400.woff2') format('woff2')}
@font-face{font-family:'Urbanist';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/urbanist-500.woff2') format('woff2')}
@font-face{font-family:'Urbanist';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/urbanist-600.woff2') format('woff2')}
@font-face{font-family:'Urbanist';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/urbanist-700.woff2') format('woff2')}
@font-face{font-family:'Urbanist';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/urbanist-800.woff2') format('woff2')}
@font-face{font-family:'Urbanist';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/urbanist-400i.woff2') format('woff2')}
/* ================================================================
   TENKAN – Feature section with a live, app-accurate phone demo
   Everything is scoped under .tk-features
   ================================================================ */
.tk-features{font-family:var(--font);color:var(--ink)}
.tk-phone{--p:#7B6CF0; --p-btn:#8E80EE; --p-soft:#EFEDFC; --p-line:#D9D4F7; --p-card:#ECEAFB;
  --ink:#1D1D29; --muted:#8B8B99; --line:#E8E8EF; --green:#3FA34D; --red:#E5484D}
.tk-phone *,.tk-list,.tk-list *{box-sizing:border-box;margin:0;padding:0}
.tk-wrap{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(340px,1fr) 1.15fr;gap:72px;align-items:center}

/* ---------- phone shell ---------- */
.tk-stage{position:relative;display:flex;justify-content:center;align-items:center;min-height:800px}
.tk-stage::before{content:"";position:absolute;width:460px;height:460px;border-radius:50%;
  background:radial-gradient(circle,rgba(139,124,246,.26),rgba(139,124,246,0) 70%);filter:blur(10px);animation:tk-glow 8s ease-in-out infinite}
@keyframes tk-glow{50%{transform:scale(1.1) translate(10px,-14px)}}
.tk-phone{position:relative;width:362px;padding:13px;border-radius:58px;background:#fff;
  box-shadow:0 0 0 1px #ECECF3,0 40px 80px -30px rgba(40,30,120,.35),0 18px 40px -20px rgba(0,0,0,.18);animation:tk-float 7s ease-in-out infinite}
@keyframes tk-float{50%{transform:translateY(-10px)}}
.tk-screen{position:relative;width:336px;height:730px;border-radius:46px;overflow:hidden;background:#fff;
  font-family:"Urbanist",system-ui,sans-serif;color:var(--ink);font-size:13px;isolation:isolate}
.tk-sb{position:absolute;top:0;left:0;right:0;height:46px;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:6px 26px 0 34px;font:600 15px/1 -apple-system,"SF Pro Text",system-ui,sans-serif;pointer-events:none}
.tk-sb .island{position:absolute;left:50%;top:11px;width:106px;height:31px;margin-left:-53px;background:#000;border-radius:20px}
.tk-sb svg{display:block}

/* ---------- views & pages ---------- */
.tk-view{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .35s ease,visibility 0s .35s}
.tk-view.on{opacity:1;visibility:visible;transition:opacity .35s ease}
.tk-page{position:absolute;inset:0;padding:54px 18px 0;background:#fff;transition:transform .5s cubic-bezier(.32,.72,0,1),filter .5s}
.tk-page.next{transform:translateX(100%)}
.tk-page.push-in{transform:none;box-shadow:-12px 0 30px rgba(0,0,0,.06)}
.tk-page.pushed{transform:translateX(-28%);filter:brightness(.97)}
.tk-scroll{position:absolute;inset:54px 0 0 0;padding:0 18px 120px;overflow:hidden}
.tk-scroll-inner{transition:transform 1.3s cubic-bezier(.45,0,.2,1)}

/* entrance */
.tk-in{opacity:0;transform:translateY(14px);transition:opacity .45s ease,transform .55s cubic-bezier(.2,.8,.2,1)}
.tk-in.show{opacity:1;transform:none}
.tk-pop{opacity:0;transform:scale(.85);transition:opacity .3s ease,transform .45s cubic-bezier(.3,1.5,.5,1)}
.tk-pop.show{opacity:1;transform:none}

/* tap */
.tk-touch{position:absolute;z-index:40;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;
  background:rgba(40,30,90,.18);border:2px solid rgba(255,255,255,.9);box-shadow:0 2px 10px rgba(0,0,0,.15);opacity:0;pointer-events:none}
.tk-touch.go{animation:tk-touch .6s ease-out}
@keyframes tk-touch{0%{opacity:0;transform:scale(1.4)}25%{opacity:1;transform:scale(.85)}60%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.25)}}
.pressed{transform:scale(.96)!important;transition:transform .12s!important}

/* ---------- shared app UI ---------- */
.hdr{display:flex;align-items:center;gap:10px;height:44px;margin-bottom:10px}
.hdr h2{flex:1;white-space:nowrap;font-size:18.5px;font-weight:700;letter-spacing:-.01em}
.hdr h2.c{text-align:center}
.cbtn{width:36px;height:36px;border-radius:50%;border:1.5px solid #C9C9D6;display:grid;place-items:center;color:#555;flex:none;background:#fff}
.cbtn.p{border-color:#B9B1F4;color:var(--p)}
.chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;color:var(--p);background:var(--p-soft);border:1px solid var(--p-line);border-radius:20px;padding:5px 10px;white-space:nowrap}
.kh{display:flex;align-items:center;gap:8px;height:52px;margin-bottom:10px}
.kh img{width:44px;height:44px;border-radius:50%}
.kh .t{flex:1;min-width:0;overflow:hidden}
.kh .bub{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:top;font-size:10px;color:#6E66C9;background:var(--p-soft);border:1px solid var(--p-line);border-radius:10px;padding:2px 8px;white-space:nowrap}
.kh .bub b{font-weight:600;color:var(--p)}
.kh .nm{font-size:16px;font-weight:700;margin-top:3px}
.kh .tro{width:32px;height:32px;border-radius:50%;background:var(--p-soft);border:1px solid var(--p-line);display:grid;place-items:center;font-size:13px}
.sec{font-size:17px;font-weight:700;margin:16px 0 10px;display:flex;align-items:center;gap:6px}
.lav{background:var(--p-card);border:1px solid var(--p-line);border-radius:20px}
.wcard{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px rgba(20,20,60,.04)}
.ibox{width:36px;height:36px;border-radius:10px;background:var(--p-soft);border:1px solid var(--p-line);display:grid;place-items:center;color:var(--p);flex:none}
.btn{display:flex;align-items:center;justify-content:center;height:44px;border-radius:22px;background:var(--p-btn);color:#fff;font-weight:600;font-size:14px;transition:background .3s,opacity .3s,transform .15s}
.caret{display:inline-block;width:1.5px;height:1.1em;background:var(--p);vertical-align:-3px;margin-left:1px;animation:tk-caret 1s steps(1) infinite}
@keyframes tk-caret{50%{opacity:0}}

/* tab bar */
.tk-tabbar{position:absolute;left:12px;right:12px;bottom:16px;z-index:20;display:flex;gap:8px;align-items:center;transform:translateY(130%);transition:transform .5s cubic-bezier(.32,.72,0,1)}
.tk-tabbar.show{transform:none}
.tk-tabbar .pill{flex:1;height:68px;border-radius:26px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(30,20,90,.12),0 0 0 1px #EEEEF4;display:flex;justify-content:space-around;align-items:center}
.tk-tab{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:500;color:#3A3A48;transition:color .3s}
.tk-tab i{width:52px;height:30px;border-radius:15px;display:grid;place-items:center;transition:background .3s}
.tk-tab.on{color:var(--p);font-weight:600}.tk-tab.on i{background:var(--p-soft)}
.tk-tabbar .kb{width:62px;height:62px;border-radius:50%;background:#fff;box-shadow:0 8px 24px rgba(30,20,90,.12),0 0 0 1px #EEEEF4;display:grid;place-items:center}
.tk-tabbar .kb img{width:46px;height:46px;border-radius:50%}

/* --- V1 journal --- */
.paper{background:#FBF8F3;border-radius:6px;margin:0 -6px;padding:14px 14px 10px;height:300px;position:relative}
.paper .dt{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;letter-spacing:.14em;color:#8C80E6}
.paper .txt{font-style:italic;font-size:17px;line-height:1.5;margin-top:16px;color:#2A2A35;min-height:60px}
.paper .wc{position:absolute;right:14px;bottom:10px;font-size:11px;color:#A3A3B0}
.jrow{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:0 4px}
.jrow .r{width:46px;height:46px;border-radius:50%;background:var(--p-soft);border:1px solid var(--p-line);display:grid;place-items:center;color:#8C80E6}
.jrow .go{width:50px;height:50px;border-radius:50%;background:var(--p);display:grid;place-items:center;color:#fff;box-shadow:0 6px 16px rgba(123,108,240,.35)}
.hdf{display:flex;justify-content:space-between;align-items:center;margin:6px 0 14px;font-size:12.5px;font-weight:600;letter-spacing:.08em;color:#55556A}
.faces{display:flex;justify-content:space-between}
.face{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;color:#8B8B99}
.face span{width:50px;height:50px;border-radius:50%;display:block;position:relative;transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.face span img{width:100%;height:100%;border-radius:50%;display:block}
.face span::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid var(--p);opacity:0;transform:scale(.8);transition:all .35s}
.face.sel{color:var(--p);font-weight:700}.face.sel span{transform:scale(1.08)}.face.sel span::after{opacity:1;transform:none}
.todo{margin-top:16px;border-top:1px solid var(--line);padding-top:16px}
.todo h4{font-size:15px;font-weight:700}.todo h4 small{font-weight:400;color:#8B8B99;font-size:12px}
.todo p{font-size:12px;color:#8B8B99;margin-top:2px}
.tbox{margin-top:12px;background:#F4F4FA;border:1px solid var(--line);border-radius:14px;padding:12px}
.tbox .l{display:flex;justify-content:space-between;font-size:12.5px;align-items:center}
.tbox .l em{font-style:normal;font-size:11px;color:#8B8B99;border:1px solid var(--line);border-radius:12px;padding:3px 8px;background:#fff}
.tbox .f{margin-top:10px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px;font-size:13px;color:#A3A3B0}
.dash{margin-top:12px;border:1.5px dashed #A9A0F2;border-radius:14px;padding:10px;text-align:center;font-size:13px;font-weight:600;color:var(--p)}
.saved{position:absolute;left:50%;top:60px;transform:translate(-50%,-20px);opacity:0;z-index:25;background:#1D1D29;color:#fff;font-size:12.5px;font-weight:600;border-radius:20px;padding:9px 14px;display:flex;gap:7px;align-items:center;transition:all .4s cubic-bezier(.3,1.4,.5,1)}
.saved.show{opacity:1;transform:translate(-50%,0)}

/* --- V2 reflection --- */
.score{display:flex;align-items:center;gap:14px;padding:16px}
.score .l{text-align:center;width:96px}
.score .l img{width:46px;height:46px;border-radius:50%}
.score .pct{font-size:34px;font-weight:800;color:var(--p);letter-spacing:-.02em;line-height:1.05}
.score .g{font-size:11px;letter-spacing:.12em;color:#8B8B99;font-weight:600}
.score p{font-size:15px;color:#8C80E6;line-height:1.4}
.dist{display:flex;height:6px;border-radius:3px;overflow:hidden;margin:16px 0 8px;background:#F0F0F5}
.dist i{display:block;height:100%;width:0;transition:width .9s cubic-bezier(.2,.8,.2,1)}
.dleg{display:flex;justify-content:space-between;font-size:11px;color:#8B8B99;text-align:center}
.dleg div{width:20%}.dleg b{display:block;width:6px;height:6px;border-radius:50%;margin:0 auto 3px}
.dleg .on{color:var(--p);font-weight:700}
.hl{display:flex;align-items:center;gap:10px;padding:12px;margin-bottom:10px}
.hl img{width:32px;height:32px;border-radius:50%}
.hl .t{flex:1;font-size:15px;font-weight:600}.hl .t small{display:block;font-size:12.5px;font-weight:400;color:#6B6B7A}
.tag{font-size:9.5px;font-weight:700;letter-spacing:.08em;color:#fff;border-radius:10px;padding:2px 7px;margin-right:5px;vertical-align:2px}
.dbad{width:46px;border-radius:8px;text-align:center;padding:4px 0;font-size:9.5px;font-weight:700;letter-spacing:.06em;line-height:1.15}
.dbad b{display:block;font-size:20px;font-weight:700}
.chart{padding:12px}
.chart .pg{text-align:center;font-size:12px;color:#55556A;margin-bottom:8px}.chart .pg b{color:var(--p);margin-left:14px}
.chart svg{display:block;width:100%;background:#fff;border-radius:6px}
.mline{stroke-dasharray:600;stroke-dashoffset:600;transition:stroke-dashoffset 1.6s cubic-bezier(.45,0,.2,1)}
.marea{opacity:0;transition:opacity .8s .8s}
.chart.draw .mline{stroke-dashoffset:0}.chart.draw .marea{opacity:1}

/* --- V3 toolkit --- */
.banner{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-radius:20px;background:linear-gradient(90deg,#DCD7FA,#E9E6FC);border:1px solid var(--p-line)}
.banner h3{font-size:21px;font-weight:700}.banner p{font-size:13px;color:#55556A}
.banner img{width:52px;height:52px;border-radius:50%}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tool{padding:10px 12px;height:84px;display:flex;flex-direction:column;justify-content:space-between;transition:transform .15s,box-shadow .3s}
.tool b{font-size:13px;font-weight:700;line-height:1.2}.tool small{display:block;font-size:11px;line-height:1.25;color:#6B6B7A;font-weight:400;margin-top:1px}
.tool .ibox{width:30px;height:30px;border-radius:9px}.tool .ibox svg{width:16px;height:16px}
.calm{text-align:center}
.ring{position:relative;width:250px;height:250px;margin:24px auto 0}
.ring>svg{position:absolute;inset:0;transform:rotate(-90deg)}
.ring .ct{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring .lotus{width:84px;height:84px;border-radius:50%;background:radial-gradient(circle,#ECE9FD,#F7F6FE 70%);display:grid;place-items:center;animation:tk-breathe 4s ease-in-out infinite}
@keyframes tk-breathe{50%{transform:scale(1.12)}}
.ring .time{font-size:27px;font-weight:700;color:var(--p);margin-top:14px}
.pause{margin-top:10px;border:1.5px solid #B9B1F4;color:var(--p);border-radius:18px;padding:6px 18px;font-size:13px;font-weight:600}
.calm h4{font-size:17px;font-weight:700;margin-top:36px}
.calm p{font-size:13px;color:#6B6B7A;line-height:1.5;margin-top:8px;padding:0 10px}

/* --- V4 challenges --- */
.seg{display:flex;background:#F0F0F6;border-radius:14px;padding:4px;margin-bottom:14px}
.seg span{flex:1;text-align:center;font-size:13px;padding:8px 0;color:#8B8B99;border-radius:11px}
.seg .on{background:#fff;color:var(--p);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.cap{font-size:13px;font-weight:600;letter-spacing:.06em;color:#55556A;margin:4px 0 8px}
.ch{padding:14px;margin-bottom:12px;position:relative}
.ch .top{display:flex;gap:10px;align-items:center}
.ch .top b{font-size:16px;font-weight:700}.ch .top small{display:block;font-size:11.5px;color:#6B6B7A}
.ch .dot{position:absolute;right:14px;top:16px;width:7px;height:7px;border-radius:50%;background:#B7AEF5}
.ch .mid{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.ch .mid h5{font-size:14px;font-weight:700}.ch .mid p{font-size:12.5px;color:#6B6B7A;margin-top:3px;max-width:190px;line-height:1.35}
.pr{position:relative;width:56px;height:56px;flex:none}
.pr svg{transform:rotate(-90deg)}
.pr>span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;white-space:nowrap;font-size:11.5px;font-weight:700}
.ch .ft{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:12.5px;color:#6B6B7A}
.ch .sbtn{background:var(--p-btn);color:#fff;font-weight:600;font-size:13px;border-radius:16px;padding:7px 16px;transition:all .3s}
.ch .sbtn.joined{background:var(--p-soft);color:var(--p)}
.done-badge{display:inline-block;transition:all .4s cubic-bezier(.3,1.6,.5,1)}

/* --- chat (V5, V6) --- */
.chat{position:absolute;inset:100px 0 74px 0;overflow:hidden;padding:0 16px}
.chat .stack{display:flex;flex-direction:column;gap:10px;padding-bottom:12px}
.msg{opacity:0;transform:translateY(12px);transition:opacity .35s,transform .45s cubic-bezier(.2,.8,.2,1);max-height:0;overflow:hidden}
.msg.show{opacity:1;transform:none;max-height:600px;overflow:visible}
.me{align-self:flex-end;background:var(--p-btn);color:#fff;font-size:14.5px;border-radius:12px;padding:10px 14px;min-width:200px}
.bot{align-self:flex-start;background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px 13px;font-size:13.5px;line-height:1.45;max-width:86%;box-shadow:0 1px 2px rgba(20,20,60,.04)}
.bot.k{border-left:3px solid #B7AEF5;border-radius:4px 14px 14px 4px}
.bot h6{font-size:13.5px;color:var(--p);font-weight:600;margin-bottom:6px}
.opts{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.opt{border:1px solid var(--line);border-radius:12px;padding:9px 11px;background:#fff;transition:all .3s}
.opt b{font-size:14px}.opt small{display:block;font-size:12px;color:#6B6B7A}
.opt.sel{border-color:var(--p);background:var(--p-soft);box-shadow:0 0 0 1px var(--p)}
.cbt{margin-top:10px;height:40px;border-radius:20px;background:#C9C2F6;color:#fff;display:grid;place-items:center;font-weight:600;font-size:13.5px;transition:background .3s}
.cbt.ready{background:var(--p-btn)}
.emo{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.emo span{border:1px solid var(--line);border-radius:16px;padding:5px 12px;font-size:12.5px;background:#fff;transition:all .3s}
.emo span.sel{background:var(--p-btn);border-color:var(--p-btn);color:#fff}
.think{display:flex;gap:7px;align-items:center;font-size:12px;color:#8C80E6;font-style:italic}
.think img{width:22px;height:22px;border-radius:50%}
.dots i{display:inline-block;width:4px;height:4px;border-radius:50%;background:#8C80E6;margin-left:2px;animation:tk-dot 1s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes tk-dot{50%{transform:translateY(-3px);opacity:.4}}
.inbar{position:absolute;left:12px;right:12px;bottom:18px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:22px;padding:6px 6px 6px 14px;background:#fff;font-size:13.5px;color:#A3A3B0;z-index:5}
.inbar .v{flex:1;min-height:20px;white-space:nowrap;overflow:hidden}
.inbar .v.typed{color:var(--ink)}
.inbar .s{width:32px;height:32px;border-radius:50%;background:var(--p-btn);display:grid;place-items:center;color:#fff;flex:none}
.stop{background:#B7AEF5;color:#fff;font-size:12px;font-weight:600;border-radius:12px;padding:4px 11px}

/* ---------- feature list ---------- */
.tk-list{list-style:none}
.tk-item{position:relative;border-bottom:1px solid var(--border)}
.tk-item:last-child{border-bottom:0}
.tk-item button{all:unset;display:block;width:100%;cursor:pointer;padding:24px 0 24px 24px;box-sizing:border-box}
.tk-item button:focus-visible{outline:2px solid var(--primary);outline-offset:4px;border-radius:8px}
.tk-item::before{content:"";position:absolute;left:0;top:24px;bottom:24px;width:3px;border-radius:3px;background:var(--border)}
.tk-progress{position:absolute;left:0;top:24px;width:3px;height:0;border-radius:3px;background:var(--primary)}
.tk-item h3{font-size:clamp(18px,1.6vw,22px);font-weight:600;color:var(--muted);transition:color .3s;letter-spacing:-.01em}
.tk-item p{font-size:16px;line-height:1.65;color:var(--body);max-height:0;opacity:0;overflow:hidden;transition:max-height .5s ease,opacity .4s ease,margin .4s ease}
.tk-item:hover h3{color:var(--ink-2)}
.tk-item.is-active h3{color:var(--ink)}
.tk-item.is-active p{max-height:140px;opacity:1;margin-top:10px}

@media (max-width:960px){.tk-wrap{grid-template-columns:1fr;gap:48px}.tk-stage{min-height:auto}}
@media (max-width:420px){.tk-stage{height:700px;align-items:flex-start}.tk-phone{transform:scale(.86);transform-origin:top center;animation:none}}
@media (prefers-reduced-motion:reduce){.tk-phone,.tk-stage::before,.ring .lotus{animation:none}}
