/* =====================================================================
   Doska Pill — soft, friendly, playful
   lavender #8D9FDD · sage #A8C7B5 · peach #F4C6B8 · button blue #5A6DB8
   ===================================================================== */
body[data-brand="doska-pill"] {
  --lav: #8D9FDD; --sage: #A8C7B5; --peach: #F4C6B8; --ink: #262B45;
  --bg: #F8F9FC; --bg-elev: #FFFFFF; --bg-sunk: #ECEEF7;
  --fg: #262B45; --muted: #555B78; --line: rgba(38, 43, 69, 0.12);
  --accent: #5A6DB8; --on-accent: #FFFFFF;
  --header-bg: rgba(248, 249, 252, 0.8);
  --shadow: 0 1px 2px rgba(38, 43, 69, 0.05), 0 18px 48px -20px rgba(70, 82, 150, 0.28);
  --hero-top: #E9ECFB;
  --display: var(--font-round);
  font-family: var(--font-round);
}
:root[data-theme="dark"] body[data-brand="doska-pill"] {
  --bg: #14162A; --bg-elev: #1F2238; --bg-sunk: #0E1020; --fg: #ECEEFA; --muted: #AEB3CF;
  --line: rgba(236, 238, 250, 0.12); --accent: #9DAEEB; --on-accent: #161A2E; --header-bg: rgba(20, 22, 42, 0.78); --hero-top: #232846;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-brand="doska-pill"] {
    --bg: #14162A; --bg-elev: #1F2238; --bg-sunk: #0E1020; --fg: #ECEEFA; --muted: #AEB3CF;
    --line: rgba(236, 238, 250, 0.12); --accent: #9DAEEB; --on-accent: #161A2E; --header-bg: rgba(20, 22, 42, 0.78); --hero-top: #232846;
  }
}
body[data-brand="doska-pill"] h1, body[data-brand="doska-pill"] h2, body[data-brand="doska-pill"] h3 { font-weight: 900; letter-spacing: -0.03em; }
.dp-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); display: grid; gap: 14px; }

/* ---------- Sticky sub-navigation ---------- */
.subnav {
  position: sticky; top: 0; z-index: 45;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.subnav__inner { display: flex; align-items: center; gap: 8px; min-height: 56px; position: relative; }
.subnav__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.125rem; text-decoration: none; letter-spacing: -0.02em; }
.subnav__more { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--fg); transition: transform 0.3s var(--ease); }
.subnav__more[aria-expanded="true"] { transform: rotate(180deg); }
.subnav__links {
  display: none; list-style: none; margin: 0; padding: 8px var(--gutter) 16px;
  position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.subnav.is-open .subnav__links { display: grid; }
.subnav__links a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 750; color: var(--muted); }
.subnav__links a:hover, .subnav__links a.is-current { color: var(--fg); }
.subnav__cta { margin-left: auto; }
@media (min-width: 760px) {
  .subnav__more { display: none; }
  .subnav__links { display: flex; position: static; padding: 0; margin-left: auto; gap: 4px; background: none; border: 0; box-shadow: none; }
  .subnav__links a { padding: 8px 12px; font-size: 0.9375rem; border-radius: 999px; }
  .subnav__links a.is-current { background: color-mix(in srgb, var(--fg) 7%, transparent); }
  .subnav__cta { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.dp-hero { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(48px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 96px); background: linear-gradient(180deg, var(--hero-top) 0%, var(--bg) 78%); }
.dp-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dp-hero__bg span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.dp-hero__bg span:nth-child(1) { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; left: -12%; top: 14%; background: var(--lav); opacity: 0.35; }
.dp-hero__bg span:nth-child(2) { width: 40vw; height: 40vw; max-width: 480px; max-height: 480px; right: -10%; top: 30%; background: var(--peach); }
.dp-hero__bg span:nth-child(3) { width: 34vw; height: 34vw; max-width: 400px; max-height: 400px; left: 30%; bottom: -10%; background: var(--sage); opacity: 0.45; }
:root[data-theme="dark"] .dp-hero__bg span { opacity: 0.16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dp-hero__bg span { opacity: 0.16; } }
.dp-hero__title { font-size: clamp(2.6rem, 8.4vw, 6rem); line-height: 1.02; letter-spacing: -0.04em; margin-top: 12px; }
.dp-hero__title span { color: var(--accent); }
.dp-hero__lead { max-width: 40ch; margin: 24px auto 0; }
.dp-hero__stage { position: relative; margin-top: clamp(40px, 6vw, 64px); display: grid; justify-items: center; gap: 18px; }
.dp-hero__pip { position: absolute; width: clamp(90px, 12vw, 150px); top: 14%; left: calc(50% + min(190px, 30vw)); display: none; }
@media (min-width: 720px) { .dp-hero__pip { display: block; } }
.rotate-toggle {
  border: 0; border-radius: 999px; padding: 8px 16px; min-height: 36px; cursor: pointer;
  background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--muted); font-weight: 800; font-size: 0.8125rem;
}
.rotate-toggle .rt-play { display: none; }
.rotate-toggle[aria-pressed="true"] .rt-pause { display: none; }
.rotate-toggle[aria-pressed="true"] .rt-play { display: inline; }

.store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 20px 8px 14px;
  border-radius: 16px; background: var(--fg); color: var(--bg); text-decoration: none; text-align: left;
  font-weight: 800; line-height: 1.15; transition: transform 0.25s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 0.6875rem; font-weight: 700; opacity: 0.75; letter-spacing: 0.02em; }
