/* Layout: one fixed sky behind the whole page; scrolling walks one day, from dawn to night, and each hour shows one part of the app in the same glass cards. */
:root {
  --bg: #08090C;
  --gold: #E2B86C;
  --gold-deep: #C99A4B;
  --light: #F5F2EC;
  --light2: rgba(245,242,236,0.68);
  --light3: rgba(245,242,236,0.40);
  --dark: #141821;
  --dark2: rgba(20,24,33,0.74);
  --score: #22BE78;
  --indigo: #6D5DF6;
  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  /* No -apple-system or system-ui here: WebKit on iOS 26 draws empty boxes for Arabic, Hebrew,
     Hindi, Japanese, Korean and Chinese after them. Plain sans-serif falls back per script. */
  --body: Inter, 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --rim: 255,236,214;
  --ink: var(--light); --ink2: var(--light2); --ink3: var(--light3); --gold-c: var(--gold);
  --la: 180deg; --lx: 0; --ly: 1;
  color-scheme: dark;
}
html { background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
p { margin: 0; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
#wash { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to top, rgba(14,9,16,0.52), rgba(14,9,16,0) 55%); opacity: 0; }
#events { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
main, footer { position: relative; z-index: 1; }
.meteor { position: absolute; width: 150px; height: 1.4px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(235,240,255,0.95)); transform-origin: right center; opacity: 0; }

/* Ink per hour: at midday the words on the sky go dark, glass always keeps light ink */
.sec { --ink: var(--light); --ink2: var(--light2); --ink3: var(--light3); --gold-c: var(--gold); color: var(--ink); transition: color 0.9s ease; }
.sec[data-light="1"] { --ink: var(--dark); --ink2: var(--dark2); --ink3: rgba(20,24,33,0.46); --gold-c: #6E4F12; }
.sec[data-sky="amanecer"] { --rim: 255,214,196; }
.sec[data-sky="mediodia"] { --rim: 255,255,255; }
.sec[data-sky="atardecer"] { --rim: 255,226,196; }
.sec[data-sky="noche"] { --rim: 190,206,255; }

/* The glass, tokens straight from the approved mockup */
.glass { --ink: var(--light); --ink2: var(--light2); --ink3: var(--light3); --gold-c: var(--gold); position: relative; color: var(--ink); border-radius: 22px; background: linear-gradient(180deg, rgba(22,20,32,0.40), rgba(10,9,16,0.52)); -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); box-shadow: calc(var(--lx) * 10px) calc(var(--ly) * 8px + 6px) 32px -16px rgba(0,0,0,0.5), inset calc(var(--lx) * 1px) calc(var(--ly) * 1px) 0 rgba(var(--rim),0.18); }
.sec[data-light="1"] .glass { background: linear-gradient(180deg, rgba(20,24,38,0.56), rgba(10,12,22,0.66)); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(var(--la), rgba(var(--rim),0.46), rgba(var(--rim),0.10) 32%, rgba(var(--rim),0.03) 62%, rgba(var(--rim),0.20)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(16,15,24,0.88); } }

.wrap { max-width: 1180px; margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); box-sizing: border-box; }
.lbl { font-size: 11px; font-weight: 700; letter-spacing: 2.4px; color: var(--gold-c); text-transform: uppercase; }
.quiet { font-size: 13px; color: var(--ink2); }

