/* Stipli site. Tokens follow the app's design tokens (design/tokens.json in the app repo). */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ground: #F4F7F5;
  --ground-deep: #E9F0EC;
  --surface: #FFFFFF;
  --raised: #EDF2EF;
  --hairline: #DCE5E0;
  --ink: #10231F;
  --ink-muted: #4E625C;
  --ink-soft: #566963;
  --focus: #0B5F54;
  --rotator-end: #12907E;
  --primary: #0F7B6C;
  --primary-deep: #0B5F54;
  --primary-tint: #E2F2EF;
  --primary-glow: #7FD4C4;
  --apricot: #FF8A5B;
  --apricot-ink: #B4471C;
  --apricot-tint: #FFEBE1;
  --weight: #495DD4;
  --symptoms: #CA3E6D;
  --fibre: #2E7045;
  --water: #257BBA;
  --activity: #C18113;
  --night: #08201C;
  --night-2: #0D2B26;
  --on-night: #E9F2EF;
  --on-night-muted: #A9C2BB;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 1px 2px rgba(16, 35, 31, 0.04), 0 8px 24px -8px rgba(16, 35, 31, 0.12);
  --shadow-lift: 0 2px 6px rgba(16, 35, 31, 0.05), 0 24px 48px -16px rgba(16, 35, 31, 0.22);
  --shadow-phone: 0 50px 100px -30px rgba(16, 35, 31, 0.5), 0 30px 60px -30px rgba(15, 123, 108, 0.45);
  --radius: 28px;
  --radius-small: 18px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0C1513;
    --ground-deep: #0F1B18;
    --surface: #14211E;
    --raised: #1B2B27;
    --hairline: #26403A;
    --ink: #E9F2EF;
    --ink-muted: #9DB3AC;
    --ink-soft: #8AA19A;
    --focus: #7FD4C4;
    --rotator-end: #7FD4C4;
    --primary: #3CCBB4;
    --primary-deep: #2FA893;
    --primary-tint: #173A34;
    --apricot: #FF9D75;
    --apricot-ink: #FF9D75;
    --apricot-tint: #3D261C;
    --weight: #8C9AFF;
    --symptoms: #F07AA2;
    --night: #071513;
    --night-2: #0B201C;
    --glass: rgba(20, 33, 30, 0.78);
    --glass-border: rgba(60, 203, 180, 0.18);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
    --shadow-phone: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 30px 80px -30px rgba(60, 203, 180, 0.25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.sr-only {
  position: absolute !important; 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; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 12px; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: var(--ground); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 920px; }

.accent-dot { color: var(--apricot); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow-light { color: var(--primary-glow); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 750; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s;
}
.button-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(15, 123, 108, 0.7); }
.button-primary:hover { color: #fff; background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(15, 123, 108, 0.75); }
.button-primary:active { transform: translateY(0) scale(0.98); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.button-block { width: 100%; }
@media (prefers-color-scheme: dark) {
  .button-primary, .button-primary:hover { color: #06231E; }
}

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-buttons-center { justify-content: center; }
.store-button {
  display: inline-flex; align-items: center; gap: 12px; min-width: 190px;
  min-height: 58px; padding: 8px 22px 8px 18px; border-radius: 16px;
  background: var(--ink); color: var(--ground); text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(16, 35, 31, 0.6);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.store-button:hover { color: var(--ground); transform: translateY(-3px); box-shadow: 0 20px 36px -14px rgba(16, 35, 31, 0.65); }
.store-button svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-button span { display: flex; flex-direction: column; line-height: 1.1; }
.store-button small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; opacity: 0.8; }
.store-button strong { font-size: 1.1875rem; font-weight: 750; letter-spacing: -0.01em; }

.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 750; text-decoration: none; }
.text-link span { transition: transform 0.25s var(--ease-out); }
.text-link:hover span { transform: translateX(4px); }
.text-link-light { color: var(--primary-glow); }
.text-link-light:hover { color: #fff; }

/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--primary), var(--apricot));
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(15, 123, 108, 0.6); }
.wordmark { height: 26px; width: auto; }
.wordmark-letters { fill: var(--ink); }
.wordmark-dots { fill: var(--apricot); }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-muted); font-weight: 650; font-size: 0.9375rem; text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--primary) 9%, transparent); }
.menu-button { display: none; }

@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .header-cta { margin-inline-start: auto; }
  .menu-button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--hairline);
    background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .menu-lines { position: relative; width: 18px; height: 12px; }
  .menu-lines i {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
  }
  .menu-lines i:first-child { top: 2px; }
  .menu-lines i:last-child { top: 8px; }
  .menu-button[aria-expanded="true"] .menu-lines i:first-child { top: 5px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-lines i:last-child { top: 5px; transform: rotate(-45deg); }
  .site-nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 76px;
    background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 10px;
    box-shadow: var(--shadow-lift);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top right;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { width: 100%; min-height: 48px; font-size: 1.0625rem; }
  .no-js .site-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
}
@media (max-width: 340px) {
  .wordmark { display: none; }
}
@media (max-width: 400px) {
  .wordmark { height: 22px; }
  .header-cta { padding: 0 14px; }
}

