/* Ellu: the app's own materials on the web. Colors and glass come from ColorExtensions.swift and GlassCard.swift. */
@font-face { font-family: Onest; src: url(/fonts/onest-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; src: url(/fonts/onest-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Onest; src: url(/fonts/onest-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; src: url(/fonts/onest-cyrillic-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  color-scheme: light;
  --bg: #EDEEEC; --ink: #151716; --soft: #5F6461; --line: rgba(21, 23, 22, .12);
  --lime: #D7F25A; --lime-deep: #CDEB4A; --lime-shade: rgba(90, 110, 10, .28);
  --coral: #F0907A; --amber: #F4D9A6;
  --peach: #F6C3B5; --sage: #D2E3C8; --blush: #F6D7CC; --blob: 1;
  --card: rgba(255, 255, 255, .6); --edge: rgba(255, 255, 255, .95); --track: #D6D8D5;
  --shadow: 0 14px 40px rgba(30, 40, 30, .12);
  --sheet: #151716; --on-sheet: #EDEEEC; --on-sheet-soft: #B9BDBA;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", Onest, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1600px;
  /* Поля страницы: на широком экране растут так, что контент остаётся в колонке --max по центру */
  --pad: clamp(16px, 4vw, 56px);
  --gut: max(var(--pad), calc((100vw - var(--max)) / 2));
  /* Поля тёмных блоков: на обычном экране почти в край, на широком — вровень с колонкой */
  --bleed: max(clamp(8px, 2vw, 24px), calc((100vw - var(--max)) / 2));
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1110; --ink: #EDEEEC; --soft: #A3A8A5; --line: rgba(237, 238, 236, .14);
  --card: rgba(255, 255, 255, .06); --edge: rgba(255, 255, 255, .1); --track: #2A2D2B;
  --shadow: 0 14px 40px rgba(0, 0, 0, .35); --blob: .14;
  --sheet: #1B1D1C;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--blob);
  background:
    radial-gradient(60vmax 50vmax at 4% 2%, var(--peach), transparent 68%),
    radial-gradient(60vmax 56vmax at 102% 46%, var(--sage), transparent 68%),
    radial-gradient(52vmax 46vmax at 2% 98%, var(--blush), transparent 68%); }

/* Mono label with the lime dot: MonoLabel in the app */
.label { display: flex; align-items: center; gap: 9px; font: 400 12px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--soft); margin-bottom: 18px; }
.label i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 6px var(--lime-deep); }
:lang(zh-Hans) .label { letter-spacing: .04em; }

.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.42; color: var(--soft); max-width: 34em; }
.fine { font-size: 13px; color: var(--soft); }
h1, h2 { font-weight: 300; }
h2 { font-size: clamp(36px, 5vw, 68px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; margin-bottom: 18px; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2 { letter-spacing: 0; font-weight: 400; }

.glass { background: var(--card); border: 1px solid var(--edge); border-radius: 28px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); }

/* The primary button: lime pill with the dot texture, PrimaryButtonStyle */
/* Alive: the dots drift, a sheen sweeps across every few seconds, the glow breathes.
   Hover: lifts, leans toward the cursor (site.js sets --mx/--my and translate) and the dots light up under it. */
.pill { --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 34px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; text-align: center; color: #151716;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat, var(--lime);
  box-shadow: 0 8px 22px rgba(170, 200, 40, .45), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(120, 150, 0, .18);
  animation: pill-sheen 5.5s 1.2s cubic-bezier(.5, 0, .3, 1) infinite, pill-glow 3.2s ease-in-out infinite;
  transition: scale .35s cubic-bezier(.3, 1.6, .5, 1), translate .25s ease-out, box-shadow .35s ease; }
.pill::before { content: ""; position: absolute; inset: -14px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, var(--lime-shade) 1.1px, transparent 1.4px) 0 0 / 7px 7px; animation: pill-dots 9s linear infinite; }
.pill::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(90px circle at var(--mx) var(--my), rgba(255, 255, 255, .85), rgba(255, 255, 255, .25) 45%, transparent 70%); mix-blend-mode: soft-light; }
.pill:hover { scale: 1.035; box-shadow: 0 16px 36px rgba(170, 200, 40, .6), 0 0 0 6px rgba(215, 242, 90, .22), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(120, 150, 0, .18); }
.pill:hover::after { opacity: 1; }
.pill:hover::before { animation-duration: 3s; }
.pill:active { scale: .96; transition-duration: .08s; }
@keyframes pill-dots { to { background-position: 28px -14px; } }
@keyframes pill-sheen { 0% { background-position: 160% 0, 0 0; } 32%, 100% { background-position: -60% 0, 0 0; } }
@keyframes pill-glow { 50% { box-shadow: 0 10px 30px rgba(170, 200, 40, .65), 0 0 0 4px rgba(215, 242, 90, .16), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(120, 150, 0, .18); } }
.pill.small { min-height: 40px; padding: 0 18px; font-size: 14px; white-space: nowrap; animation: pill-sheen 6.5s 2.4s cubic-bezier(.5, 0, .3, 1) infinite; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.pill.small:hover { box-shadow: 0 8px 20px rgba(170, 200, 40, .45), 0 0 0 4px rgba(215, 242, 90, .2); }
.pill.ink { color: var(--lime); background: linear-gradient(105deg, transparent 38%, rgba(215, 242, 90, .35) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat, #151716; box-shadow: none; animation: pill-sheen 5.5s 1.2s cubic-bezier(.5, 0, .3, 1) infinite; }
.pill.ink::before { background-image: radial-gradient(circle, rgba(215, 242, 90, .22) 1.1px, transparent 1.4px); }
.pill.ink:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }

/* Store buttons: black badges with the store's mark, a lime sheen passes over them like over the main button */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 11px; height: 58px; padding: 0 22px 0 16px; border-radius: 16px; text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(105deg, transparent 38%, rgba(215, 242, 90, .32) 50%, transparent 62%) 170% 0 / 260% 100% no-repeat, #121313;
  box-shadow: 0 10px 26px rgba(20, 24, 22, .22); animation: pill-sheen 6s 1.6s cubic-bezier(.5, 0, .3, 1) infinite;
  transition: translate .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease; }
.store + .store { animation-delay: 2.1s; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 21px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0; opacity: .85; margin-bottom: 2px; }
.store:hover { translate: 0 -3px; box-shadow: 0 16px 34px rgba(20, 24, 22, .3), 0 0 0 4px rgba(215, 242, 90, .35); }
.store:active { translate: 0 0; transition-duration: .08s; }
.hero .stores, .vh .stores { margin-top: 4px; }
.last .stores { margin-top: 8px; }

/* Header */
.top { position: sticky; top: 10px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: calc(100% - 2 * var(--gut)); max-width: calc(100vw - 2 * var(--gut)); margin: 10px auto 0;
  transition: max-width .7s cubic-bezier(.22, .8, .24, 1), box-shadow .5s ease; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; }
.brand { gap: 7px; }
.brand .brand-drop { width: 22px; height: auto; }
.brand .brand-word { width: 58px; height: auto; margin-top: 3px; }
.top nav { position: absolute; left: 50%; translate: -50% 0; display: flex; gap: 26px; font-size: 15px; white-space: nowrap; transition: opacity .35s ease, visibility .35s; }
/* While scrolling the bar shrinks to the logo, a menu button and the store button; the menu button opens it again */
.top.mini { max-width: 330px; box-shadow: 0 14px 34px -14px rgba(60, 40, 70, .35); }
.top.mini nav { opacity: 0; visibility: hidden; }
.top .eclipse, .burger { transition: width .5s cubic-bezier(.22, .8, .24, 1), opacity .35s ease, margin .5s cubic-bezier(.22, .8, .24, 1), transform .5s ease; }
.top.mini .eclipse { width: 0; opacity: 0; margin-right: -10px; border-width: 0; pointer-events: none; }
.burger { position: relative; flex: none; width: 0; height: 40px; padding: 0; margin-right: -10px; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); opacity: 0; cursor: pointer; overflow: hidden; }
.burger i { position: absolute; left: 50%; width: 16px; height: 1.6px; margin-left: -8px; border-radius: 2px; background: currentColor; transition: transform .4s ease; }
.burger i:first-child { top: 16px; } .burger i:last-child { top: 22px; width: 11px; }
.burger:hover i:last-child { transform: scaleX(1.45); transform-origin: left; }
.top.mini .burger { width: 40px; margin-right: 0; opacity: 1; }
.top.mini .burger:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); align-items: center; min-height: min(calc(100vh - 90px), 860px); padding: clamp(28px, 4vw, 56px) var(--gut) clamp(40px, 5vw, 72px); }
.hero h1 { font-size: clamp(58px, 9.2vw, 148px); line-height: .94; letter-spacing: -.055em; margin-bottom: 26px; text-wrap: balance; }
:lang(zh-Hans) .hero h1 { line-height: 1.08; }
.hero .lead { margin-bottom: 28px; }
.hero .fine { margin-top: 12px; }
.dial-wrap { width: 100%; max-width: 640px; justify-self: center; text-align: center; }

