/* =========================================================
   Sara Yehuday – sleep consultant
   Concept: the page follows an evening, from night sky to morning.
   ========================================================= */
:root {
  --night: #16222a;
  --night-2: #24363d;
  --dusk: #8a6f7d;
  --moon: #f3e4bf;
  --sage: #8fa98a;
  --sage-deep: #4b6853;
  --sage-mist: #e9efe6;
  --rose: #c25f69;
  --rose-deep: #a44a55;
  --rose-soft: #f2a6ac;
  --blush: #f3dcd8;
  --paper: #f6ede9;
  --mist: #e6e0ec;
  --ink: #24312c;
  --muted: #5d6964;

  --serif: 'Fredoka', 'Assistant', sans-serif;
  --sans: 'Assistant', system-ui, sans-serif;
  --hand: 'Amatic SC', cursive;

  --r-lg: 28px;
  --r-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5em; }
h3 { font-size: 1.6rem; margin-bottom: .35em; }
p + p { margin-top: .9em; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; position: relative; z-index: 2; }
.section { position: relative; padding-block: clamp(80px, 11vw, 140px); }

.skip { position: absolute; right: 16px; top: -60px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Line-art icons ---------- */
.ico { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  padding: .8em 1.9em;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--rose-deep); transform: translateY(-2px); }
.btn-moon { background: var(--moon); color: var(--night); }
.btn-moon:hover { background: #fff; }
.btn-line { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-big { font-size: 1.2rem; padding: .9em 2.4em; }

.link { color: var(--rose-deep); font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(246, 237, 233, .94);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(36, 49, 44, .08);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .12em; }
.logo img { width: 34px; height: auto; filter: brightness(0) invert(1) sepia(.35) saturate(1.6); transition: filter .3s; }
.scrolled .logo img { filter: none; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 600; opacity: .88; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; margin-inline-start: auto; cursor: pointer; position: relative; color: inherit; }
.menu-toggle span { position: absolute; right: 8px; left: 8px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   HERO – pinned while scrolling the track; --p (0..1) goes from sunset to night
   ========================================================= */
.hero-track { height: 175vh; height: 175svh; position: relative; }
.hero {
  --p: 0;
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  padding: 100px 0 140px;
  color: #fff;
  overflow: hidden;
  /* sunset */
  background:
    radial-gradient(ellipse 70% 50% at 22% 100%, rgba(255, 196, 128, .75), transparent 70%),
    linear-gradient(180deg, #4a5578 0%, #85709a 32%, #c98a96 60%, #ee9f86 82%, #ffcd96 100%);
}

/* night falls over the sunset as you scroll */
.sky-night {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% 105%, rgba(150, 120, 160, .35), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, #3a4858 85%, #565b72 100%);
  opacity: var(--p);
}

/* stars come out with the night */
.stars-wrap { position: absolute; inset: 0 0 22% 0; opacity: calc(var(--p) * 1.6 - .35); }
.stars { position: absolute; inset: 0; }
.star {
  position: absolute; border-radius: 50%; background: #fff;
  opacity: var(--o, .7);
  animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite;
}
.star.big { box-shadow: 0 0 6px 1px rgba(255, 248, 225, .8); }
.star.big::before, .star.big::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  width: 900%; height: 1px; transform: translate(-50%, -50%);
}
.star.big::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes twinkle {
  0%, 100% { opacity: var(--o, .7); transform: scale(1); }
  50% { opacity: .08; transform: scale(.55); }
}
.shooting {
  position: absolute; height: 1.5px; width: 140px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff);
  border-radius: 2px;
  transform: rotate(var(--a, 200deg));
  animation: shoot 1.1s ease-out forwards;
}
@keyframes shoot {
  0% { opacity: 0; translate: 0 0; }
  15% { opacity: 1; }
  100% { opacity: 0; translate: var(--dx, -260px) var(--dy, 120px); }
}

/* sunset clouds, gone by nightfall */
.drift-clouds { position: absolute; inset: 0; opacity: calc(1 - var(--p) * 1.4); pointer-events: none; }
.drift { --fill: #ffe6e0; position: absolute; stroke: none; opacity: .55; animation: drift 46s linear infinite alternate; }
.drift-clouds .c1 { width: 190px; height: 190px; top: 6%; left: 24%; }
.drift-clouds .c2 { width: 120px; height: 120px; top: 30%; left: 36%; animation-duration: 58s; opacity: .35; }
.drift-clouds .c3 { width: 240px; height: 240px; top: 44%; left: 2%; animation-duration: 72s; opacity: .4; }
@keyframes drift { from { translate: -6vw 0; } to { translate: 6vw 0; } }

/* moon with the sleeping baby: rises as night falls */
.moon-wrap {
  position: absolute; top: 15%; left: 8%;
  width: clamp(150px, 19vw, 270px);
}
.moon {
  width: 100%;
  filter: brightness(0) invert(1) sepia(.35) saturate(1.6)
          drop-shadow(0 0 24px rgba(243, 228, 191, .45)) drop-shadow(0 0 70px rgba(243, 228, 191, .2));
  transform: translateY(calc((1 - var(--p)) * 42vh)) rotate(calc((1 - var(--p)) * -14deg));
  opacity: calc(var(--p) * 1.6 - .25);
}

/* Zzz */
.zzz { position: absolute; pointer-events: none; }
.zzz i {
  position: absolute; bottom: 0; left: 0;
  font-family: var(--hand); font-style: normal; font-weight: 700; line-height: 1;
  color: var(--moon);
  opacity: 0;
  animation: zfloat 4.5s ease-in infinite;
}
.zzz i:nth-child(2) { animation-delay: 1.5s; font-size: 1.25em; }
.zzz i:nth-child(3) { animation-delay: 3s; font-size: 1.5em; }
@keyframes zfloat {
  0% { opacity: 0; transform: translate(0, 0) rotate(-12deg); }
  15% { opacity: .95; }
  100% { opacity: 0; transform: translate(28px, -72px) rotate(10deg); }
}
.moon-wrap .zzz { top: 8%; right: 6%; width: 1px; height: 1px; font-size: clamp(1.3rem, 2.2vw, 2rem); opacity: calc(var(--p) * 2.5 - 1.5); }

/* setting sun */
.hero-sun {
  position: absolute; left: 7%; bottom: clamp(20px, 3vw, 40px);
  width: clamp(150px, 17vw, 250px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff0cc 0%, #ffcf8c 50%, #f5976a 100%);
  transform: translateY(calc(22% + var(--p) * 90%));
  opacity: calc(1 - var(--p) * 1.1);
  animation: fadeIn 1.4s ease both;
}
.hero-sun::before {
  content: ''; position: absolute; inset: -90%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 200, 140, .6) 0%, rgba(255, 170, 130, .25) 35%, transparent 65%);
}

.scroll-hint {
  position: absolute; bottom: clamp(70px, 10vw, 130px); left: 50%; z-index: 2;
  width: 14px; height: 14px;
  border-left: 2px solid rgba(255,255,255,.7); border-bottom: 2px solid rgba(255,255,255,.7);
  transform: translateX(-50%) rotate(-45deg);
  opacity: calc(1 - var(--p) * 4);
  animation: hint 2s 3s ease-in-out infinite backwards;
}
@keyframes hint { 50% { translate: 0 8px; } }

/* headline */
.hero-inner { text-shadow: 0 1px 18px rgba(60, 30, 50, calc((1 - var(--p)) * .4)); }
.hero-title {
  font-weight: 300;
  font-size: clamp(2.9rem, 8.4vw, 6.4rem);
  line-height: 1.12;
  margin-bottom: .45em;
  animation: fadeIn 1.1s .2s ease both;
}
.hero-title .line { display: block; }
.hero-title .line:last-child { font-weight: 700; }

/* "לא" – written in on load, then grows a little with the scroll */
.insert {
  position: relative;
  display: inline-block;
  font-family: var(--hand);
  font-weight: 700;
  color: var(--rose-soft);
  font-size: 1.15em;
  line-height: .8;
  margin-inline-end: calc(.12em + var(--p) * .14em);
  transform: rotate(-6deg) translateY(-.08em) scale(calc(1 + var(--p) * .25));
  transform-origin: 85% 60%;
  clip-path: inset(-60% -40% -60% 100%);
  animation: write .9s 1.5s cubic-bezier(.5, 0, .3, 1) forwards;
}
@keyframes write { to { clip-path: inset(-60% -40% -60% -40%); } }
.caret {
  position: absolute; left: 0; right: 0; bottom: -.18em;
  width: 100%; height: .3em; overflow: visible;
}
.caret path { fill: none; stroke: var(--rose-soft); stroke-width: 4; stroke-linecap: round; }

.hero-lead { max-width: 34em; font-size: clamp(1.1rem, 1.6vw, 1.3rem); opacity: .9; margin-bottom: 2.2em; animation: fadeIn 1s 2.3s ease both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; animation: fadeIn 1s 2.5s ease both; }
@keyframes fadeIn { from { opacity: 0; } }

.horizon { position: absolute; bottom: -1px; left: 0; width: 100%; height: clamp(60px, 9vw, 120px); fill: var(--mist); z-index: 1; }

/* =========================================================
   Section edges (waves, clouds, blanket scallops)
   ========================================================= */
.edge { position: absolute; left: 0; width: 100%; pointer-events: none; z-index: 1; display: block; }
.edge-top { bottom: 100%; margin-bottom: -1px; }
.edge-bottom { top: 100%; margin-top: -1px; }
.edge-wave { height: clamp(50px, 7vw, 100px); }
.tool .edge-wave { fill: var(--night); }
.voices .edge-wave { fill: var(--sage-mist); }
.morning .edge-wave { fill: var(--paper); }
.story .edge-wave { fill: var(--blush); }
.edge-clouds { height: 140px; }
.edge-clouds svg { width: 100%; height: 100%; display: block; fill: var(--paper); }
.edge-clouds .back { fill: #8f93ad; opacity: .7; }

/* floating decorative icons (parallax via --y) */
.deco {
  position: absolute; top: var(--top); left: var(--left);
  width: var(--s); height: var(--s);
  color: var(--sage-deep); opacity: .7; z-index: 1;
  pointer-events: none;
  transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg));
  animation: bob 6s ease-in-out infinite alternate;
}
.deco:nth-of-type(2n) { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes bob { to { translate: 0 -14px; } }

/* ---------- Scroll reveals & line drawing ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * .14s);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.pop { transform: translateY(16px) scale(.9); transform-origin: 100% 100%; transition-delay: calc(var(--i, 0) * .35s + .1s); }
.js .reveal.pop.in { transform: none; }

.js .draw .ico, .js .deco {
  stroke-dasharray: 1 1; stroke-dashoffset: 1; fill-opacity: 0;
  transition: stroke-dashoffset 1.8s ease calc(var(--i, 0) * .15s + .35s),
              fill-opacity .9s ease calc(var(--i, 0) * .15s + 1.5s);
}
.js .draw.in .ico, .js .deco.in { stroke-dashoffset: 0; fill-opacity: 1; }

/* =========================================================
   Myth
   ========================================================= */
.myth { background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 85%); }
.myth-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.myth-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.3;
  color: var(--muted);
}
.strike {
  background: linear-gradient(var(--rose), var(--rose)) no-repeat 100% 60% / 100% 2px;
}
.js .strike { background-size: 0% 2px; transition: background-size 1.6s cubic-bezier(.6, 0, .3, 1) .7s; }
.js .in .strike { background-size: 100% 2px; }
.myth-body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.myth-body p { max-width: 36em; }
.myth-body .link { display: inline-block; margin-top: 1.4em; }

