/* /landing-e — Apple-style landing mockup (2026-11-17, en · noindex). Plan: Dropbox lab/2026-11-17_apple-landing/plan/PLAN.md.
   World = the app's new Apple Health-tone look: grey page, shadowless white cards, one soft top gradient per tab
   (Daily apricot · Monthly sky · Habits sage · Cycle orchid). The one authored motion is the cycle wash filling the calendar. */
:root {
  color-scheme: light;
  --page: #F2F2F4;
  --card: #FFFFFF;
  --ink: #25352F;
  --ink-2: #565B55;
  --ink-3: #6A6E68;
  --ink-press: #161F1B;
  --link: #106B54;
  --hair: rgba(37,53,47,.12);
  --hair-soft: rgba(37,53,47,.07);
  --glass: rgba(246,247,248,.72);
  --night: #18211D;
  --night-ink: #EEF1EF;
  --night-2: rgba(238,241,239,.70);
  --night-hair: rgba(255,255,255,.14);

  /* tab gradients — the app's new look */
  --apricot: #F9D3CA; --sky: #C0E0F5; --sage: #D1E0C6; --orchid: #EDD4EB;
  /* cycle phases: wash (calendar fill) + ink (chip text) */
  --w-m: #F6DCE2; --w-f: #D5EEE3; --w-o: #F7E4C4; --w-l: #E2DFF5;
  --m-ink: #993556; --f-ink: #085041; --o-ink: #854F0B; --l-ink: #3C3489;
  --c1: #B23A5B; --c2: #1F7A5A; --c3: #8A5A0C; --c4: #5546B0; --c5: #2C64B5;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gutter: max(22px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --wrap: 1120px;
  --r-card: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 17px/1.47 var(--font); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; overflow-x: clip; position: relative;
}
::selection { background: var(--w-f); color: var(--f-ink); }
a { color: var(--link); text-decoration: none; text-underline-offset: .18em; }
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { --wrap: 820px; }
.center { text-align: center; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

/* Monthly sky behind the nav and hero — the same top gradient the app's Monthly tab wears */
.sky { position: absolute; inset: 0 0 auto; height: min(880px, 120vh); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--sky) 0%, color-mix(in srgb, var(--sky) 62%, var(--page)) 34%, var(--page) 100%); }

