/* Mobile first. Original Mind Tracker palette and gentle ambient light. */
:root {
  color-scheme: dark;
  --bg: #2f2641;
  --panel: #392d50;
  --text: #fffaff;
  --muted: #d0c3e2;
  --accent: #edb5ff;
  --line: #b79ad02e;
  --gradient: linear-gradient(125deg, #ff9ada, #d4a8ff 52%, #9ce4ff);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; position: relative; isolation: isolate; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 10% 20%, #a855f726, transparent 55%), radial-gradient(ellipse at 95% 70%, #ec48991c, transparent 55%); pointer-events: none; z-index: -1; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #9ce4ff; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 650; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; background: var(--gradient); background-clip: text; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 0 24px #cc7dff24); }
h1 { font-size: clamp(39px, 10.4vw, 60px); }
h2 { font-size: clamp(30px, 8.3vw, 40px); }
h3 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
p { line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 60px; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; white-space: nowrap; letter-spacing: -.035em; }
.brand img { width: 32px; height: 32px; border-radius: 10px; }
.header nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 7px; }
select { border: 0; background: transparent; color: var(--muted); padding: 10px 0; font-size: 11px; width: 64px; min-height: 44px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 13px 22px; border-radius: 100px; background: var(--gradient); color: #302039; font-size: 15px; font-weight: 650; line-height: 1.4; text-align: center; box-shadow: 0 6px 28px #c77dff20; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 30px #c77dff45; }
.header .button { padding: 10px 13px; font-size: 12px; min-height: 44px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hero { padding-block: 32px 40px; }
.hero-copy { min-width: 0; }
.body-copy { font-size: 17px; margin: 22px 0 28px; max-width: 530px; }
.cta-label { font-size: 14px; font-weight: 500; margin-bottom: 14px; color: var(--text); }
.store-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store-buttons a { border-radius: 10px; transition: transform .2s; flex: 0 1 149px; }
.store-buttons a:hover { transform: translateY(-3px); }
.store-buttons img { width: 149px; height: 50px; object-fit: contain; }
.visual-stage { position: relative; isolation: isolate; display: flex; justify-content: center; padding: 12px; }
.visual-stage::before, .checkin-scene::before { content: ''; position: absolute; inset: 4% -4%; background: radial-gradient(ellipse, #bf79ff38, #e777c518 45%, transparent 70%); z-index: -1; pointer-events: none; }
.iphone { position: relative; width: min(100%, 270px); aspect-ratio: 1350 / 2760; flex-shrink: 0; filter: drop-shadow(0 18px 25px #140c2645); }
.iphone-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.iphone-screen { position: absolute; inset: 2.15% 4.35%; background: #000; border-radius: 14% / 6.6%; overflow: hidden; }
.iphone-screen img { position: absolute; max-width: none; height: auto; }
.iphone-screen.store img { width: 120.56%; left: -10.28%; top: -28.3%; }
.iphone-screen.legacy { background: #2f2641; }
.iphone-screen.legacy img { width: 175.3%; left: -37.65%; top: -8.65%; }
.proof { padding-block: 24px; border-block: 1px solid var(--line); background: #2c223a40; }
.proof ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; align-items: center; }
.proof li { font-size: 13px; padding-inline: 10px; text-align: center; line-height: 1.5; text-wrap: balance; }
.proof li:nth-child(odd) { border-right: 1px solid var(--line); }
.proof li:last-child { color: var(--muted); }
.section-heading { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.how-layout { display: grid; gap: 28px; }
/* One check-in screen; a real chart and event insights supply the context. */
.checkin-scene { position: relative; isolation: isolate; width: min(100%, 550px); aspect-ratio: .93; margin-inline: auto; }
.graph-backdrop { position: absolute; width: 100%; aspect-ratio: 1.65; left: 0; top: 17%; overflow: hidden; border-radius: 20px; opacity: .65; border: 1px solid #cba2eb30; box-shadow: 0 16px 48px #1a102028; transform: rotate(-5deg); }
.graph-backdrop img { position: absolute; width: 175%; max-width: none; height: auto; left: -37.5%; top: -103%; }
.checkin-device { position: absolute; width: 46%; left: 4%; top: 0; z-index: 2; }
.checkin-device .iphone { width: 100%; }
/* Viewports onto the original app cards; no reconstructed icons or labels. */
.influence-highlight { position: absolute; z-index: 3; width: 62%; aspect-ratio: 885 / 178; overflow: hidden; border-radius: 4.5% / 22%; clip-path: inset(1px round 12px); filter: drop-shadow(0 10px 18px #170e2845); }
.influence-highlight > img { position: absolute; width: 138.305%; max-width: none; height: auto; left: -19.209%; }
.highlight-0 { right: 0; top: 13%; }
.highlight-0 > img { top: -415.169%; }
.highlight-1 { right: 0; top: 59%; }

.steps { display: grid; gap: 24px; padding: 0; margin: 0; list-style: none; }
.step { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 14px; }

.step-number { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 1px solid #d4a8ff50; border-radius: 50%; font-size: 11px; color: var(--accent); }
.step > p { font-size: 15px; }
.insights, .therapy, .emotion-sphere { padding-top: 0; }
.showcase { border: 1px solid var(--line); background: linear-gradient(140deg, #704c8626, #b368be0a); padding: 28px 20px; border-radius: 28px; }
.showcase h2 { font-size: clamp(26px, 7.6vw, 40px); }
.showcase .iphone { width: min(100%, 250px); }
.outcomes { list-style: none; margin: 24px 0 0; padding: 0; }
.outcomes li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; font-size: 15px; line-height: 1.5; border-top: 1px solid var(--line); text-wrap: pretty; }
.outcomes span { color: var(--accent); font-size: 20px; }
.section-top { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.section-top h2 { max-width: 670px; }
.review-controls { display: flex; gap: 10px; }
.review-controls[hidden] { display: none; }
.review-controls button { width: 46px; height: 46px; border-radius: 50%; background: #4a355c50; color: var(--text); border: 1px solid #d4a8ff65; cursor: pointer; font-size: 23px; }
.review-controls button:hover { background: var(--panel); }
.review-controls button:disabled { opacity: .3; cursor: default; }
.review-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #b28ab9 transparent; padding-bottom: 18px; }
.review { flex: 0 0 100%; scroll-snap-align: start; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, #9e6fb018, #2a213845); display: flex; flex-direction: column; min-width: 0; }
.stars { color: var(--accent); letter-spacing: 5px; font-size: 16px; margin-bottom: 24px; }
.review blockquote { margin: 0 0 32px; flex: 1; }
.review blockquote p { font-size: 21px; line-height: 1.5; color: var(--text); letter-spacing: -.02em; }
.review figcaption { display: grid; gap: 5px; font-size: 14px; }
.review figcaption strong { font-weight: 500; }
.review figcaption span { color: var(--muted); font-size: 13px; }
.section-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 20px; }
.text-link { font-size: 15px; padding-block: 10px; color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.sphere-art { position: relative; min-height: 300px; display: grid; place-items: center; width: 100%; max-width: 500px; margin-inline: auto; }
.sphere { object-fit: contain; mix-blend-mode: screen; border-radius: 50%; mask-image: radial-gradient(circle, #000 48%, transparent 71%); }
.sphere-1 { width: 76%; filter: drop-shadow(0 0 40px #c77dff30); }
.sphere-2 { position: absolute; width: 32%; top: 0; right: 0; }
.sphere-3 { position: absolute; width: 29%; bottom: 0; left: 0; }
.final-cta { text-align: center; background: radial-gradient(ellipse at 50% 110%, #ca73bb30, transparent 70%); border-top: 1px solid var(--line); }
.final-cta h2 { margin: 0 auto 28px; max-width: 950px; }
.final-cta .store-buttons { justify-content: center; }
.footer { padding-block: 32px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: flex-start; flex-direction: column; gap: 24px; }
.footer-inner > div { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; color: var(--muted); }
.footer a:hover { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 10px; left: 15px; transform: translateY(-180%); padding: 12px; background: var(--accent); color: var(--bg); z-index: 10; border-radius: 8px; }
.skip-link:focus { transform: none; }
@media (min-width: 760px) {
  .container { width: min(var(--max), calc(100% - 48px)); }
  h1 { font-size: clamp(50px, 6vw, 76px); }
  h2 { font-size: clamp(38px, 4vw, 54px); }
  .section { padding-block: 80px; }
  .hero { padding-block: 48px; }
  .header-inner { min-height: 90px; }
  .brand { font-size: 20px; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .header-actions { gap: 18px; }
  select { width: 84px; font-size: 13px; }
  .header .button { padding-inline: 22px; font-size: 14px; }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; }
  .hero .iphone { width: min(100%, 310px); }
  .body-copy { font-size: 18px; }
  .proof ul { grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 0; }
  .proof li { border-right: 1px solid var(--line); }
  .proof li:last-child { border: 0; }
  .how-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 36px; }
  .section-heading { margin-bottom: 44px; }
  .steps { gap: 26px; }
  .insights, .therapy, .emotion-sphere { padding-top: 0; }
  .showcase { padding: 36px; }
  .showcase h2 { font-size: clamp(32px, 3.8vw, 50px); }
  .review { flex-basis: calc(50% - 8px); }
  .section-top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
  .review-controls { flex-shrink: 0; }
  .reverse .section-copy { order: 2; }
  .reverse .visual-stage { order: 1; }
  .sphere-art { min-height: 350px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1000px) {
  .header nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
  .header nav a:hover { color: var(--accent); }
  .split { gap: 68px; }
  .hero { padding-block: 46px 54px; }
  .hero .iphone { width: 310px; }
  .body-copy { font-size: 19px; }
  .proof li { font-size: 15px; }
  .how-layout { gap: 80px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .steps { gap: 30px; }
  .step > p { font-size: 16px; }
  .showcase { padding: 48px 56px; }
  .showcase .iphone { width: 280px; }
  .review { padding: 36px; }
  .review blockquote p { font-size: 23px; }
  .sphere-art { min-height: 430px; }
  .final-cta h2 { font-size: 64px; }
}
/* Short, finite motion: no permanent animation loop or scroll hijacking. */
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .iphone { animation: settle 1.1s ease-out both; }
  .sphere-1 { animation: settle 1.4s ease-out both; }
  @keyframes settle { from { opacity: .65; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* User-requested Coffee example: Alcohol's values, original Fluent coffee icon. */
.coffee-card { background: #39314f; container-type: inline-size; }
.coffee-content { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 4.5%; gap: 5%; }
.coffee-icon { width: 10%; flex-shrink: 0; }
.coffee-labels { flex: 1; min-width: 0; }
.coffee-labels strong { display: block; color: #fffaff; font-size: 4.5cqw; line-height: 1.2; font-weight: 650; margin-bottom: 4%; }
.coffee-values { display: flex; gap: 5%; white-space: nowrap; font-size: 3.2cqw; line-height: 1.4; }
.coffee-values > span { display: flex; align-items: center; gap: 1.8cqw; }
.coffee-values b { font-size: 4cqw; line-height: .5; font-weight: 700; }
.positive { color: #39be00; }
.negative { color: #d24d75; }
.coffee-count { color: #9880a5; background: #302840; border-radius: 50%; width: 8%; aspect-ratio: 1; display: grid; place-items: center; font-size: 3.2cqw; margin-left: auto; flex-shrink: 0; }
.coffee-chevron { color: #947aa0; font-size: 5cqw; font-weight: 700; }

/* Match the app card's label positions and drawn chevrons. */
.highlight-1 { top: 64%; }
.coffee-content { display: block; padding: 0; }
.coffee-icon { position: absolute; left: 6.5%; top: 25%; width: 11%; }
.coffee-labels { position: absolute; left: 24%; top: 15%; right: 15%; bottom: 15%; }
.coffee-labels strong { font-size: 4.5cqw; font-weight: 600; margin: 0; }
.coffee-values { position: absolute; left: 0; top: 64%; gap: 2.5cqw; font-size: 3.2cqw; line-height: 1; }
.coffee-values > span { gap: 1.3cqw; }
.influence-direction { width: 3.3cqw; height: 3.3cqw; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; flex-shrink: 0; }
.coffee-count { position: absolute; right: 8.5%; top: 30%; width: 8%; }
.coffee-chevron { position: absolute; right: 3%; top: 32%; line-height: 1; }

.insight-carousel { width: min(100%, 280px); }
.insight-carousel .iphone { width: 100%; }
.insight-slide { opacity: 0; visibility: hidden; transform: translateX(7px); transition: opacity .75s ease, transform .75s ease, visibility .75s; }
.insight-slide.is-active { opacity: 1; visibility: visible; transform: translateX(0); }
.iphone-screen.full img { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.iphone:has(.app-capture) { container-type: inline-size; }
.iphone-screen.app-capture { --device-surface: #000; }
.iphone-screen.purple-capture { --device-surface: #2f2641; background: #2f2641; }
.app-capture .device-status { position: absolute; z-index: 1; inset: 0 0 auto; height: 7.8%; background: var(--device-surface); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 7%; pointer-events: none; }
.app-capture .device-status span { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 4cqw; line-height: 1; font-weight: 600; }
.app-capture .device-status svg { width: 23%; height: auto; overflow: visible; }
.screen-controls { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 18px; }
.screen-controls[hidden] { display: none; }
.screen-controls button { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--text); background: transparent; cursor: pointer; }
.screen-dot { display: grid; place-items: center; }
.screen-dot span { width: 7px; height: 7px; border-radius: 50%; background: #a58bab; }
.screen-dot[aria-pressed="true"] span { background: var(--accent); box-shadow: 0 0 12px #edb5ff60; }
.screen-controls .autoplay-toggle { border: 1px solid var(--line); margin-left: 8px; font-size: 18px; }

.insights .showcase { padding: 0; border: 0; border-radius: 0; background: none; }
.insight-carousel .iphone { touch-action: pan-y; }

/* Iteration 7: consistent type, open sections and original card treatment. */
.header, .proof, .footer, .final-cta, .outcomes li { border: 0; }
.proof, .final-cta { background: transparent; }
.therapy .showcase { border: 0; padding: 0; border-radius: 0; background: transparent; }
.proof { padding-block: 20px 32px; }
.proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.proof li.proof-card { border: 1px solid #a78bfa33; border-radius: 24px; padding: 22px 12px; background: #8b5cf61a; box-shadow: 0 8px 32px #0003, inset 0 1px 0 #ffffff1a; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.proof-card strong { font-size: clamp(26px, 4vw, 42px); font-weight: 700; line-height: 1.2; background: linear-gradient(135deg, #c77dff, #7dd3fc); background-clip: text; color: transparent; }
.proof-card span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.steps { align-self: stretch; align-content: center; gap: 28px; }
.step { grid-template-columns: 34px minmax(0, 1fr); gap: 16px; }
.step-number { width: 34px; height: 34px; font-size: 12px; margin-top: 2px; }
.step > p { font-size: 18px; line-height: 1.65; color: #ded3e9; }
.iphone-screen.legacy { container-type: inline-size; }
.screen-checkin-label { position: absolute; z-index: 1; left: 1.6%; right: 1.6%; bottom: 4.8%; height: 6.9%; border-radius: 2.8cqw; display: grid; place-items: center; background: #ff709b; color: #fff; font-size: 4.2cqw; font-weight: 600; line-height: 1; }
.sphere-section .section-copy { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.sphere-section .body-copy { max-width: 620px; margin-inline: auto; }
.sphere-art { min-height: 0; max-width: none; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 28px; }
.sphere-art .sphere { position: static; width: 78%; max-width: none; flex: 0 0 78%; aspect-ratio: 1; border-radius: 20px; mask-image: none; mix-blend-mode: normal; filter: none; box-shadow: 0 8px 32px #0005, 0 0 40px #8b5cf633; scroll-snap-align: center; }
@media (min-width: 760px) {
  .proof ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .proof li.proof-card { padding: 30px 16px; }
  .sphere-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; overflow: visible; }
  .sphere-art .sphere { width: 100%; }
  .step > p { font-size: 20px; }
  .steps { gap: 34px; }
}
@media (min-width: 1000px) {
  .how-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
  .step > p { font-size: 21px; }
  .proof-card span { font-size: 16px; }
}

/* Fit the supplied store artwork's app viewport inside the complete device.
   Keep the bottom navigation above the rounded frame instead of cropping it. */
.iphone-screen.therapy-patterns { background: #2f2641; }
.iphone-screen.therapy-patterns img { width: 121.01%; height: 125.08%; left: -10.51%; top: -29.08%; }
.iphone-screen.therapy-patterns::after { content: ''; position: absolute; bottom: 1.1%; left: 33%; width: 34%; height: .5%; border-radius: 10px; background: #fff; }
.iphone-screen.therapy-patterns::before { content: ''; position: absolute; z-index: 1; top: 0; left: 21%; width: 58%; height: 6%; background: #2f2641; }

/* Product-led hero: device first on phones, copy and device side by side on web. */
.header .brand { font-size: clamp(25px, 6.5vw, 36px); gap: 12px; }
.header .brand img { width: 44px; height: 44px; border-radius: 13px; }
.header-inner { position: relative; min-height: 88px; }
.header-actions, .header > .container > nav { display: none; }
.mobile-menu { margin-left: auto; }
.mobile-menu summary { width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: #d4a8ff16; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 21px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu summary:focus-visible { outline: 3px solid #9ce4ff; outline-offset: 4px; }
.header .mobile-menu nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: calc(100% - 4px); left: 0; right: 0; z-index: 10; background: #392d50; border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: 0 20px 40px #170e2860; }
.mobile-menu nav a { padding: 15px; border-radius: 12px; }
.mobile-menu nav a:hover { background: #d4a8ff16; }
.hero { padding-block: 12px 44px; }
.hero-grid { display: grid; grid-template-areas: 'device' 'ratings' 'downloads' 'copy'; gap: 22px; text-align: center; }
.hero-stage { grid-area: device; padding: 12px 24px; }
.hero-stage .iphone { width: clamp(156px, 45vw, 210px); transform: rotate(-9deg); }
.hero-stage::before { inset: 0 -8%; background: radial-gradient(ellipse, #ce82ff40, #e777c51a 40%, transparent 70%); }
.hero-copy { grid-area: copy; }
.hero h1 { font-size: clamp(35px, 8vw, 52px); }
.hero .body-copy { margin: 20px auto 0; }
.hero-ratings { grid-area: ratings; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.hero-ratings a { display: flex; align-items: center; gap: 7px; min-height: 30px; }
.rating-star { font-size: 26px; line-height: 1; background: var(--gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-ratings strong { font-size: 17px; }
.hero-downloads { grid-area: downloads; }
.hero-downloads .store-buttons { justify-content: center; flex-wrap: nowrap; gap: 12px; }
.hero-downloads .store-buttons a { flex: 0 1 170px; min-width: 0; }
.hero-downloads .store-buttons img { width: 100%; height: auto; }
.proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
@media (min-width: 760px) {
 .header-inner { min-height: 110px; }
 .header .brand { font-size: 38px; }
 .header .brand img { width: 54px; height: 54px; }
 .hero { padding-block: 42px 64px; }
 .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: 'ratings device' 'copy device' 'downloads device'; column-gap: 50px; row-gap: 28px; text-align: left; align-content: center; }
 .hero-ratings { align-self: end; justify-content: flex-start; }
 .hero h1 { font-size: clamp(46px, 5vw, 70px); }
 .hero .body-copy { margin: 26px 0 0; }
 .hero-downloads { align-self: start; }
 .hero-downloads .store-buttons { justify-content: flex-start; }
 .hero-stage { align-self: center; padding: 24px; }
 .hero-stage .iphone { width: min(100%, 290px); transform: perspective(1200px) rotateY(-12deg) rotateZ(-12deg); }
}
@media (min-width: 1100px) {
 .mobile-menu { display: none; }
 .header > .container > nav { display: flex; gap: 28px; font-size: 15px; }
 .header-actions { display: flex; }
 .hero-grid { min-height: 620px; grid-template-rows: 1fr auto 1fr; }
 .hero-stage .iphone { width: 300px; }
 .hero-ratings { font-size: 16px; gap: 32px; }
 .hero-ratings strong { font-size: 19px; }
}
.hero { overflow: clip; }

/* Brand and content refinements. */
@font-face { font-family: Ubuntu; src: url('/assets/fonts/Ubuntu-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
.header .brand { font-family: Ubuntu, sans-serif; font-weight: 500; letter-spacing: -.035em; }
.header .brand img { filter: drop-shadow(0 0 9px #ff91ca) drop-shadow(0 0 22px #f08bea90); }
.hero-stage .iphone { transform: none; }
.proof ul { max-width: none; grid-template-columns: 1fr; }
.proof-card strong { font-size: clamp(30px, 4vw, 42px); }
.step-number { border: 0; font-size: 27px; width: 36px; height: 38px; line-height: 1; }
.outcomes li > span { font-size: 27px; line-height: 1.3; }
.screen-controls { width: 100%; justify-content: center; gap: 4px; margin-top: 12px; }
.sphere-art { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; padding-bottom: 8px; }
.sphere-art::-webkit-scrollbar { display: none; }
.sphere-card { flex: 0 0 82%; min-width: 0; scroll-snap-align: start; }
.sphere-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.sphere-card figcaption { padding: 20px 8px 8px; text-align: center; }
.sphere-card figcaption strong { display: block; font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.sphere-card figcaption span { color: var(--muted); font-size: 16px; }
.sphere-controls { justify-content: center; margin-top: 24px; }
@media (min-width: 760px) {
 .proof ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .sphere-card { flex-basis: calc((100% - 48px) / 3); }
}

/* Weekly stories now live in the hero; custom scales replace their old section. */
.hero-stage .insight-carousel { width: clamp(156px, 45vw, 210px); }
.hero-stage .insight-carousel .iphone { width: 100%; }
.metrics-heading { text-align: center; margin-bottom: 36px; }
.metrics-heading .body-copy { max-width: 820px; margin: 22px auto 0; }
.metrics-layout { display: grid; gap: 32px; align-items: center; }
.metrics-info { padding: 26px 22px; background: #a77bdd12; border: 1px solid var(--line); border-radius: 26px; }
.metrics-badge { display: inline-block; border: 1px solid #b59ae13d; border-radius: 100px; padding: 10px 16px; background: #ae7cff1c; font-size: 15px; margin-bottom: 22px; }
.metrics-info h3 { color: var(--accent); font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin-bottom: 18px; }
.metrics-info p { font-size: 17px; }
.metrics-tags { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.metrics-tags li { text-align: center; padding: 12px 8px; border-radius: 12px; border: 1px solid #b59ae13d; background: #ae7cff1c; font-size: 15px; color: var(--muted); }
@media(min-width:760px) {
 .hero-stage .insight-carousel { width: min(100%, 290px); }
 .metrics-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px; }
 .metrics-layout > .metrics-info { grid-column: 1; grid-row: 1; }
 .metrics-layout > .visual-stage { grid-column: 2; grid-row: 1; }
 .metrics-info { padding: 32px; }
 .metrics-heading { margin-bottom: 48px; }
}
@media(min-width:1100px) {
 .hero-stage .insight-carousel { width: 300px; }
 .metrics-tags { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

.hero-eyebrow { color: var(--accent); font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; line-height: 1.45; margin-bottom: 16px; text-wrap: balance; }
.subscription-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 15px; border: 1px solid #d4a8ff70; border-radius: 100px; color: var(--text); background: #d4a8ff0d; font-size: 13px; white-space: nowrap; }
.subscription-button:disabled { opacity: .65; cursor: not-allowed; }
.mobile-menu .subscription-button { margin: 6px; }
@media (min-width:1100px) {
 .header .brand { font-size: 32px; }
 .header > .container > nav { gap: 18px; font-size: 14px; }
 .header-actions { gap: 10px; }
 .header-actions select { width: 68px; }
}

.hero-grid { grid-template-areas: 'eyebrow' 'device' 'ratings' 'downloads' 'copy'; }
.hero-grid > .hero-eyebrow { grid-area: eyebrow; margin: 0; }
.final-cta h2 { margin-bottom: 48px; }
@media (max-width:759px) {
 .therapy .section-copy { text-align: center; }
 .therapy .body-copy { margin-inline: auto; }
 .therapy .section-actions { align-items: center; }
}
@media (min-width:760px) {
 .hero-grid { grid-template-areas: 'eyebrow device' 'ratings device' 'copy device' 'downloads device'; grid-template-rows: 1fr auto auto 1fr; row-gap: 24px; }
 .hero-grid > .hero-eyebrow { align-self: end; }
 .hero-ratings { align-self: center; }
 .final-cta h2 { margin-bottom: 56px; }
}

/* Compact secondary devices and a clearer mobile therapy reading order. */
@media (max-width:759px) {
 .custom-metrics .iphone, .therapy .iphone { width: clamp(172px, 55vw, 220px); }
 .therapy .showcase { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
 .therapy .section-copy { display: contents; }
 .therapy h2 { grid-row: 1; text-align: center; }
 .therapy .visual-stage { grid-row: 2; padding-block: 4px; }
 .therapy .body-copy { grid-row: 3; text-align: center; margin: 0 auto; }
 .therapy .section-actions { grid-row: 4; align-items: center; }
}

/* Align desktop copy higher and keep carousel actions below their content. */
#reviews .section-top { justify-content: center; align-items: center; }
#reviews-title { text-align: center; }
#reviews .review-controls { justify-content: center; margin-top: 22px; gap: 8px; }
#reviews .review-controls button { width: 44px; height: 44px; font-size: 19px; }
.sphere-action { display: flex; justify-content: center; margin-top: 30px; }
@media (min-width:760px) {
 .hero-grid { grid-template-rows: auto auto auto 1fr; padding-top: 24px; }
 .hero-grid > .hero-eyebrow { align-self: start; }
 .hero-stage { margin-top: -24px; }
 .how-layout .steps { align-content: start; padding-top: 48px; }
}

/* Shared language menu uses the same dark surface as the mobile navigation. */
.header .language-picker { position: relative; flex: none; color: var(--muted); }
.header .language-picker > summary { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; width: 100px; min-height: 44px; padding: 10px 6px; border: 0; border-radius: 6px; background: transparent; font-size: 14px; line-height: 24px; cursor: pointer; list-style: none; }
.header .language-picker > summary::-webkit-details-marker { display: none; }
.header .language-picker > summary:hover, .header .language-picker[open] > summary { color: var(--text); }
.header .language-picker > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.language-chevron { flex: none; transition: transform .15s ease; }
.language-picker[open] .language-chevron { transform: rotate(180deg); }
.language-options { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; min-width: 164px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #121315; box-shadow: 0 16px 40px #0009; }
.header .language-options a { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.header .language-options a:hover, .header .language-options a:focus-visible { background: #ffffff0b; color: var(--text); }
.header .language-options a[aria-current] { color: var(--accent); }
.header .language-options .language-check { width: 14px; }
.header-actions > .language-picker { margin-right: 22px; }
.mobile-menu .language-picker { align-self: flex-start; margin: 16px 10px 8px; }
.mobile-menu .language-options { position: static; margin-top: 8px; box-shadow: none; }
@media (min-width:1100px) {
 .header-actions { flex-shrink: 0; }
 .header-actions .button, .header > .container > nav a { white-space: nowrap; }
}
@media (min-width:1100px) and (max-width:1199px) {
 .header .brand { font-size: 30px; }
 .header > .container > nav { gap: 12px; font-size: 13px; }
}
/* Original Russian app screens use the same crops as the Advanced page. */
.iphone-screen.ru-checkin img { width: 147.05%; height: 146.18%; max-width: none; left: -22.52%; top: -35.55%; }
.iphone-screen.ru-metrics img { width: 147.05%; height: 146.18%; max-width: none; left: -23.91%; top: -35.55%; }

/* Reuse the approved Advanced Russian illustration; no extra button overlay. */
.home-ru .graph-backdrop img { width: 110%; left: -5%; top: -85%; }
.coffee-content .ru-influence-icon { position: absolute; left: 6%; top: 50%; width: 12%; transform: translateY(-50%); display: grid; place-items: center; font-size: 8cqw; line-height: 1; }
.home-ru .coffee-values { gap: 3%; font-size: 2.8cqw; }

/* Homepage FAQ follows the Advanced page's single-column, divided rows. */
.home-faq .section-heading { margin-bottom: 16px; }
.home-faq-list { max-width: 820px; margin: 40px auto 0; }
.home-faq-item { border-bottom: 1px solid var(--line); }
.home-faq-question { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 24px 0; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: normal; }
.home-faq-question:hover { color: var(--accent); }
.home-faq-question:focus-visible { outline-offset: 4px; border-radius: 4px; }
.home-faq-icon { position: relative; width: 20px; height: 20px; flex: none; color: var(--muted); }
.home-faq-icon::before, .home-faq-icon::after { content: ''; position: absolute; top: 9px; left: 2px; width: 16px; height: 2px; background: currentColor; }
.home-faq-icon::after { transform: rotate(90deg); transition: transform .2s ease; }
.home-faq-question[aria-expanded="true"] .home-faq-icon::after { transform: rotate(0); }
.home-faq-answer { overflow: hidden; }
.home-faq-answer[hidden] { display: none; }
.home-faq-answer p { padding: 0 40px 24px 0; font-size: 16px; }
.home-faq-answer a, .home-faq-contact a { text-decoration: underline; text-underline-offset: .2em; }
.home-faq-answer a:hover, .home-faq-contact a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .home-faq-question { font-size: 17px; gap: 16px; }
  .home-faq-answer p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-faq-icon::after { transition: none; }
}

.home-faq-contact { max-width: 820px; margin: 40px auto 0; text-align: center; }
.home-faq-contact h3 { font-size: 20px; line-height: 1.4; }
.home-faq-contact p { margin-top: 8px; font-size: 16px; }
.home-faq-contact a { overflow-wrap: anywhere; }

/* A consistent, centered mobile action and a bounded menu for every locale. */
.header .mobile-menu nav > .button { display: flex; justify-content: center; align-items: center; text-align: center; align-self: stretch; }
.header .mobile-menu nav { max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
.language-options { max-height: min(65dvh, 440px); overflow-y: auto; overscroll-behavior: contain; }
.header .language-picker > summary { width: auto; min-width: 100px; }

/* Keep the long Russian proof label inside tablet-width cards. */
@media (min-width: 740px) and (max-width: 900px) {
  .home-ru .proof-card:last-child strong { font-size: 28px; }
}