/* Nav */
.nav { position: fixed; z-index: 10; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 14px); display: flex; justify-content: center; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.nav .bar-in { pointer-events: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; width: min(760px, 100%); padding: 7px 8px 7px 14px; border-radius: 999px; box-sizing: border-box; }
.nav img { height: 26px; width: auto; }
.clock { font-size: 13px; color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: center; }
.clock b { color: var(--ink); font-weight: 600; }
.nav .go { justify-self: end; }
.btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--gold); color: #17130B; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform 160ms var(--ease-out), background 200ms ease; }
.btn-gold:active { transform: scale(0.97); }
.btn-gold.big { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; color: var(--ink); font-size: 16px; font-weight: 500; white-space: nowrap; transition: transform 160ms var(--ease-out), opacity 200ms ease; }
.btn-line:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn-gold:hover { background: #EDC67F; } .btn-line:hover { opacity: 0.72; } }

/* Hero */
.hero { padding-block: 110px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.hello { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 2.6px; color: var(--ink2); transition: color 0.9s ease; }
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--gold-c); flex: none; }
h1 { margin: 16px 0 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(68px, 10.4vw, 148px); line-height: 0.95; letter-spacing: -1.5px; text-wrap: balance; }
.hero .sub { margin-top: 22px; max-width: 28em; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: var(--ink); }
.ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hours { margin-top: 26px; max-width: 430px; }
.phases { margin-top: 8px; display: flex; justify-content: space-between; gap: 4px; }
.phases button { min-height: 38px; padding-inline: 4px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.phases button:active { transform: scale(0.97); }
.phases button[aria-pressed="true"] { color: var(--gold-c); font-weight: 600; }
.hours .note { margin-top: 8px; font-size: 14px; color: var(--ink2); }

/* When the visitor picks another hour, the words change colour halfway through the turn of the sky */
.hero h1, .hero .sub, .hero .hello, .hero .lbl, .hero .note, .hero .linehead, .hero .verdict, .hero .metrics small, .hero .metrics b, .hero .metrics em, .dial, .dial-read span, .phases button { transition: color 0.45s ease 0.1s; }

/* The phone: the page's own sky shows through its screen */
.phone { position: relative; width: 372px; height: 770px; border-radius: 52px; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(var(--rim),0.34), 0 0 0 10px #050508, 0 0 0 11px rgba(255,255,255,0.08), 0 40px 90px -10px rgba(0,0,0,0.6); isolation: isolate; flex: none; }
.phone .tint { position: absolute; inset: 0; background: rgba(6,6,12,0.14); z-index: -1; }
.island { position: absolute; left: 50%; top: 12px; width: 112px; height: 32px; margin-left: -56px; border-radius: 18px; background: #000; z-index: 3; }
.screen { position: absolute; inset: 0; padding: 62px 16px 110px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.linehead { display: flex; align-items: center; gap: 10px; font-size: 9.5px; font-weight: 700; letter-spacing: 1.9px; color: var(--ink2); white-space: nowrap; }
.linehead::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.22; }
.linehead em { order: 2; font-style: normal; }
.scorerow { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; }
.ring .trk { stroke: var(--ink3); opacity: 0.45; }
.ring .val { stroke: var(--score); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 19; transition: stroke-dashoffset 1.1s var(--ease-out); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 400; font-variant-numeric: tabular-nums; }
.verdict { font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.18; }
.goal { padding: 12px 14px; font-size: 12px; border-radius: 16px; }
.goal .row { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.goal .row b { font-weight: 600; font-size: 13px; }
.goal .row span { color: var(--ink2); font-variant-numeric: tabular-nums; }
.goal .row .pct { color: var(--gold-c); font-weight: 600; }
.track { margin-block: 8px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.14); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #9C7434, var(--gold)); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { padding: 12px 14px 14px; border-radius: 18px; min-height: 92px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; }
.tile.ai { background: linear-gradient(160deg, rgba(62,54,140,0.62), rgba(24,20,56,0.62)); }
.tile .lbl { font-size: 9px; letter-spacing: 1.8px; }
.tile.ai .lbl { color: #A99DFF; }
.tile h4 { margin: 12px 0 2px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.05; }
.tile small { font-size: 11px; color: var(--ink2); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metrics div { padding-inline: 7px; border-left: 1px solid rgba(127,127,127,0.26); }
.metrics div:first-child { padding-left: 0; border-left: 0; }
.metrics small { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 0.7px; color: var(--ink2); white-space: nowrap; }
.metrics b { display: block; margin-top: 4px; font-size: 19px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metrics b em { font-style: normal; font-size: 11px; color: var(--ink2); margin-left: 2px; }
.card-pad { padding: 14px 14px 8px; border-radius: 18px; }
.cardhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.habit { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 26px; align-items: center; gap: 8px; padding: 7px 0; font-size: 13px; }
.habit img { width: 24px; height: 24px; }
.hname { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 500; }
.hname > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auto { flex: none; font-size: 8.5px; font-weight: 700; letter-spacing: 1px; color: var(--gold); box-shadow: inset 0 0 0 1px currentColor; border-radius: 5px; padding: 2px 4px; }
.week { display: flex; gap: 3px; }
.week i { width: 5px; height: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1.1px var(--ink3); }
.week i.on { background: var(--light); box-shadow: none; }
.check { position: relative; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--gold); justify-self: end; transition: background 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out); }
.check::after { content: ""; position: absolute; left: 8.5px; top: 4.5px; width: 5.5px; height: 10.5px; border: solid #14161C; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0.6); opacity: 0; transition: transform 220ms var(--ease-out), opacity 120ms ease; }
.check.done { background: var(--light); box-shadow: none; }
.check.done::after { transform: rotate(45deg) scale(1); opacity: 1; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 88px; border-radius: 30px 30px 52px 52px; display: grid; grid-template-columns: 1fr 1fr 74px 1fr 1fr; padding-top: 10px; box-sizing: border-box; z-index: 2; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--ink2); }
.tab img { width: 30px; height: 30px; }
.tab.on { color: var(--gold); font-weight: 600; }
.plusbox { position: relative; display: block; width: 96px; height: 96px; border-radius: 50%; transition: transform 160ms var(--ease-out); touch-action: manipulation; }
.plusbox:active { transform: scale(0.94); }
.plusbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tabbar .plusbox { position: absolute; left: 50%; top: -44px; margin-left: -48px; }

/* Sections */
.sec-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(70px, 11vh, 130px); }
.sec-in.flip > .copy { order: 2; }
.when { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 2.2px; color: var(--ink2); font-variant-numeric: tabular-nums; }
h2 { margin: 14px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5.8vw, 76px); line-height: 1.02; letter-spacing: -0.3px; text-wrap: balance; }
.lead { margin-top: 18px; max-width: 30em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--ink); }
.more { margin-top: 12px; max-width: 30em; color: var(--ink2); font-size: 16px; }
.demo { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.big-card { padding: 22px; }

.metrics.wide b { font-size: 26px; }
.metrics.wide small { font-size: 10px; }
.score-big { display: flex; align-items: center; gap: 22px; }
.score-big .ring { width: 124px; height: 124px; }
.score-big .ring b { font-size: 42px; }
.score-big .verdict { font-size: 28px; }
.bars { margin-top: 18px; display: grid; gap: 12px; font-size: 13px; }
.bars > div { display: grid; grid-template-columns: 76px minmax(0, 1fr) 34px; align-items: center; gap: 10px; }
.bars .track { margin: 0; }
.bars b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.play { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pbtn { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(226,184,108,0.7); display: grid; place-items: center; color: var(--gold); flex: none; }
.wave { display: flex; align-items: center; gap: 3px; height: 24px; flex: 1; }
.wave i { width: 3px; border-radius: 2px; background: var(--gold); opacity: 0.8; height: 30%; transform-origin: center; }
.jugada { border-radius: 22px; box-shadow: 0 0 0 1px rgba(226,184,108,0.65), 0 18px 40px -20px rgba(0,0,0,0.6); }
.jugada h3 { margin: 12px 0 8px; font-size: 27px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.15; }
.figures { display: grid; gap: 10px; padding: 18px 22px; font-size: 14px; }
.figures div { display: flex; justify-content: space-between; gap: 16px; }
.figures span { color: var(--ink2); }
.figures b { font-weight: 600; font-variant-numeric: tabular-nums; }

.habit.lg { grid-template-columns: 34px minmax(0, 1fr) auto 30px; gap: 12px; padding: 12px 0; font-size: 15px; border-top: 1px solid rgba(255,255,255,0.07); }
.habit.lg:first-of-type { border-top: 0; }
.habit.lg img { width: 34px; height: 34px; }
.habit.lg .check { width: 28px; height: 28px; }
.habit.lg .check::after { left: 10px; top: 5.5px; width: 6.5px; height: 12px; }
.habit.lg .week i { width: 6px; height: 6px; }
.why { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--ink2); }
.hname.col { display: block; }
.hname.col .first { display: flex; align-items: center; gap: 6px; }
.task { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.task .check { width: 22px; height: 22px; flex: none; }
.task .check::after { left: 7.5px; top: 4px; width: 5px; height: 9.5px; }

/* Tapsheet */
.sheetbox { position: relative; width: min(420px, 100%); margin-inline: auto; padding-bottom: 66px; }
.sheet { padding: 12px 18px 16px; border-radius: 30px; transition: transform 280ms var(--ease-drawer), opacity 220ms ease; transform-origin: 50% 100%; }
.sheet.shut { transform: translateY(26px) scale(0.97); opacity: 0; pointer-events: none; }
.grab { width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.28); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 10px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 28px; }
.say { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); font-size: 13px; color: var(--ink2); }
.say span { flex: 1; min-width: 0; transition: opacity 200ms ease, filter 200ms ease; }
.say span.swap { opacity: 0; filter: blur(2px); }
.say svg { flex: none; color: var(--gold); }
.grid8 { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tilebtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; min-height: 72px; border-radius: 16px; background: rgba(255,255,255,0.055); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); font-size: 12px; font-weight: 600; transition: transform 140ms var(--ease-out), background 160ms ease; }
.tilebtn svg { color: var(--gold); }
.tilebtn:active { transform: scale(0.95); background: rgba(226,184,108,0.16); }
@media (hover: hover) and (pointer: fine) { .tilebtn:hover { background: rgba(255,255,255,0.09); } }
.choose { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--gold); }
.sheetbox .plusbox { position: absolute; left: 50%; bottom: -14px; margin-left: -48px; }
.toast { position: absolute; left: 50%; top: -22px; transform: translate(-50%, -6px); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: transform 240ms var(--ease-out), opacity 200ms ease; z-index: 3; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 16px; height: 16px; border-radius: 50%; background: var(--light); position: relative; flex: none; }
.toast i::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 3.5px; height: 7.5px; border: solid #14161C; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

