/* Dreamie — Apple-like product page. Full-bleed sections, centred headlines, one warm accent taken from the light ring. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/inter-latin.woff2') format('woff2'); }
:root {
  --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b;
  --white: #ffffff; --grey: #f5f5f7; --night: #000000; --night-ink: #f5f5f7; --night-2: #86868b;
  --accent: #f56300;          /* warm light accent */
  --rule: #d2d2d7;
  --radius: 28px;
  --wide: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* sections */
section { padding: 120px max(22px, env(safe-area-inset-right)) 120px max(22px, env(safe-area-inset-left)); }
.dark { background: var(--night); color: var(--night-ink); }
.light-bg { background: var(--white); }
.grey-bg { background: var(--grey); }
.head { max-width: 980px; margin: 0 auto 64px; text-align: center; }
.kicker { margin: 0 0 14px; font-size: 21px; font-weight: 600; color: var(--accent); letter-spacing: .005em; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 80px); }
h2 { font-size: clamp(34px, 5vw, 60px); }
.tail { color: var(--ink-3); }
.dark .tail { color: var(--night-2); }

/* 1 hero */
.hero { padding-top: 84px; padding-bottom: 0; overflow: hidden; background: #070707; }
.hero .head { max-width: 1240px; }
.hero h1 .tail { display: block; }
.hero .head { margin-bottom: 8px; }
.hero-media { max-width: 1440px; margin: 0 auto; aspect-ratio: 2.1 / 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
@media (max-width: 640px) { .hero-media { aspect-ratio: 1 / 1; margin: 0 -22px; max-width: none; } .hero-media video { object-position: 50% 55%; } }

/* 2 bento */
.bento { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #111; min-height: 0; }
.allinone { background: var(--grey); }
.lightsec { background: var(--white); }
.privacy { background: var(--grey); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.03); }
.t-sound { grid-row: span 2; background: #f3f0ed; } .t-light { grid-column: span 2; aspect-ratio: 2 / 1; }
.t-alarm, .t-podcast { aspect-ratio: 1 / 1; }
.tile figcaption { position: absolute; left: 28px; right: 28px; bottom: 26px; color: #fff; z-index: 1; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.55)); }
.tile.on-light::after { display: none; }
.tile.on-light figcaption { color: var(--ink); top: 30px; bottom: auto; }
.tile strong { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.015em; }
.t-sound strong { font-size: 40px; }
.tile span { display: block; margin-top: 6px; font-size: 17px; line-height: 1.35; opacity: .85; max-width: 30ch; }
.tile.on-light span { color: var(--ink-2); opacity: 1; }
@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .t-sound { grid-column: auto; grid-row: auto; aspect-ratio: 0.82 / 1; }
  .t-sound img { object-position: 50% 100%; }
  .t-alarm, .t-podcast { aspect-ratio: 1 / 1; }
  .t-light { grid-column: auto; aspect-ratio: 1 / 1; }
  .tile figcaption { left: 22px; right: 22px; bottom: 22px; }
  .tile strong, .t-sound strong { font-size: 26px; }
  .tile.on-light figcaption { top: 26px; }
  .tile span { font-size: 16px; }
}

/* 3 routine */
.routine-media { max-width: var(--wide); margin: 0 auto; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.routine-media video { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 40px auto 0; padding: 0; max-width: var(--wide); display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps button { all: unset; cursor: pointer; display: block; width: 100%; }
.steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.steps i { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; margin-bottom: 18px; }
.steps b { display: block; height: 100%; width: 0; background: var(--accent); }
.steps em { display: block; font-style: normal; font-size: 14px; font-weight: 600; color: var(--night-2); letter-spacing: .02em; margin-bottom: 8px; }
.steps strong { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: var(--night-2); transition: color .3s; }
.steps span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--night-2); }
.steps li.on em { color: var(--accent); } .steps li.on strong { color: var(--night-ink); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; }
  .steps i { margin-bottom: 14px; }
  .steps strong { font-size: 20px; } .steps span { font-size: 16px; }
}

/* 4 light cards */
.cards { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* text sits under the photo, never on top of it */
.card { margin: 0; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #111; }
.card figcaption { padding: 24px 6px 0; color: var(--ink); }
.card strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; }
.card span { display: block; margin-top: 10px; font-size: 17px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; gap: 44px; }
  .card strong { font-size: 22px; } .card span { font-size: 16px; }
}

/* 5 privacy */
.privacy-media { max-width: var(--wide); margin: 0 auto; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 1; background: #e8e6e4; }
.privacy-media img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; margin: 56px auto 0; padding: 0; max-width: var(--wide); display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.facts svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.facts strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.facts span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.note { max-width: var(--wide); margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr; gap: 26px; margin-top: 40px; }
  .facts li { display: grid; grid-template-columns: 36px 1fr; column-gap: 18px; }
  .facts svg { grid-row: span 2; margin: 0; }
  .facts span { font-size: 16px; }
  .privacy-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  section { padding-top: 76px; padding-bottom: 76px; }
  .hero { padding-top: 56px; padding-bottom: 0; }
  .head { margin-bottom: 40px; }
  .kicker { font-size: 17px; }
}

/* gentle reveal; content stays visible without JS */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* bedside-light tile: caption in the dark top area, away from the glowing ring */
.t-light figcaption { top: 28px; bottom: auto; }
.t-light::after { background: linear-gradient(0deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); }
@media (max-width: 820px) { .t-light figcaption { top: 22px; } }