/* Hero */
.hero { position: relative; padding: clamp(24px, 5vw, 64px) 0 clamp(72px, 9vw, 120px); isolation: isolate; }
.hero-bg { position: absolute; inset: -72px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; }
.glow-mint {
  width: 720px; height: 720px; inset-inline-end: -160px; top: -120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-glow) 70%, transparent), transparent 65%);
}
.glow-apricot {
  width: 520px; height: 520px; inset-inline-start: -180px; top: 260px;
  background: radial-gradient(circle, color-mix(in srgb, var(--apricot) 32%, transparent), transparent 65%);
}
@media (prefers-color-scheme: dark) {
  .glow { opacity: 0.35; }
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow {
  padding-block: 8px; padding-inline: 12px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  letter-spacing: 0.04em; text-transform: none; font-size: 0.875rem; font-weight: 700; color: var(--ink-muted);
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--primary);
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(2); opacity: 0; } }

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
  font-weight: 850; letter-spacing: -0.04em; line-height: 1.02;
}
.rotator { position: relative; display: block; height: 1.1em; margin-top: 0.04em; overflow: hidden; }
.rotator-word {
  position: absolute; inset-inline-start: 0; top: 0; white-space: nowrap;
  background: linear-gradient(100deg, var(--primary), var(--rotator-end));
  background: linear-gradient(100deg in oklch, var(--primary) 15%, var(--rotator-end) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
  transform: translateY(105%); opacity: 0; filter: blur(6px);
  transition: transform 0.7s var(--ease-out), opacity 0.5s, filter 0.6s;
}
.rotator-word.is-active { transform: translateY(0); opacity: 1; filter: blur(0); }
.rotator-word.is-leaving { transform: translateY(-105%); opacity: 0; filter: blur(6px); }
.no-js .rotator { height: auto; }
.no-js .rotator-word { position: static; display: none; transform: none; opacity: 1; filter: none; }
.no-js .rotator-word.is-active { display: inline; }

/* Fit the longest Portuguese phrase within the hero column at every breakpoint. */
.hero-copy:lang(pt-BR) { container-type: inline-size; }
.rotator:lang(pt-BR) { font-size: min(1em, 11.3cqi); }
.story-visual-chip:not(:lang(en)) { white-space: normal; }

.hero-lead { margin-top: 24px; max-width: 34rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-muted); line-height: 1.55; }
.hero .store-buttons { margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--ink-muted); font-weight: 650; font-size: 0.9375rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg {
  width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--primary-tint);
  fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

.hero-visual { position: relative; perspective: 1400px; }
.hero-stage {
  position: relative; aspect-ratio: 1 / 1.02; max-width: 600px; margin-inline: auto;
  transition: transform 0.6s var(--ease-out);
}
@keyframes spin { to { transform: rotate(360deg); } }

.phone {
  position: relative; aspect-ratio: 1320 / 2868; padding: 2.6%;
  border-radius: 15% / 7%;
  background: linear-gradient(150deg, #2B3B37 0%, #0B1513 45%, #18231F 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), inset 0 0 0 4px #050B0A, var(--shadow-phone);
}
.phone::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: 3.4%; width: 28%; height: 3.1%;
  transform: translateX(-50%); border-radius: 999px; background: #050B0A;
}
.phone img, .phone-story img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 12.5% / 5.9%; background: #F4F7F5;
}
.phone-front { position: absolute; width: 46%; inset-inline-start: 9%; top: 1%; z-index: 3; }
.phone-back { position: absolute; width: 42%; inset-inline-end: 7%; top: 12%; z-index: 2; }

.float-card {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding-block: 12px; padding-inline: 12px 16px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-lift);
  font-size: 0.875rem; line-height: 1.25;
}
.float-card strong { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.card-label { display: block; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.card-sub { display: block; color: var(--ink-muted); font-size: 0.8125rem; }
.card-next { inset-inline-start: -3%; top: 56%; }
.mini-ring { width: 54px; height: 54px; flex: none; }
.mini-ring circle { fill: var(--hairline); transition: fill 0.4s; }
.mini-ring circle.is-on { fill: var(--primary); }
.mini-ring circle.is-head { fill: var(--apricot); }
.card-site { inset-inline-end: 0; top: 7%; }
.target { position: relative; width: 38px; height: 38px; border-radius: 12px; background: var(--apricot-tint); flex: none; display: grid; place-items: center; }
.target span { width: 14px; height: 14px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 0 4px var(--apricot-tint), 0 0 0 6px var(--apricot); }
.target::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid var(--apricot); animation: ping 2s var(--ease-out) 1.5s 4; }

.hero-stip { position: absolute; z-index: 4; width: 22%; inset-inline-start: 45%; bottom: 0; filter: drop-shadow(0 18px 18px rgba(16, 35, 31, 0.25)); }
.stip-eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }


@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero .store-buttons, .hero-facts { justify-content: center; }
  .rotator-word { inset-inline-start: auto; left: 50%; transform: translate(-50%, 105%); }
  .rotator-word.is-active { transform: translate(-50%, 0); }
  .rotator-word.is-leaving { transform: translate(-50%, -105%); }
  .hero-stage { max-width: 520px; }
}
@media (max-width: 560px) {
  .hero-copy .eyebrow { font-size: 0.8125rem; }
  .card-next { inset-inline-start: -2%; top: 52%; }
  .card-site { inset-inline-end: -2%; top: 2%; }
  .hero-stip { inset-inline-start: 2%; bottom: 0; width: 24%; }
  .statement { padding-top: 56px; }
  .float-card { padding-block: 9px; padding-inline: 9px 12px; gap: 9px; border-radius: 16px; }
  .float-card strong { font-size: 0.875rem; }
  .mini-ring { width: 42px; height: 42px; }
  .target { width: 30px; height: 30px; border-radius: 10px; }
  .card-sub { display: none; }
  .store-buttons .store-button { flex: 1 1 100%; justify-content: center; }
}

/* Entrance and reveal */
[data-enter="1"] { --enter-delay: 0.05s; }
[data-enter="2"] { --enter-delay: 0.15s; }
[data-enter="3"] { --enter-delay: 0.27s; }
[data-enter="4"] { --enter-delay: 0.39s; }
[data-enter="5"] { --enter-delay: 0.5s; }
[data-enter="6"] { --enter-delay: 0.8s; }
[data-enter="7"] { --enter-delay: 0.95s; }
[data-enter="8"] { --enter-delay: 1.1s; }
[data-enter="9"] { --enter-delay: 1.25s; }
.hero-copy [data-enter] { animation: enter-up 0.9s var(--ease-out) both; animation-delay: var(--enter-delay); }
.phone[data-enter] { animation: enter-rise 1.1s var(--ease-out) both; animation-delay: var(--enter-delay); }
.float-card[data-enter] { animation: enter-pop 0.8s var(--ease-spring) both; animation-delay: var(--enter-delay); }
.hero-stip[data-enter] { animation: enter-pop 0.8s var(--ease-spring) both; animation-delay: var(--enter-delay); }
@keyframes enter-up { from { opacity: 0; translate: 0 26px; } }
@keyframes enter-rise { from { opacity: 0; translate: 0 80px; } }
@keyframes enter-pop { from { opacity: 0; scale: 0.8; } }
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.7s var(--ease-out), translate 0.8s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* Sections */
section { position: relative; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-top: 14px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.035em; }
.section-lead { margin-top: 18px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink-muted); max-width: 40rem; }