/* =========================================================
   Tool (night)
   ========================================================= */
.tool { background: var(--night); color: #fff; padding-bottom: calc(clamp(80px, 11vw, 140px) + 70px); }
.tool-stars { position: absolute; inset: 0 0 30% 0; pointer-events: none; }
.tool-head { max-width: 36em; margin-bottom: 48px; }
.tool-head p { opacity: .8; }

.crib-mobile {
  position: absolute; top: -10px; left: 5%;
  width: clamp(140px, 15vw, 210px);
  z-index: 3; overflow: visible; pointer-events: none;
}
.m-string { stroke: rgba(255,255,255,.35); stroke-width: 1.3; }
.m-bar { fill: none; stroke: var(--moon); stroke-width: 3.5; stroke-linecap: round; }
.crib-mobile use { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.m-moon { color: var(--moon); --fill: var(--moon); }
.m-star { color: var(--rose-soft); --fill: var(--rose-soft); }
.m-cloud { color: #fff; --fill: #fff; }
.m-spin { transform-origin: 120px 48px; animation: sway 8s ease-in-out infinite alternate; }
.m-hang { animation: swing 3.4s ease-in-out infinite alternate; }
.h1 { transform-origin: 44px 64px; animation-delay: -1s; }
.h2 { transform-origin: 120px 50px; animation-duration: 4.2s; }
.h3 { transform-origin: 196px 64px; animation-delay: -2.2s; animation-duration: 3s; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

.tool-box {
  display: grid; grid-template-columns: 1fr 1.6fr;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tool-controls { padding: 36px; display: grid; gap: 40px; align-content: start; border-inline-end: 1px solid rgba(255,255,255,.12); }
.field { display: grid; gap: 14px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-label { font-weight: 600; opacity: .85; }
.field-value { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--moon); line-height: 1; }
.field-value.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: translateY(-3px) scale(1.06); } }

/* age slider: a glowing crescent you drag along a softly filled track */
.age-slider { --th: 34px; --v: .3333; position: relative; padding-bottom: 30px; }
.age-slider input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 44px; margin: 0; cursor: pointer; direction: rtl; touch-action: pan-y;
  background:
    linear-gradient(to left, var(--sage) 0, var(--moon) calc(var(--th) / 2 + (100% - var(--th)) * var(--v)), transparent 0) center / 100% 8px no-repeat,
    linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14)) center / 100% 8px no-repeat;
  border-radius: 8px;
}
.age-slider input[type="range"]:focus { outline: none; }
.age-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: var(--th); height: var(--th); border-radius: 50%; border: 0;
  background: radial-gradient(circle at 30% 36%, #2a3c44 0 40%, transparent 41.5%), var(--moon);
  box-shadow: 0 0 0 6px rgba(243,228,191,.12), 0 0 22px 2px rgba(243,228,191,.45);
  transition: transform .2s, box-shadow .2s;
}
.age-slider input[type="range"]:active::-webkit-slider-thumb,
.age-slider input[type="range"]:focus-visible::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 9px rgba(243,228,191,.16), 0 0 30px 4px rgba(243,228,191,.6); }
.age-slider input[type="range"]::-moz-range-thumb {
  width: var(--th); height: var(--th); border-radius: 50%; border: 0;
  background: radial-gradient(circle at 30% 36%, #2a3c44 0 40%, transparent 41.5%), var(--moon);
  box-shadow: 0 0 0 6px rgba(243,228,191,.12), 0 0 22px 2px rgba(243,228,191,.45);
}
.age-slider input[type="range"]::-moz-range-track { background: transparent; }
.age-marks { position: absolute; inset: auto 0 0 0; height: 26px; }
.age-marks button {
  position: absolute; top: 0; right: calc(var(--th) / 2 + (100% - var(--th)) * var(--at)); transform: translateX(50%);
  font: inherit; font-size: .85rem; color: rgba(255,255,255,.55); background: none; border: 0; padding: 2px 6px; cursor: pointer; white-space: nowrap;
  transition: color .2s;
}
.age-marks button::before { content: ""; position: absolute; top: -12px; right: 50%; width: 4px; height: 4px; margin-right: -2px; border-radius: 50%; background: rgba(255,255,255,.35); }
.age-marks button[style*="--at:0"] { transform: translateX(calc(var(--th) / 2)); }
.age-marks button[style*="--at:0"]::before { right: calc(var(--th) / 2); }
.age-marks button[style*="--at:1"] { transform: translateX(calc(100% - var(--th) / 2)); }
.age-marks button[style*="--at:1"]::before { right: auto; left: calc(var(--th) / 2); margin: 0 -2px 0 0; margin-left: -2px; }
.result-time .zzz-small { margin-inline: 0 .3em; }
.age-marks button:hover, .age-marks button.on { color: var(--moon); }

/* wake time: one big clock with quarter-hour nudges */
.time-stepper {
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 6px;
  padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.time-stepper .step {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  font: 500 1.6rem/1 var(--serif); color: var(--night); background: var(--moon);
  transition: transform .15s, background .2s;
}
.time-stepper .step:hover { background: #fff3d6; }
.time-stepper .step:active { transform: scale(.92); }
.time-stepper input[type="time"] {
  font: 500 2rem/1 var(--serif); color: #fff; text-align: center; direction: ltr;
  background: none; border: 0; padding: 6px 0; width: 100%; min-width: 0; color-scheme: dark; cursor: pointer;
}
.time-stepper input[type="time"]:focus { outline: none; }
.time-stepper:focus-within { border-color: rgba(243,228,191,.5); }
.time-stepper input[type="time"]::-webkit-calendar-picker-indicator { display: none; }
.time-stepper input[type="time"]::-webkit-datetime-edit { padding: 0; }
.time-stepper input[type="time"]::-webkit-date-and-time-value { text-align: center; }

/* nap / night sleep switch */
.kind-hint { font-size: .8rem; opacity: .5; transition: opacity .3s; }
.kind-hint.off { opacity: 0; }
.kind-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px;
               background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.kind-toggle::before { content: ""; position: absolute; top: 5px; bottom: 5px; right: 5px; width: calc(50% - 5px); border-radius: 999px;
                       background: var(--moon); transition: transform .4s cubic-bezier(.3, .7, .3, 1); }
.kind-toggle.night::before { transform: translateX(-100%); }
.kind-toggle button { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
                      font: inherit; font-weight: 700; color: rgba(255,255,255,.75); background: none; border: 0; border-radius: 999px; cursor: pointer; transition: color .3s; }
.kind-toggle button[aria-checked="true"] { color: var(--night); }
.kind-toggle .ico { width: 24px; height: 24px; stroke-width: 3.5; --fill: transparent; }
.kind-toggle button[aria-checked="true"] .ico { --fill: #fff8e6; }

.tool-result { padding: 36px; display: flex; flex-direction: column; position: relative; transition: background .6s; }
.tool-result::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(ellipse at 15% 0%, rgba(243,228,191,.13), transparent 55%), linear-gradient(rgba(10,16,30,.35), transparent 70%); }
.tool-result.night::before { opacity: 1; }
.tool-result > * { position: relative; }
.result-label { opacity: .7; font-weight: 600; }
.result-time { font-family: var(--serif); font-size: clamp(2.6rem, 5.4vw, 4rem); font-weight: 500; line-height: 1.1; margin: .2em 0 .15em; direction: ltr; text-align: right; }
.result-time strong { color: var(--moon); font-weight: 500; display: inline-block; }
.result-time .dash { opacity: .45; margin-inline: .18em; }
.result-time.swap strong { animation: swapIn .45s cubic-bezier(.3, .7, .3, 1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(.25em); filter: blur(3px); } }
.result-sub { opacity: .7; margin-bottom: 14px; }
.naps { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-bottom: 30px;
        padding: 8px 16px 8px 18px; border-radius: 999px; background: rgba(243,228,191,.1); font-weight: 600; color: var(--moon); }
.nap-moons { display: inline-flex; gap: 2px; }
.nap-moons .ico { width: 22px; height: 22px; stroke-width: 3.5; --fill: var(--moon); color: var(--moon); }
.nap-moons .ico.maybe { --fill: none; opacity: .55; }
.zzz-small { position: relative; display: inline-block; width: .6em; height: .8em; margin-inline-start: .35em; font-size: .45em; vertical-align: top; }

/* the evening, as one soft strip of sky */
.sky { margin-top: auto; }
.sky-bar, .sky-legend { display: grid; grid-template-columns: 50fr 28fr 22fr; }
.sky-bar { height: 46px; border-radius: 999px; overflow: hidden; }
.seg { display: flex; align-items: center; padding-inline: 16px; }
.seg .ico { width: 26px; height: 26px; stroke-width: 3; }
.seg-awake { background: linear-gradient(to left, #a9bf9f, #8fa98a); color: var(--night); --fill: #f7e7c4; }
.seg-window { justify-content: center; background: linear-gradient(to left, #f6e9c8, #efd9a6); color: var(--night); --fill: #fff8e6; position: relative; }
.seg-window::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(255,255,255,.65), transparent); animation: glow 2.6s ease-in-out infinite; }
.seg-window .ico { position: relative; z-index: 1; }
.seg-over { background: linear-gradient(to left, #b7646d, #8f3f4a); }
@keyframes glow { 50% { opacity: .2; } }
.sky-legend { margin-top: 10px; font-size: .85rem; line-height: 1.3; }
.sky-legend span { display: grid; padding-inline: 4px 6px; border-inline-start: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.6); }
.sky-legend b { font-size: 1.05rem; font-weight: 700; color: #fff; }
.sky-legend .on b { color: var(--moon); }
.js .tool-box:not(.in) .seg { transform: scaleX(0); }
.seg { transform-origin: right; transition: transform .7s cubic-bezier(.3, .7, .3, 1); }
.seg-window { transition-delay: .25s; }
.seg-over { transition-delay: .45s; }

.tool-note { max-width: 46em; margin-top: 28px; opacity: .8; font-size: 1rem; }
.tool-note .link { color: var(--moon); }

/* =========================================================
   Approach
   ========================================================= */
.approach h2 { margin-bottom: 1em; }
.principles > div {
  display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 24px 48px;
  padding: 28px 0;
  border-top: 1px solid rgba(36, 49, 44, .14);
}
.principles > div:last-child { border-bottom: 1px solid rgba(36, 49, 44, .14); }
.principles dt { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.25; }
.p-ico { width: 64px; height: 64px; flex: none; color: var(--rose-deep); --fill: #f6d6d6; }
.principles dd { color: var(--muted); max-width: 36em; align-self: center; }

/* =========================================================
   Story – a baby blanket: scalloped edges + stitching
   ========================================================= */
.story { background: var(--blush); z-index: 3; padding-top: calc(clamp(80px, 11vw, 140px) + 30px); }

/* nursery garland hanging across the top of the story */
.garland {
  position: absolute; top: -30px; left: 0; width: 100%; height: 150px;
  z-index: 2; overflow: visible; pointer-events: none;
}
.garland .g-string { fill: none; stroke: rgba(164, 74, 85, .45); stroke-width: 1.5; }
.garland use { stroke: var(--rose-deep); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.garland .g-item { animation: swing 3.2s ease-in-out infinite alternate; transform-box: view-box; }
.story-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.story-text h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 300; }
.story-text p { max-width: 34em; }
.signature { font-family: var(--hand); font-size: 3.2rem; color: var(--rose); line-height: 1; margin-top: .6em !important; display: inline-block; }
.js .signature { clip-path: inset(-20% 0 -20% 100%); transition: clip-path 1.4s cubic-bezier(.5, 0, .3, 1) 1s; }
.js .in .signature { clip-path: inset(-20% -10% -20% -10%); }

/* ---------- Placeholders (to be replaced with real images) ---------- */
.ph {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #efd3d1, #dfe7dc);
  color: var(--sage-deep); font-weight: 700;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  position: relative;
}
.ph::after { content: ''; position: absolute; inset: 12px; border: 1.5px dashed rgba(75, 104, 83, .35); border-radius: calc(var(--r-lg) - 10px); }
.ph-tall { aspect-ratio: 4 / 5; }
.story-photo { position: relative; }
.story-photo::before { /* soft card peeking behind the photo */
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--sage-mist), #f6dcd9); transform: rotate(-4deg) translate(-10px, 8px);
}
.story-photo img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: 0 24px 50px -20px rgba(36, 49, 44, .35); }

/* =========================================================
   Paths
   ========================================================= */
.paths { padding-top: calc(clamp(80px, 11vw, 140px) + 20px); }
.paths-head { max-width: 40em; margin-bottom: 48px; }
.paths-head p { color: var(--muted); }
.paths-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 40px; align-items: start; }
.path-tabs { display: grid; gap: 10px; }
.path-tabs button {
  display: flex; align-items: center; gap: 14px;
  font: inherit; font-family: var(--serif); font-size: 1.15rem; line-height: 1.35;
  text-align: start;
  background: rgba(255,255,255,.6); color: var(--ink);
  border: 1.5px solid rgba(36, 49, 44, .16);
  border-radius: var(--r-sm);
  padding: 14px 18px 14px 40px;
  cursor: pointer;
  position: relative;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.path-tabs button::after {
  content: ''; position: absolute; left: 16px; top: 50%; width: 9px; height: 9px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg); opacity: .3;
}
.t-ico { width: 44px; height: 44px; flex: none; color: var(--sage-deep); --fill: #dfe9db; transition: color .25s, transform .4s; }
.path-tabs button:hover { border-color: var(--sage-deep); transform: translateX(-4px); }
.path-tabs button:hover .t-ico { transform: rotate(-10deg); }
.path-tabs button[aria-selected="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.path-tabs button[aria-selected="true"] .t-ico { color: var(--moon); --fill: rgba(243, 228, 191, .25); --fill2: rgba(255,255,255,.12); }
.path-tabs button[aria-selected="true"]::after { opacity: 1; }

.panel {
  display: grid; grid-template-columns: 1fr;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(36, 49, 44, .25);
  animation: panelIn .5s cubic-bezier(.2, .7, .2, 1);
}
.panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.panel-img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 0; }
.panel-img-top { object-position: center 12%; }
.panel-img::after { border-radius: var(--r-sm); }
.panel-body { padding: 36px; }
.kind { color: var(--rose-deep); font-weight: 700; font-size: .95rem; }
.panel-body ul { list-style: none; margin: 1.1em 0 1.8em; display: grid; gap: 8px; }
.panel-body li { padding-inline-start: 26px; position: relative; }
.panel-body li::before {
  content: ''; position: absolute; right: 0; top: .55em; width: 12px; height: 12px;
  background: var(--sage); border-radius: 50%;
  -webkit-mask: radial-gradient(circle at 70% 35%, transparent 4px, #000 5px);
          mask: radial-gradient(circle at 70% 35%, transparent 4px, #000 5px);
}

/* =========================================================
   Voices
   ========================================================= */
/* WhatsApp-style wallpaper made of tiny sleep doodles */
.voices {
  background-color: var(--sage-mist);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' fill='none' stroke='%234b6853' stroke-opacity='.13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M38 14a14 14 0 1 0 11 20 11 11 0 0 1-11-20Z'/%3E%3Cpath d='M128 20l3.6 7.9 8.6.9-6.5 5.8 1.9 8.5-7.6-4.4-7.6 4.4 1.9-8.5-6.5-5.8 8.6-.9Z'/%3E%3Cpath d='M30 120c0-6 5-7 9-5 2.5 1.6 6.5 1.6 9 0 4-2 9-1 9 5s-5 7-9 5c-2.5-1.6-6.5-1.6-9 0-4 2-9 1-9-5Z'/%3E%3Ccircle cx='43.5' cy='120' r='3.5'/%3E%3Cpath d='M39 113.5a5.5 5.5 0 1 1 9 0'/%3E%3Cpath d='M132 140c-9-6-12-11-10-16 2-4 7-4 10 0 3-4 8-4 10 0 2 5-1 10-10 16Z'/%3E%3Ccircle cx='92' cy='80' r='2'/%3E%3Ccircle cx='160' cy='90' r='1.6'/%3E%3Ccircle cx='80' cy='160' r='1.6'/%3E%3C/svg%3E");
}
.voices-head { max-width: 40em; }
.voices-head p { color: var(--muted); }

/* topic tabs: segmented pills with WhatsApp-style unread badges */
.chat-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  margin-top: 28px; padding: 6px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(75, 104, 83, .15);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(36, 49, 44, .4);
}
.chat-tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 9px 16px 9px 12px; border-radius: 999px; border: 0;
  background: transparent; color: var(--sage-deep);
  cursor: pointer; transition: background .3s, color .3s;
}
.chat-tabs .ico { width: 26px; height: 26px; --fill: #dfe9db; }
.chat-tabs .badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  background: #25d366; color: #fff; font-size: .8rem; font-weight: 700;
}
.chat-tabs button:hover { background: rgba(75, 104, 83, .08); }
.chat-tabs button[aria-selected="true"] { background: var(--sage-deep); color: #fff; }
.chat-tabs button[aria-selected="true"] .ico { color: var(--moon); --fill: rgba(243, 228, 191, .25); --fill2: rgba(255,255,255,.12); }

/* a topic = up to 3 separate phones, one mom each, fanned out */
.chats { margin-top: 30px; position: relative; }
.chats::before {
  content: ''; position: absolute; left: 50%; top: 42%;
  width: min(1100px, 130vw); height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(243, 214, 214, .85), rgba(223, 233, 219, .45) 60%, transparent);
  filter: blur(8px); pointer-events: none;
}
.chat-topic {
  position: relative;
  display: flex; justify-content: center; align-items: flex-start; gap: 30px;
  padding: 30px 16px 36px;
}
.chat-topic[hidden] { display: none; }

.phone {
  --tilt: 0deg; --lift: 0px;
  position: relative; flex: 0 0 300px; height: 540px;
  display: flex; flex-direction: column;
  background: #1c2a31;
  border-radius: 42px; padding: 11px;
  box-shadow:
    inset 0 0 0 2px #33454d,
    0 36px 70px -32px rgba(22, 34, 42, .6),
    0 16px 26px -20px rgba(22, 34, 42, .5);
  transform: translateY(var(--lift)) rotate(var(--tilt));
  transition: transform .5s cubic-bezier(.22, .8, .24, 1);
}
.chat-topic .phone:nth-child(1) { --tilt: 3.5deg; --lift: 26px; }
.chat-topic .phone:nth-child(2) { --lift: -6px; }
.chat-topic .phone:nth-child(3) { --tilt: -3.5deg; --lift: 26px; }
.chat-topic .phone:only-child { --tilt: 0deg; --lift: 0px; }
.phone:hover { transform: translateY(calc(var(--lift) - 10px)) rotate(0deg); }
.phone::before { /* notch */
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 20px; background: #0f181d; z-index: 3;
}

/* switching topic: phones rise in one after another */
.chat-topic.enter .phone { animation: phoneIn .75s cubic-bezier(.2, .8, .2, 1) both; }
.chat-topic.enter .phone:nth-child(2) { animation-delay: .12s; }
.chat-topic.enter .phone:nth-child(3) { animation-delay: .24s; }
@keyframes phoneIn { from { opacity: 0; translate: 0 50px; } }

.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  height: 32px; padding: 0 24px;
  background: var(--sage-deep); color: #fff; font-size: .78rem; font-weight: 700;
  border-radius: 32px 32px 0 0; direction: ltr;
}
.sig { display: flex; align-items: flex-end; gap: 2px; }
.sig i { width: 3px; background: #fff; border-radius: 1px; }
.sig i:nth-child(1) { height: 5px; } .sig i:nth-child(2) { height: 8px; } .sig i:nth-child(3) { height: 11px; }
.sig b { width: 20px; height: 10px; border: 1.5px solid #fff; border-radius: 3px; margin-left: 5px; position: relative; }
.sig b::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #fff; border-radius: 1px; }
.phone-bar {
  display: flex; align-items: center; gap: 11px;
  padding: 6px 14px 11px; background: var(--sage-deep); color: #fff;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--av, var(--blush)); display: grid; place-items: center;
}
.avatar .ico { width: 27px; height: 27px; color: var(--rose-deep); --fill: #fff; }
.bar-text { display: grid; line-height: 1.25; min-width: 0; }
.bar-text strong { font-size: .98rem; }
.bar-text small { opacity: .82; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.phone-screen {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 14px 20px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  border-radius: 0 0 31px 31px;
  background-color: #efe7df;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' fill='none' stroke='%237a6a5e' stroke-opacity='.12' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 12a12 12 0 1 0 9 17 9.5 9.5 0 0 1-9-17Z'/%3E%3Cpath d='M108 16l3 6.6 7.2.8-5.4 4.8 1.6 7.1-6.4-3.7-6.4 3.7 1.6-7.1-5.4-4.8 7.2-.8Z'/%3E%3Cpath d='M112 116c-8-5-10-9.5-8.5-13.5 1.8-3.6 6-3.6 8.5 0 2.5-3.6 6.7-3.6 8.5 0 1.5 4-.5 8.5-8.5 13.5Z'/%3E%3Ccircle cx='36' cy='104' r='9'/%3E%3Cpath d='M31 108q5 4 10 0'/%3E%3Ccircle cx='75' cy='70' r='1.8'/%3E%3C/svg%3E");
  scrollbar-width: thin; scrollbar-color: rgba(75,104,83,.35) transparent;
}
.msg {
  position: relative; max-width: 94%;
  background: #fff; border-radius: 4px 14px 14px 14px;
  padding: 9px 12px 6px; box-shadow: 0 1px 0 rgba(0,0,0,.08);
  font-size: .93rem; line-height: 1.6;
}
.msg::before { /* tail, top-right (incoming in RTL) */
  content: ''; position: absolute; top: 0; right: -7px;
  width: 10px; height: 12px; background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.msg p { white-space: pre-line; }
.msg time { display: block; text-align: left; font-size: .72rem; color: #8a948f; margin-top: 2px; direction: ltr; }

/* "typing..." then the message pops in */
.typing {
  display: none; gap: 4px; align-items: center;
  background: #fff; border-radius: 4px 14px 14px 14px; padding: 12px 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.typing.on { display: flex; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5a0; animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.phone.replay .msg { opacity: 0; transform: translateY(10px) scale(.96); transform-origin: top right; transition: opacity .45s ease, transform .5s cubic-bezier(.2, .8, .2, 1.2); }
.phone.replay .msg.shown { opacity: 1; transform: none; }

/* topic navigation under the phones */
.topic-nav { position: relative; display: flex; align-items: center; justify-content: center; gap: 22px; }
.topic-label { display: grid; text-align: center; line-height: 1.3; min-width: 150px; }
.topic-label strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.topic-label small { color: var(--muted); font-weight: 700; direction: ltr; }
.nav-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -10px rgba(36, 49, 44, .45);
  transition: transform .2s;
}
.nav-btn:hover { transform: scale(1.08); }
.nav-btn span { width: 12px; height: 12px; border-left: 2.5px solid var(--sage-deep); border-bottom: 2.5px solid var(--sage-deep); }
.nav-btn.next span { transform: translateX(2px) rotate(45deg); }
.nav-btn.prev span { transform: translateX(-2px) rotate(-135deg); }

/* =========================================================
   Morning
   ========================================================= */
.morning {
  position: relative; overflow: clip; text-align: center;
  padding-block: clamp(96px, 13vw, 160px) clamp(80px, 11vw, 130px);
  background: linear-gradient(180deg, var(--paper) 0%, #fbe7dc 55%, #f8d9c4 100%);
}
.morning-sun {
  position: absolute; left: 50%; bottom: 0;
  width: min(520px, 90vw); aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(circle at 50% 100%, #fff3d4 0%, #fde2b2 55%, #fbd2a2 100%);
  transform: translateX(-50%);
  transition: translate 1.8s cubic-bezier(.2, .7, .2, 1);
}
.morning-sun::before {
  content: ''; position: absolute; inset: -40% -30% 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 220, 170, .6), transparent 65%);
}
.js .morning:not(.in) .morning-sun { translate: 0 70%; }
.morning .drift { color: #fff; opacity: .85; animation-duration: 38s; }
.morning .m1 { width: 130px; height: 130px; top: 20%; left: 6%; }
.morning .m2 { width: 90px; height: 90px; top: 46%; left: 82%; animation-duration: 50s; }
.morning-inner { position: relative; }
.morning h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; max-width: 16em; margin-inline: auto; }
.morning p { color: var(--muted); margin-bottom: 2em; }
/* contact icons: hover / first tap pops a bubble, click / second tap opens the link */
.contact-icons { list-style: none; display: flex; justify-content: center; gap: clamp(26px, 7vw, 56px); margin-top: 3.2em; padding-top: 70px; }
.ci { position: relative; display: grid; justify-items: center; gap: 10px; text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent; outline: none; }
.ci-ico {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--bg); box-shadow: 0 14px 26px -12px var(--sh), inset 0 -4px 0 rgba(0,0,0,.08);
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s;
}
.ci-ico svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ci-ico .dot { fill: currentColor; stroke: none; }
.ci-ig   { --bg: linear-gradient(140deg, #f6b2a0, #c25f69 50%, #8e6fa8); --sh: rgba(194, 95, 105, .7); }
.ci-tel  { --bg: linear-gradient(140deg, #a9bf9f, #4b6853); --sh: rgba(75, 104, 83, .7); }
.ci-mail { --bg: linear-gradient(140deg, #f0c98a, #c98a4b); --sh: rgba(201, 138, 75, .7); }
.ci-name { font-weight: 600; font-size: .95rem; transition: color .3s; }

.ci-bubble {
  --tx: -50%;
  position: absolute; bottom: calc(100% + 14px); left: 50%; z-index: 2;
  display: grid; gap: 1px; text-align: center; white-space: nowrap;
  padding: 10px 18px 11px; border-radius: 18px; background: var(--night); color: #fff;
  box-shadow: 0 18px 34px -14px rgba(22, 34, 42, .6);
  opacity: 0; pointer-events: none; transform-origin: 50% 100%;
  transform: translate(var(--tx), 12px) scale(.5);
  transition: opacity .22s, transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.ci-bubble::after { content: ""; position: absolute; top: 100%; left: var(--tail, 50%); margin-left: -8px; border: 8px solid transparent; border-top-color: var(--night); }
.contact-icons li:first-child .ci-bubble { --tx: 0%; left: auto; right: -6px; --tail: calc(100% - 43px); transform-origin: calc(100% - 43px) 100%; }
.contact-icons li:last-child .ci-bubble  { --tx: 0%; left: -6px; --tail: 43px; transform-origin: 43px 100%; }
.ci-bubble small { font-size: .75rem; opacity: .65; }
.ci-bubble b { font-size: 1.02rem; color: var(--moon); }
.ci-bubble .tap { display: none; font-style: normal; font-size: .72rem; color: var(--rose-soft); margin-top: 2px; }
@media (hover: none) { .ci-bubble .tap { display: block; } }

.ci.open .ci-bubble, .ci:focus-visible .ci-bubble { opacity: 1; transform: translate(var(--tx), 0) scale(1); pointer-events: auto; }
.ci.open .ci-ico, .ci:focus-visible .ci-ico { transform: translateY(-6px) scale(1.08); box-shadow: 0 22px 32px -12px var(--sh), inset 0 -4px 0 rgba(0,0,0,.08); }
.ci.open .ci-ico svg, .ci:focus-visible .ci-ico svg { animation: ciWiggle .7s ease; }
.ci.open .ci-name, .ci:focus-visible .ci-name { color: var(--rose-deep); }
@media (hover: hover) {
  .ci:hover .ci-bubble { opacity: 1; transform: translate(var(--tx), 0) scale(1); pointer-events: auto; }
  .ci:hover .ci-ico { transform: translateY(-6px) scale(1.08); box-shadow: 0 22px 32px -12px var(--sh), inset 0 -4px 0 rgba(0,0,0,.08); }
  .ci:hover .ci-ico svg { animation: ciWiggle .7s ease; }
  .ci:hover .ci-name { color: var(--rose-deep); }
}
@keyframes ciWiggle { 20% { transform: rotate(-14deg) scale(1.1); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-5deg); } }

/* pop in one by one when the section arrives */
.js .morning-inner:not(.in) .ci-ico { transform: scale(0); }
.morning-inner.in .ci-ico { animation: ciPop .7s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(.35s + var(--k) * .14s); }
.contact-icons li { --k: 0; }
@keyframes ciPop { from { transform: scale(0) rotate(-30deg); } }

.site-footer { background: var(--night); color: rgba(255,255,255,.65); text-align: center; padding: 26px 0; font-size: .95rem; }

.wa-float {
  position: fixed; bottom: 20px; left: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.wa-float svg { width: 30px; height: 30px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .myth-inner, .story-inner, .paths-grid, .tool-box { grid-template-columns: 1fr; }
  .tool-controls { border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .story-photo { max-width: 420px; }
  .principles > div { grid-template-columns: 1fr; gap: 6px; }
  .path-tabs { grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .path-tabs button { scroll-snap-align: start; }
  .tool-head { padding-inline-end: 0; margin-inline-end: 180px; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .nav {
    position: absolute; top: 72px; inset-inline: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); color: var(--ink);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 24px; border-top: 1px solid rgba(36, 49, 44, .08); }
  .menu-toggle { display: block; }
  .moon-wrap { top: 84px; left: 5%; width: 76px; }
  .hero { padding-top: 150px; align-items: flex-start; }
  .hero-sun { left: 50%; width: 150px; margin-left: -75px; }
  .drift-clouds .c1 { width: 110px; height: 110px; top: 68%; left: 6%; }
  .drift-clouds .c2 { width: 80px; height: 80px; top: 74%; left: 62%; }
  .drift-clouds .c3 { display: none; }
  .insert { transform: rotate(-6deg) translateY(-.08em) scale(calc(1 + var(--p) * .18)); margin-inline-end: calc(.12em + var(--p) * .08em); }
  .garland { top: -20px; height: 110px; }
  .p-ico { width: 50px; height: 50px; }
  .panel-body, .tool-controls, .tool-result { padding: 26px; }
  .chat-topic { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
                padding: 24px 9vw 30px; gap: 16px; scrollbar-width: none; }
  .chat-topic::-webkit-scrollbar { display: none; }
  .chat-topic .phone:nth-child(n) { --tilt: 0deg; --lift: 0px; flex: 0 0 82vw; height: 520px; scroll-snap-align: center; }
  .chat-topic .phone:only-child { margin-inline: auto; }
  .chat-tabs { display: flex; border-radius: 22px; }
  .chat-tabs button { flex: 1 1 auto; justify-content: center; }
  .voices .deco { display: none; }
  .seg { padding-inline: 12px; }
  .seg .ico { width: 22px; height: 22px; }
  .sky-legend { font-size: .78rem; }
  .sky-legend b { font-size: .95rem; }
  .tool-controls { gap: 32px; }
  .tool { padding-top: 200px; }
  .tool-head { margin-inline-end: 0; }
  .crib-mobile { left: 50%; width: 120px; margin-left: -60px; top: -14px; }
  .deco { width: calc(var(--s) * .6); height: calc(var(--s) * .6); opacity: .5; }
  .approach .deco, .myth .deco:nth-of-type(2), .paths .deco, .story .deco { display: none; }

  /* touch-friendly targets */
  .ci-ico { width: 66px; height: 66px; }
  .ci-ico svg { width: 32px; height: 32px; }
  .link { display: inline-block; padding-block: 8px; }

  /* keep the topic arrows clear of the floating WhatsApp button */
  .topic-nav { gap: 12px; }

  /* no scroll-inside-scroll on phones: each chat grows to fit its message */
  .chat-topic { align-items: stretch; }
  .chat-topic .phone:nth-child(n) { height: auto; }
  .phone-screen { overflow: visible; min-height: 260px; }
  .topic-label { min-width: 110px; }

  /* ---- more air, smaller scale (from "what fits you" down) ---- */
  .container { width: calc(100% - 44px); }
  h2 { font-size: 1.85rem; }
  .paths, .voices, .morning { font-size: 1rem; }

  .paths-head { margin-bottom: 26px; }
  .paths-grid { gap: 26px; }
  .path-tabs { grid-auto-columns: 236px; gap: 10px; padding-bottom: 12px; margin-inline: -22px; padding-inline: 22px; scroll-padding-inline: 22px; scrollbar-width: none; }
  .path-tabs::-webkit-scrollbar { display: none; }
  .path-tabs button { font-size: 1rem; line-height: 1.3; gap: 10px; padding: 12px 14px 12px 32px; min-height: 76px; }
  .path-tabs button::after { left: 13px; width: 8px; height: 8px; }
  .t-ico { width: 34px; height: 34px; }
  .panel-body { padding: 24px 22px 26px; }
  .panel-body h3 { font-size: 1.4rem; }
  .panel-body ul { gap: 4px; margin: .9em 0 1.5em; }
  .panel-body .btn { width: 100%; justify-content: center; text-align: center; }

  .voices-head p { font-size: .98rem; }
  .chat-tabs { margin-top: 20px; }
  .chat-tabs { flex-wrap: nowrap; gap: 2px; padding: 5px; }
  .chat-tabs button { font-size: .9rem; padding: 8px 8px; gap: 5px; white-space: nowrap; }
  .chat-tabs .ico { display: none; }
  .site-footer { padding-bottom: 96px; }
  .chats { margin-top: 14px; }
  .chat-topic { padding: 20px 11vw 26px; gap: 14px; }
  .chat-topic .phone:nth-child(n) { flex-basis: 78vw; }
  .phone { border-radius: 36px; padding: 9px; }
  .phone-status { border-radius: 28px 28px 0 0; }
  .phone-screen { border-radius: 0 0 27px 27px; padding: 14px 12px 16px; min-height: 220px; }
  .msg { font-size: .88rem; line-height: 1.55; }
  .avatar { width: 34px; height: 34px; }
  .avatar .ico { width: 22px; height: 22px; }
  .nav-btn { width: 46px; height: 46px; }
  .topic-label strong { font-size: 1.15rem; }

  .morning h2 { font-size: 1.9rem; }
  .morning p { font-size: .98rem; }
  .contact-icons { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .insert { clip-path: none; }
  .hero-track { height: auto; }
  .hero { position: relative; }
  .zzz { display: none; }
  .seg { transform: none !important; }
}
/* very short screens: no pinned sunrise, just the night hero */
@media (max-height: 560px) {
  .hero-track { height: auto; }
  .hero { position: relative; height: auto; min-height: 100vh; }
}