.dial { position: relative; aspect-ratio: 1; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.dial.dragging { cursor: grabbing; touch-action: none; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial path { fill: none; stroke-linecap: butt; }
.seg-track { stroke: var(--track); }
.seg-period { stroke: var(--coral); filter: drop-shadow(0 0 10px rgba(240, 144, 122, .55)); }
.seg-fertile { stroke: var(--lime-deep); filter: drop-shadow(0 0 12px rgba(205, 235, 74, .7)); }
.tick { stroke: var(--soft); stroke-width: 2; opacity: .35; }
.disc { position: absolute; inset: 14.5%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--card); border: 1px solid var(--edge); box-shadow: inset 0 -24px 60px rgba(40, 50, 45, .12), 0 24px 50px rgba(40, 50, 45, .2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); pointer-events: none; }
.disc-num { font-size: clamp(84px, 13vw, 190px); font-weight: 200; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.disc-cap { margin-top: 10px; font: 400 clamp(11px, 1vw, 14px)/1 var(--mono); letter-spacing: .22em; color: var(--soft); }
.knob { position: absolute; width: 8.4%; aspect-ratio: 1; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; cursor: inherit; background: radial-gradient(circle, #151716 0 40%, #fff 42% 66%, rgba(255, 255, 255, .45) 68%); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.dial-read { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; min-height: 76px; }
.dial-read strong { font: 500 clamp(17px, 1.6vw, 20px)/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
:lang(zh-Hans) .dial-read strong { letter-spacing: .06em; }
.dial-read span { color: var(--soft); font-size: 15px; }
.dial-hint { margin-top: 4px; }

/* Privacy: the dark insight card from the wellbeing screen, at page scale */
.promise { margin: 0 var(--bleed); padding: clamp(36px, 7vw, 104px) clamp(24px, 7vw, 104px); border-radius: clamp(28px, 4vw, 52px); background: var(--sheet); color: var(--on-sheet); }
.promise .label { color: var(--on-sheet-soft); }
.promise-a { font-size: clamp(32px, 5.1vw, 74px); font-weight: 300; line-height: 1.08; letter-spacing: -.035em; max-width: 19em; text-wrap: pretty; }
:lang(zh-Hans) .promise-a { letter-spacing: 0; line-height: 1.25; }
.promise-b { margin-top: clamp(24px, 3vw, 44px); font-size: clamp(18px, 1.8vw, 25px); line-height: 1.38; max-width: 40em; }
.promise-c { margin-top: 18px; color: var(--on-sheet-soft); font-size: 16px; max-width: 44em; }
.promise-c a { color: var(--lime); white-space: nowrap; }

section.ages, section.tour, section.free, section.faq { padding: clamp(72px, 10vw, 148px) var(--gut) 0; }

/* Age dial */
.ages .lead { max-width: 30em; }
.ages-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 44px); margin-top: clamp(28px, 4vw, 52px); align-items: start; }
.agebox { padding: clamp(20px, 3vw, 36px); text-align: center; position: sticky; top: 92px; }
.agebox-q { font-weight: 500; margin-bottom: 14px; }
.agelist .agebox-q { margin: 4px 0 14px 4px; }
.agebox-row { display: flex; align-items: center; justify-content: space-between; }
.round { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--edge); background: var(--card); color: var(--ink); font-size: 24px; font-weight: 300; line-height: 1; cursor: pointer; }
.age-num { font-size: clamp(96px, 12vw, 160px); font-weight: 200; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.age-unit { font: 400 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); margin: 6px 0 24px; }
.age-track { position: relative; height: 44px; }
.age-bars { position: absolute; inset: 0; display: flex; gap: 2px; align-items: center; }
.age-bars i { flex: 1; height: 18px; min-width: 0; border-radius: 3px; background: var(--track); }
.age-bars i.on { background: var(--lime-deep); }
.age-bars i.now { background: var(--lime-deep); height: 32px; }
.age-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.age-track:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--edge); border-radius: 20px; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .35s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .35s ease, border-color .35s ease; }
.opt:hover:not(:disabled) { border-color: color-mix(in srgb, var(--lime-deep) 70%, var(--edge)); }
.opt:active:not(:disabled) { transform: scale(.98); }
.opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#age-options.off .opt { opacity: .38; cursor: default; }
.opt.sel > i { animation: opt-tick .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes opt-tick { from { transform: scale(.4); } }
.opt > i { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--soft); }
.opt.sel { background: color-mix(in srgb, var(--lime) 35%, var(--card)); }
.opt.sel > i { border: 0; background: var(--ink); -webkit-mask: none; position: relative; }
.opt.sel > i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.opt strong { display: block; font-size: 17px; font-weight: 500; }
.opt span { display: block; font-size: 13px; line-height: 1.35; color: var(--soft); }
.age-more { margin: 14px 4px 0; font-size: 14px; color: var(--soft); }
.age-note { margin: 16px 4px 0; font-size: 17px; line-height: 1.45; }
.branches { margin-top: clamp(28px, 4vw, 48px); font-size: clamp(20px, 2.1vw, 30px); font-weight: 300; line-height: 1.3; letter-spacing: -.015em; max-width: 34em; text-wrap: pretty; }