/* Statement */
.statement { padding: clamp(80px, 12vw, 160px) 0 clamp(48px, 7vw, 88px); }
.statement-text {
  font-size: clamp(1.75rem, 4.2vw, 3.4rem); font-weight: 780; line-height: 1.16; letter-spacing: -0.03em;
}
.js .statement-text .word { opacity: 0.16; transition: opacity 0.35s, color 0.35s; }
.js .statement-text .word.is-lit { opacity: 1; }
.statement-answer { margin-top: 28px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 750; color: var(--primary); letter-spacing: -0.02em; }


/* Story (scrollytelling) */
.story { padding: clamp(56px, 7vw, 96px) 0; background: linear-gradient(180deg, var(--ground), var(--ground-deep) 30%, var(--ground-deep) 70%, var(--ground)); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.story-stage {
  position: sticky; top: 72px; height: calc(100vh - 72px); height: calc(100svh - 72px); display: grid; place-items: center; order: 2;
}
.story-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, #0F7B6C) 50%, transparent), transparent 66%);
  filter: blur(30px); transition: background 0.8s;
}
.story-device { position: relative; width: min(320px, 70%, 34svh); translate: 0 -3svh; }
.phone-story { width: 100%; }
.phone-story img { position: absolute; inset: 2.6%; width: 94.8%; height: 94.8%; opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
.phone-story img.is-active { opacity: 1; transform: scale(1); }
.phone-story::after { content: ""; display: block; padding-top: 0; }
.story-chip {
  position: absolute; bottom: 4svh; left: 50%; translate: -50% 0; z-index: 4;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-lift);
  font-weight: 750; font-size: 0.9375rem;
  transition: opacity 0.3s, transform 0.4s var(--ease-spring);
}
.story-chip.is-swapping { opacity: 0; transform: translateY(8px) scale(0.96); }
.story-chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, #0F7B6C); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #0F7B6C) 20%, transparent); transition: background 0.6s; }
.story-dots { position: absolute; inset-inline-end: -34px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 10px; }
.story-dots li { width: 8px; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: height 0.4s var(--ease-out), background 0.4s; }
.story-dots li.is-active { height: 28px; background: var(--accent, var(--primary)); }

.story-steps { order: 1; }
.story-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.story-step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 12vh; }
.story-step:last-child { min-height: 70vh; }
.step-index {
  display: inline-block; align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hairline);
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
}
.story-step h3 { margin-top: 18px; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.035em; }
.story-step p { margin-top: 16px; max-width: 30rem; font-size: 1.125rem; color: var(--ink-muted); }
.js .story-step > :is(.step-index, h3, p) { opacity: 0.4; transition: opacity 0.5s; }
.js .story-step.is-active > :is(.step-index, h3, p) { opacity: 1; }
.story-visual, .story-visual-chip, .story-tabs, .story-pager { display: none; }

/* Story on phones: a swipe carousel with depth, a glow per feature, tabs and a pager */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage { display: none; }
  .story-steps {
    --slide: min(84vw, 380px);
    position: relative; order: 1; display: flex; gap: 12px;
    margin-inline: calc(50% - 50vw); padding: 8px calc(50vw - var(--slide) / 2) 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .story-steps::-webkit-scrollbar { display: none; }
  .story-step, .story-step:first-child, .story-step:last-child {
    position: relative; flex: 0 0 var(--slide); min-height: 0; padding: 0 22px 28px;
    justify-content: flex-start; align-items: center; text-align: center;
    scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden;
    border-radius: 28px; border: 1px solid var(--hairline); box-shadow: var(--shadow-lift);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent, #0F7B6C) 16%, var(--surface)), var(--surface) 62%);
    opacity: calc(1 - var(--depth, 0) * 0.35);
  }
  .story-visual {
    position: relative; display: grid; justify-items: center; align-items: start;
    width: calc(100% + 44px); margin-inline: -22px; height: min(340px, 44svh); padding-top: 24px; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent); mask-image: linear-gradient(180deg, #000 68%, transparent);
  }
  .story-visual::before {
    content: ""; position: absolute; left: 50%; top: 14%; width: 124%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent, #0F7B6C) 72%, transparent), transparent 62%);
    filter: blur(22px); opacity: 0.45; transition: opacity 0.6s;
  }
  .story-step.is-active .story-visual::before { opacity: 1; animation: story-glow 3.6s ease-in-out infinite; }
  .phone-inline {
    display: block; position: relative; width: min(218px, 58vw);
    transform: perspective(900px) rotateY(calc(var(--side, 0) * -16deg)) scale(calc(1 - var(--depth, 0) * 0.1));
    transform-origin: 50% 30%;
  }
  .story-visual-chip {
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: -30px;
    padding: 10px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-lift);
    font-weight: 750; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; scale: 0.86; translate: 0 8px;
    transition: opacity 0.35s, scale 0.5s var(--ease-spring), translate 0.5s var(--ease-spring);
  }
  .story-visual-chip .story-chip-dot { flex: none; }
  .story-step.is-active .story-visual-chip { opacity: 1; scale: 1; translate: 0 0; transition-delay: 0.18s; }
  .story-step .step-index { align-self: center; margin-top: 20px; }
  .story-step h3 { margin-top: 12px; font-size: 1.75rem; }
  .story-step p { margin-top: 10px; font-size: 1rem; }
  .js .story-step > :is(.step-index, h3, p) { opacity: 0.3; translate: 0 12px; transition: opacity 0.45s, translate 0.6s var(--ease-out); }
  .js .story-step.is-active > :is(.step-index, h3, p) { opacity: 1; translate: 0 0; }
  .js .story-step.is-active > h3 { transition-delay: 0.08s; }
  .js .story-step.is-active > p { transition-delay: 0.16s; }
  .story-steps.is-nudging > .story-step { animation: story-nudge 1.1s var(--ease-out); }

  .js .story-tabs {
    position: relative; display: flex; gap: 8px; margin: 0 calc(50% - 50vw) 16px; padding: 4px var(--gutter);
    overflow-x: auto; scrollbar-width: none;
  }
  .story-tabs::-webkit-scrollbar { display: none; }
  .story-tabs button {
    flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--hairline);
    background: var(--surface); color: var(--ink-muted); font: inherit; font-size: 0.875rem; font-weight: 750; cursor: pointer;
    transition: background 0.35s, color 0.35s, border-color 0.35s;
  }
  .story-tabs button[aria-current="true"] {
    background: color-mix(in srgb, var(--accent, var(--primary)) 18%, var(--surface)); border-color: var(--accent, var(--primary)); color: var(--ink);
  }
  .js .story-pager { display: flex; order: 3; justify-content: center; gap: 8px; }
  .story-pager li { width: 8px; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: width 0.4s var(--ease-out), background 0.4s; }
  .story-pager li.is-active { width: 26px; background: var(--accent, var(--primary)); }
}
@keyframes story-glow { 0%, 100% { scale: 0.92; } 50% { scale: 1.06; } }
@keyframes story-nudge { 0%, 100% { translate: 0 0; } 35% { translate: var(--story-nudge, -44px) 0; } }