/* Brand lockup — canonical geometry (components/onboarding/BrandLockup.tsx): four LIGHT phase tiles on white, never recoloured. */
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); min-height: 44px; }
.mark { display: grid; gap: 1.5px; padding: 4px; background: #fff; border-radius: 8px; flex: none; }
.mark > span { display: flex; gap: 1.5px; }
.mark i { width: 11.2px; height: 11.2px; border-radius: 2.6px; }
.mark > span:nth-child(1) i:nth-child(1) { background: #FBEAF0; } .mark > span:nth-child(1) i:nth-child(2) { background: #E1F5EE; }
.mark > span:nth-child(2) i:nth-child(1) { background: #FAEEDA; } .mark > span:nth-child(2) i:nth-child(2) { background: #EEEDFE; }
.wordmark { font: 800 17px/1 var(--font-display); letter-spacing: -.04em; color: #25352F; }
.app-icon { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--hair); }


.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -.01em; user-select: none;
  transition: transform .14s var(--ease-out), background-color .2s ease; }
.pill.sm { min-height: 34px; padding: 0 16px; font-size: 13px; }
.pill:active { transform: scale(.97); background: var(--ink-press); }
.quiet { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(37,53,47,.32); text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { background: var(--ink-press); }
  .quiet:hover, .nav .links a:hover, .nav .login:hover, .more summary:hover, .foot-cols a:hover { color: var(--ink); text-decoration-color: currentColor; }
  .more-panel a:hover { text-decoration: underline; }
  .go:hover { text-decoration: underline; }
}

/* ── one nav bar: sticks, turns to glass once content scrolls under it ── */
.nav-sentinel { height: 1px; margin-bottom: -1px; }
.nav { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background-color .3s ease, box-shadow .3s ease; }
.nav.stuck { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.nav .links { display: flex; align-items: center; gap: 22px; margin-left: 14px; margin-right: auto; }
.nav .links > a, .nav .login, .more summary { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; min-height: 44px; cursor: pointer; }
.nav .login { color: var(--ink); font-weight: 500; }
/* Wide header labels never wrap — each locale switches to the Menu button before its row would run out of room (see max-width rules below). */
.nav .links > a, .nav .login, .more summary, .nav .pill.sm { white-space: nowrap; }
.more { position: relative; }
.more summary { list-style: none; user-select: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary span { display: inline-flex; align-items: center; }
.more[open] summary { color: var(--ink); }
/* Resting pill on the More trigger (2026-11-18): no glyph, so the fill is what says "this opens a menu". ::before keeps the 44px row metrics untouched. The language menu keeps its up-down mark instead. */
.more:not(.lang) > summary { position: relative; isolation: isolate; }
.more:not(.lang) > summary::before { content: ""; position: absolute; inset: 7px -12px; z-index: -1; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.more:not(.lang) > summary:hover::before, .more:not(.lang)[open] > summary::before { background: color-mix(in srgb, var(--ink) 13%, transparent); }
.more-panel { position: absolute; top: calc(100% + 4px); left: -18px; display: grid; grid-template-columns: max-content max-content; gap: 6px 36px; padding: 18px 22px 14px; background: #fff; border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -12px rgba(37,53,47,.22); transform-origin: 0 0; }
.more[open] .more-panel { animation: pop .18s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.more-panel div, .foot-cols div { display: flex; flex-direction: column; }
.more-panel b, .menu-tools b, .foot-cols b { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; padding-bottom: 4px; }
.more-panel a { font-size: 15px; color: var(--ink); min-height: 36px; display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(37,53,47,.08); font-size: 14px; font-weight: 600; cursor: pointer; }
.menu-btn:active { background: rgba(37,53,47,.16); }
.menu { position: fixed; inset: calc(60px + env(safe-area-inset-top, 0px)) 0 0; z-index: 49; background: var(--page); overflow-y: auto; overscroll-behavior: contain; padding: 12px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.menu[hidden] { display: none; }
/* The open sheet — three tiers by weight, not five labelled groups (2026-11-18). The same values live in
   public/site/chrome.css (.kc-sheet) — change both together.
   ① start (fills) + log in (the Menu button's tint) on one row · ② the header's five links, large ·
   ③ the tools under their one label · ④ a quiet footer row: help and legal, then the languages. */
.menu-top { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; padding-bottom: 20px; }   /* 480: tablets (721–1079) keep phone-sized buttons */
.menu-top .pill { flex: 1 1 auto; min-height: 48px; padding: 0 24px; font-size: 15px; }
.menu-login { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: rgba(37,53,47,.08); color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.menu-login:active { background: rgba(37,53,47,.16); }
.menu-main, .menu-tools { display: flex; flex-direction: column; }
.menu-main { padding-bottom: 16px; }
.menu-main a { font: 600 20px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--ink); min-height: 46px; display: flex; align-items: center; }
.menu-tools { padding: 16px 0 14px; border-top: 1px solid var(--hair); }
.menu-tools a { font: 600 20px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--ink); min-height: 46px; display: flex; align-items: center; }
.menu-fine { padding-top: 8px; border-top: 1px solid var(--hair); }
.menu-fine > div { display: flex; flex-wrap: wrap; column-gap: 14px; }
.menu-fine a { position: relative; font-size: 15px; line-height: 1.25; color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
/* short words (FAQs · Help) keep a ≥44px target without widening the row: the hit area reaches into the 14px gaps (14 keeps the five languages on one row at 360) */
.menu-fine a::after { content: ""; position: absolute; inset: 0 -7px; }
.menu-lang a[aria-current] { color: var(--ink); font-weight: 600; }
.menu-open { overflow: hidden; }
.menu-open .nav { background: var(--page); }
/* the sheet starts with the start button — the bar's own copy steps out (one start button on screen) */
.menu-open .nav .pill.sm { display: none; }
.menu-open .nav .pill.sm + .menu-btn, .menu-open .nav .menu-btn { margin-left: auto; }

/* ── type ── */
h1 { font: 700 clamp(2.25rem, 5vw + 1.03rem, 5rem)/1.03 var(--font-display); letter-spacing: -.035em; text-wrap: balance; color: color-mix(in srgb, var(--ink) 70%, var(--sky)); }
h1 .strong, .h2 .strong { color: var(--ink); }
.h2 { font: 700 clamp(2rem, 2.6vw + 1.2rem, 3rem)/1.08 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.h2.xl { font-size: clamp(2.125rem, 3vw + 1.2rem, 3.5rem); line-height: 1.05; letter-spacing: -.035em; }
.lead { font-size: clamp(1.1875rem, .5vw + 1.05rem, 1.375rem); line-height: 1.4; letter-spacing: -.015em; color: var(--ink-2); text-wrap: balance; }
.lead strong, .lead.strong { color: var(--ink); font-weight: 600; }
.fine { text-wrap: balance; font-size: 13px; line-height: 1.4; color: var(--ink-3); letter-spacing: 0; }

.eyebrow { width: fit-content; margin: 0 auto 16px; padding: 7px 15px 8px; border-radius: 999px; background: rgba(255,255,255,.66); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
  font: 600 clamp(.9375rem, .3vw + .9rem, 1.125rem)/1.2 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.label { font: 600 15px/1.2 var(--font); letter-spacing: -.005em; color: var(--ink-2); margin-bottom: 12px; }

/* ── 1 · hero ── */
.hero { padding: clamp(14px, 2vw, 28px) 0 clamp(56px, 7vw, 96px); text-align: center; }
.hero .sub { max-width: 34em; margin: clamp(28px, 4vw, 44px) auto 0; font-size: clamp(1.1875rem, .5vw + 1.05rem, 1.375rem); line-height: 1.38; letter-spacing: -.015em; color: var(--ink-2); text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 26px; margin-top: 28px; }
.hero .fine { margin-top: 14px; color: var(--ink-2); }

/* The month — an HTML rendition of the app's Monthly tab. White card, no shadow. */
.month { margin: clamp(20px, 2.6vw, 36px) auto 0; max-width: 980px; text-align: left; background: var(--card); border-radius: var(--r-card); padding: 22px 22px 8px; }
.state { min-width: 1.9em; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.trip { position: absolute; left: calc(100% * 3 / 7 + 5px); width: calc(100% * 4 / 7 - 10px); bottom: 9px; height: 22px; padding: 0 9px; border-radius: 6px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--c2); color: var(--c2); font-size: 12px; line-height: 22px; letter-spacing: 0; overflow: hidden; white-space: nowrap; pointer-events: none; }
.trip b { font-weight: 600; }
.day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 14px 4px 12px; min-height: 60px; }
.day-title { display: flex; align-items: center; gap: 10px; font: 700 19px/1.2 var(--font-display); letter-spacing: -.02em; }
.day-events { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.day-events li { display: flex; gap: 8px; align-items: center; font-size: 15px; letter-spacing: -.005em; }
.day-events i { width: 3px; height: 17px; border-radius: 2px; background: var(--c); }
.cal-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "title legend switch"; align-items: center; column-gap: 18px; padding: 0 4px 14px; }
.cal-title { grid-area: title; font: 700 26px/1.1 var(--font-display); letter-spacing: -.025em; }
.switch { grid-area: switch; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; user-select: none; font-size: 15px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { position: relative; flex: none; width: 51px; height: 31px; border-radius: 999px; background: rgba(37,53,47,.16); box-shadow: inset 0 0 0 1px rgba(37,53,47,.44); transition: background-color .25s ease; }
.track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.04); transition: transform .28s var(--ease-out), width .2s var(--ease-out); }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch:active .track::after { width: 31px; }
.switch:active input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--ink); outline-offset: 3px; }

.legend { grid-area: legend; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.chip i { font-style: normal; font-size: 12px; }
.chip.m { background: var(--w-m); color: var(--m-ink); } .chip.f { background: var(--w-f); color: var(--f-ink); }
.chip.o { background: var(--w-o); color: var(--o-ink); } .chip.l { background: var(--w-l); color: var(--l-ink); }
/* Phase keys — default = the new app look: emoji on a tinted square, plain label. */
html .month .chip { background: none; color: var(--ink); padding: 0; height: 22px; gap: 6px; font-weight: 500; font-size: 13px; }
html .month .chip i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 12px; line-height: 1; }
html .month .chip.m i { background: var(--w-m); } html .month .chip.f i { background: var(--w-f); }
html .month .chip.o i { background: var(--w-o); } html .month .chip.l i { background: var(--w-l); }
html .month .legend { gap: 6px 16px; }
/* Off = the key stays in place, dimmed (as the app's legend does when colours are hidden) — no hole, no jump. */
.legend .chip { opacity: .4; transition: opacity .18s ease; }
.month.on .legend .chip { opacity: 1; transition: opacity .4s var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
.month.on.demo .legend .chip { transition-delay: calc(var(--i) * 70ms + 120ms); }

.dow { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 0 8px; }
.dow span { font-size: 12px; font-weight: 500; color: var(--ink-3); padding-left: 4px; letter-spacing: 0; }
.grid { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1px; background: var(--hair-soft); border-radius: 16px; overflow: hidden; }
.cell { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 88px; padding: 7px 6px 8px 4px; margin: 0; border: 0; background: var(--card); text-align: left; cursor: pointer; min-width: 0; isolation: isolate; }
span.cell { cursor: default; }
/* THE FILL — the phase wash arrives day by day, in calendar order; plans above it never move. */
.cell::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transform: scale(.82); border-radius: 10px;
  transition: opacity .2s ease, transform .2s ease, border-radius .2s ease; }
.cell[data-p="m"]::before { background: var(--w-m); } .cell[data-p="f"]::before { background: var(--w-f); }
.cell[data-p="o"]::before { background: var(--w-o); } .cell[data-p="l"]::before { background: var(--w-l); }
.month.on .cell::before { opacity: 1; transform: none; border-radius: 0;
  transition: opacity .35s var(--ease-out), transform .4s var(--ease-out), border-radius .4s var(--ease-out); transition-delay: calc(var(--i) * 8ms); }
.month.on.demo .cell::before { transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), border-radius .6s var(--ease-out); transition-delay: calc(var(--i) * 20ms); }
.dn { display: inline-grid; place-items: center; justify-items: start; min-width: 26px; height: 26px; padding: 0 0 0 0; border-radius: 13px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.cell.out .dn { color: var(--ink-2); font-weight: 500; }
.cell.today .dn { background: var(--ink); color: #fff; justify-items: center; margin-left: -4px; }
.cell .evs { padding-left: 0; }
button.cell:active .dn { background: rgba(37,53,47,.14); justify-items: center; margin-left: -4px; transition: background-color .1s ease-out; }
button.cell.today:active .dn { background: var(--ink-press); }
@media (hover: hover) and (pointer: fine) { button.cell:hover::after { content: ""; position: absolute; inset: 2px; border: 1.5px solid rgba(37,53,47,.28); border-radius: 9px; pointer-events: none; } }
button.cell:focus-visible { outline: 0; }
button.cell:focus-visible::after { content: ""; position: absolute; inset: 2px; border: 2px solid var(--ink); border-radius: 9px; box-shadow: 0 0 0 2px #fff inset; pointer-events: none; }
.cell[aria-pressed="true"]::after { content: ""; position: absolute; inset: 2px; border: 2px solid var(--ink); border-radius: 9px; pointer-events: none; }
.evs { display: block; margin-top: 3px; width: 100%; }
.ev { display: flex; gap: 5px; align-items: flex-start; margin-top: 3px; font-size: 11.5px; line-height: 1.25; letter-spacing: 0; color: var(--ink); }
.ev i { flex: none; width: 3px; height: 13px; border-radius: 2px; background: var(--c); margin-top: 1px; }
.ev b { font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev.x { display: none; }
.c1 { --c: var(--c1); } .c2 { --c: var(--c2); } .c3 { --c: var(--c3); } .c4 { --c: var(--c4); } .c5 { --c: var(--c5); }
.ev-more { display: block; margin-top: 3px; padding-left: 8px; font-size: 11px; color: var(--ink-3); }

#day-phase { transition: opacity .3s ease; }
.month:not(.on) #day-phase { display: none; }

/* ── bands ── */
.band { padding: clamp(72px, 8vw, 112px) 0; }
#monthly .lead { font-size: clamp(1.25rem, .9vw + 1.05rem, 1.625rem); line-height: 1.34; letter-spacing: -.02em; }
#monthly .lead:first-of-type { color: var(--ink); }
#monthly .wrap { --wrap: 900px; }
#monthly .fine { font-size: 14px; }
.band.paper { background: var(--card); }
.band .lead { margin-top: 22px; }
.band .lead + .lead { margin-top: 16px; }

/* ── screenshots: real web captures and phone screens (new Apple Health-tone look) ── */
.shot { position: relative; overflow: hidden; background: var(--page); }
.shot img { display: block; width: 100%; height: auto; }
.shot.web { aspect-ratio: 16 / 10; border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); }
.shot.phone { aspect-ratio: 640 / 1386; border-radius: 40px; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 0 7px #101312, 0 0 0 8px rgba(255,255,255,.28); }
.shot.web.crop { aspect-ratio: 1608 / 1201; border-radius: 16px 0 0 0; }

.stage { position: relative; margin-top: clamp(36px, 4.4vw, 56px); padding: 0 0 clamp(20px, 4vw, 48px); }
.stage .web { width: min(100%, 980px); }
.stage .phone { position: absolute; right: clamp(0px, 3vw, 40px); bottom: 0; width: clamp(128px, 23%, 252px); }

/* ── 3 · views: one tile per tab, each wearing its tab's top gradient ── */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { --tab: var(--sky); position: relative; overflow: hidden; border-radius: var(--r-card); display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, var(--tab) 0%, color-mix(in srgb, var(--tab) 45%, #fff) 30%, #fff 62%); padding: clamp(32px, 4vw, 52px) clamp(24px, 4vw, 52px) 0; }
.tile[data-tab="daily"] { --tab: var(--apricot); } .tile[data-tab="habits"] { --tab: var(--sage); } .tile[data-tab="cycle"] { --tab: var(--orchid); }
.tile .cap { text-align: center; max-width: 30em; }
.tile h3 { font: 700 clamp(1.625rem, 1.4vw + 1.1rem, 2.25rem)/1.1 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.tile p { margin-top: 12px; color: var(--ink-2); text-wrap: balance; }
.tile .phone { width: min(270px, 74%); margin: clamp(32px, 4vw, 48px) 0 -150px; }
.tile.wide { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; gap: 40px; padding-inline: clamp(24px, 7vw, 96px); }
.tile.wide .cap { text-align: left; max-width: 26em; padding-bottom: clamp(32px, 4vw, 52px); }
.tile.wide .phone { width: 290px; flex: none; margin: 0 0 -210px; }
/* Daily tile: real web capture beside the copy on wide screens (≥941), the phone screen below that. */
.tile.wide .shot.web { display: none; }

/* ── 4 · google ── */
.node { background: var(--card); border-radius: 22px; padding: 18px 20px 8px; }
.node b { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; padding-bottom: 6px; }
.node .row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--hair-soft); font-size: 15px; }
.node .row i { width: 3px; height: 18px; border-radius: 2px; background: var(--c); }
.node .row i.box { width: 18px; height: 18px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.5px rgba(37,53,47,.4); }
.node time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hub { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.wire { width: clamp(16px, 4vw, 44px); height: 0; border-top: 2px dotted rgba(37,53,47,.34); }

/* ── 5 · trust: the single dark band ── */
.night { background: var(--night); color: var(--night-ink); }
.night ::selection { background: var(--night-ink); color: var(--night); }

/* ── 6 · faq ── */
.faq .h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 14px 0; cursor: pointer; list-style: none;
  font: 600 clamp(1.0625rem, .4vw + 1rem, 1.25rem)/1.3 var(--font-display); letter-spacing: -.015em; user-select: none; }
.faq summary::-webkit-details-marker { display: none; }
.x { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(37,53,47,.07); transition: transform .28s var(--ease-out), background-color .2s ease; }
.x::before, .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: var(--ink); }
.x::after { transform: rotate(90deg); }
.faq details[open] .x { transform: rotate(45deg); }
.faq details p { text-wrap: balance; padding: 0 52px 24px 0; color: var(--ink-2); max-width: 36em; }
.faq a { text-decoration: underline; }

/* ── 7 · close: the four tab colours meet on one horizon ── */
.close { position: relative; padding: clamp(96px, 13vw, 190px) 0 clamp(96px, 12vw, 170px); overflow: hidden; isolation: isolate; }
.horizon { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--apricot), var(--sky) 36%, var(--sage) 66%, var(--orchid));
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%); }


.band .fine { margin-top: 24px; }
.tile .label { color: color-mix(in srgb, var(--ink) 84%, var(--tab)); }
.tile .aside { margin-top: 14px; font-size: 15px; line-height: 1.42; color: var(--ink); }
.tile .aside strong { display: block; font-weight: 600; }

/* devices + google */
.google { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(44px, 5.4vw, 76px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hair); }
.g-copy h3 { font: 700 clamp(1.625rem, 1.4vw + 1.1rem, 2.25rem)/1.1 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.g-copy p { margin-top: 12px; color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
.g-copy h3 + p { font-size: clamp(1.1875rem, .5vw + 1.05rem, 1.375rem); line-height: 1.4; letter-spacing: -.015em; }
.g-copy .note { margin-top: 24px; font-size: 15px; }
.g-copy .note strong { display: block; color: var(--ink); font-weight: 600; }
.sync { display: grid; grid-template-columns: 1fr; }
.devices .node { background: var(--page); }
.devices .hub { flex-direction: column; padding: 8px 0; gap: 6px; }
.devices .wire { width: 0; height: 16px; border-top: 0; border-left: 2px dotted rgba(37,53,47,.34); }

/* privacy and choice */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.night .lead { color: var(--night-ink); margin-top: 8px; }
.also { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--night-hair); }
.also h3 { font: 600 clamp(1.25rem, .6vw + 1.1rem, 1.5rem)/1.2 var(--font-display); letter-spacing: -.02em; }
.also p { margin-top: 8px; color: var(--night-2); text-wrap: balance; }
.go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 16px; color: #A9E2CB; font-weight: 500; }
.go span { font-size: 19px; line-height: 1; transform: translateY(-1px); }

.close .lead { margin-top: 14px; font-size: clamp(1.375rem, 1.2vw + 1.1rem, 2rem); letter-spacing: -.02em; color: var(--ink-2); }
.close .cta-row { margin-top: 36px; }

footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px)); background: var(--page); }
.foot-top { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 88px); padding-bottom: 28px; border-bottom: 1px solid var(--hair); }
.foot-desc { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, auto)) minmax(0, max-content); justify-content: space-between; gap: 20px 24px; }
.foot-cols a { font-size: 13px; line-height: 1.3; color: var(--ink-2); display: flex; align-items: center; min-height: 32px; }
.disc { margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--ink-3); letter-spacing: 0; max-width: 56em; }