/* Phones along a wave: the cycle, drawn by the row itself */
.tour .sec-head { margin-bottom: 8px; }
.tour-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); align-items: start; }
.tour-row li:nth-child(1) { margin-top: 72px; }
.tour-row li:nth-child(2) { margin-top: 18px; }
.tour-row li:nth-child(3) { margin-top: 0; }
.tour-row li:nth-child(4) { margin-top: 18px; }
.tour-row li:nth-child(5) { margin-top: 72px; }
.phone { overflow: hidden; border-radius: 13% / 6.2%; background: #0d0e0d; padding: 1.4%; box-shadow: 0 26px 60px rgba(30, 40, 30, .28); }
.phone img { border-radius: 12% / 5.7%; width: 100%; }
figcaption { padding: 18px 4px 0; }
figcaption h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 4px; }
figcaption p { font-size: 14px; line-height: 1.42; color: var(--soft); }

/* Free */
.free { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.sticky { position: sticky; top: 104px; }
.free-list li { position: relative; padding: 17px 0 17px 44px; border-top: 1px solid var(--line); font-size: clamp(19px, 1.9vw, 25px); font-weight: 300; line-height: 1.22; letter-spacing: -.012em; }
.free-list li:last-child { border-bottom: 1px solid var(--line); }
.free-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); }
.free-list li::after { content: ""; position: absolute; left: 9.5px; top: 22px; width: 7px; height: 12px; border: solid #151716; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.free-note { margin-top: 16px; max-width: 44em; }

/* Plus */
.locked { position: relative; height: clamp(240px, 26vw, 340px); padding: 32px; overflow: hidden; border-radius: 32px; }
.locked-bars { display: flex; align-items: flex-end; gap: 10px; height: 100%; filter: blur(9px); }
.locked-bars b { flex: 1; border-radius: 12px; background: linear-gradient(var(--lime-deep), var(--sage)); }
.lock-pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; gap: 8px; align-items: center; padding: 11px 18px; border-radius: 999px; background: var(--lime); color: #151716; font-size: 15px; font-weight: 600; white-space: nowrap; max-width: calc(100% - 24px); }

/* FAQ */
/* FAQ: what to do if the answer isn't here on the left, the questions on the right; answers unfold smoothly (site.js) */
/* Questions: the heading and the write-to-us button centred above the list */
section.faq { display: block; }
.faq-side { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.faq-side .label { justify-content: center; }
.faq-side h2 { font-size: clamp(36px, 4.4vw, 64px); }
.faq-side .lead { margin: 0 auto 26px; max-width: 30em; }
.faq-side .fine { margin-top: 12px; }
.faq em { font-family: ElluSerif, "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.1em; background: linear-gradient(100deg, #F78FBF, #D46BDD 55%, #B43BF0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.faq-list { display: grid; gap: 10px; max-width: 880px; margin: 0 auto; }
details.glass { border-radius: 22px; box-shadow: none; overflow: hidden; transition: background .4s ease, box-shadow .4s ease; }
details.glass:hover { background: color-mix(in srgb, var(--card) 70%, #fff); }
details[open].glass { box-shadow: 0 18px 40px rgba(120, 60, 110, .12); }
/* dark theme: hovering or opening a question goes deeper toward black, not grey */
[data-theme="dark"] details.glass:hover, [data-theme="dark"] details[open].glass { background: color-mix(in srgb, var(--card) 45%, #000); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
summary { padding: 22px 64px 22px 24px; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M10 12.5l5 5 5-5' fill='none' stroke='%23151716' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
details[open] summary::after { transform: rotate(180deg); }
.faq-a p { padding: 0 24px 24px; color: var(--soft); max-width: 44em; }
details[open] .faq-a p { animation: faq-in .5s .05s cubic-bezier(.22, .8, .24, 1) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }

/* Last: a big piece of the primary button */
.last { --mx: 70%; --my: 40%; position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: end; margin: clamp(72px, 10vw, 148px) var(--bleed) 0; padding: clamp(40px, 7vw, 96px) clamp(24px, 7vw, 96px) 0; overflow: hidden; border-radius: clamp(28px, 4vw, 52px); color: #151716;
  background: radial-gradient(60% 90% at 85% 10%, rgba(255, 255, 255, .45), transparent 60%), radial-gradient(50% 80% at 10% 100%, rgba(170, 210, 20, .45), transparent 60%), var(--lime);
  background-size: 140% 140%; animation: last-sky 12s ease-in-out infinite alternate; }
/* Alive like the button: drifting dots, a sweeping sheen, light under the cursor (site.js sets --mx/--my) */
.last.live::before { display: none; }
.last-dots { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.last::before { content: ""; position: absolute; inset: -44px; z-index: -1; pointer-events: none; background: radial-gradient(circle, var(--lime-shade) 1.5px, transparent 1.8px) 0 0 / 11px 11px; animation: last-dots 16s linear infinite; }
.last::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%) 180% 0 / 250% 100% no-repeat, radial-gradient(320px circle at var(--mx) var(--my), rgba(255, 255, 255, .6), transparent 70%);
  mix-blend-mode: soft-light; animation: last-sheen 7s 1s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes last-dots { to { background-position: 44px -22px; } }
@keyframes last-sheen { 0% { background-position: 180% 0, 0 0; } 35%, 100% { background-position: -80% 0, 0 0; } }
@keyframes last-sky { to { background-position: 100% 100%; } }
@keyframes last-float { 50% { translate: 0 -14px; rotate: 2deg; } }
.last h2 { font-size: clamp(42px, 7vw, 104px); line-height: .98; letter-spacing: -.05em; }
:lang(zh-Hans) .last h2 { letter-spacing: 0; line-height: 1.15; }
.last-copy { align-self: center; padding-bottom: clamp(32px, 6vw, 80px); }
.last-copy p { font-size: 18px; margin-bottom: 20px; }
.last-phone { width: min(340px, 100%); justify-self: end; margin-bottom: -22%; transform: rotate(4deg); animation: last-float 7s ease-in-out infinite; }

/* Footer */
.foot { padding: 34px var(--gut) 36px; font-size: 14px; color: var(--soft); }
.foot-note { margin-bottom: 18px; color: var(--ink); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; }
.foot-links, .foot-langs { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 600; }

/* Documents */
.doc { max-width: 820px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--pad) 40px; }
.doc h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.03; letter-spacing: -.04em; margin-bottom: 20px; }
.doc-lead { font-size: clamp(20px, 2.2vw, 26px); font-weight: 300; line-height: 1.32; letter-spacing: -.012em; margin-bottom: 30px; }
.doc > .fine { margin: 12px 0 0; }
.doc-body { margin-top: 30px; padding: clamp(22px, 4vw, 44px); -webkit-backdrop-filter: none; backdrop-filter: none; }
.doc-body section { margin-bottom: 30px; }
.doc-body h2 { font: 400 12px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.doc-body h3 { font-size: 17px; font-weight: 600; margin: 18px 0 6px; }
.doc-body p + p { margin-top: 10px; }
.doc-body ul { list-style: disc; padding-left: 20px; }
.doc-body li { margin-bottom: 6px; }
.nf { min-height: 56vh; }

/* Phones and tablets */
@media (max-width: 980px) {
  .top nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dial-wrap { max-width: 560px; }
  .ages-grid, .free { grid-template-columns: minmax(0, 1fr); }
  .agebox, .sticky { position: static; }
  .tour-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 12px var(--gut) 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tour-row::-webkit-scrollbar { display: none; }
  .tour-row li { flex: 0 0 min(62vw, 280px); scroll-snap-align: center; margin-top: 0 !important; }
  .last { grid-template-columns: minmax(0, 1fr); }
  .last-copy { padding-bottom: 8px; }
  .last-phone { width: min(66vw, 300px); margin: 16px auto -32%; justify-self: center; }
  .last { min-height: 0; padding-bottom: 0; }
}
@media (max-width: 480px) {
  .store { flex: 1 1 150px; justify-content: center; padding: 0 12px; }
  .store span { font-size: 18px; }
  .hero h1 { font-size: clamp(50px, 15.4vw, 66px); }
  .pill { width: 100%; }
  .pill.small { width: auto; }
  .round { width: 50px; height: 50px; }
  .age-bars { gap: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .pill::before, .last, .last::before, .last::after, .last-phone, .store { animation: none !important; }
  * { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .top, .disc { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Переключатель темы: днём солнце с лучами, ночью лучи прячутся, а тень откусывает от диска месяц. */
.eclipse { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--edge); background: var(--card); box-shadow: var(--shadow); cursor: pointer; color: #F2A93B; -webkit-tap-highlight-color: transparent; transition: scale .3s cubic-bezier(.3, 1.6, .5, 1); }
.eclipse .sm { width: 26px; height: 26px; overflow: visible; }
.sm-core { fill: currentColor; transition: r .5s cubic-bezier(.65, 0, .2, 1), fill .5s ease; }
.sm-rays { stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-origin: 12px 12px; animation: sm-spin 18s linear infinite; transition: opacity .4s ease, scale .5s cubic-bezier(.65, 0, .2, 1); }
.sm-bite { transition: cx .55s cubic-bezier(.65, 0, .2, 1), cy .55s cubic-bezier(.65, 0, .2, 1); }
.eclipse:hover { scale: 1.08; }
.eclipse:hover .sm-rays { animation-duration: 4s; }
.eclipse:active { scale: .92; }
@keyframes sm-spin { to { rotate: 360deg; } }
[data-theme="dark"] .eclipse { color: #E3DCFF; }
[data-theme="dark"] .sm-core { r: 8.5px; filter: none; }
[data-theme="dark"] .sm-rays { opacity: 0; scale: .4; }
[data-theme="dark"] .sm-bite { cx: 17.5px; cy: 7px; }

[data-theme="dark"] .ambient { opacity: 1; background: none; }

/* Круг нового вида идёт поверх старого, без стандартного наплыва */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .sm-core, .sm-rays, .sm-bite { transition: none; animation: none; } }

/* Bar offering the browser's language; slides up from the bottom */
.lang-offer { position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--edge); box-shadow: 0 20px 50px -16px rgba(40, 20, 50, .4); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  translate: -50% 140%; opacity: 0; transition: translate .6s cubic-bezier(.22, .8, .24, 1), opacity .4s ease; }
.lang-offer.in { translate: -50% 0; opacity: 1; }
.lang-offer p { font-size: 15px; font-weight: 500; margin: 0; }
.lang-offer .pill.small { flex: none; }
.lang-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; }
.lang-x:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
@media (max-width: 560px) { .lang-offer { flex-wrap: wrap; justify-content: center; border-radius: 22px; padding: 12px 12px 12px 16px; width: calc(100vw - 32px); } .lang-offer p { flex: 1 1 60%; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .lang-offer { transition: none; } }