/* Rotation demo */
.rotation { padding: clamp(56px, 7vw, 96px) 0; }
.rotation-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(20px, 4vw, 48px); border-radius: 36px; background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lift);
}
.body-map { position: relative; display: flex; flex-direction: column; align-items: center; }
.body-sides { direction: ltr; display: flex; justify-content: space-between; width: min(100%, 300px); color: var(--ink-soft); font-weight: 650; font-size: 0.875rem; }
.body-figure { position: relative; width: min(100%, 300px); aspect-ratio: 1 / 2; }
.body-figure svg { width: 100%; height: 100%; }
.silhouette { fill: var(--raised); stroke: color-mix(in srgb, var(--ink) 18%, transparent); stroke-width: 1.75; stroke-linejoin: round; }
.navel { fill: color-mix(in srgb, var(--ink) 25%, transparent); }
.site-buttons { position: absolute; inset: 0; }
.site-dot {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.site-dot span {
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface);
  border: 2.5px solid color-mix(in srgb, var(--ink) 30%, transparent);
  transition: transform 0.35s var(--ease-spring), background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-dot:hover span { transform: scale(1.18); border-color: var(--primary); }
.site-dot.is-used span { background: color-mix(in srgb, var(--ink) 14%, var(--surface)); border-color: transparent; transform: scale(0.8); }
.site-dot.is-used span::after { content: ""; display: block; width: 6px; height: 6px; margin: 4px auto 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 35%, transparent); }
.site-dot.is-suggested span {
  width: 22px; height: 22px; background: var(--apricot); border: 3px solid var(--ink); transform: scale(1);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--apricot) 28%, transparent);
  animation: suggest 1.8s var(--ease-out) infinite;
}
.site-dot.is-selected:not(.is-suggested) span { background: var(--primary); border-color: var(--ink); transform: scale(1.1); }
.site-dot.is-landing span { animation: land 0.7s var(--ease-spring); }
@keyframes suggest { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--apricot) 35%, transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--apricot) 10%, transparent); } }
@keyframes land { 0% { transform: scale(1.6); } 100% { transform: scale(0.8); } }

.rotation-panel { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.suggestion {
  display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 22px;
  background: var(--apricot-tint);
}
.suggestion strong { display: block; font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.15; margin-top: 2px; }
.suggestion-why { display: block; margin-top: 2px; color: var(--ink-muted); font-weight: 600; font-size: 0.9375rem; }
.suggestion-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--surface); }
.suggestion-icon span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--apricot); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 9px var(--apricot); }
.suggestion strong.is-changing { animation: swap 0.5s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.history-title { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.history { display: grid; gap: 8px; }
.history li {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--ground); font-weight: 650;
}
.history li span { color: var(--ink-muted); font-weight: 600; }
.history li.is-new { animation: slide-in 0.6s var(--ease-out); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-muted); font-size: 0.875rem; font-weight: 600; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; }
.legend-suggested { background: var(--apricot); border: 2px solid var(--ink); }
.legend-free { background: var(--surface); border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.legend-used { background: color-mix(in srgb, var(--ink) 14%, var(--surface)); }
.fine-print { color: var(--ink-soft); font-size: 0.8125rem; }
@media (max-width: 860px) {
  .rotation-card { grid-template-columns: 1fr; }
  .body-figure { width: min(100%, 260px); }
}

/* Bento */
.bento-section { padding: clamp(56px, 7vw, 96px) 0; background: var(--ground-deep); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 300px; padding: 26px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; }
.tile-wide .tile-copy { flex: 1 1 50%; }
.tile h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.tile p { margin-top: 8px; color: var(--ink-muted); font-size: 1rem; line-height: 1.5; }
.tile:nth-child(4n+2) { --delay: 0.06s; }
.tile:nth-child(4n+3) { --delay: 0.12s; }
.tile:nth-child(4n) { --delay: 0.18s; }
.tile-art, .checklist, .bars, .pill-timer, .stip-row, .sync { --play: paused; }
.is-visible .tile-art, .is-visible .checklist, .is-visible .bars, .is-visible .pill-timer, .is-visible .stip-row,
.is-visible .sync { --play: running; }
.no-js .tile * { --play: running; }

.tile-reminders { background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--primary-tint) 70%, var(--surface))); }
.notif-stack { flex: 1 1 50%; display: grid; gap: 10px; }
.notif {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: notif-in 0.8s var(--ease-out) both; animation-delay: 0.2s; animation-play-state: var(--play);
}
.notif:nth-child(2) { animation-delay: 1.1s; }
.notif img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.notif div { flex: 1; min-width: 0; line-height: 1.3; font-size: 0.875rem; }
.notif strong { display: block; font-size: 0.8125rem; }
.notif span { color: var(--ink-muted); }
.notif time { align-self: flex-start; font-size: 0.75rem; color: var(--ink-soft); }
@keyframes notif-in { from { opacity: 0; transform: translateY(-16px) scale(0.96); } }

