/* Bani's site: the app's own colors, Rubik, rounded tiles and the sky by the hour. */
@font-face { font-family: 'Rubik'; font-weight: 400; font-display: swap; src: url('/fonts/rubik-400.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-weight: 500; font-display: swap; src: url('/fonts/rubik-500.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-weight: 700; font-display: swap; src: url('/fonts/rubik-700.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-weight: 800; font-display: swap; src: url('/fonts/rubik-800.woff2') format('woff2'); }

:root {
  --bg: #FBF6F2;
  --surface: #FFFFFF;
  --muted: #F3EBE4;
  --border: #EADFD6;
  --text: #271D1F;
  --text-2: #5C4D50;
  --text-3: #7A6A6D;
  --tint: #2F6DB0;
  --tint-soft: #E7F0FA;
  --bunny: #7FB3EA;
  --word: #46536B;
  --rose-soft: #FAEEF5;
  --rose-mid: #EBCDE0;
  --rose-deep: #6E2D58;
  --night: #1A2A4A;
  --shadow: 106, 42, 42;
  --sky1: #F7E5B0;
  --sky2: #EFEADB;
  --sky3: #CFDDEE;
  --stars: 0;
  --ink: var(--text);
  --ink-2: var(--text-2);
  --wrap: 1180px;
  /* Motion: ease-out for things that arrive; a spring with almost no bounce for things that answer a touch. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --spring: linear(0, 0.025, 0.086, 0.169, 0.262, 0.358, 0.452, 0.539, 0.619, 0.69, 0.751, 0.804, 0.848, 0.884, 0.914, 0.938, 0.956, 0.971, 0.982, 0.99, 0.996, 1, 1.003, 1.005, 1.006, 1.006, 1.006, 1.006, 1.005, 1.005, 1.004, 1.004, 1.003, 1.002, 1.002, 1.002, 1.001, 1.001, 1.001, 1.001, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) {
    --bg: #120E17;
    --surface: #1D1724;
    --muted: #272030;
    --border: #30283A;
    --text: #FBF3F6;
    --text-2: #E4D7E0;
    --text-3: #C2B4BE;
    --tint: #9CC6F2;
    --tint-soft: #1C2838;
    --bunny: #96C3F5;
    --word: #DEE7F8;
    --rose-soft: #33192B;
    --rose-mid: #4D2742;
    --rose-deep: #F3CFE6;
    --shadow: 0, 0, 0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #120E17;
    --surface: #1D1724;
    --muted: #272030;
    --border: #30283A;
    --text: #FBF3F6;
    --text-2: #E4D7E0;
    --text-3: #C2B4BE;
    --tint: #9CC6F2;
    --tint-soft: #1C2838;
    --bunny: #96C3F5;
    --word: #DEE7F8;
    --rose-soft: #33192B;
    --rose-mid: #4D2742;
    --rose-deep: #F3CFE6;
    --shadow: 0, 0, 0;
    color-scheme: dark;
  }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--tint); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--surface); padding: 10px 16px; border-radius: 12px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.015em; }
[lang="he"] h1, [lang="he"] h2 { letter-spacing: -0.005em; }
p { margin: 0; }

/* ── The logo, as in the app: the bunny and BANI; at night the bunny is the moon ── */
.logo { display: inline-flex; align-items: center; gap: 0.32em; text-decoration: none; direction: ltr; color: inherit; }
.logo svg { display: block; }
.logo .b { width: 0.9em; height: 1.385em; fill: var(--bunny); transition: fill 0.8s ease, filter 0.8s ease; }
.logo .w { width: 2.95em; height: 0.8em; fill: var(--word); transition: fill 0.8s ease; }
.on-dark .logo .w { fill: rgba(222, 231, 248, 0.9); }
.moon .logo .b { fill: #FFF4D6; filter: drop-shadow(0 0 6px rgba(255, 240, 200, 0.75)) drop-shadow(0 0 18px rgba(255, 236, 190, 0.45)); }

/* ── Header ── */
.top { position: absolute; inset: 0 0 auto; z-index: 20; }
.page .top { position: relative; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.top .logo { font-size: 30px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background 0.2s; }
.top nav a:hover { background: rgba(255, 255, 255, 0.45); }
.on-dark .top nav a { color: #F2F5FB; }
.on-dark .top nav a:hover { background: rgba(255, 255, 255, 0.12); }
.top nav a.lang { border: 1.5px solid currentColor; padding: 6px 14px; opacity: 0.85; }
.top nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.5); }
.page .top nav a:hover, .page .top nav a[aria-current="page"] { background: var(--tint-soft); }
@media (max-width: 860px) { .top nav a.hide-s { display: none; } }
@media (max-width: 420px) { .top .logo { font-size: 26px; } .top nav a { padding: 7px 10px; font-size: 15px; } }

/* ── Buttons ── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; transition: transform 0.2s cubic-bezier(.3,.7,.4,1), box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.primary { background: var(--tint); color: #fff; box-shadow: 0 10px 24px -10px rgba(47, 109, 176, 0.7); }
.btn.soft { background: rgba(255, 255, 255, 0.7); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.on-dark .btn.soft { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); font-weight: 500; font-size: 16px; color: var(--ink); }
.on-dark .pill { background: rgba(255, 255, 255, 0.12); color: #F2F5FB; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #38A064; box-shadow: 0 0 0 4px rgba(56, 160, 100, 0.18); }

/* ── The sky (hero and the hour show) ── */
.sky { position: relative; background: linear-gradient(160deg, var(--sky1) 0%, var(--sky2) 48%, var(--sky3) 100%); color: var(--ink); overflow: hidden; isolation: isolate; }
.sky.on-dark { --ink: #FFFFFF; --ink-2: rgba(236, 241, 250, 0.86); }
.sky::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: var(--stars); transition: opacity 1s;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 28% 8%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 44% 26%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 63% 12%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 78% 30%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 90% 9%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 7% 44%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 36% 52%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 85% 50%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 55% 40%, #fff 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 20% 64%, #fff 50%, transparent 52%), radial-gradient(1.3px 1.3px at 70% 66%, #fff 50%, transparent 52%);
}
.sky .glow { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%; inset-inline-end: -20vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), transparent); opacity: calc(1 - var(--stars)); pointer-events: none; }

/* ── Hero ── */
.hero { min-height: min(100svh, 980px); display: flex; align-items: stretch; }
.hero .wrap { width: 100%; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; padding-top: 110px; }
.hero h1 { font-size: clamp(52px, 7.4vw, 104px); line-height: 0.98; color: var(--ink); }
.hero .lead { font-size: clamp(19px, 1.7vw, 23px); color: var(--ink-2); margin: 26px 0 34px; max-width: 30ch; line-height: 1.5; }
.hero .note { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.hero .phone-wrap { justify-self: center; align-self: end; position: relative; width: min(400px, 80vw); margin-bottom: -170px; }
.hero .phone.front { width: 100%; transform: rotate(-3deg); position: relative; z-index: 2; }
.hero .phone.back { position: absolute; width: 86%; top: 70px; inset-inline-end: -44%; transform: rotate(-11deg); opacity: 0.96; z-index: 1; }
[dir="ltr"] .hero .phone.front { transform: rotate(3deg); }
[dir="ltr"] .hero .phone.back { transform: rotate(11deg); }
.hero .sky-now { position: absolute; bottom: 22px; inset-inline-start: 24px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.hero .sky-now b { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 120px; gap: 44px; }
  .hero .lead { margin-inline: auto; }
  .hero .btns { justify-content: center; }
  .hero .phone-wrap { margin-bottom: -48%; width: min(330px, 76vw); }
  .hero .phone.front { transform: none !important; }
  .hero .phone.back { width: 80%; top: 60px; inset-inline-end: -40%; }
  .hero .sky-now { display: none; }
}

/* ── Phones ── */
.phone { position: relative; aspect-ratio: 390 / 844; border-radius: 15% / 7%; padding: 3.2%; background: #16131B; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.12) inset, 0 40px 80px -30px rgba(var(--shadow), 0.45), 0 18px 40px -24px rgba(20, 20, 40, 0.5); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 12% / 5.6%; overflow: hidden; background: #FBF6F2; }
.phone img, .phone video, .phone .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.phone .shot video { transition: opacity 0.6s ease; }
.phone .shot video.rest { opacity: 0; }

/* ── Sections ── */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.kicker { display: inline-block; font-size: 15px; font-weight: 700; color: var(--tint); margin-bottom: 18px; letter-spacing: 0.02em; }
.on-dark .kicker { color: #BCDAF8; }
.h2 { font-size: clamp(34px, 5vw, 68px); line-height: 1.06; text-wrap: balance; }
.lead2 { text-wrap: pretty; font-size: clamp(18px, 1.5vw, 21px); color: var(--text-2); margin-top: 22px; max-width: 46ch; line-height: 1.6; }
.on-dark .lead2 { color: var(--ink-2); }

/* One tap: three phones */
.taps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 70px; }
.taps figure { margin: 0; }
.taps .phone { width: 100%; max-width: 330px; margin: 0 auto; }
.taps figcaption { max-width: 330px; margin: 26px auto 0; }
.taps h3 { font-size: 22px; font-weight: 700; }
.taps p { color: var(--text-2); margin-top: 6px; font-size: 17px; }
.taps figure:nth-child(2) { transform: translateY(48px); }
@media (max-width: 860px) {
  .taps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin-inline: -24px; padding: 0 24px 12px; scrollbar-width: none; }
  .taps::-webkit-scrollbar { display: none; }
  .taps figure { flex: 0 0 72%; scroll-snap-align: center; transform: none !important; }
}

/* The hour show */
.hours { padding: clamp(80px, 10vw, 140px) 0; transition: color 0.6s; }
.hours .wrap { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: 'text stage' 'dial stage'; column-gap: 60px; align-items: center; }
.hours .text { grid-area: text; align-self: end; }
.hours .stage { grid-area: stage; justify-self: center; width: min(340px, 74vw); }
.dial { grid-area: dial; align-self: start; margin-top: 44px; max-width: 460px; }
.dial input { width: 100%; appearance: none; -webkit-appearance: none; height: 44px; background: transparent; cursor: grab; }
[dir="rtl"] .dial input::-webkit-slider-runnable-track { transform: scaleX(-1); }
[dir="rtl"] .dial input::-moz-range-track { transform: scaleX(-1); }
.dial input:active { cursor: grabbing; }
.dial input::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #14213C 0%, #2E4472 25%, #F7E5B0 30%, #EFEADB 50%, #EAD3A0 72%, #5A76A2 78%, #3F5C8C 94%, #14213C 100%); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.5) inset; }
.dial input::-moz-range-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #14213C 0%, #2E4472 25%, #F7E5B0 30%, #EFEADB 50%, #EAD3A0 72%, #5A76A2 78%, #3F5C8C 94%, #14213C 100%); }
.dial input::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(20, 30, 60, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.35); }
.dial input::-moz-range-thumb { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(20, 30, 60, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.35); }
.dial .now { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.dial .clock { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; }
.dial .part { font-size: 18px; font-weight: 500; color: var(--ink-2); }
.dial .stops { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.dial .stops button { font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: rgba(255, 255, 255, 0.4); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.on-dark .dial .stops button { background: rgba(255, 255, 255, 0.12); }
.dial .stops button[aria-pressed="true"] { background: #fff; color: #1A2A4A; }
.dial .hint { font-size: 14px; color: var(--ink-2); margin-top: 14px; }
@media (max-width: 900px) { .hours .wrap { grid-template-columns: 1fr; grid-template-areas: 'text' 'stage' 'dial'; row-gap: 44px; } .dial { margin-top: 0; } }

/* Family */
.family .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.family .phone { width: min(340px, 74vw); justify-self: center; transform: rotate(3deg); }
[dir="ltr"] .family .phone { transform: rotate(-3deg); }
.bullets { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.bullets li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; }
.bullets svg { width: 18px; height: 28px; flex: none; margin-top: 1px; }
.bullets li:nth-child(1) svg { fill: #EE9466; }
.bullets li:nth-child(2) svg { fill: #3B86D9; }
.bullets li:nth-child(3) svg { fill: #38A064; }
@media (max-width: 900px) { .family .wrap { grid-template-columns: 1fr; gap: 50px; } .family .phone { order: 2; } }

/* More: tiles in the app's own colors */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
.tile { border-radius: 30px; padding: 28px 28px 30px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(150deg, var(--s) 0%, var(--m) 100%); box-shadow: 0 20px 40px -28px var(--g); color: var(--k); }
.tile { position: relative; }
.tile .chip { position: absolute; top: 22px; inset-inline-start: 22px; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; color: var(--g); box-shadow: 0 6px 14px -8px var(--g); }
.tile .chip svg { width: 26px; height: 26px; }
.tile h3 { font-size: 24px; font-weight: 700; }
.tile p { margin-top: 6px; font-size: 16.5px; opacity: 0.82; }
.tile.growth { --s: #E5F6EA; --m: #B5E3C3; --g: #38A064; --k: #08190F; }
.tile.medical { --s: #FDE9EE; --m: #F8BFCC; --g: #D9506F; --k: #2A0B14; }
.tile.care { --s: #E7F5FC; --m: #BCE1F3; --g: #3B98C6; --k: #0C2B3B; }
.tile.feeding { --s: #FFF0E5; --m: #FFD4B8; --g: #EE9466; --k: #2A140A; }
.tile.sleep { --s: #EEEAFE; --m: #CBC1FA; --g: #6E5BE6; --k: #150F30; }
.tile.diaper { --s: #E6F1FD; --m: #B3D4F7; --g: #3B86D9; --k: #0A1A2E; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .tile.growth { --s: #14301F; --m: #1E4A30; --k: #E5F6EA; }
:root:not([data-theme]) .tile.medical { --s: #3D1824; --m: #5C2536; --k: #FDE9EE; }
:root:not([data-theme]) .tile.care { --s: #13283A; --m: #1E3D55; --k: #E7F5FC; }
:root:not([data-theme]) .tile.feeding { --s: #3A2014; --m: #5A3220; --k: #FFF0E5; }
:root:not([data-theme]) .tile.sleep { --s: #231C48; --m: #352B6B; --k: #EEEAFE; }
:root:not([data-theme]) .tile.diaper { --s: #142640; --m: #1F3A60; --k: #E6F1FD; }
}
:root[data-theme="dark"] .tile.growth { --s: #14301F; --m: #1E4A30; --k: #E5F6EA; }
:root[data-theme="dark"] .tile.medical { --s: #3D1824; --m: #5C2536; --k: #FDE9EE; }
:root[data-theme="dark"] .tile.care { --s: #13283A; --m: #1E3D55; --k: #E7F5FC; }
:root[data-theme="dark"] .tile.feeding { --s: #3A2014; --m: #5A3220; --k: #FFF0E5; }
:root[data-theme="dark"] .tile.sleep { --s: #231C48; --m: #352B6B; --k: #EEEAFE; }
:root[data-theme="dark"] .tile.diaper { --s: #142640; --m: #1F3A60; --k: #E6F1FD; }

@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 150px; } }

/* The promise: the evening sky */
.promise { background: linear-gradient(170deg, #5A76A2 0%, #3F5C8C 45%, #1A2A4A 100%); color: #fff; overflow: hidden; }
.promise::before { opacity: 0.8; }
.promise .wrap { display: grid; grid-template-columns: auto 1fr; gap: 70px; align-items: center; }
.promise .moon-bunny { width: clamp(110px, 14vw, 190px); fill: #FFF4D6; filter: drop-shadow(0 0 22px rgba(255, 240, 200, 0.55)) drop-shadow(0 0 60px rgba(255, 236, 190, 0.35)); }
.promise ul { list-style: none; margin: 0; padding: 0; }
.promise li { font-size: clamp(30px, 4.2vw, 58px); font-weight: 800; line-height: 1.12; padding: 8px 0; }
.promise li + li { color: rgba(255, 255, 255, 0.92); }
.promise a { color: #fff; display: inline-block; margin-top: 30px; font-weight: 500; }
@media (max-width: 760px) { .promise .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* Parents' corner teaser */
.corner { background: var(--rose-soft); }
.corner .kicker { color: #B35D93; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 54px; }
.link-card { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 230px; padding: 30px; border-radius: 30px; background: var(--surface); color: var(--text); text-decoration: none; box-shadow: 0 24px 50px -36px rgba(110, 45, 88, 0.55); transition: transform 0.25s cubic-bezier(.3,.7,.4,1), box-shadow 0.25s; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(110, 45, 88, 0.6); }
.link-card h3 { font-size: 24px; font-weight: 700; line-height: 1.25; }
.link-card p { color: var(--text-2); margin-top: 10px; font-size: 16.5px; }
.link-card .go { width: 46px; height: 46px; border-radius: 50%; background: var(--rose-soft); display: grid; place-items: center; color: #B35D93; }
.link-card .go svg { width: 20px; height: 20px; }
[dir="rtl"] .go svg { transform: scaleX(-1); }
@media (max-width: 900px) { .links { grid-template-columns: 1fr; } .link-card { min-height: 0; } }

/* The end */
.end { text-align: center; }
.end .hop { width: 96px; height: 148px; margin: 0 auto 34px; fill: var(--bunny); animation: hop 3.4s cubic-bezier(.3,.7,.4,1) infinite; }
@keyframes hop { 0%, 76%, 100% { transform: translateY(0) scaleY(1); } 80% { transform: translateY(4px) scaleY(0.94); } 88% { transform: translateY(-22px) scaleY(1.03); } 95% { transform: translateY(0) scaleY(0.97); } }
.end .lead2 { margin-inline: auto; }
.end .btns { justify-content: center; margin-top: 36px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 15.5px; color: var(--text-2); }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
footer .logo { font-size: 28px; }
footer .line { margin-top: 14px; max-width: 32ch; }
footer h4 { margin: 0 0 12px; font-size: 15px; color: var(--text); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--tint); }
footer .fine { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; } }

/* ── Inner pages ── */
.page-head { background: linear-gradient(160deg, #F7E5B0 0%, #EFEADB 50%, #CFDDEE 100%); padding: 0 0 70px; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .page-head { background: linear-gradient(160deg, #36301E 0%, #24262E 50%, #182239 100%); }
}
:root[data-theme="dark"] .page-head { background: linear-gradient(160deg, #36301E 0%, #24262E 50%, #182239 100%); }

.page-head.rose { background: linear-gradient(160deg, #FAEEF5 0%, #F6EEE9 55%, #E7F0FA 100%); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .page-head.rose { background: linear-gradient(160deg, #33192B 0%, #24202A 55%, #1C2838 100%); }
}
:root[data-theme="dark"] .page-head.rose { background: linear-gradient(160deg, #33192B 0%, #24202A 55%, #1C2838 100%); }

.page-head .narrow { padding-top: 40px; }
.page-head h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; }
.page-head .lead2 { margin-top: 18px; }
.crumb { font-size: 15px; margin-bottom: 18px; display: inline-flex; gap: 8px; color: var(--text-2); }
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb a:hover { color: var(--tint); }
.content { padding: 56px 0 100px; }
.prose h2 { font-size: 28px; font-weight: 700; margin: 46px 0 12px; line-height: 1.25; }
.prose h3 { font-size: 21px; font-weight: 700; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-inline-start: 24px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }
.updated { font-size: 15px; color: var(--text-3); margin-top: 16px; }
.box { border-radius: 24px; padding: 22px 26px; margin: 26px 0; background: var(--tint-soft); }
.box.warn { background: #FDE9EE; color: #5C1A2C; }
.box.warn p, .box.warn li { color: #5C1A2C; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .box.warn { background: #3D1824; }
:root:not([data-theme]) .box.warn p, :root:not([data-theme]) .box.warn li { color: #FDE9EE; }
}
:root[data-theme="dark"] .box.warn { background: #3D1824; }
:root[data-theme="dark"] .box.warn p, :root[data-theme="dark"] .box.warn li { color: #FDE9EE; }

.box h3 { margin-top: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { text-decoration: none; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: var(--text); font-size: 15px; font-weight: 500; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .toc a { background: rgba(255, 255, 255, 0.08); }
}
:root[data-theme="dark"] .toc a { background: rgba(255, 255, 255, 0.08); }


/* Guides */
.word { border-radius: 30px; padding: 34px; background: var(--surface); box-shadow: 0 24px 50px -36px rgba(110, 45, 88, 0.5); margin-top: -40px; position: relative; }
.word .label { font-size: 14px; font-weight: 700; color: #B35D93; }
.word blockquote { margin: 10px 0 18px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.35; color: var(--text); }
.word button { font: inherit; font-size: 15px; font-weight: 500; color: #B35D93; background: var(--rose-soft); border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.gcard { display: block; text-decoration: none; color: var(--text); border-radius: 24px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); transition: transform 0.2s, border-color 0.2s; }
.gcard:hover { transform: translateY(-2px); border-color: var(--rose-mid); }
.gcard h3 { font-size: 19px; font-weight: 700; margin: 0; }
.gcard p { font-size: 15.5px; color: var(--text-2); margin-top: 4px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 52px; min-height: 36px; margin-top: 16px !important; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--rose-soft); color: #B35D93; font-weight: 700; display: grid; place-items: center; font-size: 16px; }
details { border-top: 1px solid var(--border); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-weight: 400; font-size: 24px; line-height: 1; color: var(--text-3); }
details[open] summary::after { content: '–'; }
details p { margin-top: 10px; }
.sources { font-size: 14.5px; color: var(--text-3); margin-top: 30px; }

/* The age tool */
.tool { border-radius: 30px; padding: 30px; background: var(--surface); box-shadow: 0 24px 50px -36px rgba(47, 109, 176, 0.5); margin-top: -40px; position: relative; }
.tool label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.tool .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.tool .field { flex: 1 1 200px; }
.tool input[type="date"], .tool select { width: 100%; font: inherit; font-size: 18px; padding: 13px 16px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); min-height: 54px; }
.chips { display: flex; gap: 8px; }
.chips button { font: inherit; font-size: 16px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; min-height: 54px; }
.chips button[aria-pressed="true"] { background: var(--tint); border-color: var(--tint); color: #fff; }
.tool .private { font-size: 14px; color: var(--text-3); margin-top: 16px; }
.result { margin-top: 30px; display: grid; gap: 14px; }
.result[hidden] { display: none; }
.age-big { border-radius: 26px; padding: 28px; background: linear-gradient(160deg, #F7E5B0 0%, #EFEADB 50%, #CFDDEE 100%); color: #271D1F; }
.age-big .n { font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1.1; }
.age-big .sub { margin-top: 8px; font-size: 17px; color: #5C4D50; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact { border-radius: 22px; padding: 20px; background: var(--bg); border: 1px solid var(--border); }
.fact b { display: block; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fact span { font-size: 14.5px; color: var(--text-2); }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }
.rcard { border-radius: 22px; padding: 22px 24px; background: var(--bg); border: 1px solid var(--border); }
.rcard h3 { font-size: 15px; font-weight: 700; color: var(--tint); margin: 0 0 6px; }
.rcard .t { font-size: 20px; font-weight: 700; color: var(--text); }
.rcard ul { margin: 8px 0 0; padding-inline-start: 22px; color: var(--text-2); }
.rcard p { color: var(--text-2); margin-top: 6px; }
.rcard button { margin-top: 12px; font: inherit; font-size: 15px; color: var(--tint); background: var(--tint-soft); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }

/* Tipat Halav */
.visits { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.visits::before { content: ''; position: absolute; inset-inline-start: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.visits li { position: relative; padding-inline-start: 58px; padding-bottom: 26px; }
.visits li::before { content: ''; position: absolute; inset-inline-start: 11px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid #3B98C6; }
.visits h3 { margin: 0; font-size: 20px; }
.visits .when { font-size: 15px; color: var(--text-3); }
.visits ul { margin-top: 6px; }
.out { display: grid; gap: 10px; margin-top: 18px; }
.out a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.out a b { display: block; font-size: 18px; }
.out a span { font-size: 15px; color: var(--text-2); }
.out a svg { width: 18px; height: 18px; flex: none; color: var(--text-3); }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .end .hop { animation: none; }
  .phone img, .logo .b { transition: none; }
}
@media (max-width: 600px) { .fact:nth-child(3) { grid-column: 1 / -1; } }

/* The sky keeps its own colors in dark mode too: by day dark text, by night light. */
.sky:not(.on-dark), .home .top:not(.on-dark) { --ink: #271D1F; --ink-2: #5C4D50; --word: #46536B; --bunny: #7FB3EA; }
.sky:not(.on-dark) .kicker { color: #2F6DB0; }
.sky:not(.on-dark) .btn.soft { color: #271D1F; background: rgba(255, 255, 255, 0.7); }
.home .top nav a { color: var(--ink); }
.tile { padding-top: 100px; }
.top.on-dark { --ink: #FFFFFF; --ink-2: rgba(236, 241, 250, 0.86); }

/* The logo and the moon bunny are English letters and shapes: they sit on the left in Hebrew too. */
[dir="rtl"] .top .wrap { flex-direction: row-reverse; }
[dir="rtl"] .promise .wrap { grid-template-columns: 1fr auto; }
[dir="rtl"] .promise .moon-bunny { order: 2; }
@media (max-width: 760px) { [dir="rtl"] .promise .wrap { grid-template-columns: 1fr; } [dir="rtl"] .promise .moon-bunny { order: 0; justify-self: end; } }
/* Lead text on a light sky keeps the sky's dark ink, also in dark mode. */
.sky:not(.on-dark) .lead2 { color: var(--ink-2); }
.end .btns { flex-wrap: wrap; }

/* The menu: links in the header on wide screens, a small menu on phones. */
.top nav .nav-links { display: flex; gap: 2px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; gap: 6px; cursor: pointer; background: rgba(255, 255, 255, 0.5); -webkit-tap-highlight-color: transparent; }
.on-dark .menu summary { background: rgba(255, 255, 255, 0.14); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); }
.menu[open] summary i:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu .panel { position: absolute; top: 56px; inset-inline-end: 0; min-width: 220px; display: grid; gap: 2px; padding: 8px; border-radius: 22px; background: var(--surface); box-shadow: 0 24px 50px -20px rgba(var(--shadow), 0.45), 0 0 0 1px var(--border); transform-origin: top left; animation: menu-in 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
[dir="ltr"] .menu .panel { transform-origin: top right; }
.top .menu .panel a { color: var(--text); padding: 14px 16px; border-radius: 14px; font-size: 17px; }
.top .menu .panel a:hover, .top .menu .panel a[aria-current="page"] { background: var(--muted); }
@keyframes menu-in { from { opacity: 0; transform: scale(0.94) translateY(-6px); } }
@media (max-width: 860px) { .top nav .nav-links { display: none; } .menu { display: block; } }
@media (prefers-reduced-motion: reduce) { .menu .panel { animation: none; } }

/* Why Bani */
.prose.about p { font-size: 19px; }
.values { list-style: none; padding: 0; margin: 40px auto; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.values li { padding: 24px; border-radius: 26px; background: linear-gradient(160deg, var(--c)); color: var(--card-ink); }
.values svg { width: 18px; height: 28px; fill: var(--k); opacity: 0.85; }
.values h3 { font-size: 21px; margin-top: 12px; }
.values p { color: var(--card-ink-2); margin-top: 6px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.menu, .menu:last-of-type { border: 0; padding: 0; }
.menu summary::after { content: none; }
/* In dark mode the tint is a light blue, so what sits on it is dark. */
:root { --on-tint: #FFFFFF; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) { --on-tint: #10233D; }
}
:root[data-theme="dark"] { --on-tint: #10233D; }

.btn.primary { color: var(--on-tint); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .btn.soft { background: rgba(255, 255, 255, 0.12); color: var(--text); }
:root:not([data-theme]) .menu summary { background: rgba(255, 255, 255, 0.12); }
}
:root[data-theme="dark"] .btn.soft { background: rgba(255, 255, 255, 0.12); color: var(--text); }
:root[data-theme="dark"] .menu summary { background: rgba(255, 255, 255, 0.12); }

.menu[open] summary::after { content: none; }
.top nav { position: relative; }
.menu { position: static; }
.menu .panel { inset-inline-end: auto; inset-inline-start: 0; transform-origin: top right; }
[dir="ltr"] .menu .panel { transform-origin: top left; }

/* Bani the character (build.mjs baniBunny): breathes, blinks, perks, waves, and hops with happy eyes. */
.bani-bunny { display: block; overflow: visible; }
.bani-bunny * { transform-box: view-box; }
.bani-bunny .bb-all { transform-origin: 60px 132px; animation: bb-breathe 4.4s ease-in-out infinite; }
.bani-bunny .bb-eyes { transform-origin: 60px 64px; animation: bb-blink 3.6s infinite; transition: opacity 0.16s; }
.bani-bunny .bb-happy { opacity: 0; transition: opacity 0.16s; }
.bani-bunny .bb-ear { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bani-bunny .bb-ear.l { transform-origin: 45px 52px; }
.bani-bunny .bb-ear.r { transform-origin: 75px 52px; }
.bani-bunny .bb-paw { transform-origin: 82px 106px; }
.bani-bunny.perk .bb-ear.l, :hover > .bani-bunny .bb-ear.l { transform: rotate(-9deg) scaleY(1.06); }
.bani-bunny.perk .bb-ear.r, :hover > .bani-bunny .bb-ear.r { transform: rotate(9deg) scaleY(1.06); }
.bani-bunny.happy .bb-eyes { opacity: 0; }
.bani-bunny.happy .bb-happy { opacity: 1; }
.bani-bunny.hopping .bb-all { animation: bb-hop 0.62s; }
.bani-bunny.waving .bb-paw, .bani-bunny.wave-in .bb-paw { animation: bb-wave 1.1s ease-in-out; }
.bani-bunny.wave-in .bb-paw { animation-delay: 1.4s; }
@keyframes bb-breathe { 50% { transform: scaleY(1.025); } }
@keyframes bb-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes bb-hop { 15% { transform: translateY(2px) scaleY(0.95); } 50% { transform: translateY(-18px) scaleY(1.03); } 78% { transform: translateY(0) scaleY(0.96); } 90% { transform: translateY(-3px); } }
@keyframes bb-wave { 18% { transform: rotate(-24deg); } 42% { transform: rotate(14deg); } 64% { transform: rotate(-19deg); } 84% { transform: rotate(10deg); } }
/* The logo's bunny jumps when tapped. */
.logo.jump .b { animation: logo-hop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: 50% 100%; }
@keyframes logo-hop { 30% { transform: translateY(-9px) rotate(-8deg) scaleY(1.06); } 60% { transform: translateY(0) scaleY(0.92); } 80% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .bani-bunny *, .logo.jump .b { animation: none !important; } }
.lost { display: block; width: 110px; height: 121px; margin: 0 auto 24px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.page-head .lost { margin: 26px 0 0; width: 84px; height: 92px; }
.lost .bani-bunny { width: 100%; height: 100%; }

/* The sky's colors can glide from one hour to the next. */
@property --sky1 { syntax: '<color>'; inherits: true; initial-value: #F7E5B0; }
@property --sky2 { syntax: '<color>'; inherits: true; initial-value: #EFEADB; }
@property --sky3 { syntax: '<color>'; inherits: true; initial-value: #CFDDEE; }

/* A phone that looks like one: a metal edge, the side buttons, the island, and the glass catching the light. */
.phone { padding: 2.9%; border-radius: 15.5% / 7.2%; background: linear-gradient(150deg, #4A4652 0%, #1B1820 22%, #121016 60%, #35313C 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 0 0 3px #0B0A0E, 0 1px 0 rgba(255, 255, 255, 0.08), 0 50px 90px -40px rgba(30, 20, 45, 0.6), 0 22px 44px -26px rgba(30, 20, 45, 0.45); }
.phone::before, .phone::after { content: ''; position: absolute; width: 0.9%; min-width: 2px; border-radius: 2px; background: linear-gradient(90deg, #2B2832, #4B4754); }
.phone::before { right: -0.7%; top: 25%; height: 10%; }
.phone::after { left: -0.7%; top: 20%; height: 12%; }
.phone .screen { border-radius: 13% / 6%; }
.phone .screen::before { content: ''; position: absolute; z-index: 6; top: 1.55%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #050407; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); pointer-events: none; }
.phone .screen::after { content: ''; position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: inherit; background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 26%, rgba(255, 255, 255, 0) 42%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
/* Instagram, Facebook, mail: three equal round icons, big enough for a tired thumb. */
.socials { display: flex; justify-content: center; gap: 18px; margin-top: 30px; }
.socials a { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); color: var(--text); box-shadow: 0 8px 22px -14px rgba(26, 42, 74, 0.55); transition: transform 0.2s cubic-bezier(.3,.7,.4,1), background 0.2s, color 0.2s; }
.socials a:hover { transform: translateY(-3px); color: var(--tint); }
.socials a:active { transform: scale(0.94); }
.socials a:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; }
.socials svg { width: 30px; height: 30px; }
.on-dark .socials a { background: rgba(255, 255, 255, 0.14); color: #fff; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .socials a { background: rgba(255, 255, 255, 0.12); color: var(--text); }
}
:root[data-theme="dark"] .socials a { background: rgba(255, 255, 255, 0.12); color: var(--text); }

@media (prefers-reduced-motion: reduce) { .socials a { transition: none; } .socials a:hover { transform: none; } }

/* ── Apple's way, for the web (skill apple-design): instant answer to a touch, glass that
   brings structure without stealing focus, and things that leave the way they came. ── */
html { scroll-padding-top: 92px; interpolate-size: allow-keywords; }
a, button, summary, select, label { -webkit-tap-highlight-color: transparent; }
a, button, summary { touch-action: manipulation; }

/* The press shows the moment the finger lands, and lets go softly. */
.btn, .socials a, .link-card, .gcard, .toc a, .out a, .chips button, .word button, .rcard button, .menu summary, .ccard {
  transition: transform 0.45s var(--spring), background-color 0.2s, box-shadow 0.25s, color 0.2s, border-color 0.2s;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .link-card:hover { transform: translateY(-4px); }
  .gcard:hover { transform: translateY(-2px); }
  .socials a:hover { transform: translateY(-3px); }
}
@media (hover: none) { .btn:hover, .link-card:hover, .gcard:hover, .socials a:hover { transform: none; } }
.btn:active, .socials a:active, .toc a:active, .out a:active, .chips button:active, .word button:active, .rcard button:active, .menu summary:active { transform: scale(0.96); transition: transform 0.1s ease-out; }
.link-card:active, .gcard:active, .ccard:active { transform: scale(0.98); transition: transform 0.1s ease-out; }

/* The header: clear over the sky; once the page moves under it, a soft glass layer. */
.top { position: fixed; transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), -webkit-backdrop-filter 0.35s, backdrop-filter 0.35s; }
.page .top { position: sticky; top: 0; }
.top.glass { background: rgba(251, 246, 242, 0.72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 0 rgba(var(--shadow), 0.05), 0 14px 30px -26px rgba(var(--shadow), 0.55); }
.top.glass, .home .top.glass { --ink: var(--text); --ink-2: var(--text-2); --word: #46536B; --bunny: #7FB3EA; }
.top.glass nav a, .home .top.glass nav a, .on-dark.top.glass nav a { color: var(--text); }
.top.glass .logo .w, .on-dark.top.glass .logo .w { fill: var(--word); }
.moon.top.glass .logo .b { fill: var(--bunny); filter: none; }
.top.glass .menu summary { background: rgba(var(--shadow), 0.06); }
.top.glass .menu summary i { background: var(--text); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .top.glass { background: rgba(18, 14, 23, 0.84); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 30px -26px rgba(0, 0, 0, 0.8); }
:root:not([data-theme]) .top.glass, :root:not([data-theme]) .home .top.glass { --word: #DEE7F8; --bunny: #96C3F5; }
:root:not([data-theme]) .top.glass .menu summary { background: rgba(255, 255, 255, 0.1); }
}
:root[data-theme="dark"] .top.glass { background: rgba(18, 14, 23, 0.84); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 30px -26px rgba(0, 0, 0, 0.8); }
:root[data-theme="dark"] .top.glass, :root[data-theme="dark"] .home .top.glass { --word: #DEE7F8; --bunny: #96C3F5; }
:root[data-theme="dark"] .top.glass .menu summary { background: rgba(255, 255, 255, 0.1); }


/* The menu grows out of its button and goes back into it. */
.menu .panel { background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .menu .panel { background: rgba(29, 23, 36, 0.9); }
}
:root[data-theme="dark"] .menu .panel { background: rgba(29, 23, 36, 0.9); }

@keyframes menu-in { from { opacity: 0; transform: scale(0.94) translateY(-6px); filter: blur(3px); } }
@keyframes menu-out { to { opacity: 0; transform: scale(0.94) translateY(-6px); filter: blur(3px); } }
.menu.closing .panel { animation: menu-out 0.2s var(--ease-in) forwards; }
.menu summary i { transition: transform 0.4s var(--spring); }
.menu.closing summary i { transform: none !important; }

/* Answers open and close as one movement, not a jump (where the browser can). */
details:not(.menu)::details-content { block-size: 0; overflow-y: clip; transition: block-size 0.42s var(--ease-out), content-visibility 0.42s allow-discrete; }
details:not(.menu)[open]::details-content { block-size: auto; }

/* Some people ask for less see-through, or more contrast: the glass turns solid. */
@media (prefers-reduced-transparency: reduce) {
  .top.glass { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu .panel { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn.soft, .socials a, .note-card, .fplay { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .note-card { background: #fff; }
  .player::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(20, 16, 22, 0.62); }
}
@media (prefers-contrast: more) {
  .top.glass { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1.5px 0 var(--text-3); }
  .menu .panel { background: var(--surface); box-shadow: 0 0 0 1.5px var(--text-3); }
  .btn.soft, .socials a, .pill, .toc a { box-shadow: inset 0 0 0 1.5px currentColor; }
  .link-card, .gcard, .faq details, .ask, .card { box-shadow: inset 0 0 0 1.5px var(--text-3); }
}
@media (prefers-reduced-motion: reduce) {
  details:not(.menu)::details-content { transition: none; }
  .menu .panel, .menu.closing .panel { animation: none; }
  .btn, .socials a, .link-card, .gcard, .toc a, .out a, .chips button, .word button, .rcard button, .menu summary, .ccard, .top { transition: none; }
}
.dial input::-webkit-slider-thumb { transition: transform 0.45s var(--spring); }
.dial input:active::-webkit-slider-thumb { transform: scale(1.14); transition-duration: 0.1s; }
.dial .stops button { transition: transform 0.45s var(--spring), background-color 0.2s, color 0.2s; -webkit-tap-highlight-color: transparent; }
.dial .stops button:active { transform: scale(0.95); transition-duration: 0.1s; }

/* ── Premium details ── */
::selection { background: rgba(127, 179, 234, 0.42); color: inherit; }
html { text-rendering: optimizeLegibility; font-kerning: normal; }
h1, h2, h3 { font-feature-settings: 'kern'; }
/* Headlines rise out of their own line, one line after another. */
.motion .lines .ln { display: block; overflow: clip; overflow-clip-margin: 0.25em; padding-block: 0.04em; }
.motion .lines .ln > span { display: block; transform: translateY(108%); transition: transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 95ms + 60ms); }
.motion .lit .lines .ln > span, .motion .lines.lit .ln > span { transform: none; }
/* The words around a headline come into focus just after it. */
.motion :is(.ch, .page-head) :is(.lead, .lead2, .dline, .kicker, .crumb, .updated) { opacity: 0; filter: blur(6px); transform: translateY(10px); transition: opacity 0.9s var(--ease-out) 0.35s, filter 0.9s var(--ease-out) 0.35s, transform 1s var(--ease-out) 0.35s; }
.motion .lit :is(.lead, .lead2, .dline, .kicker, .crumb, .updated) { opacity: 1; filter: none; transform: none; }
.motion .page-head .kicker, .motion .ch .kicker { transition-delay: 0s; }
/* Moving between pages: the header stays, the page underneath dissolves into the next. */
@view-transition { navigation: auto; }
.top { view-transition-name: bani-top; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
/* Links underline from the start of the word, the way the eye reads. */
.prose a, .faq details > div a, .lead2 a, footer a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat; background-size: 0% 1.5px; background-position: 100% 100%; transition: background-size 0.35s var(--ease-out), color 0.2s; }
[dir="ltr"] :is(.prose a, .faq details > div a, .lead2 a, footer a) { background-position: 0% 100%; }
.prose a, .faq details > div a, .lead2 a { background-size: 100% 1.5px; }
@media (hover: hover) { footer a:hover { background-size: 100% 1.5px; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .motion .lines .ln > span { transform: none; transition: none; }
}

/* ── The hour meter, on the right side of the screen: the visitor's own hour by default, and
   any hour a parent drags it to. The sky, light or dark, and every button follow it. ── */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hourctl { position: fixed; right: max(14px, env(safe-area-inset-right)); top: 50%; z-index: 40; translate: 0 -50%; direction: ltr; font-variant-numeric: tabular-nums; }
.hourctl .hc-body {
  display: grid; justify-items: center; gap: 10px; width: 76px; padding: 16px 0 12px; border-radius: 38px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent), 0 24px 50px -28px rgba(var(--shadow, 39, 29, 31), 0.45);
}
.hourctl .hc-body > .hc-t { font-size: 19px; font-weight: 800; line-height: 1; color: var(--text); }
.hourctl .hc-p { font-size: 11.5px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--text-3); padding: 0 6px; height: 2.5em; overflow: hidden; }
.hourctl .hc-track { position: relative; width: 12px; height: clamp(170px, 34vh, 300px); margin: 6px 0 4px; border-radius: 12px; background: var(--band); cursor: grab; touch-action: none; outline: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.hourctl .hc-track::before { content: ''; position: absolute; inset: -6px -26px; }
.hourctl.held .hc-track { cursor: grabbing; }
.hourctl .hc-ticks { position: absolute; inset: 0; pointer-events: none; font-style: normal; }
.hourctl .hc-ticks span { position: absolute; right: 22px; translate: 0 -50%; font-size: 10.5px; font-weight: 600; color: var(--text-3); }
.hourctl .hc-ticks span:nth-child(1) { top: 25%; }
.hourctl .hc-ticks span:nth-child(2) { top: 50%; }
.hourctl .hc-ticks span:nth-child(3) { top: 75%; }
.hourctl .hc-thumb {
  position: absolute; left: 50%; top: calc(var(--k, 0.5) * 100%); translate: -50% -50%; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: #FFFFFF; color: #E0A33A;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 18px -6px rgba(0, 0, 0, 0.35); transition: scale 0.45s var(--spring), background-color 0.4s, color 0.4s;
}
.hourctl.night .hc-thumb { background: #1F2B4A; color: #F3E6B5; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 18px -6px rgba(0, 0, 0, 0.6); }
.hourctl.held .hc-thumb { scale: 1.12; transition-duration: 0.18s; }
.hourctl .hc-track:focus-visible .hc-thumb { box-shadow: 0 0 0 3px var(--tint), 0 8px 18px -6px rgba(0, 0, 0, 0.35); }
.hourctl .hc-ic { display: grid; place-items: center; }
.hourctl .hc-ic svg { width: 19px; height: 19px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hourctl .hc-ic svg path[d^="M20"] { stroke: none; }
.hourctl .hc-now { font: inherit; font-size: 13px; font-weight: 700; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--tint); color: var(--on-tint); cursor: pointer; transition: transform 0.45s var(--spring), background-color 0.3s, color 0.3s; }
.hourctl .hc-now:active { transform: scale(0.94); transition-duration: 0.1s; }
/* Hidden, it keeps its place, so the track never moves under the finger. */
.hourctl .hc-now[hidden] { display: inline-block; visibility: hidden; }
.hourctl .hc-chip { display: none; }

/* Smaller screens: a round button at the bottom right opens the meter, and it folds back into it. */
@media (max-width: 1399px) {
  .hourctl { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); translate: none; }
  .hourctl .hc-chip {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; font: inherit; cursor: pointer;
    background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); color: #E0A33A;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent), 0 14px 28px -18px rgba(0, 0, 0, 0.55); transition: transform 0.45s var(--spring), background-color 0.3s, color 0.3s;
  }
  .hourctl.night .hc-chip { color: #F3E6B5; }
  .hourctl .hc-chip:active { transform: scale(0.92); transition-duration: 0.1s; }
  .hourctl .hc-chip .hc-t { display: none; }
  /* Open, it stays a slim strip by the edge: the time, the day and "now", nothing more. */
  .hourctl .hc-body { position: absolute; right: 0; bottom: 54px; width: 44px; gap: 8px; padding: 12px 0 8px; border-radius: 22px; transform-origin: 50% 100%; opacity: 0; scale: 0.6; visibility: hidden; transition: opacity 0.2s var(--ease-in), scale 0.25s var(--ease-in), visibility 0s 0.25s; }
  .hourctl.open .hc-body { opacity: 1; scale: 1; visibility: visible; transition: opacity 0.25s var(--ease-out), scale 0.5s var(--spring), visibility 0s; }
  .hourctl .hc-body > .hc-t { font-size: 12px; }
  .hourctl .hc-p, .hourctl .hc-ticks { display: none; }
  .hourctl .hc-track { width: 8px; height: min(180px, 26svh); margin: 4px 0; }
  .hourctl .hc-thumb { width: 30px; height: 30px; }
  .hourctl .hc-thumb .hc-ic svg { width: 15px; height: 15px; }
  .hourctl .hc-now { font-size: 11px; min-height: 28px; padding: 0 6px; }
}
@media print { .hourctl { display: none; } }
@media (prefers-reduced-motion: reduce) { .hourctl .hc-body, .hourctl .hc-thumb, .hourctl .hc-chip { transition: none !important; } }
@media (prefers-reduced-transparency: reduce) { .hourctl .hc-body, .hourctl .hc-chip { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* While the hour moves, light and dark change softly, not in a blink. */
html.hc-live body, html.hc-live body *:not(.hc-thumb):not(.hc-body) { transition-property: background-color, color, border-color, box-shadow, fill, stroke !important; transition-duration: 0.6s !important; transition-timing-function: ease !important; }