.store-btn .store-soon { font-weight: 600; opacity: 0.75; }
.store-btn.is-soon { cursor: default; }
.store-btn.is-soon:hover { transform: none; }

/* ---------- Pip ---------- */
.pip { width: 100%; height: auto; overflow: visible; }
.pip__body { animation: pipFloat 4.8s ease-in-out infinite; }
.pip__eyes { transform-box: fill-box; transform-origin: center; animation: pipBlink 5.5s infinite; }
.pip__cloud { animation: pipCloud 4.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pipFloat { 0%, 100% { transform: translateY(2px) rotate(0deg); } 50% { transform: translateY(-7px) rotate(-3deg); } }
@keyframes pipCloud { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03, 0.98); } }
@keyframes pipBlink { 0%, 90%, 96%, 100% { transform: scaleY(1); } 93% { transform: scaleY(0.1); } }

/* =====================================================================
   PHONE MOCKUP (HTML/CSS) — everything inside scales with phone width
   ===================================================================== */
.phone {
  --pw: min(300px, 74vw);
  position: relative; width: var(--pw); aspect-ratio: 9 / 19.5; margin-inline: auto;
  padding: calc(var(--pw) * 0.034); border-radius: calc(var(--pw) * 0.165);
  background: linear-gradient(145deg, #2A2D3A, #12131A);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 50px 90px -40px rgba(40, 50, 110, 0.55), 0 20px 40px -24px rgba(20, 24, 50, 0.35);
}
.phone--hero { --pw: min(320px, 76vw); }
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--pw) * 0.135); background: #F8F9FC;
  container-type: inline-size;
}
.phone__screen::after { content: ""; position: absolute; z-index: 5; top: 1.5%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #0D0E13; }
.phone__fallback { width: 100%; height: 100%; object-fit: cover; }

.scr {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0.75em;
  padding: 3.6em 1.25em 1.1em; font-family: var(--font-round); font-size: 4.3cqw; line-height: 1.25;
  color: #262B45; background: #F8F9FC; letter-spacing: 0;
  opacity: 0; transform: translateY(3%) scale(0.985); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}
.scr.is-active { opacity: 1; transform: none; z-index: 1; }
.scr p { margin: 0; }
.scr > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scr .center { text-align: center; }
.sb { position: absolute; top: 1.05em; left: 1.9em; right: 1.9em; display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 0.9em; }
.sb i { width: 1.9em; height: 0.85em; border-radius: 0.3em; background: currentColor; opacity: 0.85; }
.sb--light { color: #fff; }
.scr__hi { font-weight: 800; color: #6B7192; font-size: 0.95em; }
.scr__h { font-weight: 900; font-size: 2.1em; line-height: 1.05; letter-spacing: -0.02em; margin-top: -0.35em !important; }
.scr__p { color: #555B78; font-weight: 700; }
.scr__label { font-weight: 900; font-size: 0.9em; }

/* pill with a face — also used by the page's mini tray */
.pill {
  position: relative; display: block; width: 1.5em; height: 2.2em; border-radius: 0.75em;
  background: linear-gradient(#8D9FDD 0 52%, #A8C7B5 52%);
  box-shadow: inset -0.12em -0.1em 0 rgba(0, 0, 0, 0.06), inset 0.14em 0.1em 0 rgba(255, 255, 255, 0.35);
}
.pill::before {
  content: ""; position: absolute; left: 0; right: 0; top: 26%; height: 0.36em;
  background: radial-gradient(circle at 32% 50%, #262B45 0 0.11em, transparent 0.13em), radial-gradient(circle at 68% 50%, #262B45 0 0.11em, transparent 0.13em);
}
.pill::after {
  content: ""; position: absolute; left: 50%; top: 44%; width: 0.5em; height: 0.25em; transform: translateX(-50%);
  border: 0.09em solid #262B45; border-top: 0; border-radius: 0 0 0.5em 0.5em;
}
.pill--sleepy::before { background: linear-gradient(#262B45, #262B45) 24% 50% / 0.28em 0.08em no-repeat, linear-gradient(#262B45, #262B45) 76% 50% / 0.28em 0.08em no-repeat; }
.pill--sleepy::after { width: 0.3em; height: 0; border-width: 0 0 0.08em; border-radius: 0; }
.pill--wow::after { width: 0.28em; height: 0.28em; top: 46%; border: 0.08em solid #262B45; border-radius: 50%; }
.pill--big { font-size: 1.7em; transform: rotate(18deg); }
.pill--hero { font-size: 4.4em; }

/* Today */
.tray { background: #fff; border-radius: 1.5em; padding: 0.95em 0.85em 0.85em; box-shadow: inset 0 0 0 0.1em #E3E6F3; }
.tray__label { font-size: 0.72em; font-weight: 900; color: #6B7192; text-transform: uppercase; letter-spacing: 0.04em; }
.tray__days, .tray__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.32em; text-align: center; }
.tray__days { font-size: 0.72em; font-weight: 900; color: #6B7192; margin: 0.6em 0 0.35em; }
.tray__grid { row-gap: 0.45em; }
.cell { aspect-ratio: 0.74; border-radius: 0.9em; background: #F2F4FB; box-shadow: inset 0 0 0 0.09em #E3E6F3; display: grid; place-items: center; font-size: 0.82em; }
.cell.is-popped { background: repeating-linear-gradient(135deg, #EFF1F8 0 0.25em, #E5E8F2 0.25em 0.45em); }
.cell.is-next { box-shadow: inset 0 0 0 0.16em #5A6DB8; }
.scr.is-active .cell.is-next .pill { animation: wiggle 2.4s ease-in-out infinite 0.6s; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-12deg); } 84% { transform: rotate(10deg); } 92% { transform: rotate(-5deg); } }
.nextup { display: flex; justify-content: space-between; align-items: center; background: #F4C6B8; border-radius: 1.5em; padding: 1em 1.3em 1em 1.1em; }
.nextup__k { font-size: 0.72em; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; color: #7A4A3C; }
.nextup__v { font-weight: 900; font-size: 1.3em; }
.nextup__s { font-size: 0.82em; font-weight: 700; color: #5F4A44; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.tile { background: #fff; border-radius: 1.3em; padding: 0.8em 0.95em; box-shadow: inset 0 0 0 0.1em #E3E6F3; }
.tile__k { font-size: 0.68em; font-weight: 900; color: #6B7192; text-transform: uppercase; letter-spacing: 0.04em; }
.tile__v { font-size: 1.35em; font-weight: 900; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; background: #fff; border-radius: 2em; padding: 0.85em 0.5em; font-size: 0.78em; font-weight: 800; color: #6B7192; box-shadow: inset 0 0 0 0.1em #E3E6F3; }
.tabbar .on { color: #5A6DB8; }

/* Pop */
.pop { position: relative; height: 44%; display: grid; place-items: center; margin-top: 1em; }
.pop .pill--hero { z-index: 1; transform: rotate(-12deg); }
.scr.is-active .pop .pill--hero { animation: popUp 2.8s var(--ease) infinite; }
@keyframes popUp { 0% { transform: translateY(40%) rotate(0) scale(0.9); } 18% { transform: translateY(-14%) rotate(-16deg) scale(1.06); } 30%, 100% { transform: translateY(0) rotate(-12deg) scale(1); } }
.pop__foil { position: absolute; bottom: 4%; width: 7em; height: 1.8em; border-radius: 50%; background: repeating-linear-gradient(135deg, #EFF1F8 0 0.25em, #E2E5F0 0.25em 0.45em); }
.pop__burst { position: absolute; inset: 0; display: grid; place-items: center; }
.pop__burst i { position: absolute; width: 0.7em; height: 0.7em; border-radius: 50%; background: #F4C6B8; opacity: 0; }
.pop__burst i:nth-child(3n+1) { background: #A8C7B5; } .pop__burst i:nth-child(3n+2) { background: #8D9FDD; }
.pop__burst i:nth-child(1) { --a: 0deg; } .pop__burst i:nth-child(2) { --a: 45deg; } .pop__burst i:nth-child(3) { --a: 90deg; } .pop__burst i:nth-child(4) { --a: 135deg; }
.pop__burst i:nth-child(5) { --a: 180deg; } .pop__burst i:nth-child(6) { --a: 225deg; } .pop__burst i:nth-child(7) { --a: 270deg; } .pop__burst i:nth-child(8) { --a: 315deg; }
.scr.is-active .pop__burst i { animation: burst 2.8s var(--ease) infinite; }
@keyframes burst { 0%, 10% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(0.4); } 22% { opacity: 1; } 45%, 100% { opacity: 0; transform: rotate(var(--a)) translateY(-6.5em) scale(1); } }
.chip-row { display: flex; gap: 0.5em; flex-wrap: wrap; justify-content: center; }
.chip { padding: 0.5em 1em; border-radius: 2em; background: #fff; box-shadow: inset 0 0 0 0.1em #E3E6F3; font-weight: 800; font-size: 0.85em; }
.chip--on { background: #5A6DB8; color: #fff; box-shadow: none; }

/* Lock screen reminders */
.scr--lock { background: linear-gradient(170deg, #7E91D6 0%, #B9ACE3 45%, #F2BFB0 100%); color: #fff; }
.lock__time { font-size: 5em; font-weight: 800; text-align: center; line-height: 1; margin-top: 0.35em !important; letter-spacing: -0.03em; }
.lock__date { text-align: center; font-weight: 800; margin-top: -0.3em !important; opacity: 0.92; }
.notif { display: flex; gap: 0.7em; align-items: flex-start; background: rgba(255, 255, 255, 0.82); color: #262B45; border-radius: 1.4em; padding: 0.8em 0.95em; margin-top: 0.5em; box-shadow: 0 0.6em 1.5em -0.8em rgba(40, 40, 90, 0.4); }
.notif__icon { flex: none; width: 2.3em; height: 2.3em; border-radius: 0.65em; background: #fff url("/assets/img/logos/doska-pill.svg") center / 110% no-repeat; }
.notif__app { font-size: 0.66em; font-weight: 900; color: #6B7192; text-transform: uppercase; letter-spacing: 0.04em; }
.notif__t { font-weight: 900; }
.notif__b { font-size: 0.84em; font-weight: 650; }
.scr.is-active .notif { animation: notifIn 0.7s var(--ease) both 0.3s; }
.scr.is-active .notif--later { animation-delay: 1.3s; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-1.2em) scale(0.96); } to { opacity: 1; transform: none; } }

/* Safety pack */
.banner { display: flex; gap: 0.8em; align-items: center; background: #E6F1EA; border-radius: 1.4em; padding: 0.9em 1em; }
.banner .pill { flex: none; font-size: 0.9em; }
.banner p { font-size: 0.88em; font-weight: 700; }
.scr.is-active .banner { animation: notifIn 0.7s var(--ease) both 0.2s; }
.pack { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 1.4em; padding: 1em 1.1em; box-shadow: inset 0 0 0 0.1em #E3E6F3; }
.pack__t { font-weight: 900; }
.pack__s { font-size: 0.78em; font-weight: 700; color: #6B7192; }
.dots { display: flex; gap: 0.25em; }
.dots i { width: 0.75em; height: 1.1em; border-radius: 0.4em; background: linear-gradient(#8D9FDD 0 52%, #A8C7B5 52%); }
.dots i.off { background: #E3E6F3; }
.pack--add { justify-content: center; color: #5A6DB8; background: transparent; box-shadow: none; border: 0.12em dashed #C9CFE8; }

/* Puzzle alarm */
.scr--alarm { background: radial-gradient(120% 70% at 50% 20%, #3E4374, #181A2D); color: #fff; text-align: center; }
.alarm__k { font-size: 0.78em; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: #F4C6B8; margin-top: 1.2em !important; }
.scr.is-active .alarm__k { animation: alarmPulse 1.2s ease-in-out infinite; }
@keyframes alarmPulse { 50% { opacity: 0.45; } }
.alarm__t { font-size: 1.75em; font-weight: 900; }
.alarm__s { font-size: 0.88em; font-weight: 700; opacity: 0.8; }
.puzzle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55em; margin: 0.6em 0.8em 0; }
.puzzle span { aspect-ratio: 1; border-radius: 1em; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; font-weight: 900; font-size: 1.4em; }
.puzzle .done { background: #A8C7B5; color: #181A2D; }
.puzzle .pz-blank { background: transparent; box-shadow: inset 0 0 0 0.07em rgba(255, 255, 255, 0.18); }
.scr.is-active .puzzle span:nth-child(1) { animation: tapHint 2.4s ease-in-out infinite 0.8s; }
@keyframes tapHint { 0%, 60%, 100% { box-shadow: none; } 70%, 85% { box-shadow: 0 0 0 0.18em #F4C6B8; } }
.alarm__hint { font-size: 0.78em; opacity: 0.7; font-weight: 700; }
.alarm__btn { margin-top: auto; padding: 0.9em; border-radius: 2em; background: rgba(255, 255, 255, 0.12); font-weight: 800; }

/* Widget / home screen */
.scr--home { background: linear-gradient(165deg, #B5D3C1 0%, #9AAAE3 55%, #6B7CC4 100%); }
.widget { background: rgba(255, 255, 255, 0.88); border-radius: 1.8em; padding: 1.1em 1.2em; margin-top: 0.8em; box-shadow: 0 1em 2em -1.2em rgba(30, 40, 90, 0.5); }
.scr.is-active .widget { animation: notifIn 0.7s var(--ease) both 0.2s; }
.widget__top { display: flex; align-items: center; gap: 0.6em; }
.widget__top svg { width: 3.2em; height: 3.2em; }
.widget__k { font-size: 0.7em; font-weight: 900; color: #6B7192; text-transform: uppercase; letter-spacing: 0.05em; }
.widget__v { font-size: 1.6em; font-weight: 900; line-height: 1.05; }
.widget__s { font-size: 0.85em; font-weight: 750; color: #555B78; margin-top: 0.4em !important; }
.widget__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3em; margin-top: 0.6em; }
.widget__row i { height: 0.55em; border-radius: 1em; background: #E3E6F3; }
.widget__row i.on { background: #A8C7B5; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em 1.3em; margin-top: 1.1em; padding: 0 0.3em; }
.apps i, .dock i { aspect-ratio: 1; border-radius: 28%; background: rgba(255, 255, 255, 0.32); }
.dock { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; padding: 0.9em 1.1em; border-radius: 2em; background: rgba(255, 255, 255, 0.22); }

/* Weekly pens */
.pen-card { background: #fff; border-radius: 1.6em; padding: 1.4em 1.2em 1.2em; box-shadow: inset 0 0 0 0.1em #E3E6F3; text-align: center; }
.pen { display: flex; align-items: center; height: 2.6em; margin: 0.2em 0 1em; }
.pen__cap { width: 17%; height: 82%; background: #5A6DB8; border-radius: 0.9em 0.25em 0.25em 0.9em; }
.pen__body { position: relative; flex: 1; height: 100%; background: #EEF0F7; border-radius: 0.35em; overflow: hidden; box-shadow: inset 0 0 0 0.1em #D6DAEA; }
.pen__liquid { position: absolute; left: 0; top: 0; bottom: 0; width: 75%; background: linear-gradient(90deg, #A8C7B5, #8D9FDD); border-radius: 0 0.6em 0.6em 0; }
.scr.is-active .pen__liquid { animation: liquid 1.6s var(--ease) both 0.3s; }
@keyframes liquid { from { width: 100%; } to { width: 75%; } }
.pen__liquid::after { content: ""; position: absolute; right: -0.3em; top: 0; bottom: 0; width: 0.6em; border-radius: 50%; background: #9BB7C9; animation: slosh 2.2s ease-in-out infinite; }
@keyframes slosh { 50% { transform: scaleX(1.5) translateX(-0.1em); } }
.pen__window { position: absolute; left: 8%; right: 34%; top: 22%; height: 16%; background: rgba(255, 255, 255, 0.55); border-radius: 1em; }
.pen__btn { width: 9%; height: 52%; background: #262B45; border-radius: 0.2em 0.6em 0.6em 0.2em; }
.pen__t { font-weight: 900; font-size: 1.3em; }
.pen__s { font-size: 0.85em; font-weight: 750; color: #6B7192; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35em; }
.week span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 0.1em #E3E6F3; font-weight: 900; font-size: 0.8em; color: #6B7192; }
.week .on { background: #A8C7B5; color: #262B45; box-shadow: none; }
.week .due { box-shadow: inset 0 0 0 0.17em #5A6DB8; color: #5A6DB8; }

/* History */
.seg { display: flex; background: #ECEEF7; border-radius: 2em; padding: 0.25em; }
.seg span { flex: 1; text-align: center; padding: 0.45em; border-radius: 2em; font-weight: 800; font-size: 0.85em; color: #6B7192; }
.seg .on { background: #fff; color: #262B45; box-shadow: 0 0.1em 0.4em rgba(0, 0, 0, 0.06); }
.chart { background: #fff; border-radius: 1.5em; padding: 1em 1em 0.7em; box-shadow: inset 0 0 0 0.1em #E3E6F3; }
.chart__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.55em; height: 7.4em; align-items: end; }
.chart__bars i { height: var(--h, 80%); border-radius: 0.5em; background: #A8C7B5; transform-origin: bottom; }
.chart__bars i:nth-child(1) { --h: 92%; } .chart__bars i:nth-child(2) { --h: 100%; } .chart__bars i:nth-child(3) { --h: 64%; background: #F4C6B8; }
.chart__bars i:nth-child(4) { --h: 96%; } .chart__bars i:nth-child(5) { --h: 88%; } .chart__bars i:nth-child(6) { --h: 58%; background: #F4C6B8; } .chart__bars i:nth-child(7) { --h: 94%; }
.scr.is-active .chart__bars i { animation: grow 0.9s var(--ease) both; }
.chart__bars i:nth-child(2) { animation-delay: 0.06s !important; } .chart__bars i:nth-child(3) { animation-delay: 0.12s !important; } .chart__bars i:nth-child(4) { animation-delay: 0.18s !important; }
.chart__bars i:nth-child(5) { animation-delay: 0.24s !important; } .chart__bars i:nth-child(6) { animation-delay: 0.3s !important; } .chart__bars i:nth-child(7) { animation-delay: 0.36s !important; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.55em; text-align: center; font-size: 0.7em; font-weight: 900; color: #6B7192; margin-top: 0.5em; }
.legend { display: flex; gap: 1em; font-size: 0.76em; font-weight: 800; color: #6B7192; }
.legend i { display: inline-block; width: 0.75em; height: 0.75em; border-radius: 50%; margin-right: 0.35em; vertical-align: -0.05em; }
.legend .ok, .cal .ok { background: #A8C7B5; } .legend .late, .cal .late { background: #F4C6B8; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.45em; padding: 0 0.3em; }
.cal i { aspect-ratio: 1; border-radius: 50%; background: #E3E6F3; }

/* Setup */
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.packs span { display: grid; gap: 0.5em; justify-items: center; background: #fff; border-radius: 1.3em; padding: 0.8em 0.6em; box-shadow: inset 0 0 0 0.1em #E3E6F3; font-weight: 800; font-size: 0.85em; }
.packs .on { box-shadow: inset 0 0 0 0.17em #5A6DB8; color: #5A6DB8; }
.g { display: block; width: 100%; height: 2.6em; background-image: radial-gradient(circle, #8D9FDD 0 0.24em, transparent 0.28em); }
.g7x2 { background-size: calc(100% / 7) 50%; } .g7x4 { background-size: calc(100% / 7) 25%; } .g10 { background-size: 10% 33.33%; }
.gbottle { width: 1.7em; border-radius: 0.4em 0.4em 0.7em 0.7em; background: linear-gradient(#5A6DB8 0 20%, #A8C7B5 20%); }
.cta { margin-top: auto; text-align: center; background: #5A6DB8; color: #fff; font-weight: 900; padding: 1em; border-radius: 2em; }

/* =====================================================================
   PAGE SECTIONS
   ===================================================================== */
/* Feature switcher */
.switcher { display: flex; flex-direction: column; gap: 24px; }
.switcher__stage { order: -1; position: relative; display: grid; justify-items: center; gap: 20px; }
.switcher__stage::before { content: ""; position: absolute; z-index: -1; width: min(520px, 100%); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lav) 40%, transparent), transparent 68%); }
.phone--feature { --pw: min(260px, 66vw); }
.switcher__desc { text-align: center; color: var(--muted); max-width: 40ch; min-height: 3.2em; }
.switcher__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.feat {
  position: relative; overflow: hidden; border: 0; cursor: pointer; text-align: left; color: var(--fg);
  padding: 10px 16px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 6%, transparent); font-weight: 800;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.feat__title { font-size: 0.9375rem; }
.feat__desc { display: none; }
.feat[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.feat__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; opacity: 0.5; transform: scaleX(0); transform-origin: left; }
.feat.is-playing .feat__bar { animation: featBar var(--dur, 6s) linear forwards; }
@keyframes featBar { to { transform: scaleX(1); } }
@media (min-width: 900px) {
  .switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .switcher__stage { order: 2; position: sticky; top: 96px; }
  .phone--feature { --pw: min(310px, 30vw); }
  .switcher__desc { display: none; }
  .switcher__tabs { display: grid; gap: 6px; justify-content: stretch; }
  .feat { display: grid; gap: 0; padding: 20px 26px; border-radius: 24px; background: transparent; color: var(--muted); }
  .feat:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
  .feat__title { font-size: 1.3125rem; font-weight: 900; letter-spacing: -0.02em; }
  .feat__desc { display: grid; grid-template-rows: 0fr; font-weight: 600; font-size: 1rem; line-height: 1.55; color: var(--muted); transition: grid-template-rows 0.45s var(--ease), margin 0.45s var(--ease); }
  .feat__desc::before { content: ""; }
  .feat[aria-selected="true"] { background: var(--bg-elev); color: var(--fg); box-shadow: var(--shadow); }
  .feat[aria-selected="true"] .feat__desc { grid-template-rows: 1fr; margin-top: 8px; }
  .feat__bar { color: var(--accent); }
}
.feat__desc > span { overflow: hidden; min-height: 0; }

/* Zig-zag rows */
.zig { display: grid; gap: 40px; align-items: center; }
.zig + .zig { margin-top: clamp(80px, 12vw, 160px); }
.zig__text { display: grid; gap: 14px; max-width: 34rem; }
.zig__media { position: relative; display: grid; justify-items: center; padding-block: 24px; }
.zig__media::before { content: ""; position: absolute; z-index: -1; inset: 6% 4%; border-radius: var(--r-l); background: color-mix(in srgb, var(--peach) 45%, var(--bg)); }
.zig:nth-child(2) .zig__media::before { background: color-mix(in srgb, var(--lav) 32%, var(--bg)); }
.zig:nth-child(3) .zig__media::before { background: color-mix(in srgb, var(--sage) 45%, var(--bg)); }
.zig .phone { --pw: min(270px, 66vw); }
@media (min-width: 900px) {
  .zig { grid-template-columns: 1fr 1fr; gap: 80px; }
  .zig:nth-child(even) .zig__text { order: 2; }
  .zig .phone { --pw: min(300px, 26vw); }
  .zig__media { padding-block: 56px; }
}

/* Private by design */
.dp-private { padding-inline: var(--gutter); }
.dp-private__inner {
  max-width: var(--max); margin-inline: auto; border-radius: var(--r-l); overflow: hidden;
  background: #1D2033; color: #ECEEFA; padding: clamp(36px, 7vw, 96px) clamp(24px, 6vw, 88px);
  display: grid; gap: 40px; align-items: center;
}
.dp-private .eyebrow { color: #AEB3CF; }
.dp-private .link-arrow { color: #B7C4F4; }
.dp-private__text { display: grid; gap: 16px; }
.dp-private__list { display: grid; gap: 16px; margin: 8px 0; }
.dp-private__list li { padding-left: 34px; position: relative; color: #C9CDE3; }
.dp-private__list li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: #A8C7B5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2033' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dp-private__list strong { color: #fff; }
.dp-private__art { max-width: 340px; width: 100%; margin-inline: auto; }
.dp-private__art .ring { stroke: rgba(236, 238, 250, 0.22); }
.dp-private__art .dev { stroke: #ECEEFA; }
.dp-private__art .lock { fill: #8D9FDD; }
.dp-private__art .lockline { stroke: #8D9FDD; }
.dp-private__art .cloud { stroke: #A8C7B5; }
.dp-private__art svg { animation: spinSlow 60s linear infinite; }
.dp-private__art svg > :not(.ring) { animation: spinSlow 60s linear infinite reverse; transform-origin: 160px 160px; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@media (min-width: 900px) { .dp-private__inner { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }

/* Pricing */
.billing { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: max-content; margin: 0 auto clamp(32px, 5vw, 48px); padding: 4px; border-radius: 999px; background: var(--bg-sunk); }
.billing__opt { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 10px 26px; min-height: 44px; border-radius: 999px; font-weight: 800; color: var(--muted); transition: color 0.3s; }
.billing__opt[aria-pressed="true"] { color: var(--fg); }
.billing__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--bg-elev); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); transition: transform 0.45s var(--ease); }
.billing[data-active="yearly"] .billing__thumb { transform: translateX(100%); }
.plans { display: grid; gap: 20px; max-width: 900px; margin-inline: auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; gap: 28px; } }
.plan { display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-l); background: var(--bg-elev); box-shadow: var(--shadow); }
.plan--plus { background: linear-gradient(160deg, #EEF0FB 0%, #F8ECEB 55%, #EAF3EE 100%); box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
:root[data-theme="dark"] .plan--plus { background: linear-gradient(160deg, #262A48, #2A2440 55%, #21302B); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan--plus { background: linear-gradient(160deg, #262A48, #2A2440 55%, #21302B); } }
.plan__name { font-size: 1.5rem; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan__amount { font-size: clamp(2.75rem, 6vw, 3.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; transition: opacity 0.2s; }
.plan__amount.is-swapping { opacity: 0; }
.plan__per { color: var(--muted); font-weight: 700; }
.plan__note { font-weight: 700; }
.plan__list { display: grid; gap: 10px; margin: 8px 0 20px; }
.plan__list li { position: relative; padding-left: 30px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262B45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan .btn { margin-top: auto; }
.plans__fine { margin: 28px auto 0; max-width: 60ch; }

/* Final CTA + mini tray */
.dp-cta { padding-block: clamp(72px, 12vw, 160px); background: radial-gradient(60% 60% at 50% 20%, color-mix(in srgb, var(--lav) 28%, transparent), transparent 70%); }
.dp-cta__pip { width: clamp(130px, 18vw, 190px); margin: 0 auto 16px; }
.dp-cta .lead { margin-top: 12px; }
.mini-tray { display: grid; justify-items: center; gap: 12px; margin: 40px auto 8px; padding: 22px 22px 16px; border-radius: 28px; background: var(--bg-elev); box-shadow: var(--shadow); width: max-content; max-width: 100%; }
.mini-tray__label { font-weight: 800; color: var(--muted); font-size: 0.9375rem; }
.mini-tray__grid { display: grid; grid-template-columns: repeat(7, auto); gap: clamp(4px, 1.4vw, 10px); }
.blister {
  position: relative; display: grid; place-items: center; width: clamp(36px, 10vw, 48px); height: clamp(48px, 13vw, 62px);
  border: 0; border-radius: 999px; cursor: pointer; padding: 0;
  background: color-mix(in srgb, var(--lav) 14%, var(--bg-elev)); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: clamp(14px, 3.6vw, 18px);
}
.blister .pill { transition: transform 0.6s var(--ease), opacity 0.5s var(--ease); }
.blister:hover .pill { transform: translateY(-3px) rotate(-6deg); }
.blister[aria-pressed="true"] { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--fg) 6%, var(--bg-elev)) 0 4px, color-mix(in srgb, var(--fg) 11%, var(--bg-elev)) 4px 7px); }
.blister[aria-pressed="true"] .pill { transform: translateY(-60px) rotate(-30deg) scale(0.9); opacity: 0; }
.mini-tray__msg { min-height: 1.6em; font-weight: 800; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .scr { transition: none; }
  .pip__body, .pip__eyes, .pip__cloud { animation: none; }
}

/* Support page */
.support-pip { width: 120px; margin: 0 auto 12px; }
.help-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .help-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .help-grid { grid-template-columns: repeat(3, 1fr); } }
.help-grid a { display: grid; gap: 4px; height: 100%; padding: 24px; border-radius: var(--r-m); background: var(--bg-elev); box-shadow: var(--shadow); text-decoration: none; transition: transform 0.25s var(--ease); }
.help-grid a:hover { transform: translateY(-2px); }
.help-grid strong { font-size: 1.125rem; }
.help-grid span { color: var(--muted); font-size: 0.9375rem; }
.support-contact { display: grid; gap: 12px; justify-items: center; text-align: center; padding: clamp(32px, 6vw, 64px); border-radius: var(--r-l); background: color-mix(in srgb, var(--lav) 18%, var(--bg-elev)); }
.support-contact p { max-width: 50ch; }