.checklist { display: grid; gap: 10px; font-weight: 650; font-size: 0.9375rem; }
.checklist li { display: flex; align-items: center; gap: 12px; }
.tick { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--hairline); flex: none; animation: tick 0.4s var(--ease-out) both; animation-delay: 0.4s; animation-play-state: var(--play); }
.tick::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); animation: tick-mark 0.45s var(--ease-spring) both; animation-delay: 0.5s; animation-play-state: var(--play);
}
.checklist li:nth-child(2) .tick { animation-delay: 1s; }
.checklist li:nth-child(2) .tick::after { animation-delay: 1.1s; }
.checklist li:nth-child(3) .tick { animation-delay: 1.6s; }
.checklist li:nth-child(3) .tick::after { animation-delay: 1.7s; }
.checklist li:nth-child(4) .tick, .checklist li:nth-child(4) .tick::after { animation: none; }
@keyframes tick { to { background: var(--primary); border-color: var(--primary); } }
@keyframes tick-mark { to { transform: rotate(45deg) scale(1); } }

.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 700; }
.bar span { color: var(--ink-muted); }
.bar i { position: relative; height: 10px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform: scaleX(var(--to)); transform-origin: 0 50%; animation: fill 1.6s var(--ease-out) both; animation-delay: 0.3s; animation-play-state: var(--play); }
.bar-protein i::after { background: var(--apricot); --to: 0.82; }
.bar-fibre i::after { background: var(--primary); --to: 0.7; animation-delay: 0.5s; }
.bar-water i::after { background: #5BBFAE; --to: 0.9; animation-delay: 0.7s; }
@keyframes fill { from { transform: scaleX(0); } }

.pill-timer { position: relative; width: 120px; height: 120px; align-self: center; }
.pill-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pill-track { fill: none; stroke: var(--raised); stroke-width: 10; }
.pill-progress { fill: none; stroke: var(--apricot); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 94; animation: timer 2.4s var(--ease-out) both; animation-delay: 0.3s; animation-play-state: var(--play); }
.pill-timer > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 700; color: var(--ink-muted); font-size: 0.8125rem; line-height: 1; }
.pill-timer strong { font-size: 2rem; color: var(--ink); letter-spacing: -0.03em; }
@keyframes timer { from { stroke-dashoffset: 314; } }

.tile-stip { background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--apricot-tint) 80%, var(--surface))); }
.tile-stip .tile-copy { flex: 0 1 42%; }
.stip-row { flex: 1 1 58%; display: flex; justify-content: center; align-items: flex-end; gap: 2px; }
.stip-row img { width: 20%; min-width: 0; animation: hop 0.9s var(--ease-out) both; animation-delay: 0.3s; animation-play-state: var(--play); }
.stip-row img:nth-child(2) { animation-delay: 0.45s; }
.stip-row img:nth-child(3) { animation-delay: 0.6s; }
.stip-row img:nth-child(4) { animation-delay: 0.75s; }
.stip-row img:nth-child(5) { animation-delay: 0.9s; width: 24%; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-14px); } }

.sync { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sync-node { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--raised); flex: none; }
.sync-heart svg { width: 30px; height: 30px; fill: var(--apricot); }
.sync-app img { width: 64px; height: 64px; border-radius: 18px; }
.sync-line { position: relative; flex: 1; max-width: 120px; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--hairline) 0 6px, transparent 6px 12px); }
.sync-line i { position: absolute; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); animation: flow 2.4s linear 3 both; animation-play-state: var(--play); }
.sync-line i:nth-child(2) { animation-delay: 0.8s; }
.sync-line i:nth-child(3) { animation-delay: 1.6s; }
@keyframes flow { from { inset-inline-start: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { inset-inline-start: calc(100% - 10px); opacity: 0; } }





@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .tile { min-height: 0; }
}

