/* Wakin site. One stylesheet for every page. */

:root {
  --ink: #0F172A;
  --muted: #64748B;
  --soft: #94A3B8;
  --brown: #7C5A3A;
  --blue: #3B82F6;
  --blue-dark: #1D4ED8;
  --orange: #C2410C;
  --cream: #FFF7EC;
  --grey: #F7F8FB;
  --line: #EAECF0;
  --navy: #0F172A;
  --warm: linear-gradient(180deg, #FFF8EC 0%, #FFE8CC 55%, #FFD3AE 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.container { width: min(1280px, 100% - 48px); margin: 0 auto; }

/* ---------- Header ---------- */

/* The header stays on top. It is clear over the hero and gets a frosted backdrop once you scroll. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.hero, .page-hero, .about-hero, .doc-head { padding-top: 84px; }
section[id] { scroll-margin-top: 84px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 24%; }
footer .logo img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.logo span { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }

.links {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #FFFFFF;
}
.links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.links a:hover { color: var(--ink); }
.links a.active {
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.badge img { height: 54px; width: auto; transition: transform 0.2s; }
.nav .badge img, footer .badge img { height: 40px; }
.badge:hover img { transform: translateY(-2px); }

.menu-button { display: none; }

/* ---------- Common bits ---------- */

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FFF3E4;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
}

.sub { font-size: 20px; line-height: 1.5; color: var(--muted); }

.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.section { padding: 112px 0; }

.phone {
  width: 280px;
  aspect-ratio: 280 / 588;
  padding: 8px;
  border-radius: 46px;
  background: #111114;
  box-shadow: 0 24px 60px rgba(122, 62, 0, 0.15);
  position: relative;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
/* Dynamic Island at real iPhone proportions (126x37pt on a 393pt screen), so it scales with the phone. */
.phone::after {
  content: '';
  position: absolute;
  top: 2.6%;
  left: 50%;
  width: 30%;
  aspect-ratio: 126 / 37;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000000;
}

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

.hero { background: var(--warm); overflow: hidden; }

.hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 760px;
  padding-bottom: 48px;
}

.hero-copy { max-width: 640px; display: grid; gap: 28px; justify-items: start; }

.hero h1 { font-size: 66px; font-weight: 900; line-height: 1.02; letter-spacing: -1.5px; }
.hero .sub { max-width: 520px; color: #475569; }

.hero-visual { position: relative; width: 620px; height: 680px; flex: none; }
.hero-visual .phone { position: absolute; }
.hero-visual .back { left: 330px; top: 0; transform: rotate(6deg); }
.hero-visual .front { left: 90px; top: 36px; transform: rotate(-4deg); }

.hero-sunny {
  position: absolute;
  right: -10px;
  bottom: 20px;
  width: 190px;
  transform-origin: 50% 90%;
  cursor: pointer;
}
.hero-sunny.sway { animation: sunny-sway 0.56s ease-in-out; }
.hero-sunny.hop { animation: sunny-hop 0.38s ease-out; }

/* Sunny's speech, like on the app's home screen: one line at a time, a sway when he speaks, a hop when tapped. */
.bubble {
  position: absolute;
  right: 150px;
  bottom: 200px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 22px;
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 90% 100%;
  transition: opacity 0.2s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bubble.on { opacity: 1; transform: none; }
.bubble::before, .bubble::after { content: ''; position: absolute; border-radius: 50%; background: var(--ink); }
.bubble::before { right: -10px; bottom: -12px; width: 14px; height: 14px; }
.bubble::after { right: -22px; bottom: -26px; width: 8px; height: 8px; }
.bubble b { font-size: 17px; font-weight: 900; }
.bubble span { font-size: 14px; font-weight: 600; color: #CBD5E1; }

@keyframes sunny-sway {
  25% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
  75% { transform: rotate(-2deg); }
}
@keyframes sunny-hop {
  45% { transform: translateY(-18px); }
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.step .media {
  position: relative;
  height: 560px;
  border-radius: 32px;
  background: linear-gradient(180deg, #FFF8EC, #FFE3C2);
  display: grid;
  place-items: center;
}
.step .phone { width: 240px; }
.step .num {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 900;
}
.step h3 { margin: 20px 8px 8px; font-size: 24px; font-weight: 900; }
.step p { margin: 0 8px; font-size: 17px; line-height: 1.5; color: var(--muted); }

/* ---------- Tasks showcase ---------- */

.tasks { background: var(--cream); }
.tasks .eyebrow { background: #FFFFFF; }

.chips { display: grid; gap: 12px; justify-items: center; margin: 48px 0; }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #F3E3CF;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s;
}
.chip:hover { transform: translateY(-2px); }
.chip img { width: 28px; height: 28px; }

.tray {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 40px 40px 32px;
  border-radius: 40px;
  background: #FFFFFF;
  box-shadow: 0 20px 60px rgba(122, 62, 0, 0.08);
}
.tray figure { margin: 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.tray .phone { width: 260px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1); transition: transform 0.3s; }
.tray figure:hover .phone { transform: translateY(-6px); }
.tray b { display: block; font-size: 16px; font-weight: 900; }
.tray figcaption span { font-size: 14px; color: var(--muted); }

/* ---------- Why (dark) ---------- */

.why { background: var(--navy); color: #FFFFFF; }
.why .container { display: flex; align-items: center; gap: 80px; }
.why .copy { flex: 1; display: grid; gap: 24px; justify-items: start; }
.why .eyebrow { background: rgba(255, 255, 255, 0.08); color: #FBBF24; }
.why p { font-size: 19px; line-height: 1.6; color: #CBD5E1; }

.compare { width: 560px; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
/* Four ordinary alarms switch off together, then the one Wakin alarm switches on, as in onboarding.
   The default is the end state; .js .compare:not(.shown) is the start, so it plays once on scroll. */
.alarms { display: grid; gap: 10px; padding: 16px; border-radius: 24px; align-content: start; }
.alarms h3 { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.ordinary { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); color: #E2E8F0; }
.wakin { background: #FFFFFF; color: var(--ink); align-self: stretch; grid-template-rows: auto auto 1fr; }
.alarm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  transition: opacity 0.35s, transform 0.35s;
}
.wakin .alarm { background: #EEF4FF; }
.alarm small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.alarm b { font-size: 26px; font-weight: 900; color: var(--muted); transition: color 0.3s; }
.wakin .alarm b { color: var(--ink); }
.switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex: none;
  border-radius: 13px;
  background: #475569;
  transition: background 0.25s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.25s;
}
.wakin .switch { background: var(--blue); }
.wakin .switch::after { transform: translateX(18px); }
.wakin-sunny { display: grid; justify-items: center; align-content: center; gap: 10px; padding: 8px; text-align: center; }
.wakin-sunny img { width: 120px; height: auto; }
.wakin-sunny p { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--muted); }

.js .compare:not(.shown) .alarm { opacity: 0; transform: translateY(12px); }
.js .compare:not(.shown) .ordinary .switch { background: #F0626E; }
.js .compare:not(.shown) .ordinary .switch::after { transform: translateX(18px); }
.js .compare:not(.shown) .ordinary .alarm b { color: #FFFFFF; }
.js .compare:not(.shown) .wakin .switch { background: #CBD5E1; }
.js .compare:not(.shown) .wakin .switch::after { transform: none; }
.compare .ordinary .alarm:nth-child(2) { transition-delay: 0.25s; }
.compare .ordinary .alarm:nth-child(3) { transition-delay: 0.43s; }
.compare .ordinary .alarm:nth-child(4) { transition-delay: 0.61s; }
.compare .ordinary .alarm:nth-child(5) { transition-delay: 0.79s; }
.compare .ordinary .switch, .compare .ordinary .switch::after, .compare .ordinary .alarm b { transition-delay: 1.8s; }
.compare .wakin .switch, .compare .wakin .switch::after { transition-delay: 2.6s; }
/* ---------- Features bento ---------- */

.head-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.head-row .left { display: grid; gap: 16px; justify-items: start; max-width: 720px; }
.head-row .sub { max-width: 420px; font-size: 19px; }

.bento { display: grid; grid-template-columns: 520px 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 24px; margin-top: 56px; }
.bento .streak {
  grid-row: span 2;
  overflow: hidden;
  border-radius: 36px;
  padding: 40px 40px 0;
  background: linear-gradient(180deg, #FFF8EC, #FFD8B4);
  display: grid;
  gap: 12px;
  align-content: start;
}
.streak h3 { font-size: 28px; font-weight: 900; }
.streak p { font-size: 17px; line-height: 1.5; color: var(--brown); }
.streak .phone { width: 216px; margin: 12px auto 24px; }
.feature {
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-height: 300px;
  padding: 32px;
  border-radius: 32px;
  background: var(--grey);
}
.feature img { width: 60px; height: 60px; }
.feature h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.feature p { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { background: var(--grey); }
.faq .container { display: flex; gap: 80px; }
.faq .left { width: 400px; flex: none; display: grid; gap: 16px; align-content: start; justify-items: start; }
.faq .eyebrow { background: #FFFFFF; }
.faq .left p { font-size: 18px; line-height: 1.5; color: var(--muted); }
.questions { flex: 1; display: grid; gap: 12px; align-content: start; }
details {
  padding: 22px 28px;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}
details[open] { border-color: #BFDBFE; }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #475569;
  font-size: 20px;
  font-weight: 900;
  transition: transform 0.25s, background 0.2s, color 0.2s;
}
details[open] summary::after { content: '−'; background: var(--blue); color: #FFFFFF; }
details p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- CTA ---------- */

.cta-wrap { padding: 0 0 120px; background: var(--grey); }
.cta-wrap.white { background: #FFFFFF; padding-top: 96px; }
.cta {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 72px;
  border-radius: 44px;
  background: linear-gradient(120deg, #FFC995, #FFF1DC);
  display: grid;
  gap: 20px;
  align-content: start;
  justify-items: start;
}
.cta h2 { max-width: 640px; font-size: 56px; font-weight: 900; line-height: 1.05; letter-spacing: -1.2px; }
.cta p { max-width: 520px; font-size: 20px; line-height: 1.5; color: var(--brown); }
.cta .badge { margin-top: 12px; }
.cta-sunny { position: absolute; right: 72px; top: 50%; width: 340px; margin-top: -149px; }

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

footer { background: var(--navy); color: #FFFFFF; padding: 72px 0 40px; }
footer .top { display: flex; justify-content: space-between; gap: 48px; }
footer .brand { width: 340px; display: grid; gap: 18px; justify-items: start; }
footer .brand p { font-size: 16px; line-height: 1.5; color: var(--soft); }
footer .cols { display: flex; gap: 96px; }
footer .col { display: grid; gap: 14px; align-content: start; }
footer .col b { font-size: 14px; font-weight: 800; letter-spacing: 0.5px; }
footer .col a { font-size: 16px; color: var(--soft); text-decoration: none; }
footer .col a:hover { color: #FFFFFF; }
footer .bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Tasks page ---------- */

.page-hero { background: linear-gradient(180deg, #FFF8EC, #FFFFFF); padding-bottom: 72px; }
.page-hero .head { display: grid; gap: 20px; justify-items: center; padding: 72px 0 16px; }
.page-hero h1 { max-width: 1000px; font-size: 64px; font-weight: 900; line-height: 1.04; letter-spacing: -1.5px; }
.page-hero .eyebrow { background: #FFFFFF; }
.mission { display: flex; align-items: center; gap: 96px; padding: 40px; }
.mission.flip { flex-direction: row-reverse; }
.mission .media {
  width: 460px;
  height: 640px;
  flex: none;
  border-radius: 40px;
  display: grid;
  place-items: center;
}
.mission .copy { flex: 1; display: grid; gap: 24px; }

/* Shake Phone: a tilted phone with two faint copies and motion strokes, as in the design. */
.shake-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: radial-gradient(ellipse 65% 55% at 50% 45%, #FFE7D1, #FDE2EE);
}
.shake-stage { position: absolute; left: 0; top: 0; width: 460px; height: 640px; }
.mission .shake-media .phone {
  position: absolute;
  width: 250px;
  padding: 7px;
  border-radius: 38px;
  transform-origin: 0 0;
}
.mission .shake-media .phone img { border-radius: 31px; }
.mission .shake-media .ghost { opacity: 0.14; box-shadow: none; }
.mission .shake-media .ghost-left { left: 58px; top: 84px; transform: rotate(-14deg); }
.mission .shake-media .ghost-right { left: 120px; top: 40px; transform: rotate(6deg); }
.mission .shake-media .shaker { left: 92px; top: 62px; transform: rotate(-5deg); }
.motion {
  position: absolute;
  width: 8px;
  border-radius: 4px;
  background: #F97316;
  transform-origin: 0 0;
 
}
.m1 { left: 34px; top: 250px; height: 70px; transform: rotate(14deg); }
.m2 { left: 22px; top: 340px; height: 44px; transform: rotate(14deg); }
.m3 { left: 404px; top: 200px; height: 70px; transform: rotate(-14deg); }
.m4 { left: 420px; top: 290px; height: 44px; transform: rotate(-14deg); }
.mission .index { font-size: 14px; font-weight: 900; letter-spacing: 1.5px; color: var(--soft); }
.mission h2 { display: flex; align-items: center; gap: 14px; font-size: 44px; font-weight: 900; letter-spacing: -1px; }
.mission h2 img { width: 52px; height: 52px; }
.mission .desc { font-size: 20px; line-height: 1.5; color: #475569; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 8px 0; }
.lists h3 { font-size: 16px; font-weight: 900; margin-bottom: 14px; }
.lists ol, .lists ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.lists li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; color: #475569; }
.lists ol { counter-reset: n; }
.lists ol li::before {
  counter-increment: n;
  content: counter(n);
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
}
.lists ul li::before { content: ''; flex: none; width: 22px; height: 22px; background: url(/img/emoji/check_mark_button.png) center / contain no-repeat; }
.best { display: grid; gap: 4px; padding: 18px 22px; border-radius: 20px; background: var(--grey); }
.best small { font-size: 12px; font-weight: 900; letter-spacing: 1.2px; color: var(--soft); }
.best b { font-size: 17px; font-weight: 800; }
.also { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px; border: 1px solid var(--line); }
.also img { width: 36px; height: 36px; }
.also b { display: block; font-size: 16px; font-weight: 900; }
.also span { font-size: 14px; color: var(--muted); }

.more { background: var(--cream); }
.more .head-row .sub { color: var(--brown); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.mini {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  padding: 20px;
  border-radius: 24px;
  background: #FFFFFF;
  transition: transform 0.2s;
}
.mini:hover { transform: translateY(-3px); }
.mini img { width: 48px; height: 48px; }
.mini b { display: block; font-size: 18px; font-weight: 900; }
.mini span { font-size: 14px; color: var(--muted); }

/* ---------- About page ---------- */

.about-hero { background: linear-gradient(180deg, #FFF8EC, #FFE3C2); padding-bottom: 72px; text-align: center; }
.about-hero .head { display: grid; gap: 20px; justify-items: center; padding: 64px 0 36px; }
.about-hero .sub { max-width: 640px; color: var(--brown); }
.about-sunny { width: 340px; margin: 0 auto; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.value { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: 28px; background: var(--grey); }
.value img { width: 56px; height: 56px; }
.value h3 { font-size: 21px; font-weight: 900; line-height: 1.25; }
.value p { font-size: 16px; line-height: 1.5; color: var(--muted); }

.contact {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 48px 56px;
  border-radius: 36px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}
.contact .icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #EFF6FF; }
.contact .icon img { width: 56px; height: 56px; }
.contact h2 { font-size: 36px; font-weight: 900; }
.contact p { max-width: 520px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.contact .button { margin-top: 8px; border-radius: 14px; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 8px; }
.button {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 24px;
  border-radius: 9px;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.button:hover { background: #2563EB; transform: translateY(-2px); }

/* ---------- Legal and support ---------- */

.doc-head { background: #FFF8EC; }
.doc-head .container { display: grid; gap: 12px; padding: 56px 0; }
.doc-head small { font-size: 15px; font-weight: 800; color: var(--orange); }
.doc-head h1 { font-size: 56px; font-weight: 900; letter-spacing: -1.2px; }
.doc-head p { font-size: 16px; font-weight: 700; color: var(--brown); }

.doc { display: flex; gap: 80px; padding: 64px 0 120px; }
.toc { width: 300px; flex: none; position: sticky; top: 108px; align-self: start; display: grid; gap: 4px; }
.toc small { font-size: 12px; font-weight: 900; letter-spacing: 1.2px; color: var(--soft); margin-bottom: 4px; }
.toc a { padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--muted); text-decoration: none; }
.toc a:hover { background: #EFF6FF; color: var(--blue-dark); }
.toc a.active { background: #EFF6FF; color: var(--blue-dark); font-weight: 800; }
.article { width: 740px; max-width: 100%; display: grid; gap: 20px; align-content: start; }
.article h2 { margin-top: 12px; font-size: 26px; font-weight: 900; scroll-margin-top: 100px; }
.article p, .article li { font-size: 18px; font-weight: 500; line-height: 1.7; color: #475569; }
.article ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.article li::marker { color: var(--blue); }
.article .lead { padding: 24px 28px; border-radius: 24px; background: var(--grey); font-size: 19px; font-weight: 700; color: #334155; }
.write {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 28px 32px;
  border-radius: 28px;
  background: linear-gradient(120deg, #FFF1DC, #FFE0BF);
}
.write h2 { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 26px; }
.write h2 img { width: 44px; height: 44px; }
.write p { color: #5B4330; font-weight: 600; }
.write p + p { font-size: 16px; color: var(--brown); }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .hero-body { flex-direction: column; align-items: stretch; padding-top: 24px; }
  .hero-visual { margin: 0 auto; }
  .why .container, .faq .container { flex-direction: column; align-items: stretch; gap: 48px; }
  .compare, .faq .left { width: auto; }
  .compare { max-width: 560px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento .streak { grid-column: span 2; grid-row: auto; }
  .tray { flex-wrap: wrap; }
  .mission, .mission.flip { flex-direction: column; padding: 40px 0; gap: 40px; }
  .grid4, .values { grid-template-columns: 1fr 1fr; }
  /* On narrow screens the contents become a strip of pills pinned under the header. */
  .doc { flex-direction: column; gap: 24px; }
  .toc {
    position: sticky;
    top: 84px;
    z-index: 10;
    width: auto;
    align-self: stretch;
    min-width: 0;
    display: flex;
    gap: 8px;
    margin: 0 -24px;
    padding: 10px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc small { display: none; }
  .toc a { flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; }
  .toc a.active { border-color: #BFDBFE; }
  .article h2 { scroll-margin-top: 160px; }
  .cta-sunny { width: 240px; right: 32px; margin-top: -105px; }
}

/* ---------- Phone ---------- */

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .nav { height: 64px; }
  .logo img { width: 30px; height: 30px; }
  .logo span { font-size: 22px; }
  .nav .badge { display: none; }
  .menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #FFFFFF;
    font-size: 22px;
    cursor: pointer;
  }
  .links {
    display: none;
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    z-index: 10;
    flex-direction: column;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  }
  .links.open { display: flex; }
  .links a { padding: 14px 16px; font-size: 17px; }

  .section { padding: 64px 0; }
  .title { font-size: 34px; letter-spacing: -0.8px; }
  .sub { font-size: 17px; }

  .hero-body { min-height: 0; gap: 8px; padding-top: 40px; }
  .hero h1 { font-size: 34px; letter-spacing: -0.8px; }
  .hero-copy { justify-items: center; text-align: center; margin: 0 auto; }
  .hero .sub { margin: 0 auto; }
  /* Sizes are fractions of the 361x580 layout, so the scene scales with the screen width. */
  .hero-visual { width: 100%; max-width: 440px; height: auto; aspect-ratio: 361 / 580; container-type: inline-size; }
  /* The bezel and corners scale too, or a small phone turns into a thick pill. */
  .hero-visual .phone { width: 58.7%; padding: 1.9cqw; border-radius: 10.5cqw; }
  .hero-visual .phone img { border-radius: 8.6cqw; }
  .hero-visual .back { left: 35.5%; top: 6.9%; }
  .hero-visual .front { left: 3.9%; top: 10%; }
  .hero-sunny { width: 36%; right: -1.4%; bottom: 3.4%; }
  .bubble { right: 33.8%; bottom: 25.5%; padding: min(10px, 2.8cqw) min(14px, 3.9cqw); }
  .bubble b { font-size: min(15px, 4.2cqw); }
  .bubble span { font-size: min(13px, 3.6cqw); }

  .steps { grid-template-columns: 1fr; margin-top: 32px; }
  .step .media { height: 480px; }
  .step .phone { width: 210px; }
  .tray { padding: 24px 12px; gap: 24px 12px; }
  .tray figure { width: calc(50% - 6px); }
  .tray .phone { width: 160px; border-radius: 30px; padding: 6px; }
  .tray .phone img { border-radius: 25px; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .compare { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .streak { grid-column: auto; padding: 28px 24px 0; }
  .feature { min-height: 0; }
  summary { font-size: 16px; }
  details { padding: 16px 18px; }
  .cta { padding: 48px 20px 230px; justify-items: center; text-align: center; }
  .cta h2 { font-size: 34px; }
  .cta-sunny { width: 200px; left: 50%; right: auto; top: auto; bottom: 32px; margin: 0 0 0 -100px; }
  footer .top { flex-direction: column; }
  footer .cols { gap: 32px; flex-wrap: wrap; }
  footer .bottom { flex-direction: column; }

  .page-hero h1, .doc-head h1 { font-size: 38px; }
  .mission .media { width: 100%; height: 540px; }
  .mission .media .phone { width: 220px; padding: 7px; border-radius: 36px; }
  .mission .media .phone img { border-radius: 29px; }
  .shake-media { height: 500px; }
  .shake-stage { left: 50%; margin-left: -180px; transform: scale(0.78); transform-origin: 0 0; }
  .mission h2 { font-size: 32px; }
  .lists { grid-template-columns: 1fr; gap: 24px; }
  .grid4, .values { grid-template-columns: 1fr; }
  .about-sunny { width: 260px; }
  .contact { padding: 36px 20px; }
  .wakin-sunny { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 14px; padding: 4px; }
  .wakin-sunny img { width: 72px; }
  .hero, .page-hero, .about-hero, .doc-head { padding-top: 64px; }
  .site-header .links { top: 64px; }
  .doc { padding-top: 24px; }
  .toc { top: 64px; margin: 0 -16px; padding: 10px 16px; }
  .article h2 { scroll-margin-top: 140px; }
}