/* Widgets */
.home { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.w { border-radius: 24px; padding: 14px; min-height: 148px; box-sizing: border-box; display: flex; flex-direction: column; }
.w.m { grid-column: span 4; }
.w.s { grid-column: span 2; }
.whead { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; }
.whead small { font-size: 11px; font-weight: 500; color: var(--ink2); }
.wgrid { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) repeat(7, 26px); gap: 5px 4px; align-items: center; font-size: 12px; font-weight: 500; }
.wgrid .d { text-align: center; font-size: 10px; color: var(--ink2); font-weight: 600; }
.wgrid .d.today { color: var(--gold); }
.wgrid .n { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.wgrid .n img { width: 18px; height: 18px; flex: none; }
.cell { width: 18px; height: 18px; margin-inline: auto; border-radius: 50%; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,0.26); display: block; position: relative; transition: background 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 140ms var(--ease-out); }
.cell.on { background: var(--gold); box-shadow: none; }
.cell.future { box-shadow: inset 0 0 0 1.2px rgba(255,255,255,0.10); }
button.cell { box-shadow: inset 0 0 0 1.5px var(--gold); }
button.cell.on { background: var(--light); box-shadow: none; }
button.cell.on::after { content: ""; position: absolute; left: 6px; top: 2.8px; width: 4px; height: 8.5px; border: solid #14161C; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
button.cell:active { transform: scale(0.9); }
/* Small targets keep their size on screen but take a finger-sized tap */
button.cell::before { content: ""; position: absolute; inset: -11px -6px; }
button.check::before { content: ""; position: absolute; inset: -11px; }
.spend b { display: block; margin-top: auto; font-family: var(--display); font-weight: 500; font-size: 42px; line-height: 1; letter-spacing: -0.5px; font-variant-numeric: lining-nums tabular-nums; }
.spend .when2 { margin-top: 3px; font-size: 10.5px; color: var(--ink2); }
.pill { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--gold); }
.w.score { align-items: center; justify-content: center; gap: 6px; text-align: center; }
.w.score .ring { width: 88px; height: 88px; }
.w.score small { font-size: 8.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--ink2); }
.faces { margin-block: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.faces button { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); transition: color 160ms ease, background 160ms ease, transform 140ms var(--ease-out); }
.faces button:active { transform: scale(0.9); }
.faces button[aria-pressed="true"] { color: var(--gold); background: rgba(226,184,108,0.16); }
.faces svg { width: 100%; max-width: 26px; height: auto; }
.moodq { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.1; margin-top: 8px; }

