/* Wonderwake English home page (scoped to .home-candy).
   Palette follows wonderwake.app: near-black violet night, #9d6eff accent, plum glows.
   Display type: the system serif (New York on Apple devices). Text: SF Pro. */

.home-candy {
  --night: #08030f;
  --deep: #110822;
  --plum: #1d1238;
  --violet: #7346f2;
  --accent: #9d6eff;
  --lilac: #d2cdff;
  --text: #f6f3fb;
  --soft: rgba(246, 243, 251, 0.72);
  --faint: rgba(246, 243, 251, 0.48);
  --hair: rgba(255, 255, 255, 0.09);
  --nav-h: 52px;
  --radius: 30px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;

  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  --glass-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --glass-drop: 0 30px 60px -28px rgba(0, 0, 0, 0.65);

  background:
    radial-gradient(1100px 700px at 80% 4%, rgba(157, 110, 255, 0.16), transparent 60%),
    radial-gradient(1000px 900px at 10% 38%, rgba(115, 70, 242, 0.12), transparent 60%),
    radial-gradient(900px 700px at 90% 72%, rgba(255, 140, 173, 0.06), transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--night) 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body:has(.home-candy) { background: #08030f; }

.home-candy *,
.home-candy *::before,
.home-candy *::after { box-sizing: border-box; }
.home-candy a { color: inherit; text-decoration: none; }
.home-candy h1,
.home-candy h2,
.home-candy h3 {
  font-family: var(--sans);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  color: #fff;
}
.home-candy :focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }

/* ---------- Global nav ---------- */

.home-candy .fixed-nav {
  height: var(--nav-h);
  padding: 0;
  display: flex;
  align-items: center;
  background: rgba(14, 7, 28, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.home-candy .fixed-nav .nav-content { width: min(1180px, 100% - 2rem); }
.home-candy .site-logo { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; gap: 0.55rem; }
.home-candy .nav-logo-icon { width: 26px; height: 26px; border-radius: 7px; filter: none; }
.home-candy .nav-left { gap: 2rem; }
.home-candy .nav-links { gap: 1.75rem; }
.home-candy .nav-link { font-family: var(--sans); font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); letter-spacing: -0.01em; }
.home-candy .nav-link:hover,
.home-candy .nav-link.active { color: #fff; }
.home-candy .lang-trigger { font-family: var(--sans); font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); }
.home-candy .lang-label { display: none; }
.home-candy .lang-menu { border-radius: 14px; background: rgba(26, 16, 50, 0.94); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
.home-candy .lang-option { font-family: var(--sans); }
.home-candy .hamburger-toggle { width: 22px; height: 14px; }
.home-candy .hamburger-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.home-candy .hamburger-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.home-candy .mobile-nav-menu { background: rgba(12, 6, 26, 0.97); padding-top: calc(var(--nav-h) + 2rem); align-items: stretch; }
.home-candy .mobile-nav-menu .nav-link { font-family: var(--sans); font-size: 1.6rem; font-weight: 600; color: #fff; text-align: left; width: auto; margin: 0 2rem; border-bottom-color: rgba(255, 255, 255, 0.08); }
.home-candy .mobile-nav-menu .app-store-btn-small { align-self: center; margin-top: 2rem; padding: 0.7rem 1.6rem; font-size: 1rem; }

/* ---------- Shared ---------- */

.home-candy #main-content.wwa { display: block; padding-top: calc(var(--nav-h) + env(safe-area-inset-top)); }
.wwa-inner { width: min(1120px, 100% - 2 * clamp(20px, 5vw, 48px)); margin-inline: auto; }
.wwa-section { position: relative; padding: clamp(56px, 7vw, 104px) 0; }
.wwa-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wwa-display { font-family: var(--serif) !important; font-weight: 500; letter-spacing: -0.022em; line-height: 1.04; }
.wwa-eyebrow { margin: 0 0 0.75rem; font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 600; letter-spacing: -0.01em; color: var(--lilac); }
.wwa-h2 { margin: 0 0 0.35em; font-size: clamp(2.5rem, 5.4vw, 4.4rem); text-wrap: balance; }
.wwa-lede { margin: 0; max-width: 40ch; font-size: clamp(1.1rem, 1.55vw, 1.33rem); font-weight: 500; line-height: 1.45; letter-spacing: -0.012em; color: var(--soft); text-wrap: pretty; }
.wwa-head { max-width: 820px; margin: 0 auto clamp(32px, 4.2vw, 56px); text-align: center; }
.wwa-head .wwa-lede { margin-inline: auto; }

.wwa-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 1.06rem; font-weight: 500; color: var(--lilac); letter-spacing: -0.01em; }
.wwa-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.wwa-link__chev { flex: none; margin-top: 1px; }
.wwa-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2.25rem; }
.wwa-links--center { justify-content: center; margin-top: clamp(40px, 5vw, 60px); }

.wwa-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.2rem 0.55rem 1rem;
  border-radius: 13px;
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px #a6a6a6, 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.05;
  letter-spacing: -0.015em;
  transition: opacity 0.2s;
}
.wwa-store:hover { opacity: 0.85; }
.wwa-store img { width: 22px; height: auto; }
.wwa-store small { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.01em; }
.wwa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; }
.wwa-actions--center { justify-content: center; }
.wwa-actions__note { margin: 0; font-size: 1rem; color: var(--soft); }