/* Medicines */
.medicines { padding: clamp(56px, 7vw, 96px) 0; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 clamp(32px, 4vw, 48px); }
.chips li {
  padding: 12px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline);
  font-size: clamp(1rem, 1.5vw, 1.125rem); font-weight: 700; box-shadow: var(--shadow-soft);
}
.chips .chip-custom { background: var(--apricot-tint); border-color: transparent; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.form-grid li { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.form-grid li:nth-child(2) { --delay: 0.06s; }
.form-grid li:nth-child(3) { --delay: 0.12s; }
.form-grid li:nth-child(4) { --delay: 0.18s; }
.form-grid h3 { margin-top: 18px; font-size: 1.25rem; }
.form-grid p { margin-top: 8px; color: var(--ink-muted); font-size: 1rem; line-height: 1.5; }
.form-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 850; font-size: 1.25rem; color: #fff; }
.form-weekly { background: var(--primary); }
.form-daily { background: var(--primary-deep); }
.form-pill { background: var(--apricot-tint); }
.form-pill::before { content: ""; width: 28px; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--apricot) 50%, var(--surface) 50%); transform: rotate(-35deg); box-shadow: 0 0 0 2px var(--apricot); }
.form-custom { background: var(--ink); color: var(--ground); font-size: 1.5rem; }
.stages { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.stages span { padding: 10px 18px; border-radius: 999px; border: 1.5px dashed color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary); font-weight: 700; font-size: 0.9375rem; }
@media (max-width: 960px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band {
  padding: clamp(80px, 11vw, 150px) 0; color: var(--on-night); overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 15% 30%, rgba(60, 203, 180, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 90%, rgba(255, 138, 91, 0.14), transparent 70%),
    linear-gradient(160deg, var(--night-2), var(--night));
}
.privacy-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(127, 212, 196, 0.16) 1.3px, transparent 1.5px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 25% 50%, #000, transparent 75%);
}
.privacy-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.privacy-band h2 { margin-top: 14px; font-size: clamp(2.2rem, 4.8vw, 3.8rem); letter-spacing: -0.035em; color: #fff; }
.privacy-band .section-lead { color: var(--on-night-muted); }
.privacy-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 36px 0 28px; }
.privacy-facts li { padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(127, 212, 196, 0.16); }
.privacy-facts li:nth-child(2) { --delay: 0.06s; }
.privacy-facts li:nth-child(3) { --delay: 0.12s; }
.privacy-facts li:nth-child(4) { --delay: 0.18s; }
.privacy-facts h3 { font-size: 1.125rem; color: #fff; letter-spacing: -0.01em; }
.privacy-facts p { margin-top: 6px; font-size: 0.9375rem; color: var(--on-night-muted); line-height: 1.5; }
.privacy-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1.5px solid rgba(127, 212, 196, 0.2); animation: spin 30s linear infinite; }
.orbit-1 { inset: 22%; animation-duration: 60s; }
.orbit-2 { inset: 8%; animation-duration: 90s; animation-direction: reverse; }
.orbit-3 { inset: -4%; animation-duration: 140s; border-style: dashed; }
.orbit i { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #3CCBB4; box-shadow: 0 0 18px rgba(60, 203, 180, 0.8); }
.orbit i:nth-child(1) { left: 50%; top: 0; }
.orbit i:nth-child(2) { left: 100%; top: 50%; background: #FF8A5B; box-shadow: 0 0 18px rgba(255, 138, 91, 0.8); }
.orbit i:nth-child(3) { left: 50%; top: 100%; width: 10px; height: 10px; margin: -5px; }
.orbit i:nth-child(4) { left: 0; top: 50%; background: #BFEDE3; box-shadow: 0 0 18px rgba(191, 237, 227, 0.8); }
.privacy-phone {
  position: relative; width: 30%; aspect-ratio: 1 / 1.9; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(160deg, #134A41, #0A2E28); box-shadow: inset 0 0 0 1.5px rgba(127, 212, 196, 0.35), 0 30px 80px -20px rgba(60, 203, 180, 0.5);
}
.privacy-phone svg { width: 52%; fill: none; stroke: #7FD4C4; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.privacy-phone svg circle { fill: #FF8A5B; stroke: none; }
@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-art { max-width: 300px; }
}
@media (max-width: 560px) { .privacy-facts { grid-template-columns: 1fr; } }

/* Care */
.care { padding: clamp(56px, 7vw, 96px) 0; }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.care-grid li { padding-top: 22px; border-top: 2px solid var(--hairline); }
.care-grid li:nth-child(2) { --delay: 0.08s; }
.care-grid li:nth-child(3) { --delay: 0.16s; }
.care-num { font-weight: 850; font-size: 0.9375rem; color: var(--apricot-ink); letter-spacing: 0.08em; }
@media (prefers-color-scheme: dark) { .care-num { color: var(--apricot); } }
.care-grid h3 { margin-top: 14px; font-size: 1.375rem; }
.care-grid p { margin-top: 10px; color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 860px) { .care-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: clamp(56px, 7vw, 96px) 0; background: var(--ground-deep); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border-radius: 22px; background: var(--surface); border: 1px solid var(--hairline);
  transition: box-shadow 0.3s, border-color 0.3s;
  interpolate-size: allow-keywords;
}
.faq-list details[open] { box-shadow: var(--shadow-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--hairline)); }
.faq-list summary {
  position: relative; display: block;
  min-height: 64px; padding-block: 19px; padding-inline: 22px 64px; cursor: pointer; list-style: none;
  font-weight: 750; font-size: 1.0625rem; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; inset-inline-end: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background:
    linear-gradient(var(--primary), var(--primary)) center / 12px 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center / 2px 12px no-repeat,
    var(--primary-tint);
  transition: transform 0.4s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
.answer { padding: 0 22px 22px; color: var(--ink-muted); line-height: 1.6; }
.faq-list details:nth-child(even) { --delay: 0.04s; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}

/* CTA */
.cta { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 128px); }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: 40px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(127, 212, 196, 0.35), transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 100%, rgba(255, 138, 91, 0.25), transparent 70%),
    linear-gradient(160deg, #11806F, #0A4E45);
  color: #fff; box-shadow: 0 40px 80px -40px rgba(11, 95, 84, 0.8);
}
.cta-card h2 { margin-top: 18px; font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.035em; }
.cta-card p { margin-top: 14px; font-size: 1.1875rem; color: rgba(255, 255, 255, 0.82); }
.cta-card .store-buttons { margin-top: 32px; }
.cta-card .store-button { background: #fff; color: var(--night); }
.cta-card .store-button:hover { color: var(--night); }
.cta-card .accent-dot { color: #FFB08F; }
.cta-stip { width: 120px; margin-inline: auto; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.25)); }

/* Footer */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--hairline); background: var(--ground-deep); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--ink-muted); max-width: 18rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 80px); }
.footer-nav h2 { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 800; }
.footer-nav ul { margin-top: 14px; display: grid; gap: 4px; }
.footer-nav a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--primary); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); display: grid; gap: 10px; color: var(--ink-soft); font-size: 0.875rem; }
.footer-bottom p { max-width: 64rem; }
.nowrap { white-space: nowrap; }