/* Brake */
.islandlive { display: flex; align-items: center; justify-content: space-between; gap: 12px; align-self: center; width: min(320px, 100%); min-height: 42px; padding: 7px 16px 7px 12px; border-radius: 24px; background: #000; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7); font-size: 13px; color: var(--light); box-sizing: border-box; }
.islandlive .l { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.islandlive img { width: 22px; height: 22px; }
.islandlive b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.waiting { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.waiting b { display: block; font-size: 15px; font-weight: 600; }
.waiting small { display: block; font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.btn-out { flex: none; min-height: 36px; padding: 0 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.stop { padding: 22px; }
.stop .lbl { display: flex; align-items: center; gap: 10px; color: #FF8A7A; }
.stop .lbl::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.stop h3 { margin: 12px 0 8px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 40px; line-height: 1.05; }
.stop p { font-size: 15px; color: var(--ink2); }
.stop .wide { margin-top: 16px; display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 12px; background: var(--gold); color: #17130B; font-size: 15px; font-weight: 600; }

/* Net worth */
.nw b.num { display: block; margin-top: 6px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 54px; line-height: 1.05; font-variant-numeric: lining-nums; }
.nw .up { font-size: 13px; color: var(--ink2); }
.chart { display: block; width: 100%; height: auto; margin-top: 14px; }
.soon { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; font-size: 14px; color: var(--ink2); }
.soon img { width: 34px; height: 34px; flex: none; }
.chip { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; background: rgba(226,184,108,0.18); color: var(--gold); }

/* Night */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-bottom: clamp(50px, 8vh, 90px); }
.promise { padding: 20px; }
.promise h4 { margin: 0 0 8px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 25px; line-height: 1.1; }
.promise p { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.sleep b { display: block; margin-top: 8px; font-size: 34px; font-weight: 500; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.sleep span { display: block; font-size: 14px; color: var(--gold); }
.sleep small { display: block; margin-top: 8px; font-size: 13px; color: var(--ink2); }
.ritual { display: flex; align-items: center; gap: 14px; padding: 16px 20px; font-size: 14.5px; }
.ritual img { width: 44px; height: 44px; flex: none; }

/* Close */
.end { text-align: center; padding-block: 64px 90px; }
.bigeclipse { position: relative; width: min(82vw, 560px); aspect-ratio: 1; margin: 0 auto -8%; }
.bigeclipse canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bigeclipse img { position: absolute; left: 50%; top: 50%; width: 15%; transform: translate(-50%, -50%); opacity: 0.92; }
.end h2 { font-style: italic; font-weight: 500; font-size: clamp(54px, 7.4vw, 96px); margin: 0; }
.end .lead { margin-inline: auto; }
.end .ctas { justify-content: center; }
footer { padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--light2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (hover: hover) and (pointer: fine) { footer a:hover { color: var(--light); } }

/* The opening: a total eclipse that clears into the visitor's own hour */
#totality { display: none; position: fixed; inset: 0; z-index: 30; background: #030304; pointer-events: none; }
html.intro #totality, html.lit #totality { display: block; }
#totality canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.intro .hero-copy > *, html.intro .hours { opacity: 0; transform: translateY(16px); }
html.intro .hero .phone { transform: translateY(36px); }
html.intro .nav { transform: translateY(-84px); }
html.lit .hero-copy > *, html.lit .hours, html.lit .hero .phone, html.lit .nav { transition: opacity 0.7s var(--ease-out), transform 1s var(--ease-out); }
html.lit .hero-copy > :nth-child(2) { transition-delay: 60ms; }
html.lit .hero-copy > :nth-child(3) { transition-delay: 120ms; }
html.lit .hero-copy > :nth-child(4) { transition-delay: 180ms; }
html.lit .hours { transition-delay: 260ms; }
html.lit .nav { transition-delay: 300ms; }

/* The dial: a day and night disc, as on a watch */
.dial { position: relative; width: 100%; aspect-ratio: 2 / 1.06; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; color: var(--ink); border-radius: 10px; }
.dial.held { cursor: grabbing; }
.dial:focus-visible { outline: 2px solid var(--gold); outline-offset: 10px; }
.dial-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dial-art .arc { fill: none; stroke: currentColor; stroke-opacity: 0.32; stroke-width: 1; }
.dial-art .gold { fill: none; stroke: var(--gold-c); stroke-width: 1.5; stroke-linecap: round; }
.dial-art .tick { stroke: currentColor; stroke-opacity: 0.42; stroke-width: 1; }
.dial-art .hz { stroke: currentColor; stroke-opacity: 0.5; stroke-width: 1; }
.dial-clip { position: absolute; inset: -30px -30px 0 -30px; overflow: hidden; pointer-events: none; }
.orb { position: absolute; left: 0; top: 0; display: block; width: 34px; height: 34px; margin: -17px 0 0 -17px; will-change: transform; }
/* A finger that lands on the sun or the moon drags it in any direction; the rest of the dial still scrolls the page. */
.orb { pointer-events: auto; touch-action: none; }
.orb.sun::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0%, #FFF1CF 36%, #FFC873 74%, #F2A64F 100%); box-shadow: 0 0 18px 6px rgba(255,205,130,0.62), 0 0 54px 18px rgba(255,180,90,0.28); transition: transform 180ms var(--ease-out); }
.orb.moon { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.orb.moon svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 22px 6px rgba(190,206,255,0.30); transition: transform 180ms var(--ease-out); }
.dial.held .orb.sun::before, .dial.held .orb.moon svg { transform: scale(1.14); }
/* Until the first touch, a slow ring says the sun can be held */
.orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(var(--rim),0.7); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .dial:not(.touched) .orb::after { animation: orbring 2.6s var(--ease-out) infinite; } }
@keyframes orbring { 0% { transform: scale(0.72); opacity: 0.9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.dial-hint { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--gold-c); white-space: nowrap; pointer-events: none; transition: opacity 240ms ease; }
.dial.touched .dial-hint { opacity: 0; }
.dial-read { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; pointer-events: none; }
.dial-read b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 5vw, 60px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.dial-read span { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--ink2); }
.hero.cansun, .hero.cansun * { cursor: grab; }
.hero.grabbing, .hero.grabbing * { cursor: grabbing; }

/* The stars the visitor earns on the way down */
.clock em { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-style: normal; font-weight: 600; color: var(--gold); transform-origin: center; }
.clock em[hidden] { display: none; }
.spark { position: fixed; left: 0; top: 0; z-index: 12; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #FFFFFF 0%, #FFE3AC 34%, rgba(226,184,108,0) 72%); }

/* The Brake takes the visitor's own purchase */
.stage [hidden] { display: none !important; }
.bk-fields { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; margin-top: 14px; }
.bk-fields label { display: block; }
.bk-fields span { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--ink2); }
.bk-fields input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 12px; border: 0; border-radius: 12px; outline: 0; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); color: var(--ink); font: inherit; font-size: 16px; transition: box-shadow 160ms ease, background 160ms ease; }
.bk-fields input::placeholder { color: var(--ink3); }
.bk-fields input:focus { background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1.5px var(--gold); }
.bk-price { position: relative; }
.bk-price input { padding-right: 28px; font-variant-numeric: tabular-nums; }
.bk-price::after { content: "\20AC"; position: absolute; right: 12px; bottom: 14px; font-size: 14px; color: var(--ink2); pointer-events: none; }
.stage .vnote { display: block; margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--ink2); }
#bk[data-v="yesif"] .stage [data-s="stop"] .lbl, #bk[data-v="go"] .stage [data-s="stop"] .lbl { color: var(--gold); }
.islandlive .l span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Body and money */
.bm { --c-poor: #BC8320; --c-good: #6B8FF0; }
.bm-head { margin: 10px 0 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.bm-chart { position: relative; height: 236px; margin-top: 12px; touch-action: pan-y; }
.bm-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bm-chart .bg { stroke: rgba(245,242,236,0.1); stroke-width: 1; }
.bm-chart .bt { fill: var(--ink2); font-size: 11px; font-variant-numeric: tabular-nums; }
.bm-chart .bv { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: rgba(12,14,24,0.85); stroke-width: 3px; stroke-linejoin: round; }
.bm-chart .bmed { stroke: rgba(245,242,236,0.42); stroke-width: 1; stroke-dasharray: 3 4; }
.bm-chart .bav { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease-out) 550ms, opacity 200ms ease; }
.bm-chart .bav.poor { stroke: var(--c-poor); }
.bm-chart .bav.good { stroke: var(--c-good); }
.bm-chart .d { stroke: #10121C; stroke-width: 2; opacity: 0; transform: translate(var(--dx), var(--dy)); transition: transform 900ms var(--ease-out) calc(var(--i) * 14ms), opacity 500ms ease calc(var(--i) * 14ms); }
.bm-chart .d.poor { fill: var(--c-poor); }
.bm-chart .d.good { fill: var(--c-good); }
.bm-chart.in .d { opacity: 1; transform: none; }
.bm-chart.in .bav { stroke-dashoffset: 0; }
.bm-chart.ready .d { transition: opacity 200ms ease; }
.bm-chart.ready .bav { transition: opacity 200ms ease; }
.bm-chart.in[data-focus="poor"] .good, .bm-chart.in[data-focus="good"] .poor { opacity: 0.16; }
.bm-chart .d.hot { stroke: var(--light); }
.bm-tip { position: absolute; left: 0; top: 0; padding: 5px 9px; border-radius: 8px; background: #05060B; color: var(--light); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; transition: opacity 120ms ease; }
.bm-tip.on { opacity: 1; }
.bm-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bm-toggle button { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 10px 12px; border-radius: 14px; text-align: start; box-shadow: inset 0 0 0 1px rgba(245,242,236,0.16); transition: transform 160ms var(--ease-out), background 160ms ease; }
.bm-toggle button:active { transform: scale(0.97); }
.bm-toggle button[aria-pressed="true"] { background: rgba(245,242,236,0.1); box-shadow: inset 0 0 0 1px rgba(245,242,236,0.42); }
.bm-toggle i { width: 8px; height: 8px; border-radius: 50%; }
.bm-toggle .poor i { background: var(--c-poor); }
.bm-toggle .good i { background: var(--c-good); }
.bm-toggle small { font-size: 12px; color: var(--ink2); }
.bm-toggle b { grid-column: 2; font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }
.bm-body { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.bm-note { display: block; margin-top: 8px; font-size: 12px; color: var(--ink2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .bm-chart .d, .bm-chart .bav { transition: none; } }
@media (max-width: 560px) { .stage { min-height: 384px; } .dial-clip { inset: -30px -24px 0 -24px; } }

/* The Brake stops the page */
#hush { position: fixed; inset: 0; z-index: 5; background: rgba(3,4,8,0.55); opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
html.hushed #hush { opacity: 1; }
html.lapse #hush { opacity: 0.2; }
#s-brake { position: relative; z-index: 6; }
html.hushed .clock b { color: var(--gold); }
#bk .islandlive { visibility: hidden; opacity: 0; clip-path: inset(0 40% round 24px); transition: clip-path 420ms var(--ease-drawer), opacity 200ms ease, visibility 0s linear 420ms; }
#bk[data-step="wait"] .islandlive, #bk[data-step="after"] .islandlive { visibility: visible; opacity: 1; clip-path: inset(0 0 round 24px); transition-delay: 0s; }
.bk-wait { display: block; visibility: hidden; font-size: 10px; margin-bottom: 4px; }
#bk[data-step="wait"] .bk-wait, #bk[data-step="after"] .bk-wait { visibility: visible; }
.stage { min-height: 330px; box-sizing: border-box; display: grid; align-content: center; }
.stage .lbl { color: var(--gold); }
.stage [data-s="stop"] .lbl { color: #FF8A7A; }
.stage > [data-s]:not([hidden]) { animation: stepin 280ms var(--ease-out); }
@keyframes stepin { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.stage button.wide { width: 100%; transition: transform 160ms var(--ease-out), background 200ms ease; }
.stage button.wide:active { transform: scale(0.97); }
.stage .two { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stage .two .wide { margin-top: 0; }
.stage .wide.out { background: none; box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.again { margin-top: 12px; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--gold); }

/* Moments with nothing but the sky */
.breath { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; }
.breath .ln { display: block; }
.breath h2 { margin: 0; font-style: italic; font-weight: 500; font-size: clamp(56px, 9vw, 132px); line-height: 1; }

/* The visitor's own day */
.day { text-align: center; height: 240vh; height: 240svh; }
.daystick { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; padding-top: 58px; display: flex; align-items: center; overflow: clip; }
.daywrap { position: relative; width: 100%; }
.dayout { position: absolute; inset: 0 24px; display: grid; align-content: center; justify-items: center; gap: 8px; pointer-events: none; }
.dayl { margin: 0; max-width: 15em; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(38px, 5.6vw, 78px); line-height: 1.05; text-wrap: balance; opacity: 0; }
.dayl.keep { color: var(--gold); }
@media (prefers-reduced-motion: reduce), (max-height: 600px) {
  .day { height: auto; padding-block: 70px 10px; }
  .daystick { position: static; height: auto; display: block; padding-top: 0; overflow: visible; }
  .dayout { position: static; margin-top: 36px; }
  .dayl { opacity: 1; }
}
.day .when { justify-content: center; }
.constel { height: min(clamp(220px, 32vw, 390px), max(180px, calc(100vh - 440px))); height: min(clamp(220px, 32vw, 390px), max(180px, calc(100svh - 440px))); margin-top: 26px; }
.constel svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cline { stroke-dasharray: 1 1; fill: none; stroke: var(--gold); stroke-opacity: 0.5; stroke-width: 1; stroke-linejoin: round; }
.hs { fill: var(--light); fill-opacity: 0.72; }
.tg { fill: var(--gold); fill-opacity: 0.16; }
.ts { fill: #FFF3D8; }
@media (prefers-reduced-motion: no-preference) { .ts { animation: twinkle 3.2s ease-in-out infinite; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.62; } }
.dayfig { margin: 28px auto 0; max-width: 760px; padding: 18px 20px; text-align: center; }
.dayfig .metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dayfig .metrics b { font-size: 24px; }
.dayfig .metrics small { white-space: normal; }
#dayhint { margin: 16px auto 0; }

/* Reveal tied to the scroll itself, so nothing can get stuck hidden; browsers without it just show everything.
   Glass fades on its own element: opacity on an ancestor would cut it off from the sky behind it. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fillring { from { stroke-dashoffset: 100; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .copy > *, .demo .glass:not(.toast):not(.sheet), .promises .glass, .wrap > h2.rv, .breath h2, .day h2, .dayfig, #dayhint { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .ring[data-score] .val { animation: fillring linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
  }
}

@media (max-width: 980px) {
  .hero { padding-block: 92px 48px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-left { display: contents; }
  .hero-copy { order: 1; }
  .hours { order: 2; margin-top: 0; max-width: none; }
  .hero .phone { order: 3; margin-inline: auto; }
  .dial { max-width: 460px; margin-inline: auto; }
  .phases { max-width: 460px; margin-inline: auto; }
  .sec-in { grid-template-columns: minmax(0, 1fr); }
  .sec-in.flip > .copy { order: 0; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .clock .cname { display: none; }
  .dayfig .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .dayfig .metrics div:nth-child(3n+1) { border-left: 0; }
  .breath h2 { font-size: clamp(48px, 14vw, 72px); }
  .nav .bar-in { padding-left: 12px; gap: 8px; }
  .phone { width: min(344px, calc(100vw - 44px)); height: 720px; }
  .phone .week { display: none; }
  .phone .habit { grid-template-columns: 24px minmax(0, 1fr) 26px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .wgrid { grid-template-columns: minmax(0, 1fr) repeat(7, 22px); gap: 5px 2px; }
  .ctas a { flex: 1 1 100%; }
  .score-big .verdict { font-size: 24px; }
}
/* Production: language, App Store badge, language menu, scripts other than Latin. */
html.i18n-wait header.nav, html.i18n-wait main, html.i18n-wait footer { visibility: hidden; }
svg { direction: ltr; }
.store { display: inline-flex; border-radius: 12px; transition: transform 160ms var(--ease-out); }
.store:active { transform: scale(0.97); }
.store img { display: block; height: 52px; width: auto; }

.i18n-switcher { position: relative; display: inline-block; }
.i18n-switcher__btn { font: 600 12px/1 var(--body); letter-spacing: 1px; color: var(--light2); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 8px 12px; cursor: pointer; transition: transform 160ms var(--ease-out); }
.i18n-switcher__btn:active { transform: scale(0.97); }
.i18n-switcher__menu { position: absolute; bottom: calc(100% + 10px); inset-inline-end: 0; z-index: 30; display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 8px; width: min(380px, calc(100vw - 32px)); background: rgba(12,14,22,0.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,0.45); }
.i18n-switcher.is-open .i18n-switcher__menu { display: grid; }
.i18n-switcher__item { font: 500 13px/1.25 var(--body); color: var(--light2); background: none; border: 0; border-radius: 10px; padding: 9px 10px; text-align: start; cursor: pointer; }
.i18n-switcher__item.is-active { background: rgba(226,184,108,0.14); color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .i18n-switcher__item:hover { background: rgba(255,255,255,0.08); color: var(--light); } .i18n-switcher__btn:hover { color: var(--light); } }

html:lang(he) { --display: 'Noto Serif Hebrew', 'Cormorant Garamond', serif; }
html:lang(ar) { --display: 'Noto Naskh Arabic', serif; }
html:lang(hi) { --display: 'Noto Serif Devanagari', serif; }
html:lang(ja) { --display: 'Noto Serif JP', serif; }
html:lang(ko) { --display: 'Noto Serif KR', serif; }
html:lang(zh) { --display: 'Noto Serif SC', serif; }
html:is(:lang(he), :lang(ar), :lang(hi), :lang(ja), :lang(ko), :lang(zh)) * { letter-spacing: 0 !important; font-style: normal !important; }
html:is(:lang(ar), :lang(hi)) body { line-height: 1.7; }
html:lang(ko) body { word-break: keep-all; }
html:is(:lang(ja), :lang(zh)) body { line-break: strict; }
html:is(:lang(ja), :lang(zh)) :is(h1, h2, h3) { word-break: auto-phrase; text-wrap: balance; }
html:is(:lang(ja), :lang(zh)) h1 { font-size: clamp(40px, 10.6vw, 112px); }
/* Hangul and kanji fill the whole em box: at 0.95 the two lines of the title touch. */
html:is(:lang(ja), :lang(ko), :lang(zh)) h1 { line-height: 1.12; }
.tab span { white-space: nowrap; }
/* In the footer the menu hangs from the footer row, so it never leaves the screen on a phone. */
footer .wrap { position: relative; }
footer .i18n-switcher { position: static; }
footer .i18n-switcher__menu { inset-inline: 12px; width: auto; }
@media (min-width: 700px) { footer .i18n-switcher__menu { inset-inline-start: auto; width: 380px; } }