.wwa-tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(26px, 3vw, 38px);
  background: rgba(47, 40, 55, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.wwa-tile h3 { margin: 0 0 0.4rem; font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.1rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.wwa-tile p { margin: 0; color: var(--soft); font-size: 1.04rem; line-height: 1.45; }

/* ---------- Hero ---------- */

.wwa-hero { position: relative; padding-top: clamp(24px, 2.8vw, 40px); overflow: hidden; }
.wwa-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  background:
    radial-gradient(800px 520px at 50% 0%, rgba(157, 110, 255, 0.28), transparent 70%),
    radial-gradient(700px 500px at 100% 10%, rgba(255, 140, 173, 0.12), transparent 65%);
  pointer-events: none;
}
.wwa-hero__copy { position: relative; z-index: 2; text-align: center; }
.wwa-hero__title { margin: 0 auto 0.22em; font-size: clamp(2.9rem, 5.5vw, 5rem); line-height: 0.98; letter-spacing: -0.03em; }
.wwa-hero .wwa-eyebrow { margin-bottom: 0.5rem; }
.wwa-hero__title span { display: block; }
.wwa-hero__lede { margin: 0 auto 1.4rem; max-width: 36ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; color: var(--soft); }

/* Collage of sound worlds, an arch around the phone. Only the top of the phone shows; everything fades out below.
   --lift leaves room above the phone so the birds can leave the screen. */
.wwa-collage {
  --cw: clamp(92px, 9.2vw, 150px);
  --gap: clamp(10px, 1vw, 16px);
  --pw: clamp(240px, 22vw, 328px);
  --lift: 72px;
  --fade-x: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 9%, #000 30%, #000 70%, rgba(0, 0, 0, 0.35) 91%, transparent 100%);
  --fade-y: linear-gradient(180deg, #000 calc(var(--lift) + var(--pw) * 1.02), transparent 100%);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--gap);
  margin-top: calc(clamp(22px, 2.4vw, 34px) - var(--lift));
  padding-top: var(--lift);
  height: calc(var(--lift) + var(--pw) * 1.46);
  pointer-events: none;
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
}
.wwa-collage__col--l4, .wwa-collage__col--r4 { opacity: 0.55; }
.wwa-collage__col--l3, .wwa-collage__col--r3 { opacity: 0.8; }
.wwa-collage__col { flex: 0 0 var(--cw); display: grid; gap: var(--gap); }
/* Every column starts a little below the phone, so the phone is the highest point of the arch */
.wwa-collage__col--l4, .wwa-collage__col--r4 { margin-top: calc(var(--cw) * 1.58); }
.wwa-collage__col--l3, .wwa-collage__col--r3 { margin-top: calc(var(--cw) * 1.08); }
.wwa-collage__col--l2, .wwa-collage__col--r2 { margin-top: calc(var(--cw) * 0.75); }
.wwa-collage__col--l1, .wwa-collage__col--r1 { margin-top: calc(var(--cw) * 0.45); }

.wwa-art { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(var(--cw) * 0.26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 50px -24px rgba(0, 0, 0, 0.8); }
.wwa-collage__col:has(> :only-child) .wwa-art { aspect-ratio: 9 / 16; }
.wwa-collage__col--l3 .wwa-art:last-child, .wwa-collage__col--r3 .wwa-art:first-child { aspect-ratio: 4 / 5; }
.wwa-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

.wwa-collage__phone { position: relative; z-index: 4; flex: 0 0 var(--pw); }
.wwa-collage__phone::before {
  content: "";
  position: absolute;
  inset: -12% -30%;
  background: radial-gradient(closest-side, rgba(157, 110, 255, 0.42), transparent 75%);
  filter: blur(20px);
  z-index: -1;
}

/* iPhone, real proportions (body 71.5 x 146.6 mm). --u is one iOS point on this screen (393 pt wide). */
.wwa-collage__phone { --u: calc(var(--pw) * 0.002392); }
.wwa-phone {
  position: relative;
  width: 100%;
  aspect-ratio: 71.5 / 146.6;
  padding: calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.172);
  background: linear-gradient(145deg, #6a6380 0%, #2a2533 22%, #15121c 55%, #2d2838 82%, #5a5470 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 0 0 calc(var(--pw) * 0.006) #3a3546,
    inset 0 0 0 calc(var(--pw) * 0.014) #08070b,
    0 70px 120px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.55);
}
.wwa-phone::before,
.wwa-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #1d1a25, #4a4558); }
.wwa-phone::before { left: -3px; top: 20%; height: 5.5%; box-shadow: 0 calc(var(--pw) * 0.13) 0 #2b2636, 0 calc(var(--pw) * -0.1) 0 #2b2636; }
.wwa-phone::after { right: -3px; top: 27%; height: 11%; }
.wwa-phone__screen {
  position: absolute;
  inset: calc(var(--pw) * 0.03);
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.142);
  clip-path: inset(0 round calc(var(--pw) * 0.142));
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  text-align: center;
  background: #06040e;
  isolation: isolate;
  color: #fff;
}

/* Wallpaper */
.wwa-wall, .wwa-wall > * { position: absolute; inset: 0; }
.wwa-wall .wwa-wall__img { inset: -12% 0 12%; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.wwa-wall__night { background: linear-gradient(180deg, rgba(4, 3, 20, 0.86) 0%, rgba(10, 8, 40, 0.8) 50%, rgba(6, 4, 22, 0.88) 100%); mix-blend-mode: multiply; opacity: 0; }
.wwa-wall__stars {
  inset: 0 0 50%;
  background-image:
    radial-gradient(1.1px 1.1px at 14% 22%, #fff, transparent), radial-gradient(1px 1px at 31% 34%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.3px 1.3px at 47% 14%, #fff, transparent), radial-gradient(1px 1px at 66% 29%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.2px 1.2px at 81% 18%, #fff, transparent), radial-gradient(1px 1px at 90% 42%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 22% 48%, rgba(255,255,255,.6), transparent), radial-gradient(1.1px 1.1px at 58% 44%, rgba(255,255,255,.7), transparent);
  opacity: 0;
}
.wwa-wall__glow { background: radial-gradient(70% 18% at 50% 50%, rgba(255, 196, 214, 0.55), rgba(255, 170, 200, 0.18) 45%, transparent 75%); mix-blend-mode: screen; opacity: 0.6; }
.wwa-wall__shade { background: linear-gradient(180deg, rgba(8, 4, 20, 0.35) 0%, transparent 28%, transparent 58%, rgba(8, 4, 20, 0.45) 100%); }

/* Status bar, island, date and time */
.wwa-status { position: absolute; z-index: 7; top: calc(var(--u) * 19); right: calc(var(--u) * 30); display: flex; align-items: center; gap: calc(var(--u) * 6); }
.wwa-status svg { height: calc(var(--u) * 11.5); fill: #fff; }
.wwa-status__signal { width: calc(var(--u) * 17); }
.wwa-status__wifi { width: calc(var(--u) * 16); }
.wwa-status__battery { position: relative; width: calc(var(--u) * 25); height: calc(var(--u) * 12); border-radius: calc(var(--u) * 3.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.wwa-status__battery::after { content: ""; position: absolute; right: calc(var(--u) * -3); top: 33%; width: calc(var(--u) * 1.6); height: 34%; border-radius: 0 2px 2px 0; background: rgba(255, 255, 255, 0.45); }
.wwa-status__battery i { position: absolute; inset: calc(var(--u) * 2); right: calc(var(--u) * 6); border-radius: calc(var(--u) * 1.8); background: #fff; }
.wwa-phone__island { position: relative; z-index: 8; display: block; width: calc(var(--u) * 126); height: calc(var(--u) * 37); margin: calc(var(--u) * 11) auto 0; border-radius: 99px; background: #000; }
.wwa-phone__date { position: relative; z-index: 3; margin: calc(var(--u) * 20) 0 0; font-size: calc(var(--u) * 21); font-weight: 600; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18); }
.wwa-phone__time { position: relative; z-index: 3; margin: calc(var(--u) * -6) 0 0; font-size: calc(var(--u) * 104); font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.95); text-shadow: 0 2px 30px rgba(20, 8, 60, 0.3); }

/* Live Activity: ActiveStateView with system Lock Screen material */
.wwa-activity {
  position: absolute;
  z-index: 3;
  left: calc(var(--u) * 12);
  right: calc(var(--u) * 12);
  top: calc(var(--u) * 236);
  padding: calc(var(--u) * 16);
  border-radius: calc(var(--u) * 24);
  text-align: left;
  background: rgba(36, 28, 58, 0.38);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}
.wwa-activity p { margin: 0; }
.wwa-activity__head { position: relative; min-height: calc(var(--u) * 45); display: flex; align-items: center; }
.wwa-activity__icon {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--u) * 45);
  height: calc(var(--u) * 45);
  border-radius: 24%;
  box-shadow: 0 0 0 calc(var(--u) * 0.6) rgba(235, 197, 242, 0.9);
}
.wwa-activity__text { flex: 1; text-align: center; line-height: 1.22; }
.wwa-activity__title { font-size: calc(var(--u) * 20); font-weight: 700; letter-spacing: -0.01em; }
.wwa-activity__sub { font-size: calc(var(--u) * 15); font-weight: 500; }
.wwa-activity__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 16); margin-top: calc(var(--u) * 16); }
.wwa-activity__buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 8);
  margin: 0;
  padding: calc(var(--u) * 13) 0;
  border: 0;
  border-radius: calc(var(--u) * 18);
  font: inherit;
  font-size: calc(var(--u) * 17);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, filter 0.2s ease, background-color 0.2s ease;
}
.wwa-activity__buttons button:hover { filter: brightness(1.18); }
.wwa-activity__buttons button:active { transform: scale(0.95); }
.wwa-activity__buttons button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: calc(var(--u) * 18); }
.wwa-activity__stop { background: rgba(0, 0, 0, 0.15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.wwa-activity__stop i { width: calc(var(--u) * 20); height: calc(var(--u) * 20); border-radius: calc(var(--u) * 6); background: #fff; }
.wwa-activity__snooze { background: rgba(108, 62, 239, 0.25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }

/* The two Live Activity layouts share one card; only the current one shows */
.wwa-activity { display: grid; }
.wwa-activity__fired,
.wwa-activity__snoozed { grid-area: 1 / 1; transition: opacity 0.45s ease, visibility 0s linear 0s; }
.wwa-activity__snoozed { display: grid; align-content: center; gap: calc(var(--u) * 12); opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
.wwa-activity__row { display: flex; align-items: center; gap: calc(var(--u) * 10); }
.wwa-activity__icon--large { position: static; flex: none; width: calc(var(--u) * 57); height: calc(var(--u) * 57); }
.wwa-activity__snoozing { flex: 1; line-height: 1.15; }
.wwa-activity__label { font-size: calc(var(--u) * 17); font-weight: 500; }
.wwa-activity__countdown { font-size: calc(var(--u) * 34); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.wwa-activity__settings { display: grid; place-items: center; flex: none; width: calc(var(--u) * 56); height: calc(var(--u) * 56); border-radius: 50%; background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.wwa-activity__settings svg { width: calc(var(--u) * 20); height: calc(var(--u) * 20); color: #fff; }
.wwa-activity__again { font-size: calc(var(--u) * 15); font-weight: 500; }
.wwa-activity__again strong { font-weight: 700; }

/* Snooze: the Lock Screen dims and the countdown runs, then the alarm rings again */
.wwa-phone__dim { position: absolute; inset: 0; z-index: 2; background: rgba(5, 2, 14, 0.55); opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
.wwa-phone__date, .wwa-phone__time { transition: opacity 0.7s ease; }
[data-state="snoozed"] .wwa-phone__dim { opacity: 1; }
[data-state="snoozed"] .wwa-phone__date,
[data-state="snoozed"] .wwa-phone__time { opacity: 0.6; }
[data-state="snoozed"] .wwa-activity__fired { opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
[data-state="snoozed"] .wwa-activity__snoozed { opacity: 1; visibility: visible; transition: opacity 0.45s ease 0.1s, visibility 0s linear 0s; }

/* Stop: the app opens on its morning screen (AwakeAlarmView), then closes back to the Lock Screen */
.wwa-app {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  color: #fff;
  background: #0a0418;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.6);
  transform-origin: 50% 37%;
  border-radius: calc(var(--u) * 40);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1), border-radius 0.45s ease, visibility 0s linear 0.45s;
  cursor: pointer;
}
[data-state="awake"] .wwa-app {
  opacity: 1;
  visibility: visible;
  transform: none;
  border-radius: 0;
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1), border-radius 0.55s ease, visibility 0s linear 0s;
}
.wwa-app > * { position: absolute; margin: 0; }
.wwa-app__bg { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.wwa-app__shade { inset: 0 0 auto; height: 34%; background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent); }
.wwa-app__clock { top: calc(var(--u) * 17); left: calc(var(--u) * 48); font-size: calc(var(--u) * 17); font-weight: 600; letter-spacing: -0.01em; }
.wwa-app__edit {
  top: calc(var(--u) * 66);
  right: calc(var(--u) * 20);
  padding: calc(var(--u) * 7) calc(var(--u) * 16);
  border-radius: 99px;
  font-size: calc(var(--u) * 16);
  font-weight: 500;
  color: #d2cdff;
  background: rgba(8, 2, 19, 0.12);
  box-shadow: inset 0 0 0 1px rgba(242, 215, 255, 0.4);
}
.wwa-app__art { top: calc(var(--u) * 58); left: 0; width: 100%; height: auto; }
.wwa-app__date {
  top: calc(var(--u) * 250);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: calc(var(--u) * 6) calc(var(--u) * 16);
  border-radius: 99px;
  font-size: calc(var(--u) * 17);
  font-weight: 500;
  color: #d2cdff;
  background: rgba(8, 2, 19, 0.16);
  box-shadow: inset 0 0 0 1px rgba(242, 215, 255, 0.4);
}
.wwa-app__time { top: calc(var(--u) * 290); left: 0; right: 0; text-align: center; font-family: ui-rounded, "SF Pro Rounded", var(--sans); font-size: calc(var(--u) * 70); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.wwa-app__mark { top: calc(var(--u) * 392); left: 0; right: 0; text-align: center; font-family: ui-rounded, "SF Pro Rounded", var(--sans); font-size: calc(var(--u) * 46); font-weight: 600; line-height: 1; }
.wwa-app__quote { top: calc(var(--u) * 440); left: calc(var(--u) * 24); right: calc(var(--u) * 24); text-align: center; font-size: calc(var(--u) * 22); font-weight: 700; font-style: italic; line-height: 1.25; }
.wwa-app__author {
  top: calc(var(--u) * 486);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: calc(var(--u) * 6) calc(var(--u) * 16);
  border-radius: 99px;
  font-size: calc(var(--u) * 16);
  font-weight: 500;
  background: rgba(8, 2, 19, 0.16);
  box-shadow: inset 0 0 0 1px rgba(242, 215, 255, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .wwa-app, [data-state="awake"] .wwa-app { transform: none; border-radius: 0; }
}

/* Glass glare */
.wwa-phone__glare { position: absolute; z-index: 6; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 22%, transparent 34%); }

/* Birds */
.wwa-birds { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.wwa-birds__defs { position: absolute; }
.wwa-bird { position: absolute; left: var(--sx); top: var(--sy); width: calc(var(--pw) * var(--size, 0.13)); margin-left: calc(var(--pw) * var(--size, 0.13) * -0.5); opacity: 0; }
.wwa-bird svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 2px 3px rgba(20, 8, 50, 0.45)); }
.wwa-bird--1 { --sx: 36%; --sy: 52%; --size: 0.22; --ax: -0.16; --ay: -0.03; --bx: -0.54; --by: -0.08; --ex: -1.25; --ey: -0.46; --r1: -6deg; --r2: -12deg; }
.wwa-bird--2 { --sx: 44%; --sy: 54%; --size: 0.17; --ax: -0.08; --ay: -0.04; --bx: -0.5; --by: -0.06; --ex: -1.02; --ey: -0.3; --r1: -4deg; --r2: -9deg; }
.wwa-bird--3 { --sx: 51%; --sy: 51.5%; --size: 0.26; --ax: 0.1; --ay: -0.03; --bx: 0.52; --by: -0.05; --ex: 1.2; --ey: -0.55; --r1: 4deg; --r2: 10deg; }
.wwa-bird--4 { --sx: 58%; --sy: 53.5%; --size: 0.19; --ax: 0.12; --ay: -0.03; --bx: 0.48; --by: -0.05; --ex: 1.05; --ey: -0.28; --r1: 6deg; --r2: 10deg; }
.wwa-bird--5 { --sx: 64%; --sy: 52%; --size: 0.23; --ax: 0.16; --ay: -0.04; --bx: 0.56; --by: -0.09; --ex: 1.32; --ey: -0.62; --r1: 9deg; --r2: 14deg; }
.wwa-bird--6 { --sx: 40%; --sy: 55.5%; --size: 0.14; --ax: -0.12; --ay: -0.02; --bx: -0.5; --by: -0.08; --ex: -1.1; --ey: -0.68; --r1: -6deg; --r2: -10deg; }

/* The one orchestrated moment, played once on load:
   night -> dawn (0.3-4.5 s), the alarm Live Activity slides in (1.9 s), birds lift off the lake and fly out of the screen (3.4-7.6 s).
   The resting state is the dawn screen, which is also what reduced motion shows. */
@media (prefers-reduced-motion: no-preference) {
  .wwa-collage__col { animation: wwa-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .wwa-collage__col--l1, .wwa-collage__col--r1 { animation-delay: 0.1s; }
  .wwa-collage__col--l2, .wwa-collage__col--r2 { animation-delay: 0.2s; }
  .wwa-collage__col--l3, .wwa-collage__col--r3 { animation-delay: 0.3s; }
  .wwa-collage__col--l4, .wwa-collage__col--r4 { animation-delay: 0.4s; }

  .wwa-wall .wwa-wall__img { animation: wwa-grade 4.2s ease-in-out 0.3s both; }
  .wwa-wall__night { animation: wwa-fade-out 3.8s ease-in-out 0.4s both; }
  .wwa-wall__stars { animation: wwa-fade-out 3s ease-in-out 0.5s both; }
  .wwa-wall__glow { animation: wwa-glow 4.6s ease-in-out 0.8s both; }
  .wwa-activity { animation: wwa-activity 1s cubic-bezier(0.22, 1, 0.36, 1) 1.9s both; }
  .wwa-bird { animation: wwa-fly 4.2s cubic-bezier(0.35, 0, 0.55, 1) 3.4s both; }
  .wwa-bird--2 { animation-delay: 3.62s; }
  .wwa-bird--3 { animation-delay: 3.48s; }
  .wwa-bird--4 { animation-delay: 3.76s; }
  .wwa-bird--5 { animation-delay: 3.56s; }
  .wwa-bird--6 { animation-delay: 3.9s; }
}
@media (prefers-reduced-motion: reduce) {
  .wwa-birds { display: none; }
}
@keyframes wwa-rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes wwa-grade { from { transform: scale(1.05); filter: saturate(0.7) brightness(0.88); } to { transform: none; filter: none; } }
@keyframes wwa-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes wwa-glow { 0% { opacity: 0; } 70% { opacity: 0.9; } 100% { opacity: 0.6; } }
@keyframes wwa-activity { from { opacity: 0; transform: translateY(calc(var(--u) * 24)) scale(0.96); } }
@keyframes wwa-fly {
  0% { opacity: 0; transform: translate(0, 0) scale(0.22) rotate(0deg); }
  8% { opacity: 1; }
  28% { transform: translate(calc(var(--pw) * var(--ax)), calc(var(--pw) * var(--ay))) scale(0.42) rotate(var(--r1)); }
  56% { transform: translate(calc(var(--pw) * var(--bx)), calc(var(--pw) * var(--by))) scale(0.72) rotate(var(--r2)); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--pw) * var(--ex)), calc(var(--pw) * var(--ey))) scale(1.1) rotate(var(--r1)); }
}

/* ---------- Feature bento (after the in-app onboarding bento). Tiles turn over to explain the feature. ---------- */

.wwa-features { padding-top: clamp(20px, 3vw, 44px); }
.wwa-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(320px, auto) minmax(240px, auto) minmax(208px, auto);
  gap: 12px;
  max-width: 900px;
  margin-inline: auto;
}
.wwa-cell { --flip: rotateY(180deg); position: relative; display: grid; perspective: 2200px; }
.wwa-cell__card { position: relative; display: grid; transform-style: preserve-3d; transition: transform 0.85s cubic-bezier(0.2, 0.75, 0.2, 1); }
.wwa-cell.is-flipped .wwa-cell__card,
.wwa-cell:has(.wwa-cell__back :focus-visible) .wwa-cell__card { transform: var(--flip); }
@media (hover: hover) and (pointer: fine) {
  .wwa-cell:hover .wwa-cell__card { transform: var(--flip); transition-delay: 0.1s; }
}
.wwa-cell__face {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: rgba(47, 40, 55, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.wwa-cell__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.wwa-cell__body { position: relative; padding: clamp(20px, 2.1vw, 28px); }
.wwa-cell__label { margin: 0 0 0.4rem; font-size: 0.86rem; font-weight: 600; color: var(--lilac); }
.wwa-cell h3 { margin: 0; max-width: 18ch; font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
.wwa-cell__text { margin: 0.6rem 0 0; max-width: 38ch; font-size: 0.94rem; line-height: 1.45; color: var(--soft); }

/* Back of a tile */
.wwa-cell__back {
  transform: var(--flip);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(20px, 2.1vw, 28px) clamp(20px, 2.1vw, 28px) 56px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(157, 110, 255, 0.3), transparent 62%),
    linear-gradient(180deg, #2b2240 0%, #18112a 100%);
}
.wwa-back__copy p { margin: 0; }
.wwa-back__title { margin: 0 0 0.5rem !important; font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.65rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.wwa-back__text { max-width: 46ch; font-size: 0.9rem; line-height: 1.5; color: var(--soft); text-wrap: pretty; }
.wwa-back__ui { display: block; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }

/* The round "+" that turns a tile over (and back) */
.wwa-cell__more {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: rgba(20, 12, 38, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1), background 0.2s;
}
.wwa-cell__more::before,
.wwa-cell__more::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; }
.wwa-cell__more::after { transform: rotate(90deg); }
.wwa-cell__more:hover { background: rgba(115, 70, 242, 0.7); }
.wwa-cell.is-flipped .wwa-cell__more { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .wwa-cell:hover .wwa-cell__more { transform: rotate(45deg); }
}

/* Alarm: wide, the bedside photo on the right */
.wwa-cell--alarm { grid-column: 1 / 9; grid-row: 1; }
.wwa-cell--alarm .wwa-cell__front { display: flex; align-items: center; }
.wwa-cell--alarm .wwa-cell__art { object-position: 78% 50%; }
.wwa-cell--alarm .wwa-cell__front::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 2, 19, 0.92) 0%, rgba(8, 2, 19, 0.72) 42%, rgba(8, 2, 19, 0.05) 72%); }
.wwa-cell--alarm .wwa-cell__body { max-width: 62%; }
.wwa-cell--alarm h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.55rem, 2.4vw, 2.15rem); letter-spacing: -0.02em; line-height: 1.05; max-width: 14ch; }
.wwa-cell--alarm .wwa-cell__back { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr); align-items: center; gap: clamp(14px, 2vw, 26px); padding-bottom: clamp(20px, 2.1vw, 28px); }
.wwa-back__ui--dial { width: 100%; max-width: 210px; justify-self: center; }
.wwa-layers { list-style: none; margin: 0.7rem 0 0.9rem; padding: 0; display: grid; gap: 6px; }
.wwa-layers li { display: grid; grid-template-columns: 8px 1fr; gap: 1px 12px; align-items: center; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.wwa-layers li::before { content: ""; grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: var(--lilac); opacity: 0.45; }
.wwa-layers li:nth-child(2)::before { opacity: 0.75; }
.wwa-layers li:nth-child(3)::before { opacity: 1; box-shadow: 0 0 10px var(--lilac); }
.wwa-layers strong { font-size: 0.88rem; font-weight: 600; color: #fff; }
.wwa-layers span { font-size: 0.8rem; line-height: 1.35; color: var(--faint); }
.wwa-cell--alarm .wwa-links { gap: 0.4rem 1.4rem; }
.wwa-cell--alarm .wwa-link { font-size: 0.86rem; }

/* Sleep: tall, quilt artwork, bars at the bottom */
.wwa-cell--sleep { grid-column: 9 / 13; grid-row: 1 / 3; }
.wwa-cell--sleep .wwa-cell__front::before,
.wwa-cell--blocking .wwa-cell__front::before { content: ""; position: absolute; inset: 0 0 auto; height: 60%; z-index: -1; background: linear-gradient(180deg, rgba(47, 40, 55, 0.55) 0%, rgba(47, 40, 55, 0.18) 55%, transparent 100%); }
.wwa-bars { position: absolute; left: clamp(20px, 2.1vw, 28px); bottom: clamp(20px, 2.1vw, 28px); display: flex; align-items: flex-end; gap: 6px; height: 28px; filter: drop-shadow(0 1px 4px rgba(8, 2, 19, 0.8)); }
.wwa-bars i { width: 8px; height: calc(var(--h) * 0.9); border-radius: 99px; background: var(--lilac); }
.wwa-cell--sleep .wwa-cell__back { justify-content: center; gap: clamp(20px, 2.4vw, 32px); }
.wwa-back__ui--sleep { width: calc(100% + 16px); margin: -8px -8px 0; }

/* Rhythm: illustrative day course */
.wwa-cell--rhythm { grid-column: 1 / 6; grid-row: 2; }
.wwa-cell--rhythm .wwa-cell__front { display: flex; flex-direction: column; justify-content: space-between; }
.wwa-cell--rhythm .wwa-cell__more { top: 14px; bottom: auto; }
.wwa-cell--rhythm .wwa-cell__back { padding-bottom: clamp(20px, 2.1vw, 28px); }
.wwa-rhythm { position: relative; height: 74px; margin: 0 clamp(20px, 2.1vw, 28px); }
.wwa-rhythm svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wwa-rhythm__glow { fill: none; stroke: rgba(210, 205, 255, 0.1); stroke-width: 12; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wwa-rhythm__line { fill: none; stroke: url(#wwa-rhythm-line); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wwa-rhythm line { stroke: rgba(210, 205, 255, 0.35); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.wwa-rhythm__dot { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7), 0 0 12px var(--c); }
.wwa-rhythm__labels { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px clamp(20px, 2.1vw, 28px) clamp(18px, 2vw, 24px); text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--lilac); }

/* App blocking: knitted shield artwork */
.wwa-cell--blocking { grid-column: 6 / 9; grid-row: 2; }
.wwa-cell--blocking .wwa-cell__art { object-position: 50% 72%; }
.wwa-cell--blocking .wwa-cell__back { padding: 20px 20px 52px; gap: 0; }
.wwa-cell--blocking .wwa-back__title { font-size: 1.22rem; }
.wwa-cell--blocking .wwa-back__text { font-size: 0.8rem; line-height: 1.45; }

/* Sunrise: wide banner, lamp on the right; turns over top to bottom */
.wwa-cell--sunrise { --flip: rotateX(180deg); grid-column: 1 / 13; grid-row: 3; }
.wwa-cell--sunrise .wwa-cell__front { display: flex; align-items: center; }
.wwa-cell--sunrise .wwa-cell__art { object-position: 85% 50%; }
.wwa-cell--sunrise .wwa-cell__front::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 2, 19, 0.75) 0%, rgba(8, 2, 19, 0.35) 45%, transparent 70%); }
.wwa-cell--sunrise h3 { max-width: 20ch; }
.wwa-cell--sunrise .wwa-cell__back {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(18px, 3.2vw, 48px);
  padding: clamp(22px, 2.7vw, 36px) clamp(22px, 3.2vw, 48px);
  background:
    radial-gradient(70% 140% at 100% 100%, rgba(255, 170, 120, 0.22), transparent 60%),
    radial-gradient(120% 90% at 0% 0%, rgba(157, 110, 255, 0.25), transparent 62%),
    linear-gradient(180deg, #2b2240 0%, #18112a 100%);
}
.wwa-cell--sunrise .wwa-back__title { font-size: clamp(1.45rem, 2.4vw, 2.1rem); }
.wwa-ramp { position: relative; display: block; height: 8px; margin-top: 20px; max-width: 46ch; border-radius: 99px; background: linear-gradient(90deg, #22163a 0%, #4b2b6b 28%, #b45f86 58%, #ff9f73 80%, #ffe2b8 100%); }
.wwa-cell--sunrise .wwa-ramp { margin-right: 46px; }
.wwa-ramp i { position: absolute; right: -2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 226, 184, 0.35), 0 0 14px rgba(255, 210, 160, 0.9); }

@media (prefers-reduced-motion: reduce) {
  .wwa-cell__card { transform: none !important; transition: none; }
  .wwa-cell__face { transition: opacity 0.25s ease; }
  .wwa-cell__back { transform: none; opacity: 0; pointer-events: none; }
  .wwa-cell.is-flipped .wwa-cell__back,
  .wwa-cell:has(.wwa-cell__back :focus-visible) .wwa-cell__back { opacity: 1; pointer-events: auto; }
  .wwa-cell.is-flipped .wwa-cell__front { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .wwa-cell:hover .wwa-cell__back { opacity: 1; pointer-events: auto; }
  .wwa-cell:hover .wwa-cell__front { opacity: 0; }
}

/* ---------- What people stopped waking up to: a cloud you can inspect ---------- */

.wwa-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.05em 0.5em;
  max-width: 1060px;
  margin: 0 auto;
  font-family: var(--serif);
  line-height: 1.12;
}
.wwa-cloud__word {
  position: relative;
  margin: 0;
  padding: 0.06em 0.08em 0.12em;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: #fff;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.35s ease, color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.wwa-cloud__word:nth-child(even) { font-style: italic; color: var(--lilac); }
.wwa-cloud__word--s4 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
.wwa-cloud__word--s3 { font-size: clamp(1.85rem, 3.7vw, 3.2rem); }
.wwa-cloud__word--s2 { font-size: clamp(1.5rem, 2.8vw, 2.4rem); }
.wwa-cloud__word--s1 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
.wwa-cloud__word span { position: relative; }
/* The picked word is gently crossed out: something people stopped waking up to */
.wwa-cloud__word span::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 56%;
  height: max(2px, 0.065em);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lilac), var(--accent));
  box-shadow: 0 0 14px rgba(157, 110, 255, 0.6);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wwa-cloud__word[aria-selected="true"] { opacity: 1; }
.wwa-cloud__word[aria-selected="true"] span::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .wwa-cloud__word:hover { opacity: 0.85; }
}

.wwa-voices__panels { max-width: 1120px; min-height: 250px; margin: clamp(30px, 4vw, 50px) auto 0; }
.wwa-voices__panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 360px)); justify-content: center; gap: 14px; }
.wwa-voices__panel[hidden] { display: none !important; }
.wwa-voices__compare { max-width: 640px; margin: clamp(28px, 3.6vw, 44px) auto 0; font-size: 0.98rem; line-height: 1.5; text-align: center; color: var(--soft); text-wrap: balance; }
.home-candy .wwa-voices__compare .wwa-link { display: inline; font-size: 1.04rem; font-weight: 600; line-height: 1.6; color: var(--lilac); }
.home-candy .wwa-voices__compare .wwa-link::before { content: ""; display: block; }
.home-candy .wwa-voices__compare .wwa-link__chev { display: inline; margin-left: 2px; vertical-align: -1px; }
.wwa-voices__panel:focus-visible { outline-offset: 6px; border-radius: 26px; }
.wwa-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 24px 26px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)), rgba(36, 28, 52, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -34px rgba(0, 0, 0, 0.8);
}
.wwa-quote blockquote { margin: 0; }
.wwa-quote blockquote::before { content: "\201C"; display: block; height: 0.5em; margin-bottom: 0.15em; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent); }
.wwa-quote p { margin: 0; font-family: var(--serif); font-size: clamp(1.12rem, 1.45vw, 1.28rem); line-height: 1.42; letter-spacing: -0.01em; color: #fff; text-wrap: pretty; }
.wwa-quote figcaption { font-size: 0.85rem; line-height: 1.4; color: var(--faint); }
.wwa-quote figcaption strong { font-weight: 600; color: var(--soft); }
@media (prefers-reduced-motion: no-preference) {
  .wwa-voices__panel.is-entering .wwa-quote { animation: wwa-quote-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .wwa-voices__panel.is-entering .wwa-quote:nth-child(2) { animation-delay: 0.07s; }
  .wwa-voices__panel.is-entering .wwa-quote:nth-child(3) { animation-delay: 0.14s; }
}
@keyframes wwa-quote-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Bedtime and naps: night and day scenes ---------- */

.wwa-rest__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin-inline: auto; }
.wwa-scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: clamp(400px, 34vw, 440px);
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 26px;
  background: #120a20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.wwa-scene__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.wwa-scene::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.wwa-scene--night .wwa-scene__photo { object-position: 35% 50%; }
.wwa-scene--night::before { background: linear-gradient(180deg, rgba(10, 4, 22, 0.88) 0%, rgba(10, 4, 22, 0.45) 36%, rgba(10, 4, 22, 0.05) 58%, rgba(10, 4, 22, 0.55) 100%); }
.wwa-scene--nap .wwa-scene__photo { object-position: 40% 50%; filter: saturate(0.9); }
.wwa-scene--nap::before { background: linear-gradient(180deg, rgba(14, 8, 30, 0.88) 0%, rgba(14, 8, 30, 0.55) 32%, rgba(14, 8, 30, 0.05) 58%, rgba(14, 8, 30, 0.35) 100%); }
.wwa-scene--calm .wwa-scene__photo { object-position: 50% 30%; filter: saturate(0.9) hue-rotate(8deg); }
.wwa-scene--calm::before { background: linear-gradient(180deg, rgba(12, 6, 32, 0.86) 0%, rgba(12, 6, 32, 0.5) 34%, rgba(30, 14, 70, 0.12) 60%, rgba(12, 6, 32, 0.45) 100%); }
.wwa-scene--focus .wwa-scene__photo { object-position: 62% 50%; filter: saturate(0.85); }
.wwa-scene--focus::before { background: linear-gradient(180deg, rgba(14, 8, 30, 0.86) 0%, rgba(14, 8, 30, 0.5) 30%, rgba(14, 8, 30, 0) 56%, rgba(14, 8, 30, 0.3) 100%); }
.wwa-scene__copy { max-width: 34ch; }
.wwa-scene__copy h3 { margin: 0 0 0.45rem; font-family: var(--serif); font-size: clamp(1.55rem, 2.4vw, 2.1rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.02em; }
.wwa-scene__copy > p:not(.wwa-cell__label) { margin: 0 0 0.85rem; font-size: 0.94rem; line-height: 1.45; color: rgba(246, 243, 251, 0.82); }
.wwa-scene__widget {
  margin-top: auto;
  width: min(100%, 284px);
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(28, 20, 46, 0.42);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.28), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
}
.wwa-scene__widget p { margin: 0; }
.wwa-widget__label { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.25rem !important; font-size: 0.86rem; font-weight: 600; color: var(--lilac); }
.wwa-widget__count { margin-bottom: 0.9rem !important; font-size: 1.05rem; font-weight: 600; line-height: 1; }
.wwa-widget__count strong { margin-right: 0.08em; font-size: 2.9rem; font-weight: 700; letter-spacing: -0.045em; color: #fff; }
.wwa-widget__track { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.wwa-widget__track span { position: absolute; inset: 0 auto 0 0; width: 22%; border-radius: inherit; background: linear-gradient(90deg, #fff, var(--lilac)); }
.wwa-widget__times { display: flex; justify-content: space-between; margin-top: 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }
.wwa-scene__widget--nap { display: flex; align-items: center; gap: 14px; }
.wwa-scene__widget--nap .wwa-widget__count { margin-bottom: 0.25rem !important; }
.wwa-widget__sub { font-size: 0.82rem; font-weight: 500; color: var(--soft); }
.wwa-ring { position: relative; flex: none; width: 74px; height: 74px; }
.wwa-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wwa-ring__base { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 10; }
.wwa-ring--calm .wwa-ring__value { stroke-dashoffset: 111; }
.wwa-ring--focus .wwa-ring__value { stroke-dashoffset: 59; }
.wwa-ring__value { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 82; filter: drop-shadow(0 0 8px rgba(157, 110, 255, 0.6)); }
.wwa-scene__note { display: flex; align-items: center; gap: 0.45rem; margin: -4px 0 0; font-size: 0.78rem; color: rgba(246, 243, 251, 0.7); }
.wwa-scene__note svg { flex: none; color: var(--lilac); }

.wwa-fineprint { max-width: 900px; margin: clamp(28px, 3.4vw, 44px) auto 0; padding-top: 1.2rem; border-top: 1px solid var(--hair); font-size: 0.78rem; line-height: 1.6; color: var(--faint); }

/* ---------- Android ---------- */

.wwa-android { padding-top: 0; }
.wwa-android__tile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2.5rem; }
.wwa-android h2 { margin: 0 0 0.35rem; font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.wwa-android p { max-width: 52ch; }
.wwa-button { display: inline-flex; align-items: center; padding: 0.8em 1.45em; border-radius: 999px; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); color: #fff; font-size: 1rem; font-weight: 500; transition: background 0.2s; }
.wwa-button:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- FAQ (shared markup from lang/en/pages/home.php) ---------- */

.wwa-faq { padding-top: clamp(40px, 5vw, 72px); }
.wwa-faq .home-faq.faq-section { width: min(860px, 100% - 2 * clamp(20px, 5vw, 48px)); max-width: none; margin: 0 auto; padding: 0; }
.wwa-faq .home-section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.wwa-faq .home-section-eyebrow { display: block; font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--lilac); }
.wwa-faq .home-section-title { margin: 0.3em 0 0; font-family: var(--serif); font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.022em; }
.wwa-faq .faq-grid { display: block; border-top: 1px solid var(--hair); }
.wwa-faq .faq-item { border: 0; border-bottom: 1px solid var(--hair); padding: 0; border-radius: 0; background: none; }
.wwa-faq .faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.35rem 0; font-family: var(--sans); font-size: clamp(1.08rem, 1.4vw, 1.25rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: #fff; list-style: none; cursor: pointer; }
.wwa-faq .faq-item summary::-webkit-details-marker { display: none; }
.wwa-faq .faq-item summary::after {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 2.5v13M2.5 9h13' fill='none' stroke='%23c9b8ff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.wwa-faq .faq-item[open] summary::after { transform: rotate(45deg); }
.wwa-faq .faq-item p { margin: -0.3rem 0 0; padding: 0 2.5rem 1.5rem 0; font-size: 1.06rem; line-height: 1.55; color: var(--soft); }
.wwa-faq .faq-item a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.wwa-faq .home-highlight { background: none; color: inherit; padding: 0; }

/* ---------- Closing ---------- */

.wwa-closing { text-align: center; overflow: hidden; }
.wwa-closing__art {
  position: absolute;
  inset: 8% -5% auto;
  display: flex;
  justify-content: center;
  gap: 16px;
  opacity: 0.4;
  filter: saturate(0.9);
  -webkit-mask-image: radial-gradient(60% 80% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 80% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.wwa-closing__art img { flex: 0 0 clamp(120px, 14vw, 200px); width: clamp(120px, 14vw, 200px); aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: 26px; }
.wwa-closing__art img:nth-child(odd) { margin-top: 48px; }
.wwa-closing__inner { position: relative; display: grid; justify-items: center; }
.wwa-closing__icon { width: 84px; height: 84px; margin-bottom: 1.8rem; border-radius: 19px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 60px -10px rgba(115, 70, 242, 0.8); }
.wwa-closing .wwa-h2 { max-width: 12ch; margin-bottom: 0.65em; }
.wwa-closing .wwa-actions { margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */

.home-candy .story-footer { border-top: 1px solid var(--hair); background: rgba(0, 0, 0, 0.25); font-family: var(--sans); color: var(--faint); font-size: 0.82rem; }
.home-candy .story-footer .site-logo { font-size: 1.05rem; color: #fff; }
.home-candy .footer-section-heading { font-family: var(--sans); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.82rem; color: #fff; }
.home-candy .footer-nav li a { font-size: 0.82rem; color: var(--faint); }
.home-candy .footer-nav li a:hover { color: #fff; }
.home-candy .footer-legal a { color: var(--faint); }
.home-candy .story-footer .company-footer { border-top-color: var(--hair); color: var(--faint); }
.home-candy .story-footer .company-footer strong { color: rgba(255, 255, 255, 0.85); }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .home-candy .nav-links { gap: 1.2rem; }
  .wwa-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(230px, auto); grid-auto-flow: row dense; }
  .wwa-cell--alarm { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .wwa-cell--sleep { grid-column: 1; grid-row: auto; min-height: 320px; }
  .wwa-cell--blocking { grid-column: 2; grid-row: auto; min-height: 320px; }
  .wwa-cell--rhythm { grid-column: 1 / -1; grid-row: auto; }
  .wwa-cell--sunrise { grid-column: 1 / -1; grid-row: auto; }
  .wwa-back__ui--sleep { width: min(78%, 260px); margin: 0 auto; }
}

@media (max-width: 760px) {
  .wwa-collage { --cw: 104px; --pw: 244px; --gap: 10px; --fade-x: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%); }
  .wwa-collage__col--l4, .wwa-collage__col--r4, .wwa-collage__col--l3, .wwa-collage__col--r3 { display: none; }
  .wwa-bento { grid-template-columns: minmax(0, 1fr); }
  .wwa-bento { gap: 10px; }
  .wwa-cell--sleep, .wwa-cell--blocking { grid-column: 1; min-height: 230px; }
  .wwa-cell--alarm { min-height: 0; }
  .wwa-cell--alarm .wwa-cell__front { flex-direction: column; align-items: stretch; justify-content: flex-end; padding-top: 38%; }
  .wwa-cell--alarm .wwa-cell__art { inset: 0 0 auto; height: max(50%, 46vw); object-position: 72% 50%; }
  .wwa-cell--alarm .wwa-cell__front::before { background: linear-gradient(180deg, transparent 0%, rgba(8, 2, 19, 0.2) 30%, rgba(8, 2, 19, 0.92) 56%); }
  .wwa-cell--alarm .wwa-cell__body { max-width: none; padding-bottom: 54px; }
  .wwa-cell--alarm .wwa-cell__back { grid-template-columns: minmax(0, 1fr); align-content: end; padding-bottom: 52px; }
  .wwa-cell__back { padding: 18px 18px 52px; gap: 12px; }
  .wwa-back__ui--dial { display: none; }
  .wwa-back__ui--sleep { width: min(72%, 230px); margin: 0 auto; }
  .wwa-cell--sunrise .wwa-cell__front { flex-direction: column; align-items: stretch; padding-bottom: 36%; }
  .wwa-cell--sunrise .wwa-cell__art { inset: auto 0 0; height: auto; aspect-ratio: 3 / 1.25; object-position: 80% 50%; }
  .wwa-cell--sunrise .wwa-cell__front::before { background: linear-gradient(180deg, rgba(47, 40, 55, 1) 0%, rgba(47, 40, 55, 0.9) 45%, transparent 68%); }
  .wwa-cell--sunrise .wwa-cell__back { grid-template-columns: minmax(0, 1fr); align-content: end; gap: 6px; padding: 20px 18px 52px; }
  .wwa-rest__grid { display: flex; gap: 12px; margin-inline: calc(-1 * clamp(20px, 5vw, 48px)); padding: 4px clamp(20px, 5vw, 48px) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(20px, 5vw, 48px); scrollbar-width: none; }
  .wwa-rest__grid::-webkit-scrollbar { display: none; }
  .wwa-rest__grid > .wwa-scene { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
  .wwa-voices__panels { min-height: 0; margin-inline: calc(-1 * clamp(20px, 5vw, 48px)); }
  .wwa-voices__panel { display: flex; justify-content: flex-start; gap: 12px; overflow-x: auto; padding: 4px clamp(20px, 5vw, 48px) 8px; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(20px, 5vw, 48px); scrollbar-width: none; }
  .wwa-voices__panel::-webkit-scrollbar { display: none; }
  .wwa-voices__panel .wwa-quote { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
  .wwa-voices__panel .wwa-quote:only-child { flex-basis: 100%; }
  .wwa-scene { min-height: 420px; }
}

@media (max-width: 520px) {
  .home-candy { --radius: 26px; font-size: 1rem; }
  .wwa-hero__title { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  .wwa-hero__lede { font-size: 1.15rem; }
  .wwa-h2 { font-size: clamp(2.3rem, 10.5vw, 2.9rem); }
  .wwa-faq .home-section-title { font-size: clamp(2.3rem, 10.5vw, 2.9rem); }
  .wwa-faq .faq-item p { padding-right: 0; }
  .wwa-cell h3 { font-size: 1.18rem; }
  .wwa-cell--alarm h3 { font-size: 1.5rem; }
  .wwa-cell--sleep .wwa-cell__body, .wwa-cell--blocking .wwa-cell__body { padding: 18px; }
  .wwa-bars { left: 18px; bottom: 18px; gap: 5px; }
  .wwa-bars i { width: 7px; }
  .wwa-rhythm__labels { font-size: 0.78rem; }
  .wwa-cloud { gap: 0.1em 0.42em; }
  .wwa-scene { padding: 20px; min-height: 410px; gap: 12px; }
  .wwa-scene__copy h3 { font-size: 1.45rem; }
  .wwa-widget__count strong { font-size: 2.5rem; }
  .wwa-scene__widget { padding: 14px 16px; }
  .wwa-ring { width: 64px; height: 64px; }
}
