/* Poppins, self-hosted (copied from styles.css — keep the two in sync) */
/* ===== Self-hosted Poppins (latin + latin-ext) — no third-party font requests ===== */
/* Metric-matched fallback while Poppins loads: text keeps its size and line
   breaks when the web font swaps in (no layout shift). Values: Poppins vs Arial. */
@font-face {
  font-family: 'Poppins Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 112.16%;
  ascent-override: 93.62%;
  descent-override: 31.21%;
  line-gap-override: 8.92%;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/poppins-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/poppins-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/poppins-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/poppins-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/poppins-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/poppins-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/poppins-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/poppins-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/poppins-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/poppins-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/poppins-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/poppins-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ===================================================================
   MathWake — Home (light "sunrise" design, 2026-11)
   Homepage + its 11 translated copies only. Blog, tools and legal pages
   still load styles.css (dark). Brand: accent #FF4C00, app bg #0D0D12.
=================================================================== */

:root {
  --bg:        #FFFFFF;
  --bg-soft:   #F7F5F2;
  --bg-warm:   #FFF4EC;
  --card:      #F5F3F0;
  --ink:       #111114;
  --ink-2:     #4B4A52;
  --ink-3:     #6F6D77;
  --line:      #ECE8E3;
  --accent:    #FF4C00;
  --accent-ink: #C23800;  /* accent as TEXT on light backgrounds: 5.4:1 on white (AA) */
  --accent-2:  #FF7A33;
  --accent-soft: #FFE9DD;
  --night:     #0D0D12;
  --night-2:   #151826;
  --sleep:     #5B8DEF;
  --sleep-2:   #8AB0FF;
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius:    20px;
  --shadow-sm: 0 1px 2px rgba(17,17,20,.04), 0 4px 14px -6px rgba(17,17,20,.08);
  --shadow:    0 2px 6px rgba(17,17,20,.04), 0 24px 60px -24px rgba(17,17,20,.18);
  --shadow-lg: 0 40px 100px -30px rgba(17,17,20,.35);
  --ease:      cubic-bezier(.16,1,.3,1);
  --nav-h:     72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: 'Poppins', 'Poppins Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, #FF6A1F 45%, #FF9A4D 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}

/* Scripts without Poppins glyphs fall back to the system font; negative
   tracking that suits Poppins crushes CJK / Arabic / Devanagari. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3,
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh-hant) h1, :lang(zh-hant) h2, :lang(zh-hant) h3,
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0 !important; }
:lang(ar) body { line-height: 1.75; }

/* ===== Reveal (only hidden once JS is running) ===== */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Hero copy animates in with CSS alone, so the headline (the LCP element) never
   waits for script.js and its IntersectionObserver. */
.intro { animation: introUp 1s var(--ease) both; }
.hero__title.intro { animation-delay: .08s; }
.hero__sub.intro { animation-delay: .16s; }
.hero__cta.intro { animation-delay: .24s; }
.hero__proof.intro { animation-delay: .32s; }
@keyframes introUp { from { opacity: 0; transform: translateY(22px); } }

h1, h2, h3, .hero__sub, .section__head p, .statement__sub, .cta p { text-wrap: balance; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px;
  font: 600 15px/1.2 'Poppins', system-ui, sans-serif;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, #FF6418 0%, var(--accent) 100%); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -10px rgba(255,76,0,.65);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 34px -12px rgba(255,76,0,.75); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: #DCD6CF; }
.btn--sleep { background: linear-gradient(180deg, var(--sleep-2), var(--sleep)); color: #0b1020; box-shadow: 0 12px 30px -12px rgba(91,141,239,.7); }
.btn--sleep:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* App Store badge */
.appstore-badge {
  display: inline-flex; line-height: 0; border-radius: 10px;
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.appstore-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 18px rgba(17,17,20,.28)); }
/* Apple's official badge artwork (developer.apple.com marketing guidelines): never recolour or
   redraw it; minimum on-screen height is 40px and clear space is a quarter of its height */
.appstore-badge__img { display: block; height: 52px; width: auto; }
.appstore-badge--lg .appstore-badge__img { height: 60px; }
.appstore-badge--sm .appstore-badge__img { height: 44px; }

.stars { color: #FFB020; letter-spacing: 2px; font-size: 15px; }

/* ===== Navbar ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.4px; }
.nav__logo { width: 34px; height: 34px; border-radius: 9px; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 100px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(17,17,20,.05); }
.nav__right { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav__links + .nav__right { margin-inline-start: 0; }

.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  padding: 8px 12px; border-radius: 100px; font: 600 13px 'Poppins', system-ui, sans-serif;
  transition: border-color .2s, color .2s;
}
.lang__btn:hover { border-color: #D9D2CA; color: var(--ink); }
.lang__caret { transition: transform .3s var(--ease); opacity: .6; }
.lang.open .lang__caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 220px;
  max-height: 70vh; overflow: auto; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 12px; font-size: 14px; color: var(--ink-2);
}
.lang__item:hover { background: var(--bg-soft); color: var(--ink); }
.lang__item.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.lang__short { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .5px; }
.lang__item.active .lang__short { color: var(--accent-ink); }

.nav__burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__burger span:nth-child(1) { top: 13px; }
.nav__burger span:nth-child(2) { top: 19px; }
.nav__burger span:nth-child(3) { top: 25px; }
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero ===== */
/* Static by default (no JS / reduced motion): a rounded card with the copy and
   the top of the phone. script.js adds .hero--scroll, which pins the card and
   drives --wide / --t / the phone transform from the scroll position. */
.hero { position: relative; }
.hero__pin { padding: calc(var(--nav-h) + 4px) 16px 0; display: flex; justify-content: center; }
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(1240px, 100%); border-radius: 36px;
  padding: clamp(28px, 5vh, 56px) 24px 0;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 105%, rgba(255,122,51,.42) 0%, rgba(255,122,51,0) 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(255,150,110,.30) 0%, rgba(255,150,110,0) 70%),
    radial-gradient(60% 50% at 100% 100%, rgba(255,170,120,.30) 0%, rgba(255,170,120,0) 70%),
    radial-gradient(70% 60% at 90% 0%, #FFE9EE 0%, rgba(255,233,238,0) 60%),
    linear-gradient(180deg, #FFF8F2 0%, #FFF0E4 55%, #FFDCC4 100%);
}
.hero__sun {
  position: absolute; left: 50%; bottom: -420px; width: 900px; height: 900px; margin-left: -450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,150,70,.42) 0%, rgba(255,120,40,.16) 38%, rgba(255,120,40,0) 66%);
  animation: sunrise 9s ease-in-out infinite;
}
@keyframes sunrise { 50% { transform: translateY(-24px) scale(1.04); } }

.hero__copy { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
.announce {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 6px 14px 6px 6px; margin-bottom: 22px;
  background: rgba(255,255,255,.75); border: 1px solid rgba(255,76,0,.14); border-radius: 100px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .2s, transform .3s var(--ease);
}
.announce:hover { border-color: rgba(255,76,0,.35); }
.announce__tag {
  flex-shrink: 0; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  padding: 4px 10px; border-radius: 100px;
}
.announce__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce__arrow { flex-shrink: 0; color: var(--accent-ink); }
[dir="rtl"] .announce__arrow { transform: scaleX(-1); }

.hero__title {
  font-size: clamp(38px, min(5.6vw, 8.6vh), 78px); font-weight: 800;
  line-height: 1.04; letter-spacing: -.045em; max-width: 15ch;
}
/* the <br> stays on phones too: hiding it glued the words around it together ("alarm,you") */
@media (min-width: 720px) { .hero__title { max-width: none; } }
.hero__sub {
  margin-top: 18px; max-width: 660px;
  font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); line-height: 1.65;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.hero__cta .btn--ghost { padding: 15px 24px; }
.hero__proof { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* device = phone + popcard + chip; static: in flow, cropped by the card */
.hero__device { position: relative; z-index: 2; width: 310px; height: 400px; margin: 40px auto 0; }
.hero__tiles { display: none; }
.hero__hint { display: none; }
.phone {
  position: relative; z-index: 2; width: 310px; height: 638px;
  background: linear-gradient(135deg, #5a5560 0%, #2b2832 14%, #16141b 32%, #0d0d12 68%, #211e29 86%, #4a4654 100%);
  border-radius: 56px; padding: 12px;
  box-shadow:
    0 60px 120px -40px rgba(80,30,0,.45),
    0 30px 60px -30px rgba(17,17,20,.5),
    inset 0 0 0 2px rgba(255,255,255,.05),
    inset 0 2px 2px rgba(255,255,255,.22),
    0 0 0 1px rgba(0,0,0,.55);
}
.phone::before {
  content: ''; position: absolute; inset: 2px; border-radius: 54px; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.28) 0%, transparent 18%, transparent 82%, rgba(255,255,255,.16) 100%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px; z-index: 5;
}
.phone__btn { position: absolute; background: linear-gradient(180deg, #4a4652, #14121a); border-radius: 3px; z-index: 4; }
.phone__btn--silent  { left: -3px; top: 118px; width: 3px; height: 30px; }
.phone__btn--vol-up  { left: -3px; top: 168px; width: 3px; height: 54px; }
.phone__btn--vol-down{ left: -3px; top: 234px; width: 3px; height: 54px; }
.phone__btn--power   { right: -3px; top: 196px; width: 3px; height: 84px; }
.phone__screen {
  width: 100%; height: 100%; border-radius: 44px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; color: #F3F3F3;
  background:
    radial-gradient(130% 60% at 50% -8%, rgba(255,76,0,.24), transparent 55%),
    radial-gradient(100% 50% at 50% 110%, rgba(255,76,0,.1), transparent 60%),
    linear-gradient(180deg, #0d0d12, #15131a 60%, #100e15);
}
.phone__screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 44px;
  background: linear-gradient(125deg, rgba(255,255,255,.07) 0%, transparent 30%, transparent 70%, rgba(255,255,255,.03) 100%);
}
.phone__island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6;
  height: 30px; min-width: 116px; padding: 0 13px; background: #000; border-radius: 100px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.island__cam { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2b3a52 0%, #0a0e16 60%, #000 100%); }
.island__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.island__wave { display: flex; align-items: center; gap: 3px; height: 14px; }
.island__wave i { width: 3px; border-radius: 2px; background: var(--accent); animation: eq 1s ease-in-out infinite; }
.island__wave i:nth-child(1){ height: 6px; }
.island__wave i:nth-child(2){ height: 13px; animation-delay: .15s; }
.island__wave i:nth-child(3){ height: 9px;  animation-delay: .3s; }
.island__wave i:nth-child(4){ height: 5px;  animation-delay: .45s; }
@keyframes eq { 50% { transform: scaleY(.4); } }
.statusbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 26px 0; position: relative; z-index: 5; direction: ltr; }
.statusbar__time { font-size: 14px; font-weight: 600; }
.statusbar__icons { display: flex; align-items: center; gap: 6px; fill: #F3F3F3; }
.statusbar__batt { width: 22px; height: 11px; border: 1px solid rgba(255,255,255,.5); border-radius: 3px; padding: 1.5px; position: relative; }
.statusbar__batt::after { content: ''; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px; background: rgba(255,255,255,.5); border-radius: 0 2px 2px 0; }
.statusbar__batt i { display: block; height: 100%; width: 80%; background: #F3F3F3; border-radius: 1.5px; }
.ring { flex: 1; text-align: center; padding: 14px 22px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__pulse { position: relative; width: 70px; height: 70px; margin-bottom: 10px; display: grid; place-items: center; }
.ring__ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ripple 2.4s ease-out infinite; }
.ring__ripple:nth-child(2) { animation-delay: 1.2s; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
.ring__bell {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255,76,0,.25), rgba(255,76,0,.06)); border: 1px solid rgba(255,76,0,.4);
  animation: shake-bell .8s ease-in-out infinite;
}
.ring__bell img { width: 30px; height: 30px; }
@keyframes shake-bell { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
.ring__time { font-size: 56px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(255,76,0,.25); direction: ltr; }
.ring__label { color: var(--accent); font-weight: 600; letter-spacing: 3px; font-size: 11px; margin: 6px 0 22px; display: inline-flex; align-items: center; gap: 7px; }
.ring__live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.ring__task {
  width: 100%; border-radius: 22px; padding: 18px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
}
.ring__chip {
  display: inline-block; background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 4px 12px; border-radius: 100px; margin-bottom: 14px;
}
.ring__math { font-size: 23px; font-weight: 600; direction: ltr; }
.ring__q { color: var(--accent); }
.ring__display {
  margin: 14px auto 0; width: 100%; max-width: 180px; min-height: 44px; position: relative;
  display: flex; align-items: center; justify-content: center; direction: ltr;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,76,0,.3); border-radius: 12px; padding: 10px;
  font-size: 22px; font-weight: 700; letter-spacing: 3px; font-variant-numeric: tabular-nums;
  transition: border-color .25s ease, background .25s ease;
}
.ring__display.typing::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); margin-left: 6px; width: 2px; height: 22px; background: var(--accent); animation: blink 1s steps(2) infinite; }
.ring__display:empty::before { content: '·  ·  ·'; color: #6E6168; letter-spacing: 4px; font-weight: 600; }
.ring__display.correct { border-color: #2ec27e; background: rgba(46,194,126,.16); color: #6ff0b0; }
.ring__hint { margin-top: 16px; font-size: 11px; color: #8d838a; }

/* popcard: the alarm row that "pops out" of the phone; switches on while scrolling */
.popcard {
  position: absolute; z-index: 4; left: -46px; right: -46px; top: 104px;
  padding: 16px 20px 14px; border-radius: 22px; text-align: start;
  background: rgba(255,255,255,.96); color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(90,40,10,.45), 0 2px 8px rgba(17,17,20,.06);
}
.popcard__row { display: flex; align-items: center; justify-content: space-between; direction: ltr; }
.popcard__time { font-size: 42px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--ink-3); transition: color .4s; font-variant-numeric: tabular-nums; }
.popcard__toggle { position: relative; width: 62px; height: 36px; border-radius: 100px; background: #D9D5D0; transition: background .4s; }
.popcard__toggle i { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .45s var(--ease); }
.popcard__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
.popcard__meta img { width: 18px; height: 18px; }
.hero__device.on .popcard__time { color: var(--ink); }
.hero__device.on .popcard__toggle { background: var(--accent); }
.hero__device.on .popcard__toggle i { transform: translateX(26px); }
/* the ring screen under the card is dim until the alarm is switched on */
.hero__device .ring { transition: opacity .5s; }
.hs .hero .hero__device:not(.on) .ring { opacity: .45; }

.hero__chip {
  position: absolute; z-index: 5; top: 420px; left: 230px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  background: #fff; box-shadow: var(--shadow); color: var(--ink);
}
.hero__chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ec27e; box-shadow: 0 0 0 4px rgba(46,194,126,.18); }
.hero__device:not(.on) .hero__chip { opacity: 0; transform: translateY(10px) scale(.9); }
.hero__chip { transition: opacity .4s, transform .5s var(--ease); }

/* ----- scroll mode ----- */
.hs .hero { height: 240vh; }
.hs .hero .hero__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  padding: var(--nav-h) 0 16px; align-items: stretch;
}
.hs .hero .hero__card {
  /* The card is always laid out at its END width; the "widening" on scroll is a
     clip-path that uncovers it. Animating width re-laid-out everything inside the
     card on every scroll frame (layout shifts). --ci is set by script.js. */
  width: calc(100% - 24px); height: 100%;
  clip-path: inset(0 var(--ci, max(4px, calc((100% - 1240px) / 2))) round 26px);
  will-change: clip-path;
}
/* keep the copy inside the visible (start) width while the card is still clipped */
.hs .hero .hero__copy { max-width: calc(min(1240px, 100vw - 48px) - 48px); margin-inline: auto; }
@media (max-width: 639px) {
  .hs .hero .hero__card { width: calc(100% - 8px); clip-path: inset(0 var(--ci, 4px) round 26px); }
  .hs .hero .hero__copy { max-width: calc(100vw - 56px); }
}
.hs .hero .hero__device {
  position: absolute; left: 50%; top: 0; margin: 0; height: 638px;
  transform-origin: 50% 0; will-change: transform;
}
.hs .hero .hero__copy { will-change: transform, opacity; }

.hs .hero .hero__tiles { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; --k: 1; }
.tile {
  position: absolute; left: calc(50% + var(--x) * var(--k)); top: calc(var(--cy, 50%) + var(--y) * var(--k));
  opacity: var(--t, 0);
  transform: translate(-50%, -50%)
             translate(calc(var(--x) * var(--k) * (var(--t, 0) - 1) * .85), calc(var(--y) * var(--k) * (var(--t, 0) - 1) * .85))
             scale(calc(.45 + .55 * var(--t, 0)));
}
.tile__in {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px;
  background: rgba(255,255,255,.9); border: 1px solid #fff; rotate: var(--r);
  box-shadow: 0 20px 40px -18px rgba(120,50,10,.38), 0 2px 6px rgba(17,17,20,.05);
  animation: bob 6s ease-in-out infinite;
}
.tile:nth-child(2) .tile__in { animation-delay: -1.5s; } .tile:nth-child(3) .tile__in { animation-delay: -3s; }
.tile:nth-child(4) .tile__in { animation-delay: -2s; }   .tile:nth-child(5) .tile__in { animation-delay: -4s; }
.tile:nth-child(6) .tile__in { animation-delay: -.8s; }
.tile__in img { width: 50px; height: 50px; }
.tile--lg .tile__in { width: 100px; height: 100px; border-radius: 28px; }
.tile--lg .tile__in img { width: 60px; height: 60px; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.hs .hero .hero__hint {
  display: flex; position: absolute; z-index: 6; left: 50%; bottom: 18px; transform: translateX(-50%);
  opacity: var(--hint, 1);
}
.hero__mouse { display: block; width: 24px; height: 38px; border: 2px solid rgba(17,17,20,.55); border-radius: 14px; position: relative; background: rgba(255,255,255,.5); }
.hero__mouse i { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: rgba(17,17,20,.6); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(10px); opacity: 0; } }

/* ===== Stats ===== */
.stats { position: relative; z-index: 3; margin-top: 28px; }
.stats__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 34px 12px;
}
.stat { text-align: center; padding: 0 12px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; inset-inline-start: 0; top: 10%; bottom: 10%; width: 1px; background: var(--line); }
.stat strong { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--ink-3); font-weight: 500; }

/* ===== Sections ===== */
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 40px 0; }
.section--soft { background: var(--bg-soft); }
.section--features { padding-bottom: 80px; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.section__head h2, .statement__title, .panel__title, .cta h2 {
  font-weight: 800; letter-spacing: -.04em; line-height: 1.08;
}
.section__head h2 { font-size: clamp(32px, 4.4vw, 54px); }
.section__head p { margin-top: 16px; font-size: 18px; color: var(--ink-2); }

/* ===== Statement (word-by-word reveal) ===== */
.statement { text-align: center; max-width: 960px; margin: 0 auto 72px; }
.statement__title { font-size: clamp(36px, 5.6vw, 72px); }
.statement__title .w { transition: opacity .5s ease, filter .5s ease; }
.js .statement__title .w { opacity: .14; }
.js .statement__title .w.on { opacity: 1; }
.statement__sub { margin: 24px auto 0; max-width: 640px; font-size: 18px; color: var(--ink-2); }

/* ===== Bento ===== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bcard {
  grid-column: span 4; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 340px; padding: 34px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid rgba(17,17,20,.03);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bcard--wide { grid-column: span 7; }
.bcard--accent { grid-column: span 5; }
.bcard h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 16px; }
.bcard p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; max-width: 44ch; }
.bcard__kicker { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.bcard__emoji { font-size: 22px; line-height: 1; }
.bcard__art { display: flex; justify-content: center; align-items: flex-end; min-height: 96px; }

.bcard--accent { background: linear-gradient(160deg, #FF6A1F 0%, var(--accent) 55%, #E23E00 100%); color: #fff; }
.bcard--accent p { color: rgba(255,255,255,.86); }
.bcard--accent .bcard__kicker { background: rgba(255,255,255,.18); box-shadow: none; }
.bcard--dark { background: radial-gradient(120% 80% at 80% 0%, #232036 0%, var(--night) 60%); color: #fff; }
.bcard--dark p { color: rgba(255,255,255,.7); }
.bcard--dark .bcard__kicker { background: rgba(255,255,255,.08); box-shadow: none; }

.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mgrid__item {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: #fff; border-radius: 20px; padding: 18px 8px 14px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease);
}
.mgrid__item:hover { transform: translateY(-4px) rotate(-1deg); }
.mgrid__item img { width: 52px; height: 52px; }
.mgrid__item b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }

.vu { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.vu i {
  flex: 1; border-radius: 6px; background: rgba(255,255,255,.9); transform-origin: bottom;
  animation: vu 1.2s ease-in-out infinite;
}
.vu i:nth-child(odd) { background: rgba(255,255,255,.55); }
.vu i:nth-child(1){height:30%;animation-delay:-.1s} .vu i:nth-child(2){height:55%;animation-delay:-.5s}
.vu i:nth-child(3){height:80%;animation-delay:-.3s} .vu i:nth-child(4){height:45%;animation-delay:-.8s}
.vu i:nth-child(5){height:95%;animation-delay:-.2s} .vu i:nth-child(6){height:70%;animation-delay:-.6s}
.vu i:nth-child(7){height:100%;animation-delay:-.4s} .vu i:nth-child(8){height:60%;animation-delay:-.9s}
.vu i:nth-child(9){height:88%;animation-delay:-.15s} .vu i:nth-child(10){height:50%;animation-delay:-.7s}
.vu i:nth-child(11){height:75%;animation-delay:-.35s} .vu i:nth-child(12){height:40%;animation-delay:-.55s}
.vu i:nth-child(13){height:65%;animation-delay:-.25s} .vu i:nth-child(14){height:35%;animation-delay:-.85s}
@keyframes vu { 50% { transform: scaleY(.45); } }

.wiggle { width: 88px; height: 88px; animation: wiggle 1.6s ease-in-out infinite; }
@keyframes wiggle { 0%,60%,100% { transform: rotate(0); } 10% { transform: rotate(-14deg); } 20% { transform: rotate(12deg); } 30% { transform: rotate(-10deg); } 40% { transform: rotate(8deg); } 50% { transform: rotate(-4deg); } }

.levels { gap: 10px; align-items: flex-end; }
.levels i { width: 34px; border-radius: 10px; background: #E4DED7; }
.levels i:nth-child(1) { height: 28px; background: #FFD2BA; }
.levels i:nth-child(2) { height: 50px; background: #FFA778; }
.levels i:nth-child(3) { height: 72px; background: #FF7A33; }
.levels i:nth-child(4) { height: 94px; background: var(--accent); }

.dial { position: relative; display: grid; place-items: center; width: 100px; height: 100px; }
.dial svg { position: absolute; inset: 10px; width: 80px; height: 80px; transform: rotate(-90deg); }
.dial__track { fill: none; stroke: #E4DED7; stroke-width: 7; }
.dial__fill { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 214; stroke-dashoffset: 60; animation: dial 6s linear infinite; }
@keyframes dial { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 214; } }
.dial b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }

.scan { position: relative; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.scan img { width: 62px; height: 62px; }
.scan::after { content: ''; position: absolute; inset: 10px; border: 2px dashed rgba(255,76,0,.6); border-radius: 18px; animation: scanFrame 2.4s var(--ease) infinite; }
@keyframes scanFrame { 0%,100% { transform: scale(.9); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }

.habits { gap: 10px; }
.habits span {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-sm); font-size: 26px;
  animation: bob 5s ease-in-out infinite;
}
.habits span:nth-child(2) { animation-delay: -1.2s; transform: translateY(-14px); }
.habits span:nth-child(3) { animation-delay: -2.4s; }
.habits span:nth-child(4) { animation-delay: -3.6s; }

.moon {
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #FFE9C9 45%, #F7C77E 100%);
  box-shadow: 0 0 60px 10px rgba(255,214,150,.25);
  -webkit-mask: radial-gradient(circle at 70% 30%, transparent 34%, #000 35%);
  mask: radial-gradient(circle at 70% 30%, transparent 34%, #000 35%);
}

/* ===== Spotlight panels ===== */
.panel {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px;
  padding: 72px 72px; border-radius: var(--radius-xl); overflow: hidden; position: relative;
}
.panel--warm { background: radial-gradient(80% 90% at 100% 0%, #FFE0CB 0%, rgba(255,224,203,0) 60%), var(--bg-warm); }
.panel--night {
  grid-template-columns: 1fr 1.05fr;
  color: #F3F3F3;
  background:
    radial-gradient(70% 80% at 0% 100%, rgba(91,141,239,.22) 0%, rgba(91,141,239,0) 60%),
    radial-gradient(60% 60% at 100% 0%, rgba(138,176,255,.12) 0%, rgba(138,176,255,0) 60%),
    linear-gradient(160deg, var(--night-2), var(--night));
}
.panel__title { font-size: clamp(32px, 3.8vw, 50px); margin-top: 20px; }
.panel__sub { margin-top: 18px; font-size: 17px; color: var(--ink-2); line-height: 1.7; }
.panel--night .panel__sub { color: rgba(243,243,243,.72); }
.panel .btn { margin-top: 32px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }
.pill--accent { background: #fff; color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.pill--sleep { background: rgba(91,141,239,.14); color: var(--sleep-2); border: 1px solid rgba(91,141,239,.3); }
.grad-text--sleep { background: linear-gradient(100deg, var(--sleep) 0%, var(--sleep-2) 55%, #d7e4ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.checks { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks__ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 19px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.panel--night .checks__ic { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.checks strong { display: block; font-size: 16px; font-weight: 600; }
.checks span:not(.checks__ic) { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin-top: 2px; }
.panel--night .checks span:not(.checks__ic) { color: rgba(243,243,243,.62); }

.panel__visual { position: relative; display: grid; place-items: center; min-height: 540px; }
.camcard {
  width: 300px; padding: 18px 18px 22px; border-radius: 40px; text-align: center;
  background: linear-gradient(180deg, #1b1920, var(--night)); color: #F3F3F3;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.06);
}
.camcard__view {
  position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #3a3330 0%, #1d1a1c 70%);
  margin-bottom: 18px;
}
.camcard__view img { width: 104px; height: 104px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.camcard__frame { position: absolute; inset: 18%; border: 2px solid rgba(255,122,51,.9); border-radius: 18px; animation: scanFrame 2.4s var(--ease) infinite; }
.camcard__beam {
  /* a fixed track; the line moves by background-position (paint only — moving
     the element with top: was reported as a layout shift on every frame) */
  position: absolute; left: 18%; right: 18%; top: calc(18% - 8px); bottom: calc(18% - 8px);
  background:
    linear-gradient(90deg, transparent, #FF9A4D, transparent) center top / 100% 2px no-repeat,
    radial-gradient(50% 50% at 50% 50%, rgba(255,122,51,.55), rgba(255,122,51,0)) center top / 100% 18px no-repeat;
  animation: beam 2.4s ease-in-out infinite;
}
@keyframes beam {
  0%, 100% { background-position: center 8px, center 0; }
  50% { background-position: center calc(100% - 8px), center 100%; }
}
.camcard__pill {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: rgba(255,76,0,.95); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 12px; border-radius: 100px; white-space: nowrap;
}
.camcard__caption { font-size: 14px; font-weight: 500; color: rgba(243,243,243,.7); }

.float-chip {
  position: absolute; z-index: 2; white-space: nowrap;
  padding: 10px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  background: #fff; color: var(--ink); box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.float-chip--1 { top: 2%; inset-inline-end: 4%; }
.float-chip--2 { bottom: 2%; inset-inline-start: 4%; animation-delay: -2.5s; }
.float-chip--night-1, .float-chip--night-2 {
  background: rgba(255,255,255,.08); color: #F3F3F3; border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
.float-chip--night-1 { top: 2%; inset-inline-start: 4%; }
.float-chip--night-2 { bottom: 2%; inset-inline-end: 4%; animation-delay: -2.5s; }

.sleep-card {
  width: 310px; padding: 26px 26px 22px; border-radius: 32px; text-align: center;
  background: radial-gradient(130% 90% at 50% 0%, rgba(91,141,239,.22), transparent 62%), linear-gradient(180deg, #161b2b, #0f1320);
  border: 1px solid rgba(91,141,239,.25); box-shadow: 0 50px 100px -40px rgba(91,141,239,.5);
}
.sleep-card__top { display: flex; justify-content: space-between; align-items: center; }
.sleep-card__label { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--sleep-2); }
.sleep-ring { position: relative; width: 120px; height: 120px; margin: 8px auto 16px; }
.sleep-ring svg { transform: rotate(-90deg); }
.sleep-ring__track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 9; }
.sleep-ring__fill { fill: none; stroke: var(--sleep); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 46; filter: drop-shadow(0 0 6px rgba(91,141,239,.6)); }
.js .reveal .sleep-ring__fill { stroke-dashoffset: 327; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.js .reveal.in .sleep-ring__fill { stroke-dashoffset: 46; }
.sleep-ring__center { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.sleep-ring__num { font-size: 34px; font-weight: 800; line-height: 1; color: #fff; }
.sleep-ring__unit { font-size: 11px; color: rgba(243,243,243,.6); font-weight: 500; }
.sleep-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.sleep-stat { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 10px 8px; }
.sleep-stat__val { display: block; font-size: 18px; font-weight: 700; color: #fff; direction: ltr; }
.sleep-stat__val small { font-size: 12px; font-weight: 600; color: rgba(243,243,243,.55); }
.sleep-stat__key { font-size: 11px; color: rgba(243,243,243,.6); }
.hypno { display: flex; align-items: flex-end; gap: 4px; height: 46px; padding: 8px 4px 0; margin-bottom: 10px; }
.hypno span { flex: 1; border-radius: 3px; min-height: 6px; background: linear-gradient(180deg, var(--sleep-2), var(--sleep)); opacity: .85; }
.hypno span:nth-child(odd) { opacity: .5; }
.sleep-card__foot { font-size: 11px; color: rgba(243,243,243,.45); }

/* ===== Missions ===== */
.missions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mission {
  position: relative; background: #fff; border-radius: 24px; padding: 30px 24px 28px;
  border: 1px solid rgba(17,17,20,.04); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.mission:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mission img { width: 60px; height: 60px; margin-bottom: 20px; transition: transform .45s var(--ease); }
.mission:hover img { transform: scale(1.08) rotate(-4deg); }
.mission h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.mission p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.mission--featured { background: linear-gradient(180deg, #FFF4EC, #fff 60%); border-color: rgba(255,76,0,.18); }
.mission__tag {
  position: absolute; top: 22px; inset-inline-end: 22px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  padding: 4px 10px; border-radius: 100px;
}

/* ===== Screenshots =====
   A gallery that sits exactly inside the content width: whole screenshots only
   (4 per view on desktop, 3 on tablets, 2 on phones), snap scrolling, arrows + dots. */
.shots { position: relative; margin-top: 8px; }
.shots__rail {
  --per: 4; --gap: 20px;
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px 0 30px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.shots__rail::-webkit-scrollbar { display: none; }
.shots__rail:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.shots__rail img {
  display: block; width: 100%; height: auto; aspect-ratio: 600 / 1299; object-fit: cover;
  border-radius: clamp(16px, 2.4vw, 28px); scroll-snap-align: start;
  box-shadow: 0 22px 40px -26px rgba(17,17,20,.5), 0 0 0 1px rgba(17,17,20,.06);
  transition: transform .5s var(--ease);
}
.shots__rail img:hover { transform: translateY(-6px); }
.shots__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.shots__nav[hidden] { display: none; }
.shots__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, opacity .2s, border-color .2s;
}
.shots__btn:hover:not(:disabled) { border-color: #DCD6CF; color: var(--accent-ink); }
.shots__btn:disabled { opacity: .35; cursor: default; }
[dir="rtl"] .shots__btn svg { transform: scaleX(-1); }
.shots__dots { display: flex; gap: 8px; }
.shots__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #D9D5D0; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.shots__dot.on { width: 24px; background: var(--accent); }
@media (max-width: 960px) { .shots__rail { --per: 3; --gap: 16px; } }
@media (max-width: 600px) { .shots__rail { --per: 2; --gap: 14px; } }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.step__num {
  display: block; font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,76,0,.55); margin-bottom: 22px;
}
.step h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* ===== Reviews ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  display: flex; flex-direction: column; gap: 18px; padding: 32px;
  background: var(--card); border-radius: var(--radius-lg);
}
.review__stars { color: #FFB020; letter-spacing: 2px; }
.review blockquote { font-size: 16.5px; line-height: 1.65; color: var(--ink); flex: 1; }
/* reviews are quoted in their original language: let each paragraph pick its own direction, so an
   English or Turkish quote on the Arabic page keeps its quotes and full stop at the right ends */
.review blockquote, .review figcaption > span:last-child { unicode-bidi: plaintext; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.review__avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, #FFB37A, var(--accent)); color: #fff; font-weight: 700; font-size: 15px;
}
.reviews__badge {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; margin: 40px auto 0;
  padding: 10px 20px; border-radius: 100px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px;
}

/* ===== Pricing ===== */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); padding: 38px 34px; border: 1px solid var(--line);
}
.plan__name { font-size: 15px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; }
.plan__price { margin: 10px 0 26px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.plan__price b { font-weight: 800; }
.plan__price span { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.plan__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }
.plan__list li { position: relative; padding-inline-start: 30px; font-size: 15px; color: var(--ink-2); }
.plan__list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF4C00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan__list strong { color: var(--ink); font-weight: 600; }
.plan--pro { background: linear-gradient(170deg, #1e1b26 0%, var(--night) 70%); color: #F3F3F3; border-color: transparent; box-shadow: var(--shadow-lg); }
.plan--pro .plan__name { color: var(--accent-2); }
.plan--pro .plan__price span, .plan--pro .plan__list li { color: rgba(243,243,243,.72); }
.plan--pro .plan__list strong { color: #fff; }
.plan--pro .plan__list li::before { background-color: rgba(255,76,0,.18); }
.plan__tag {
  position: absolute; top: 24px; inset-inline-end: 24px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px; padding: 5px 12px; border-radius: 100px;
}

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--card); border-radius: 22px; transition: background .3s; }
.faq__item[open] { background: var(--bg-warm); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 22px 64px 22px 22px; font-size: 17px; font-weight: 600; line-height: 1.4;
}
[dir="rtl"] .faq__item summary { padding: 22px 22px 22px 64px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: 'Q'; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--accent-ink); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm);
}
.faq__item summary::after {
  content: ''; position: absolute; inset-inline-end: 24px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111114' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .35s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 24px 70px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
[dir="rtl"] .faq__item p { padding: 0 70px 24px 24px; }

/* ===== CTA ===== */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 88px 32px; border-radius: var(--radius-xl); color: #fff;
  background: linear-gradient(150deg, #FF8A3D 0%, var(--accent) 45%, #D93A00 100%);
  display: flex; flex-direction: column; align-items: center;
}
.cta__glow {
  position: absolute; inset: auto -10% -60% -10%; height: 120%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,214,170,.55), rgba(255,214,170,0));
}
.cta__logo { width: 92px; height: 92px; padding: 14px; border-radius: 26px; background: #fff; box-shadow: 0 24px 50px -16px rgba(90,20,0,.6); margin-bottom: 28px; }
.cta h2 { font-size: clamp(32px, 4.6vw, 58px); max-width: 16ch; }
.cta .grad-text { background: none; -webkit-text-fill-color: #FFE1CF; color: #FFE1CF; }
.cta p { margin: 16px 0 34px; font-size: 18px; color: rgba(255,255,255,.88); max-width: 540px; }

/* ===== Footer ===== */
.footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--bg-soft); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.4px; }
.footer__logo img { width: 34px; height: 34px; border-radius: 9px; }
.footer__tagline { margin: 14px 0 22px; color: var(--ink-3); font-size: 14.5px; max-width: 32ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__head { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.footer__col a { font-size: 14.5px; color: var(--ink-2); transition: color .2s; width: fit-content; }
.footer__col a:hover { color: var(--accent-ink); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__copy { font-size: 13px; color: var(--ink-3); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hs .hero .hero__tiles { --k: .78; }
  .panel { padding: 56px 44px; gap: 36px; }
  .bcard--wide { grid-column: span 12; }
  .bcard--accent { grid-column: span 12; min-height: 280px; }
  .bcard { grid-column: span 6; }
  .missions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links {
    position: absolute; top: calc(var(--nav-h) - 6px); left: 16px; right: 16px; margin: 0;
    flex-direction: column; gap: 2px; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .3s var(--ease), visibility .2s;
  }
  .nav__links.show { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 14px; font-size: 16px; }
  .nav__burger { display: block; }
  .nav.menu-open, .nav:has(.nav__links.show) { background: rgba(255,255,255,.95); }
  .panel, .panel--night { grid-template-columns: 1fr; }
  .panel--night .panel__visual { order: 2; }
  .panel__visual { min-height: 400px; }
  .steps, .reviews { grid-template-columns: 1fr; }
  .plans { grid-template-columns: minmax(0, 480px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav__cta { display: none; }
  .hero__pin { padding-inline: 8px; }
  .hero__card { border-radius: 28px; padding-inline: 16px; }
  .announce { font-size: 12.5px; }
  .hs .hero .hero__tiles { --k: .56; }
  .hs .hero .tile--lg { --k: .42; }
  .hero__proof { flex-wrap: wrap; justify-content: center; text-align: center; row-gap: 2px; }
  .tile__in { width: 58px; height: 58px; border-radius: 17px; }
  .tile__in img { width: 34px; height: 34px; }
  .tile--lg .tile__in { width: 64px; height: 64px; border-radius: 19px; }
  .tile--lg .tile__in img { width: 40px; height: 40px; }
  .popcard { left: -22px; right: -22px; }
  .hero__chip { left: 50%; top: 560px; translate: -50% 0; font-size: 12px; }
  .stats { margin-top: 20px; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); row-gap: 26px; padding: 26px 8px; }
  .stat:nth-child(3)::before { display: none; }
  .section { padding: 84px 0; }
  .section--tight { padding: 24px 0; }
  .container { padding: 0 16px; }
  .bcard, .bcard--wide, .bcard--accent { grid-column: span 12; min-height: 0; padding: 28px; }
  .mgrid { grid-template-columns: repeat(2, 1fr); }
  .panel, .panel--night { padding: 40px 24px; border-radius: 30px; }
  .panel__visual { min-height: 0; padding: 58px 0; }
  .float-chip { font-size: 12px; padding: 8px 12px; }
  .float-chip--1, .float-chip--night-1 { top: 0; }
  .float-chip--2, .float-chip--night-2 { bottom: 0; }
  .camcard, .sleep-card { width: min(300px, 100%); }
  .missions { grid-template-columns: 1fr; }
  .mission { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 22px; }
  .mission img { grid-row: span 2; width: 52px; height: 52px; margin: 0; }
  .mission__tag { top: 14px; }
  .faq__item summary { font-size: 15.5px; padding: 18px 52px 18px 16px; gap: 12px; }
  [dir="rtl"] .faq__item summary { padding: 18px 16px 18px 52px; }
  .faq__item summary::after { inset-inline-end: 16px; }
  .faq__item p { padding: 0 18px 20px 18px; }
  [dir="rtl"] .faq__item p { padding: 0 18px 20px 18px; }
  .cta { padding: 64px 22px; border-radius: 30px; }
  .footer { padding-top: 56px; }
  .footer__grid { gap: 32px 20px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .intro { opacity: 1; transform: none; }
  .js .statement__title .w { opacity: 1; }
}

/* ===== Desktop "Download" QR modal (script.js storeQr) — same block in home.css and styles.css ===== */
.qr-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.qr-modal.is-open { visibility: visible; pointer-events: auto; }
.qr-modal__backdrop { position: absolute; inset: 0; background: rgba(17,17,20,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.qr-modal.is-open .qr-modal__backdrop { opacity: 1; }
.qr-modal__card {
  position: relative; width: min(400px, 100%); padding: 40px 34px 30px; border-radius: 32px; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, #FFF0E4 0%, #fff 60%); box-shadow: 0 40px 100px -30px rgba(17,17,20,.5);
  opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.qr-modal.is-open .qr-modal__card { opacity: 1; transform: none; }
.qr-modal__x {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(17,17,20,.05); color: var(--ink); transition: background .2s;
}
.qr-modal__x:hover { background: rgba(17,17,20,.1); }
.qr-modal__title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: var(--ink); padding: 0 24px; }
.qr-modal__sub { margin: 10px auto 24px; max-width: 30ch; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.qr-modal__code {
  position: relative; display: inline-block; padding: 14px; border-radius: 26px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -20px rgba(60,25,5,.35);
}
.qr-modal__code > img { display: block; width: 220px; height: 220px; }
.qr-modal__logo {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgba(17,17,20,.12);
}
.qr-modal__logo img { width: 40px; height: 40px; }
.qr-modal__link { display: inline-block; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.qr-modal__link:hover { text-decoration: underline; }
html.qr-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .qr-modal__card, .qr-modal__backdrop { transition: none; } }

/* ===================================================================
   MathWake identity layer (2026-11-20)
   The first light redesign read as a copy of alar.my (peach sunrise
   cards, pill buttons, very round corners). This layer gives the site
   MathWake's own look: the app's night background (#0D0D12) with an
   orange dawn, graph-paper texture, math marks, monospace labels and
   tighter corners. Structure and scroll behaviour are unchanged.
=================================================================== */
:root {
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius:    14px;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --grid-light: linear-gradient(rgba(17,17,20,.05) 1px, transparent 1px) 0 0 / 28px 28px,
                linear-gradient(90deg, rgba(17,17,20,.05) 1px, transparent 1px) 0 0 / 28px 28px;
  --grid-dark:  linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 32px 32px,
                linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 32px 32px;
}
.btn { border-radius: 12px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: .1em;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }

/* hero: night sky + orange dawn on graph paper */
.hero__card { border-radius: 26px; background: var(--night); color: #F3F3F3; }
.hero__sky {
  background:
    radial-gradient(62% 55% at 50% 110%, rgba(255,76,0,.62) 0%, rgba(255,76,0,0) 70%),
    radial-gradient(35% 35% at 50% 100%, rgba(255,160,90,.35) 0%, rgba(255,160,90,0) 70%),
    linear-gradient(180deg, #0D0D12 0%, #110E15 55%, #1F120E 100%);
}
.hero__sky::after {
  content: ''; position: absolute; inset: 0; background: var(--grid-dark);
  -webkit-mask-image: radial-gradient(85% 75% at 50% 35%, #000 25%, transparent 85%);
          mask-image: radial-gradient(85% 75% at 50% 35%, #000 25%, transparent 85%);
}
.hero__sun { background: radial-gradient(circle, rgba(255,110,30,.5) 0%, rgba(255,90,20,.16) 38%, rgba(255,90,20,0) 66%); }
.hero__card::before, .hero__card::after {
  position: absolute; z-index: 0; pointer-events: none;
  font: 600 clamp(18px, 1.8vw, 26px)/1 var(--mono); color: rgba(255,255,255,.13); white-space: nowrap; direction: ltr;
}
.hero__card::before { content: '7 × 8 = ?'; top: 64%; left: 8%; transform: rotate(-7deg); }
.hero__card::after  { content: '√144 = 12'; top: 74%; right: 8%; transform: rotate(6deg); }
@media (max-width: 900px) { .hero__card::before, .hero__card::after { display: none; } }
.hero__title { color: #fff; }
.hero__sub { color: rgba(243,243,243,.74); }
.hero__sub strong { color: #fff; }
.announce { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(243,243,243,.84); box-shadow: none; border-radius: 12px; }
.announce:hover { border-color: rgba(255,122,51,.5); }
.announce__tag { border-radius: 7px; font-family: var(--mono); }
.announce__arrow { color: var(--accent-2); }
.hero .btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); box-shadow: none; }
.hero .btn--ghost:hover { border-color: rgba(255,255,255,.4); }
.hero__proof { color: rgba(243,243,243,.68); }
.tile__in {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); border-radius: 18px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tile--lg .tile__in { border-radius: 22px; }
.popcard { box-shadow: 0 30px 60px -24px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.2); border-radius: 18px; }
.hero__chip { border-radius: 12px; }
.hero__mouse { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.hero__mouse i { background: rgba(255,255,255,.75); }

/* stats: a dark "scoreboard" band */
.stats__inner {
  background: var(--grid-dark), var(--night); border-color: transparent; border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(13,13,18,.6);
}
.stat strong { color: #fff; }
.stat strong::after { content: ''; display: block; width: 18px; height: 3px; margin: 8px auto 6px; border-radius: 2px; background: var(--accent); }
.stat span { color: rgba(243,243,243,.68); }
.stat + .stat::before { background: rgba(255,255,255,.1); }

/* graph paper instead of flat beige */
.section--soft { background: var(--grid-light), var(--bg-soft); }
.bcard { border: 1px solid var(--line); }
.bcard__kicker { border-radius: 10px; }
.panel--warm { background: var(--grid-light), #FFF8F3; border: 1px solid var(--line); }
.faq__item { border-radius: 14px; }

/* closing CTA: night + dawn, like the hero */
.cta {
  background:
    radial-gradient(70% 70% at 50% 115%, rgba(255,76,0,.6) 0%, rgba(255,76,0,0) 70%),
    var(--grid-dark), var(--night);
}
.cta__glow { background: radial-gradient(closest-side, rgba(255,140,70,.22), rgba(255,140,70,0)); }
.cta__logo { border-radius: 20px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.7); }
.cta .grad-text {
  background: linear-gradient(100deg, #FF6A1F 0%, #FF9A4D 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent-2);
}
.cta p { color: rgba(243,243,243,.78); }
/* bento: white "paper" cards; the accent card becomes the night/dawn card */
.bcard { background: #fff; }
.bcard--accent {
  background: radial-gradient(90% 80% at 50% 120%, rgba(255,76,0,.6) 0%, rgba(255,76,0,0) 70%), var(--grid-dark), var(--night);
}
.bcard--accent .vu i { background: linear-gradient(180deg, #FF9A4D, var(--accent)); }
.bcard--accent .bcard__kicker { background: rgba(255,255,255,.08); }
/* the "dark theme" card must stay dark: the white-paper rule above would otherwise paint it white under its white text */
.bcard--dark { background: radial-gradient(90% 80% at 80% 0%, rgba(155,107,255,.28) 0%, rgba(155,107,255,0) 70%), var(--grid-dark), var(--night); border-color: transparent; }
.mgrid__item { border-radius: 12px; border: 1px solid var(--line); box-shadow: none; }

/* ===== Guides (homepage → blog) ===== */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.guide:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #DCD6CF; }
.guide__cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--card); }
.guide__cover img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.guide:hover .guide__cover img { scale: 1.04; }
.guide__cover--calc {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff;
  background: radial-gradient(80% 90% at 50% 120%, rgba(255,76,0,.6) 0%, rgba(255,76,0,0) 70%), var(--grid-dark), var(--night);
  font: 700 34px/1 var(--mono); letter-spacing: -.02em;
}
.guide__cover--calc small { font: 500 14px/1 var(--mono); color: rgba(243,243,243,.7); }
.guide__body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.guide__kicker { font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.guide__title { font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; padding-inline-end: 26px; }
.guide__desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.guide__arrow { position: absolute; inset-inline-end: 18px; top: 15px; color: var(--ink-3); transition: translate .3s var(--ease), color .3s; }
.guide:hover .guide__arrow { translate: 3px 0; color: var(--accent-ink); }
[dir="rtl"] .guide__arrow { transform: scaleX(-1); }
[dir="rtl"] .guide:hover .guide__arrow { translate: -3px 0; }
.guides__more { display: flex; justify-content: center; margin-top: 34px; }
@media (max-width: 960px) { .guides { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .guides { grid-template-columns: 1fr; } }

/* ===== Try-it demo ===== */
.demo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; max-width: 980px; margin: 0 auto; }
.demo__alarm {
  position: relative; overflow: hidden; isolation: isolate; color: #F3F3F3; text-align: center;
  padding: 34px 30px 26px; border-radius: 22px;
  background: radial-gradient(80% 60% at 50% 115%, rgba(255,76,0,.55) 0%, rgba(255,76,0,0) 70%), var(--grid-dark), var(--night);
  box-shadow: 0 40px 80px -40px rgba(13,13,18,.8);
}
.demo__ring { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.demo__bell {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,76,0,.16); color: var(--accent-2); box-shadow: 0 0 0 0 rgba(255,76,0,.45);
  animation: demoPulse 1.6s ease-out infinite;
}
.demo__bell svg { animation: demoWobble .5s ease-in-out infinite alternate; }
@keyframes demoPulse { 0% { box-shadow: 0 0 0 0 rgba(255,76,0,.45); } 100% { box-shadow: 0 0 0 22px rgba(255,76,0,0); } }
@keyframes demoWobble { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.demo__label { font: 600 12px/1 var(--mono); letter-spacing: .3em; color: var(--accent-2); margin-top: 8px; }
.demo__clock { font-size: clamp(54px, 7vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; }
.demo__task { margin-top: 22px; }
.demo__step { font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(243,243,243,.6); }
.demo__q { margin: 12px 0 16px; font: 700 clamp(30px, 4vw, 40px)/1.1 var(--mono); letter-spacing: -.02em; direction: ltr; }
.demo__row { display: flex; gap: 10px; justify-content: center; }
.demo__input {
  width: 150px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font: 700 20px/1.2 var(--mono); text-align: center; direction: ltr;
}
.demo__input::placeholder { color: rgba(243,243,243,.4); font-size: 14px; font-family: 'Poppins', 'Poppins Fallback', system-ui, sans-serif; font-weight: 500; }
.demo__input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(255,122,51,.3); }
.demo__msg { min-height: 22px; margin-top: 10px; font-size: 14px; color: #FFB08A; }
.demo__dots { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.demo__dots i { width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); transition: background .3s; }
.demo__dots i.on { background: var(--accent); }
.demo__hint { margin-top: 16px; font-size: 13px; color: rgba(243,243,243,.55); }
.demo__done { margin-top: 26px; }
.demo__done-t { font-size: 22px; font-weight: 700; color: #fff; }
.demo__done-p { margin: 8px auto 18px; max-width: 34ch; font-size: 15px; color: rgba(243,243,243,.75); }
.demo__done .btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); box-shadow: none; }
.demo__alarm.is-off .demo__bell { animation: none; background: rgba(46,194,126,.16); color: #4ADE80; }
.demo__alarm.is-off .demo__bell svg { animation: none; }
.demo__alarm.is-off .demo__label, .demo__alarm.is-off .demo__hint { visibility: hidden; }
.demo__alarm.shake { animation: demoShake .4s; }
@keyframes demoShake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.demo__video { margin: 0; justify-self: center; width: min(280px, 100%); padding: 10px; border-radius: 40px; background: #111114; box-shadow: var(--shadow-lg); }
.demo__video video { display: block; width: 100%; height: auto; border-radius: 30px; background: #0D0D12; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .demo__bell, .demo__bell svg, .demo__alarm.shake { animation: none; } }

/* Scripts Poppins does not cover: use each platform's own high-quality font
   instead of whatever the browser falls back to (no extra downloads). */
:lang(ja) body { font-family: 'Poppins', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, 'Poppins Fallback', sans-serif; }
:lang(ko) body { font-family: 'Poppins', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Poppins Fallback', sans-serif; }
:lang(zh) body { font-family: 'Poppins', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', 'Poppins Fallback', sans-serif; }
:lang(zh-hant) body { font-family: 'Poppins', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', 'Poppins Fallback', sans-serif; }
:lang(ar) body { font-family: 'Poppins', 'SF Arabic', 'Geeza Pro', 'Noto Sans Arabic', 'Segoe UI', Tahoma, 'Poppins Fallback', sans-serif; }

/* ===== Phone polish (2026-11-20 mobile review) ===== */
@media (max-width: 640px) {
  /* long words (German "auszuschalten,") broke out of the hero card */
  .hero__title { font-size: clamp(30px, 9.4vw, 40px); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .hero__sub { font-size: 15.5px; line-height: 1.6; }
  /* badge + secondary button on one row, so the phone below never covers them */
  .hero__cta { gap: 10px; flex-wrap: wrap; }
  .hero__cta .appstore-badge__img { height: 46px; }
  .hero__cta .btn--ghost { padding: 12px 14px; font-size: 14px; }
  .section__head h2, .statement__title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

  /* guides: compact rows (thumbnail + title) instead of six full-width cards */
  .guides { gap: 12px; }
  .guide { flex-direction: row; align-items: stretch; }
  .guide__cover { flex: 0 0 112px; aspect-ratio: auto; min-height: 92px; }
  .guide__cover--calc { font-size: 20px; gap: 2px; }
  .guide__cover--calc small { font-size: 10.5px; }
  .guide__body { padding: 14px 40px 14px 14px; gap: 6px; justify-content: center; }
  [dir="rtl"] .guide__body { padding: 14px 14px 14px 40px; }
  .guide__title { font-size: 15.5px; padding-inline-end: 0; }
  .guide__desc { display: none; }
  .guide__arrow { top: 50%; margin-top: -9px; inset-inline-end: 14px; }

  /* gallery dots: 8 px dots with a 28 px hit area */
  .shots__dots { gap: 2px; }
  .shots__dot { width: 28px; height: 28px; background: transparent; position: relative; }
  .shots__dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 4px; background: #D9D5D0; transition: width .3s var(--ease), margin .3s var(--ease), background .3s; }
  .shots__dot.on { width: 28px; background: transparent; }
  .shots__dot.on::before { width: 22px; margin-left: -11px; background: var(--accent); }
}

/* Japanese has no spaces: break headings only at the <wbr> phrase marks (Safari),
   or at phrase boundaries where the browser can find them itself (Chrome) */
:lang(ja) .hero__title { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }

/* mission cards that have their own page: the whole card is the link */
.mission { position: relative; }
.mission__link { color: inherit; }
.mission__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.mission:has(.mission__link):hover h3 { color: var(--accent-ink); }

/* ===== Phone adaptation (2026-11-22) ===== */
.nav__menu-cta { display: none; }
@media (max-width: 640px) {
  /* the header's Download button is hidden on phones; the open menu carries a copy */
  .nav__links a.nav__menu-cta {
    display: flex; justify-content: center; margin-top: 6px; padding: 13px 14px;
    border-radius: 14px; background: var(--accent); color: #fff; font-weight: 600;
  }
  .nav__links a.nav__menu-cta:hover { background: var(--accent); color: #fff; filter: brightness(1.05); }
}
@media (max-width: 900px) {
  /* tablets: the chip sat 230 px right of the phone and ran off the screen; centre it under the phone as on phones */
  .hero__chip { left: 50%; top: 560px; translate: -50% 0; font-size: 12px; }
}
@media (max-width: 900px) {
  /* "How it works": number beside the text instead of a 64 px outline numeral above it */
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; padding: 22px 20px; }
  .step__num { grid-row: span 2; font-size: 40px; margin: 2px 0 0; }
  .step h3 { font-size: 18px; }
  .step p { margin-top: 4px; font-size: 15px; }
  .steps { gap: 12px; }
}