/* Legal and support pages */
.page-hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); overflow-x: clip; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-glow) 45%, transparent), transparent 65%); filter: blur(60px); opacity: 0.7; pointer-events: none;
}
@media (prefers-color-scheme: dark) { .page-hero::before { opacity: 0.25; } }
.page-hero .eyebrow { position: relative; }
.page-hero h1 { position: relative; margin-top: 14px; font-size: clamp(2.4rem, 5.6vw, 4.2rem); letter-spacing: -0.04em; }
.page-hero .updated { position: relative; margin-top: 12px; color: var(--ink-soft); font-weight: 600; }
.page-body { padding-bottom: clamp(72px, 9vw, 120px); }
.page-body .prose-wrap { display: grid; grid-template-columns: 1fr; }
.page-body .page-title { display: none; }
.prose {
  max-width: 46rem; padding: clamp(24px, 4vw, 48px); border-radius: 32px;
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft);
}
.prose > p:first-child, .prose .lead { font-size: 1.1875rem; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose p, .prose li { color: var(--ink-muted); }
.prose strong { color: var(--ink); }
.prose section { margin-top: 44px; scroll-margin-top: 100px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); letter-spacing: -0.025em; }
.prose h3 { margin-top: 24px; font-size: 1.1875rem; letter-spacing: -0.01em; }
.prose ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-inline-start: 26px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.prose ol { padding-inline-start: 1.4em; list-style: decimal; display: grid; gap: 10px; }
.prose ol li::marker { color: var(--primary); font-weight: 800; }
.prose table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); text-align: start; vertical-align: top; color: var(--ink-muted); }
.prose th { color: var(--ink); font-weight: 750; }
@media (max-width: 640px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--ground); }
  .prose td { padding: 4px 0; border: 0; }
  .prose td[data-label]::before { content: attr(data-label); display: block; color: var(--ink); font-weight: 750; font-size: 0.8125rem; }
}
.prose .toc { margin-top: 28px; padding: 22px 24px; border-radius: 22px; background: var(--ground); }
.prose .toc h2 { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.prose .toc ol { margin-top: 12px; columns: 2; column-gap: 28px; display: block; padding-inline-start: 2em; font-variant-numeric: tabular-nums; }
.prose .toc li { margin-bottom: 6px; break-inside: avoid; }
.prose .toc a { text-decoration: none; font-weight: 650; }
@media (max-width: 640px) { .prose .toc ol { columns: 1; } }
.prose .callout { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: var(--apricot-tint); }
.prose .callout p { margin: 0; color: var(--ink); }
.prose details { margin-top: 10px; border-radius: 18px; background: var(--ground); border: 1px solid var(--hairline); interpolate-size: allow-keywords; }
.prose details summary { position: relative; padding-block: 16px; padding-inline: 20px 56px; cursor: pointer; list-style: none; font-weight: 750; color: var(--ink); }
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after {
  content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background:
    linear-gradient(var(--primary), var(--primary)) center / 10px 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center / 2px 10px no-repeat,
    var(--primary-tint);
  transition: transform 0.4s var(--ease-out);
}
.prose details[open] summary::after { transform: rotate(135deg); }
.prose details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete; }
.prose details[open]::details-content { block-size: auto; }
.prose details > :not(summary) { margin: 0 20px 16px; }
.prose details > :not(summary):first-of-type { margin-top: 0; }
.page-aside { display: none; }
@media (min-width: 1100px) {
  .page-body .prose-wrap { grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: 48px; }
  .page-aside { display: block; position: sticky; top: 110px; align-self: start; }
}
.aside-card { padding: 26px; border-radius: 28px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft); text-align: center; }
.aside-card img { width: 110px; margin: 0 auto; }
.aside-card h2 { margin-top: 12px; font-size: 1.25rem; }
.aside-card p { margin-top: 8px; color: var(--ink-muted); font-size: 0.9375rem; }
.aside-card .button { margin-top: 16px; }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found img { width: 140px; margin: 0 auto; }
.not-found h1 { margin-top: 20px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.not-found p { margin-top: 12px; color: var(--ink-muted); }
.not-found .button { margin-top: 24px; }

/* Reduced motion: keep everything visible and still */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1 !important; translate: none !important; }
  .js .statement-text .word { opacity: 1; }
  .js .story-step > :is(.step-index, h3, p) { opacity: 1; translate: none; }
  .story-visual-chip { opacity: 1; scale: 1; translate: none; }
  .bar i::after { transform: scaleX(var(--to)); }
  .checklist li:not(:last-child) .tick { background: var(--primary); border-color: var(--primary); }
  .checklist li:not(:last-child) .tick::after { transform: rotate(45deg) scale(1); }
  .notif { opacity: 1; transform: none; }
}

/* Medicine chips with generic names */
.chips li span { margin-inline-start: 4px; color: var(--ink-muted); font-weight: 600; font-size: 0.875em; }

/* Home: start-here hubs */
.hubs { padding: clamp(56px, 7vw, 96px) 0; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.hub-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}
.hub-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--primary) 35%, var(--hairline)); }
.hub-card strong { font-size: 1.375rem; letter-spacing: -0.02em; }
.hub-card span { color: var(--ink-muted); line-height: 1.5; flex: 1; }
.hub-card em { font-style: normal; font-weight: 750; color: var(--primary); }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--hairline); }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs + h1 { margin-top: 18px; }

/* Article */
.article-hero h1 { max-width: 20ch; font-size: clamp(2.3rem, 5vw, 3.9rem); }
.article-lead { position: relative; margin-top: 16px; max-width: 42rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-muted); }
.article-meta { position: relative; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 0.875rem; font-weight: 650; color: var(--ink-soft); }
.article-meta span + span::before { content: "·"; margin-right: 18px; color: var(--hairline); }
.article-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(48px, 6vw, 80px); }
.article { min-width: 0; }
.quick-answer {
  padding: 22px 24px; border-radius: 22px; background: var(--primary-tint);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}