/* ── entrance: tiles and the stage settle once; text never waits ── */
.js [data-reveal] { opacity: 0; transform: translateY(22px) scale(.985); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }

/* ── home duties: language menu · language suggestion line · CJK type ──
   Language menu = the More popover, anchored right; on phones (≤940) the same links sit in the full menu.
   The suggestion line is drawn by /landing-a/app.js into .lsug-anchor; its space is reserved before first paint
   (html[data-lsug], set by the inline <head> script), so nothing below moves when it appears. */
.lang .lang-panel { grid-template-columns: max-content; gap: 2px; left: auto; right: -14px; transform-origin: 100% 0; }
.lang-panel a[aria-current] { font-weight: 600; }
.lsug-anchor { position: relative; height: 0; }
html[data-lsug] .lsug-anchor { height: 56px; }
.lsug { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0 10px; width: max-content; max-width: 100%;
  min-height: 44px; padding: 0 0 0 18px; border-radius: 999px; background: rgba(255,255,255,.66); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
  font-size: 14px; line-height: 1.3; color: var(--ink); }
.lsug-go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--link); white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(16,107,84,.35); }
.lsug-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.lsug-x:active { background: rgba(37,53,47,.08); }
/* Korean and Japanese: no tracking on CJK text (CLAUDE.md "Korean Typography"), Korean breaks between words, Japanese uses
   strict line breaking, and a Noto face covers systems without a CJK UI font. Starting point — tune in the locale QA. */
html:lang(ko) { --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Noto Sans KR", "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Noto Sans KR", "Helvetica Neue", sans-serif; }
html:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Noto Sans JP", "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Noto Sans JP", "Helvetica Neue", sans-serif; }
html:lang(ko) body, html:lang(ko) body *, html:lang(ja) body, html:lang(ja) body * { letter-spacing: 0 !important; }
/* Line breaks: ko breaks between words (keep-all); ja breaks only at the <wbr> phrase boundaries that
   scripts/landing-e/build.py inserts (BudouX) — keep-all stops breaks inside phrases, line-break: strict keeps small kana
   and closing punctuation off line starts. A word or phrase wider than its box still wraps (overflow-wrap: anywhere)
   rather than being clipped. The phone calendar names set word-break back to normal for en, so they are repeated here. */
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) body { word-break: keep-all; line-break: strict; overflow-wrap: anywhere; }
html:lang(ko) .ev b, html:lang(ja) .ev b { word-break: keep-all; overflow-wrap: anywhere; }
/* es/pt event names have longer words than en; in the narrow phone cells they hyphenate at the soft hyphens build.py puts in
   long words (「Casa-mento」) instead of being clipped (the phone rule sets hyphens: none for en). */
html:lang(es) .ev b, html:lang(pt) .ev b { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
html:lang(ko) :is(p, summary, h2, h3), html:lang(ja) :is(p, summary, h2, h3) { text-wrap: pretty; }

/* ── responsive ──
   Order matters: wider breakpoints first, narrower ones after, so the narrower value wins.
   One spacing scale throughout: 4 · 8 · 12 · 16 · 20 · 24 · 32 · 40 · 56 · 72 · 96. */
@media (min-width: 721px) {
  h1 span { display: block; }
  .hero .sub { max-width: none; }
  .hero .sub span { display: block; }
}
@media (min-width: 941px) {
  .menu { display: none; }
  .tile.wide .shot.phone { display: none; }
  .tile.wide { padding-right: 0; padding-left: clamp(26px, calc((100vw - 980px) / 2 + 4px), 96px); align-items: flex-end; gap: clamp(32px, 4vw, 64px); min-height: 440px; }
  .tile.wide .cap { align-self: center; flex: 0 1 25em; }
  .tile.wide .shot.web { display: block; flex: 0 0 min(640px, 55%); margin: clamp(36px, 4vw, 52px) 0 -90px; }
}
@media (max-width: 940px) {
  .nav .links, .nav .login, .nav .lang { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav .pill.sm + .menu-btn { margin-left: 0; }
  .nav .pill.sm { margin-left: auto; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: start; }
  .google, .split { grid-template-columns: 1fr; }
  .split { gap: 20px; }
  .night.band .lead { margin-top: 0; }
  .sync { max-width: 460px; }
  .tile.wide { flex-direction: column; align-items: center; gap: 0; }
  .tile.wide .cap { text-align: center; padding-bottom: 0; }
  .tile.wide .phone { width: min(270px, 74%); margin: clamp(32px, 4vw, 48px) 0 -150px; }
}
/* Longer header labels: the wide header switches to the Menu button later. Measured natural row width (labels never wrap)
   + gutters: en 883 · ko 820 · pt 944 · ja 978 · es 1007 px → pt and ja wide from 1024, es from 1080 (room for wider
   fallback fonts). Same rules as the ≤940 header, scoped to the language. */
@media (min-width: 941px) and (max-width: 1023px) {
  html:lang(ja) .nav .links, html:lang(ja) .nav .login, html:lang(ja) .nav .lang,
  html:lang(pt) .nav .links, html:lang(pt) .nav .login, html:lang(pt) .nav .lang { display: none; }
  html:lang(ja) .menu-btn, html:lang(pt) .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: 0; }
  html:lang(ja) .nav .pill.sm, html:lang(pt) .nav .pill.sm { margin-left: auto; }
  html:lang(ja) .menu:not([hidden]), html:lang(pt) .menu:not([hidden]) { display: block; }
  /* the five footer columns are too narrow for ja labels here (「プライバシーポリ|シー」) — stack as below 940 */
  html:lang(ja) .foot-top { grid-template-columns: 1fr; }
  html:lang(ja) .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: start; }
}
@media (min-width: 941px) and (max-width: 1079px) {
  html:lang(es) .nav .links, html:lang(es) .nav .login, html:lang(es) .nav .lang { display: none; }
  html:lang(es) .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: 0; }
  html:lang(es) .nav .pill.sm { margin-left: auto; }
  html:lang(es) .menu:not([hidden]) { display: block; }
}
/* 721–940: copy on top, then the Google diagram across the full width (three in a row) instead of a narrow left stack. */
@media (min-width: 721px) and (max-width: 940px) {
  .sync { max-width: none; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .devices .hub { flex-direction: row; padding: 0 12px; gap: 10px; }
  .devices .wire { width: 28px; height: 0; border-left: 0; border-top: 2px dotted rgba(37,53,47,.34); }
}
/* Below 900 the phase key drops under the title row. */
@media (max-width: 899px) {
  .cal-top { grid-template-columns: 1fr auto; grid-template-areas: "title switch" "legend legend"; }
  .legend { padding-top: 8px; }
}
/* Phones: headline, CTA and the calendar card share one column; the calendar shows event names in its cells,
   the way the app's phone Monthly does. Headings run 36 : 30 : 24 : 19 : 17 so the hero outranks every section. */
@media (max-width: 720px) {
  :root { --gutter: max(18px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --r-card: 24px; }
  .nav .wrap { gap: 10px; }
  .nav .pill.sm { margin-left: auto; min-height: 46px; padding: 0 16px; font-size: 15px; }
  .menu-btn { font-size: 15px; }
  .js .nav .pill.sm { opacity: 0; visibility: hidden; transform: scale(.96); transition: opacity .2s ease, transform .2s var(--ease-out), visibility 0s .2s; }
  .js .nav.past-hero .pill.sm { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s var(--ease-out), background-color .2s ease; }

  .h2, .h2.xl { font-size: 1.875rem; line-height: 1.08; letter-spacing: -.03em; }
  .tile h3, .g-copy h3 { font-size: 1.5rem; }
  #monthly .lead, .g-copy h3 + p { font-size: 1.1875rem; line-height: 1.4; letter-spacing: -.015em; }
  #monthly .fine { font-size: 13px; }
  .close .lead { font-size: 1.375rem; margin-top: 20px; }
  .also h3 { font-size: 1.1875rem; }
  .faq summary { font-size: 1.0625rem; }
  .faq details p { padding-right: 0; }
  .band .lead { margin-top: 20px; }

  .hero { padding-top: 20px; padding-bottom: 32px; }
  .hero .wrap { width: calc(100% - 24px); }
  .hero h1, .hero .sub, .hero .fine { padding-inline: 6px; }
  .eyebrow { font-size: .9375rem; margin-bottom: 20px; }
  .cta-row { gap: 8px 22px; margin-top: 32px; }
  .cta-row .pill { width: 100%; }
  .hero .fine { margin-top: 16px; }
  .hero .sub { margin-top: 24px; }

  .month { margin-top: 40px; padding: 16px 8px 4px; }
  .cal-top { padding: 0 6px 12px; column-gap: 8px; }
  .cal-title { font-size: 22px; }
  .switch { gap: 8px; }
  .switch-label { white-space: nowrap; }
  .legend { flex-wrap: wrap; gap: 4px; padding-top: 12px; }
  html .month .legend { justify-content: space-between; gap: 6px 4px; }
  .chip { height: 24px; padding: 0 8px 0 6px; font-size: 11.5px; }
  .day .chip { font-size: 12px; }
  html .month .chip { font-size: 12px; gap: 5px; }
  .dow { padding-bottom: 6px; }
  .dow span { padding: 0; text-align: center; font-size: 11px; }
  .grid { border-radius: 12px; }
  .cell { min-height: 64px; padding: 3px 1px 4px 2px; text-align: left; align-items: stretch; }
  .cell .evs { padding-left: 2px; }
  .dn { min-width: 22px; height: 22px; font-size: 12.5px; justify-items: center; align-self: flex-start; }
  .cell.today .dn, button.cell:active .dn { margin-left: 0; }
  .cell[aria-pressed="true"]::after, button.cell:focus-visible::after { inset: 0; border-width: 1.5px; border-radius: 7px; }
  .evs { margin-top: 1px; }
  .ev { gap: 2px; margin: 0; font-size: 9.5px; line-height: 1.16; }
  .ev i { width: 2px; height: auto; align-self: stretch; border-radius: 1px; margin: 1px 0; }
  /* names never break inside a word (below 390 the type steps down instead — see max-width: 389px) */
  .ev b { -webkit-line-clamp: 3; overflow-wrap: normal; word-break: normal; hyphens: none; }
  .ev-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .trip { height: 14px; bottom: 5px; padding: 0 4px; font-size: 9.5px; line-height: 14px; border-radius: 4px; left: calc(100% * 3 / 7 + 2px); width: calc(100% * 4 / 7 - 4px); }
  .day { padding: 16px 6px; min-height: 0; }

  .bento { grid-template-columns: 1fr; gap: 16px; }
  .tile p { text-wrap: pretty; }
  .tile .phone, .tile.wide .phone { width: 82%; }
  .tile .shot.phone, .tile.wide .shot.phone { border-radius: 38px; }
  .shot.phone { border-radius: 30px; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 0 5px #101312; }
  .shot.web { border-radius: 12px; }
  .stage { overflow: visible; margin-top: 40px; padding-bottom: 28px; }
  .stage .web { width: 150%; max-width: none; }
  .stage .phone { width: 34%; right: 9%; }
  .devices { overflow: clip; }
  .google { margin-top: 40px; padding-top: 39px; }
  .hub { flex-direction: column; padding: 8px 0; gap: 6px; }
  .wire { width: 0; height: 18px; border-top: 0; border-left: 2px dotted rgba(37,53,47,.34); }
  .horizon { background-size: 220% 100%; background-position: 30% 0; }

  .foot-top { padding-bottom: 27px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols div:last-child { grid-column: 1 / -1; max-width: none; }
  .foot-cols a { min-height: 44px; }
  .lsug { font-size: 13px; padding-left: 14px; gap: 0 6px; }
}
@media (max-width: 400px) {
  h1 { font-size: 2.25rem; }
  .cal-title { font-size: 19px; }
  .switch { gap: 6px; }
  .legend .chip { font-size: 11px; padding: 0 6px 0 5px; gap: 3px; }
  html .month .legend .chip { font-size: 12px; padding: 0; gap: 4px; }
  html .month .chip i { width: 20px; height: 20px; }
}
/* Below 390 the cells are too narrow for 9.5px names, so the type steps down; the day row can wrap to two lines,
   so its height is reserved — tapping a day never moves the page. */
@media (max-width: 389px) {
  .ev, .trip { font-size: 9px; }
  .cell { padding-right: 0; }
  .day { min-height: 92px; align-content: center; }
}
@media (max-width: 370px) {
  h1 { font-size: 2.0625rem; }
  .cell { padding-left: 3px; padding-right: 0; }
  .cell .evs { padding-left: 0; }
}

/* ── input and user preferences ── */
@media (pointer: coarse) { .foot-cols a, .nav .pill.sm, .more-panel a { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cell::before, .month.on .cell::before, .legend .chip, .month.on .legend .chip { transition: opacity .2s ease; transition-delay: 0s; transform: none; border-radius: 0; }
  .track::after, .pill, .x { transition: none; }
  .pill:active { transform: none; }
  .js [data-reveal], .js [data-reveal].in { opacity: 1; transform: none; transition: none; }
  .js .nav .pill.sm, .js .nav.past-hero .pill.sm { transition: none; transform: none; }
  button.cell:active .dn { transition: none; }
  .more[open] .more-panel { animation: none; }
}
@media (prefers-reduced-transparency: reduce) { .nav.stuck { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --ink-2: #33403A; --ink-3: #3F4A45; --hair: rgba(37,53,47,.4); } .nav.stuck { background: var(--page); } }

/* Longer phase names (es · pt) need two rows on phones: wrap from the left instead of overflowing the card. */
@media (max-width: 720px) { html:lang(es) .month .legend, html:lang(pt) .month .legend { justify-content: flex-start; gap: 6px 14px; } }

/* ── Five-language audit (2026-11-18). Every rule below is :lang()-scoped — the English page is untouched. ── */
/* Leading: kanji and Hangul fill the em box, so the Latin values (1.03 / 1.08 / 1.4 / 1.47) read cramped. */
html:lang(ja) body { line-height: 1.75; } html:lang(ko) body { line-height: 1.65; }
html:lang(ja) h1 { line-height: 1.25; } html:lang(ko) h1 { line-height: 1.2; }
html:lang(ja) :is(.h2, .h2.xl, .tile h3, .g-copy h3, .also h3), html:lang(ko) :is(.h2, .h2.xl, .tile h3, .g-copy h3, .also h3) { line-height: 1.3; }
html:lang(ja) :is(.lead, .hero .sub, #monthly .lead, .g-copy h3 + p) { line-height: 1.65; }
html:lang(ko) :is(.lead, .hero .sub, #monthly .lead, .g-copy h3 + p) { line-height: 1.6; }
html:lang(ja) .faq summary, html:lang(ko) .faq summary { line-height: 1.45; }
/* the calendar card and the chrome keep their own compact rhythm */
html:lang(ja) :is(.month, .nav, .menu, .sync, .lsug), html:lang(ko) :is(.month, .nav, .menu, .sync, .lsug) { line-height: 1.47; }
/* ja headline: each sentence is 16–17 full-width characters — size it so a sentence is one line on wide screens */
/* (the longer sentence is 18 characters: 18 × 60 = 1080 ≤ 1120 · 18 × 52 = 936 ≤ 980 · 18 × 48 = 864 ≤ 897) */
@media (min-width: 1200px) { html:lang(ja) h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) and (max-width: 1199px) { html:lang(ja) h1 { font-size: 3.25rem; } }
@media (min-width: 941px) and (max-width: 1023px) { html:lang(ja) h1 { font-size: 3rem; } }
/* More panel opens leftwards where the header is nearly full (ja · pt just above their Menu breakpoint) */
@media (max-width: 1199px) { html:lang(ja) .more-panel:not(.lang-panel), html:lang(pt) .more-panel:not(.lang-panel) { left: auto; right: -18px; transform-origin: 100% 0; } }
@media (max-width: 720px) {
  html:lang(ja) h1 { font-size: 1.875rem; }
  /* es: 「Cena de cumple de mamá」 needs four lines */
  html:lang(es) .ev b { -webkit-line-clamp: 4; }
  /* es · pt: four long phase names as an even 2 × 2 key */
  html:lang(es) .month .legend, html:lang(pt) .month .legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  /* ko · ja: short labels — pack them from the left instead of spreading them across the card */
  html:lang(ko) .month .legend, html:lang(ja) .month .legend { justify-content: flex-start; gap: 6px 18px; }
  /* ko · ja: denser glyphs need a slightly larger size in the cells */
  html:lang(ko) .ev, html:lang(ko) .trip { font-size: 10.5px; }
  html:lang(ja) .ev, html:lang(ja) .trip { font-size: 10px; }
}
/* pt: balance (and pretty) leave 「também」 alone on a line; plain wrapping keeps it with 「há lugar」 */
@media (max-width: 400px) { html:lang(pt) h1 { font-size: 2rem; text-wrap: wrap; } }
@media (max-width: 389px) { html:lang(ko) .ev, html:lang(ko) .trip { font-size: 10px; } html:lang(ja) .ev, html:lang(ja) .trip { font-size: 9.5px; } }
@media (max-width: 370px) { html:lang(ja) h1 { font-size: 1.75rem; } html:lang(pt) h1 { font-size: 1.875rem; } }