.quick-answer-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-deep); }
@media (prefers-color-scheme: dark) { .quick-answer-label { color: var(--primary); } }
.quick-answer p:last-child { margin-top: 8px; font-size: 1.125rem; line-height: 1.6; color: var(--ink); font-weight: 550; }
.article-body { margin-top: 12px; }
.article-body h2 { margin-top: 48px; font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -0.03em; scroll-margin-top: 96px; }
.article-body h3 { margin-top: 30px; font-size: 1.25rem; letter-spacing: -0.015em; scroll-margin-top: 96px; }
.article-body p, .article-body ul, .article-body ol { margin-top: 14px; color: var(--ink-muted); font-size: 1.0625rem; line-height: 1.7; }
.article-body strong { color: var(--ink); }
.article-body a { font-weight: 650; }
.article-body ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.article-body ul li { position: relative; padding-inline-start: 26px; }
.article-body ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.66em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.article-body ol { padding-inline-start: 1.5em; display: grid; gap: 8px; }
.article-body ol li::marker { color: var(--primary); font-weight: 800; }
.article-body blockquote { margin: 20px 0 0; padding: 16px 20px; border-left: 4px solid var(--apricot); border-radius: 0 16px 16px 0; background: var(--apricot-tint); }
.article-body blockquote p { margin: 0; color: var(--ink); }
.table-wrap { margin-top: 18px; overflow-x: auto; border-radius: 18px; border: 1px solid var(--hairline); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--hairline); color: var(--ink-muted); }
.table-wrap th { background: var(--raised); color: var(--ink); font-weight: 750; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--ink); font-weight: 650; }
.article-faq, .article-sources { margin-top: 56px; }
.article-faq h2, .article-sources h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -0.03em; }
.article-faq .faq-list { margin-top: 18px; }
.article-sources ol { margin-top: 14px; padding-inline-start: 1.4em; display: grid; gap: 8px; font-size: 0.9375rem; color: var(--ink-muted); }
.article-sources a { word-break: break-word; }
.article-disclaimer { margin-top: 32px; padding: 16px 18px; border-radius: 16px; background: var(--raised); color: var(--ink-muted); font-size: 0.875rem; }
.article-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.toc-card { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hairline); }
.toc-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.toc-card ol { margin-top: 12px; display: grid; gap: 4px; padding-inline-start: 1.3em; font-variant-numeric: tabular-nums; }
.toc-card li::marker { color: var(--ink-soft); font-size: 0.875rem; }
.toc-card a { display: block; padding: 4px 0; color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.toc-card a:hover, .toc-card a.is-current { color: var(--primary); }
.aside-app { display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto; gap: 6px 16px; align-items: center; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft); }
.aside-app img { grid-row: span 2; width: 74px; border-radius: 12px; border: 3px solid #0B1513; }
.aside-app p { font-size: 0.9375rem; line-height: 1.35; }
.aside-app .button { justify-self: start; }
@media (max-width: 1020px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; }
  .aside-app { display: none; }
}
.article-cta { padding: 0 0 clamp(56px, 7vw, 96px); }
.article-cta-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: center; overflow: hidden;
  padding: clamp(32px, 5vw, 64px); border-radius: 40px; color: #fff;
  background: radial-gradient(ellipse 60% 80% at 20% 0%, rgba(127, 212, 196, 0.32), transparent 70%), linear-gradient(160deg, #11806F, #0A4E45);
  box-shadow: 0 40px 80px -40px rgba(11, 95, 84, 0.8);
}
.article-cta-card h2 { margin-top: 12px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; color: #fff; }
.article-cta-card ul { margin-top: 20px; display: grid; gap: 10px; }
.article-cta-card li { position: relative; padding-inline-start: 30px; color: rgba(255, 255, 255, 0.88); font-weight: 600; }
.article-cta-card li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.article-cta-card .store-buttons { margin-top: 28px; }
.article-cta-card .store-button { background: #fff; color: var(--night); }
.article-cta-card .store-button:hover { color: var(--night); }
.article-cta-card .accent-dot { color: #FFB08F; }
.article-cta-phone { width: min(260px, 100%); justify-self: center; margin-bottom: -120px; }
@media (max-width: 760px) {
  .article-cta-card { grid-template-columns: 1fr; }
  .article-cta-phone { width: 200px; margin-bottom: -150px; }
}
.related { padding: 0 0 clamp(56px, 7vw, 96px); }
.related h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.related-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.related-grid-large { margin-top: 0; }
.guide-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.guide-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.guide-card-category { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.guide-card strong { font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.25; }
.guide-card-text { flex: 1; color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.5; }
.guide-card-more { font-weight: 750; color: var(--primary); font-size: 0.9375rem; }
.category-list { padding: 8px 0 clamp(40px, 6vw, 72px); }

/* Footer: keyword columns */
.footer-guides {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 32px;
  padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--hairline);
}
.footer-guides h2 { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; }
.footer-guides h2 a { color: var(--ink-soft); text-decoration: none; }
.footer-guides h2 a:hover { color: var(--primary); }
.footer-guides ul { margin-top: 12px; display: grid; gap: 2px; }
.footer-guides li a { display: inline-flex; min-height: 32px; align-items: center; color: var(--ink-muted); text-decoration: none; font-size: 0.9375rem; font-weight: 550; }
.footer-guides li a:hover { color: var(--primary); }

.article-body img { display: block; width: 100%; height: auto; margin-top: 18px; border-radius: 22px; border: 1px solid var(--hairline); background: #fff; }
.article-body p:has(> img) + p em { display: block; margin-top: -4px; font-size: 0.875rem; color: var(--ink-soft); font-style: normal; }
.article-body img[src*="/screens/"] {
  width: min(280px, 72%); margin: 22px auto 0; border: 7px solid #0B1513; border-radius: 36px;
  box-shadow: 0 30px 60px -30px rgba(16, 35, 31, 0.45);
}

.store-button-soon { cursor: default; opacity: 0.85; }
.store-button-soon:hover { transform: none; }
.footer-soon { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink-soft); font-weight: 600; }

/* Official store badges (Apple and Google artwork, unmodified) */
.store-buttons { align-items: center; --badge-h: 54px; }
.store-badge { display: inline-flex; border-radius: 10px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge-apple img { height: var(--badge-h); width: auto; }
.store-badge-google img { height: calc(var(--badge-h) * 1.49); width: auto; margin: calc(var(--badge-h) * -0.245) calc(var(--badge-h) * -0.2); }
.store-soon { display: inline-flex; align-items: center; min-height: var(--badge-h); padding: 0 16px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink-muted); font-weight: 650; font-size: 0.9375rem; }
.cta-card .store-soon, .article-cta-card .store-soon { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.45); }
@media (max-width: 560px) { .store-buttons { --badge-h: 48px; justify-content: center; } }

.language-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-block-start: 32px; }
.language-switch a { display: inline-flex; align-items: center; min-height: 44px; }
.language-switch [aria-current="page"] { color: var(--ink); font-weight: 750; }
html:not(:lang(en)) .footer-guides::before { content: attr(aria-label); grid-column: 1 / -1; font-weight: 750; }
[dir="rtl"] { --story-nudge: 44px; }
[dir="rtl"] .site-nav { transform-origin: top left; }
[dir="rtl"] :is(.scroll-progress span, .bar i::after) { transform-origin: right center; }
[dir="rtl"] .text-link span { scale: -1 1; }

/* Cookie consent. A non-modal bar: the page stays readable and scrollable behind it. */
.consent {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  padding: 0 var(--gutter) max(12px, env(safe-area-inset-bottom)); pointer-events: none;
}
.consent[hidden] { display: none; }
.consent-inner {
  pointer-events: auto; width: min(100%, 820px); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 20px;
  border: 1px solid var(--hairline); border-radius: var(--radius-small);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift);
}
.consent-text { flex: 1 1 24rem; font-size: 0.9375rem; line-height: 1.5; }
.consent-title { font-size: 1rem; letter-spacing: 0; margin-bottom: 4px; }
.consent-actions { display: flex; flex: 1 1 15rem; gap: 10px; }
.consent-button { flex: 1 1 0; min-height: 44px; padding: 0 18px; background: var(--ink); color: var(--ground); }
.consent-button:hover { background: var(--ink-muted); color: var(--ground); }
.footer-consent {
  display: inline-flex; min-height: 36px; align-items: center; padding: 0; border: 0; background: none;
  color: var(--ink); font: inherit; font-weight: 600; text-align: start; cursor: pointer;
}
.footer-consent:hover { color: var(--primary); }
