/* Snoozee: the app's sky for the visitor's time of day (sky.js), its film grain and its ring
   colours. Without JavaScript it stays the evening sky. */

:root {
  --base: #120f15;
  --sky-top: #1a1219;
  --sky-bottom: #0f0d13;
  --wash-1: rgba(196, 104, 82, 0.62);
  --wash-2: rgba(150, 86, 170, 0.62);
  --wash-3: rgba(88, 70, 170, 0.46);
  --ink: #f4efec;
  --soft: rgba(244, 239, 236, 0.64);
  --faint: rgba(244, 239, 236, 0.4);
  --body: rgba(244, 239, 236, 0.82);
  --line: rgba(255, 255, 255, 0.1);
  --key: #2b262e;
  --key-low: #1c1920;
  --key-edge: rgba(255, 255, 255, 0.07);
  --sleep: #b3b1ff;
  --feed: #ffb39b;
  --nappy: #8fddc8;
  --pump: #8fc7f0;
  --medicine: #f2a7c3;
  --card: rgba(255, 255, 255, 0.045);
  --panel-top: rgba(255, 255, 255, 0.07);
  --panel-bottom: rgba(255, 255, 255, 0.02);
  --field: rgba(0, 0, 0, 0.25);
  --shadow: rgba(0, 0, 0, 0.55);
  --radius: 22px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* By day the page's words go dark and the rings take the app's day colours, as Theme.day does.
   The phones and cards keep their own looks. */
:root[data-sky="day"] {
  --base: #f6f1f0;
  --ink: #211b18;
  --soft: rgba(33, 27, 24, 0.66);
  --faint: rgba(33, 27, 24, 0.44);
  --body: rgba(33, 27, 24, 0.84);
  --line: rgba(33, 27, 24, 0.1);
  --key: #fff;
  --key-low: #f4efee;
  --key-edge: rgba(33, 27, 24, 0.08);
  --sleep: #6563db;
  --feed: #e0785a;
  --nappy: #27998a;
  --pump: #3d8fcb;
  --medicine: #c04f7d;
  --card: rgba(255, 255, 255, 0.42);
  --panel-top: rgba(255, 255, 255, 0.62);
  --panel-bottom: rgba(255, 255, 255, 0.3);
  --field: rgba(255, 255, 255, 0.6);
  --shadow: rgba(90, 50, 60, 0.24);
}

/* Registered, so the sky drifts and the page turns from night to day as a fade. */
@property --sky-top { syntax: "<color>"; inherits: true; initial-value: #1a1219; }
@property --sky-bottom { syntax: "<color>"; inherits: true; initial-value: #0f0d13; }
@property --wash-1 { syntax: "<color>"; inherits: true; initial-value: rgba(196, 104, 82, 0.62); }
@property --wash-2 { syntax: "<color>"; inherits: true; initial-value: rgba(150, 86, 170, 0.62); }
@property --wash-3 { syntax: "<color>"; inherits: true; initial-value: rgba(88, 70, 170, 0.46); }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #f4efec; }
@property --soft { syntax: "<color>"; inherits: true; initial-value: rgba(244, 239, 236, 0.64); }
@property --faint { syntax: "<color>"; inherits: true; initial-value: rgba(244, 239, 236, 0.4); }
@property --body { syntax: "<color>"; inherits: true; initial-value: rgba(244, 239, 236, 0.82); }
@property --key-low { syntax: "<color>"; inherits: true; initial-value: #1c1920; }
@property --key-edge { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.07); }
@property --card { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.045); }
@property --panel-top { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.07); }
@property --panel-bottom { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.02); }
@property --field { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, 0.25); }
@property --shadow { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, 0.55); }
:root {
  transition: --sky-top 1.5s, --sky-bottom 1.5s, --wash-1 1.5s, --wash-2 1.5s, --wash-3 1.5s,
    --base 1.2s, --ink 1.2s, --soft 1.2s, --faint 1.2s, --body 1.2s, --line 1.2s, --key 1.2s, --key-low 1.2s, --key-edge 1.2s,
    --sleep 1.2s, --feed 1.2s, --nappy 1.2s, --pump 1.2s, --medicine 1.2s,
    --card 1.2s, --panel-top 1.2s, --panel-bottom 1.2s, --field 1.2s, --shadow 1.2s;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--base);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The sky: a deep gradient, three soft washes drifting slowly, and grain over the lot. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  overflow: hidden;
}
.sky::before, .sky::after, .sky span {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  animation: drift 48s ease-in-out infinite alternate;
}
.sky::before {
  width: 110vmax; height: 80vmax; left: -35vmax; top: -40vmax;
  background: radial-gradient(closest-side, var(--wash-1), transparent);
}
.sky::after {
  width: 100vmax; height: 80vmax; right: -40vmax; top: -38vmax;
  background: radial-gradient(closest-side, var(--wash-2), transparent);
  animation-duration: 56s;
  animation-direction: alternate-reverse;
}
.sky span {
  width: 130vmax; height: 70vmax; left: 50%; bottom: -50vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--wash-3), transparent);
  animation-name: rise;
  animation-duration: 64s;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(4vmax, 3vmax) scale(1.06); } }
@keyframes rise { from { transform: translate(-50%, 0) scale(1); } to { transform: translate(-46%, -4vmax) scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .sky::before, .sky::after, .sky span { animation: none; }
  html { scroll-behavior: auto; }
}

a { color: inherit; }
/* Width and height attributes are only the shape: images scale with their column, never stretched. */
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--soft); transition: color 0.2s; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .top nav a:not(.keep) { display: none; } }

/* The App Store badge, or "coming soon" until the app is out. */
.badge { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none; }
.badge img { height: 52px; width: auto; }
.badge.small img { height: 40px; }
.badge[aria-disabled="true"] { pointer-events: none; }
.badge[aria-disabled="true"] img { opacity: 0.55; }
.badge .soon { font-size: 13px; color: var(--soft); }
.badge:not([aria-disabled="true"]) .soon { display: none; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 56px;
  padding: 56px 0 96px;
}
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); margin: 0 0 18px; }
h1 {
  font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; font-weight: 300; letter-spacing: -0.035em;
  margin: 0 0 24px;
}
h1 em { font-style: normal; background: linear-gradient(90deg, var(--feed), var(--medicine) 45%, var(--sleep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--soft); margin: 0 0 34px; max-width: 34em; }
.hero .cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.price-note { font-size: 15px; color: var(--soft); max-width: 18em; }
.price-note strong { color: var(--ink); font-weight: 500; }

/* A phone: the screenshot inside a dark frame with the app's glow behind it. */
.phone {
  position: relative; width: min(330px, 78vw); margin-inline: auto;
  border-radius: 54px; padding: 10px;
  background: linear-gradient(160deg, #2e2932, #141116);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; border-radius: 44px; }
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: 8% -6% 14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(179, 177, 255, 0.35), rgba(242, 167, 195, 0.18) 55%, transparent);
  filter: blur(30px);
}

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; font-weight: 300; letter-spacing: -0.03em; margin: 0 0 16px; }
.section-head p { color: var(--soft); font-size: 19px; margin: 0; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.card p { margin: 0; color: var(--soft); font-size: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-bottom: 16px; }

.rings { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.rings li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: baseline; color: var(--soft); }
.rings li strong { color: var(--ink); font-weight: 500; }
.rings .dot { margin: 0; transform: translateY(1px); }

/* The Lock Screen card, cut out with its own rounded corners. */
.shot img { width: 100%; filter: drop-shadow(0 28px 50px var(--shadow)); }
/* The top of a report page, fading out as if it ran on. */
.paper {
  max-width: 440px; margin-inline: auto; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px var(--shadow); transform: rotate(-1.5deg);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}

.pair { display: flex; gap: 22px; justify-content: center; }
.pair > :last-child { transform: translateY(36px); }

/* Privacy band */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.promise strong { display: block; font-size: 22px; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 6px; }
.promise span { color: var(--soft); font-size: 15px; }

/* Price */
.price {
  position: relative; overflow: hidden;
  padding: 56px; border-radius: 34px; text-align: center;
  background: linear-gradient(160deg, var(--panel-top), var(--panel-bottom));
  border: 1px solid var(--line);
}
.price h2 { margin-bottom: 14px; }
.price p { color: var(--soft); font-size: 19px; max-width: 34em; margin: 0 auto 30px; }
.steps { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 0 0 34px; padding: 0; list-style: none; }
.steps li { padding: 12px 20px; border-radius: 999px; background: linear-gradient(180deg, var(--key), var(--key-low)); border: 1px solid var(--key-edge); font-size: 15px; }
.steps li span { color: var(--soft); }
.price .badge { align-items: center; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--soft); font-weight: 300; font-size: 24px; line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--soft); margin: 12px 0 0; }

.languages { color: var(--soft); text-align: center; margin-top: 18px; font-size: 15px; }

/* Footer */
footer { padding: 48px 0 56px; border-top: 1px solid var(--line); margin-top: 40px; color: var(--soft); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Long-form pages: privacy, terms, support */
.doc { max-width: 720px; margin: 24px auto 40px; }
.doc h1 { font-size: clamp(38px, 5vw, 54px); margin-bottom: 10px; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 36px; }
.doc .summary { padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin-bottom: 36px; }
.doc .summary p { margin: 0; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc a { text-decoration-color: var(--faint); text-underline-offset: 3px; }

/* Contact form */
.form { display: grid; gap: 16px; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin: 20px 0 40px; }
.form label { display: grid; gap: 7px; font-size: 15px; color: var(--soft); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(179, 177, 255, 0.6); outline-offset: 1px; }
.form .hp { position: absolute; left: -9999px; }
.button {
  font: inherit; font-weight: 500; color: var(--ink); cursor: pointer;
  padding: 15px 22px; border-radius: 999px; border: 1px solid var(--key-edge);
  background: linear-gradient(180deg, var(--key), var(--key-low));
  box-shadow: 0 6px 16px var(--shadow);
}
.button:hover { filter: brightness(1.12); }
.form .status { margin: 0; font-size: 15px; }
.form .status[data-tone="ok"] { color: var(--nappy); }
.form .status[data-tone="bad"] { color: var(--feed); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; text-align: left; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .price { padding: 40px 22px; }
}
@media (max-width: 520px) {
  .promises { grid-template-columns: 1fr; }
  .pair { gap: 12px; }
}


/* ---------------------------------------------------------------------------------------------
   Live screens (demo.js): the home screen at 402 × 874 points scaled into its frame, the wheel on
   its own, the Lock Screen card and the Watch. Colours are the app's Theme.night and Theme.day,
   registered so a change of theme fades every ring, key and sky at once. */

@property --base { syntax: "<color>"; inherits: true; initial-value: #120f15; }
@property --primary { syntax: "<color>"; inherits: true; initial-value: #f4efec; }
@property --secondary { syntax: "<color>"; inherits: true; initial-value: rgba(244, 239, 236, 0.6); }
@property --key { syntax: "<color>"; inherits: true; initial-value: #2b262e; }
@property --keyLow { syntax: "<color>"; inherits: true; initial-value: #1c1920; }
@property --keyEdge { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.07); }
@property --keyShadow { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, 0.6); }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.1); }
@property --track { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.07); }
@property --tick { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.22); }
@property --tickMajor { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.5); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #f4f4f8; }
@property --handle { syntax: "<color>"; inherits: true; initial-value: #1b1926; }
@property --sheet { syntax: "<color>"; inherits: true; initial-value: #1e1a21; }
@property --sleep { syntax: "<color>"; inherits: true; initial-value: #b3b1ff; }
@property --feed { syntax: "<color>"; inherits: true; initial-value: #ffb39b; }
@property --nappy { syntax: "<color>"; inherits: true; initial-value: #8fddc8; }
@property --pump { syntax: "<color>"; inherits: true; initial-value: #8fc7f0; }
@property --medicine { syntax: "<color>"; inherits: true; initial-value: #f2a7c3; }
@property --glowA { syntax: "<number>"; inherits: true; initial-value: 0.32; }

.screen.night, .ring-card.night, .lock, .screen.wrist {
  --base: #120f15; --primary: #f4efec; --secondary: rgba(244, 239, 236, 0.6);
  --key: #2b262e; --keyLow: #1c1920; --keyEdge: rgba(255, 255, 255, 0.07); --keyShadow: rgba(0, 0, 0, 0.6);
  --line: rgba(255, 255, 255, 0.1); --track: rgba(255, 255, 255, 0.07); --tick: rgba(255, 255, 255, 0.22); --tickMajor: rgba(255, 255, 255, 0.5);
  --accent: #f4f4f8; --handle: #1b1926; --sheet: #1e1a21; --glowA: 0.32;
  --sleep: #b3b1ff; --feed: #ffb39b; --nappy: #8fddc8; --pump: #8fc7f0; --medicine: #f2a7c3;
}
.screen.day, .ring-card.day {
  --base: #f6f1f0; --primary: #211b18; --secondary: rgba(33, 27, 24, 0.62);
  --key: #fff; --keyLow: #f4efee; --keyEdge: rgba(33, 27, 24, 0.07); --keyShadow: rgba(90, 50, 40, 0.18);
  --line: rgba(33, 27, 24, 0.1); --track: rgba(80, 50, 60, 0.08); --tick: rgba(33, 27, 24, 0.28); --tickMajor: rgba(33, 27, 24, 0.55);
  --accent: #211b18; --handle: #fff; --sheet: #fbf8f7; --glowA: 0.95;
  --sleep: #6563db; --feed: #e0785a; --nappy: #27998a; --pump: #3d8fcb; --medicine: #c04f7d;
}
.screen, .ring-card {
  transition: --base 0.6s, --primary 0.6s, --secondary 0.6s, --key 0.6s, --keyLow 0.6s, --keyEdge 0.6s, --keyShadow 0.6s,
    --line 0.6s, --track 0.6s, --tick 0.6s, --tickMajor 0.6s, --accent 0.6s, --handle 0.6s, --sheet 0.6s, --glowA 0.6s,
    --sleep 0.6s, --feed 0.6s, --nappy 0.6s, --pump 0.6s, --medicine 0.6s;
}

/* Colours by class, so the patched SVG never carries a colour of its own. */
.st-sleep { stroke: var(--sleep); } .st-feed { stroke: var(--feed); } .st-nappy { stroke: var(--nappy); } .st-pump { stroke: var(--pump); } .st-medicine { stroke: var(--medicine); }
.st-track { stroke: var(--track); } .st-tick { stroke: var(--tick); } .st-tickMajor { stroke: var(--tickMajor); } .st-secondary { stroke: var(--secondary); } .st-accent { stroke: var(--accent); }
.fl-sleep { fill: var(--sleep); } .fl-feed { fill: var(--feed); } .fl-nappy { fill: var(--nappy); } .fl-pump { fill: var(--pump); } .fl-medicine { fill: var(--medicine); }
.fl-secondary { fill: var(--secondary); } .fl-handle { fill: var(--handle); } .fl-accent { fill: var(--accent); }
.bg-sleep { background: var(--sleep); } .bg-feed { background: var(--feed); } .bg-nappy { background: var(--nappy); }
.c-sleep { color: var(--sleep); } .c-feed { color: var(--feed); } .c-nappy { color: var(--nappy); } .c-pump { color: var(--pump); } .c-medicine { color: var(--medicine); }
.c-accent { color: var(--accent); } .c-primary { color: var(--primary); }
svg.wheel { display: block; overflow: visible; }
svg.wheel text { font-family: var(--font); }
svg [data-key] { transform-box: fill-box; transform-origin: center; }
svg .fade { transition: opacity 0.5s; }
.glow-stop { stop-color: #fff; stop-opacity: var(--glowA); }
.glow-stop.end { stop-opacity: 0; }
.breathe { animation: breathe 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
.handle { cursor: grab; }
.handle:active { cursor: grabbing; }
.ic { display: block; flex: none; overflow: visible; }

[data-demo] { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
/* No weight at all, so every key below sets its own background and padding. */
:where([data-demo] button) { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; text-align: center; }

/* The home screen */
.screen-frame { position: relative; width: 100%; aspect-ratio: 402 / 874; border-radius: 44px; overflow: hidden; }
.screen { position: absolute; left: 0; top: 0; width: 402px; height: 874px; transform-origin: 0 0; font-family: var(--font); overflow: hidden; color: var(--primary); background: var(--base); }
.screen .content { position: relative; height: 100%; }
/* The sky for the visitor's time of day (demo.js sets the five colours), with its three washes
   placed as the app's Backdrop places them: top left, top right, and rising from the bottom. */
@property --skyTop { syntax: "<color>"; inherits: true; initial-value: #1a1219; }
@property --skyBottom { syntax: "<color>"; inherits: true; initial-value: #0f0d13; }
@property --w1 { syntax: "<color>"; inherits: true; initial-value: rgba(196, 104, 82, 0.62); }
@property --w2 { syntax: "<color>"; inherits: true; initial-value: rgba(150, 86, 170, 0.62); }
@property --w3 { syntax: "<color>"; inherits: true; initial-value: rgba(88, 70, 170, 0.46); }
.mini-sky { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(var(--skyTop), var(--skyBottom)); transition: --skyTop 1.2s, --skyBottom 1.2s, --w1 1.2s, --w2 1.2s, --w3 1.2s; }
.mini-sky::before, .mini-sky::after, .mini-sky span { content: ""; position: absolute; border-radius: 50%; animation: drift 40s ease-in-out infinite alternate; }
.mini-sky::before { width: 583px; height: 629px; left: -158px; top: -245px; background: radial-gradient(closest-side, var(--w1), transparent); }
.mini-sky::after { width: 543px; height: 594px; left: 91px; top: -227px; background: radial-gradient(closest-side, var(--w2), transparent); animation-direction: alternate-reverse; }
.mini-sky span { width: 663px; height: 542px; left: -131px; top: 577px; background: radial-gradient(closest-side, var(--w3), transparent); }

.status-bar { position: relative; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 8px 34px 0 52px; font-size: 17px; font-weight: 600; }
.island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; background: #000; border-radius: 20px; }
.bars { display: flex; align-items: flex-end; gap: 2px; }
.bars i { width: 3px; background: currentColor; border-radius: 1px; }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 8px; } .bars i:nth-child(4) { height: 10px; }
.bars b { width: 24px; height: 11px; margin-left: 6px; border-radius: 3px; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 80%, transparent 80%) content-box; padding: 1px; }
.head { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 6px 22px 0 24px; height: 62px; }
.head .name { font-size: 22px; }
.head .chev { font-size: 16px; color: var(--secondary); }
.head .age { font-size: 15px; color: var(--secondary); }
.head .right { display: flex; gap: 14px; align-items: center; font-size: 16px; }
.head .mode-word { color: var(--secondary); padding: 8px 4px; }
.head .pill { display: flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1px var(--keyEdge), 0 3px 5px var(--keyShadow); }
.switch { position: relative; margin: 8px auto 0; width: fit-content; display: flex; background: rgba(128, 128, 128, 0.14); border-radius: 999px; padding: 3px; }
.switch button { font-size: 15px; padding: 7px 17px; border-radius: 999px; color: var(--secondary); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.switch button.on { color: var(--primary); background-color: var(--key); box-shadow: 0 2px 4px var(--keyShadow); }

.dial { position: relative; width: 370px; height: 370px; margin: 12px auto 0; }
.dial.editing svg { touch-action: none; }
/* The middle of the dial, sized as the app's DialAnswer: 44% of the wheel, caption, a light number at 13%. */
.answer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 163px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; pointer-events: none; }
button.answer { pointer-events: auto; padding: 8px 0; border-radius: 40px; }
.answer .label { font-size: 12px; color: var(--secondary); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.answer .info { display: inline-grid; place-items: center; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; font-style: italic; line-height: 1; }
.answer .big { font-size: 48px; font-weight: 300; letter-spacing: -0.01em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.answer .big small { font-size: 18.5px; color: var(--secondary); margin: 0 5px 0 2px; letter-spacing: 0; }
.answer .big small:last-child { margin-right: 0; }
.answer .big.small, .answer .big.mid { font-size: 31px; }
.answer .hint { display: flex; gap: 5px; align-items: center; font-size: 13px; margin-top: 4px; }
.answer .hint .ic { width: 11px; height: 11px; }
.answer .sub { font-size: 12px; color: var(--secondary); min-height: 1.3em; }
.popover { position: absolute; left: -2px; right: -2px; top: 26px; z-index: 5; padding: 20px 22px 18px; border-radius: 28px; text-align: left; cursor: pointer; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--keyEdge), 0 18px 40px var(--keyShadow); transform-origin: 50% 40%; }
.popover .t { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.popover p { font-size: 14px; line-height: 1.45; color: var(--secondary); margin: 0 0 12px; }
.popover .rule { display: grid; gap: 1px; padding: 9px 0; border-top: 1px solid var(--line); }
.popover .rule b { font-size: 14px; font-weight: 500; }
.popover .rule span { font-size: 13px; color: var(--secondary); }
.popover .foot { font-size: 12px; color: var(--secondary); padding-top: 8px; border-top: 1px solid var(--line); }

/* What's under the wheel: the day so far, or what was just logged with its controls. */
.slot { position: relative; margin: 26px 20px 0; height: 60px; }
.stats { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center; }
.stats > * + * { border-left: 1px solid var(--line); }
.stats > * { padding: 4px 0; border-radius: 0; }
.stats .l { font-size: 13px; color: var(--secondary); display: flex; align-items: center; justify-content: center; gap: 6px; }
.stats .l i { width: 7px; height: 7px; border-radius: 50%; }
.stats .v { font-size: 18px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.bar { position: absolute; inset: 0; display: flex; align-items: center; gap: 7px; padding: 0 9px 0 20px; border-radius: 999px; background: linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1px var(--keyEdge), 0 3px 6px var(--keyShadow); }
.bar .txt { flex: 1; min-width: 0; }
.bar .t { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .d { font-size: 12px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-key, .round-key, .pill-key { flex: none; height: 42px; border-radius: 999px; background: rgba(128, 128, 128, 0.14); transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.chip-key { padding: 0 13px; font-size: 14px; font-variant-numeric: tabular-nums; }
.chip-key.on { background: color-mix(in srgb, var(--nappy) 22%, transparent); box-shadow: inset 0 0 0 1px var(--nappy); }
.round-key { width: 42px; display: grid; place-items: center; }
.pill-key { padding: 0 17px; font-size: 14px; font-weight: 500; }
.chip-key:active, .round-key:active, .pill-key:active { transform: scale(0.95); }
.amount { flex: none; min-width: 58px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }

/* The round keys and the rocker. Their sizes never change, whatever they say. */
.keys { position: relative; display: flex; justify-content: space-between; padding: 0 22px; margin-top: 18px; }
.rkey { display: flex; flex-direction: column; align-items: center; width: 70px; }
.rkey .disc { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1px var(--keyEdge), 0 3px 5px var(--keyShadow); transition: transform 0.15s; }
.rkey .disc::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; transform: scale(0.92); transition: opacity 0.3s, transform 0.3s; }
.rkey.lit .disc::after { opacity: 1; transform: none; }
.rkey:active .disc { transform: scale(0.94); }
.rkey .t { color: var(--primary); font-size: 13px; margin-top: 7px; white-space: nowrap; }
.rkey .d { color: var(--secondary); font-size: 11px; font-variant-numeric: tabular-nums; height: 14px; line-height: 14px; white-space: nowrap; }
.rkey.lit .d { color: inherit; }
.rocker { position: relative; display: flex; margin: 14px 20px 0; height: 72px; border-radius: 36px; background: linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1px var(--keyEdge), 0 3px 5px var(--keyShadow); }
.half { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 36px 0 0 36px; transition: background-color 0.25s, box-shadow 0.25s; }
.half:last-child { border-radius: 0 36px 36px 0; }
.half.lit { background-color: color-mix(in srgb, var(--feed) 12%, transparent); box-shadow: inset 0 0 0 1.5px var(--feed); }
.half:active { background-color: rgba(128, 128, 128, 0.12); }
.half .t { font-size: 19px; }
.half .d { font-size: 12px; color: var(--secondary); font-variant-numeric: tabular-nums; height: 15px; line-height: 15px; }
.half .d.on { color: var(--feed); }
.half .ghost { visibility: hidden; }
.rocker .divider { width: 1px; background: var(--line); margin: 16px 0; }
.home-bar { position: absolute; bottom: 8px; left: 50%; width: 134px; margin-left: -67px; height: 5px; border-radius: 3px; background: var(--primary); opacity: 0.85; }

/* Sheets: medicines, past days and today's diary. */
.scrim { position: absolute; inset: 0; z-index: 10; background: rgba(0, 0, 0, 0.32); cursor: pointer; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 150px; z-index: 11; border-radius: 34px 34px 0 0; background: var(--sheet); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 10px 24px; font-size: 21px; flex: none; }
.sheet-body { flex: 1; overflow: auto; padding: 4px 20px 34px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.med { padding: 16px; border-radius: 22px; background: rgba(128, 128, 128, 0.1); margin-bottom: 12px; }
.med .mt { display: flex; gap: 12px; align-items: center; }
.med .n { font-size: 17px; }
.med .s, .med .ml { font-size: 13px; color: var(--secondary); }
.med .ml { margin: 10px 0 12px; }
.give { width: 100%; height: 46px; border-radius: 999px; font-size: 15px; font-weight: 500; background: color-mix(in srgb, var(--medicine) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--medicine) 55%, transparent); transition: transform 0.15s; }
.give:active { transform: scale(0.97); }
.note { font-size: 12.5px; line-height: 1.45; color: var(--secondary); margin: 6px 4px 0; }
.chips-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.daychip { display: flex; flex-direction: column; align-items: center; padding: 7px 0 6px; border-radius: 16px; transition: background-color 0.2s, box-shadow 0.2s; }
.daychip span { font-size: 11px; color: var(--secondary); }
.daychip b { font-size: 17px; font-weight: 400; }
.daychip.on { background-color: var(--key); box-shadow: inset 0 0 0 1px var(--keyEdge), 0 2px 4px var(--keyShadow); }
.day-title { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 2px 4px; font-size: 17px; }
.day-title small { font-size: 12px; color: var(--secondary); }
.day-wheel { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.day-wheel .answer { width: 132px; }
.totals > div { display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: center; padding: 11px 2px; border-top: 1px solid var(--line); }
.totals i { width: 8px; height: 8px; border-radius: 50%; }
.totals b { display: block; font-size: 15px; font-weight: 400; }
.totals span { display: block; font-size: 12.5px; color: var(--secondary); }
.totals .r { text-align: right; }
.entries { display: grid; }
.entry { display: flex; gap: 12px; align-items: center; width: 100%; padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.entry .w { flex: 1; font-size: 15px; }
.entry .when { font-size: 14px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.try { text-align: center; color: var(--soft); font-size: 14px; margin: 18px 0 0; }

/* The wheel on its own, on its own sky. */
.ring-card { position: relative; width: min(270px, 42vw); flex: none; padding: 20px 18px 16px; border-radius: 36px; overflow: hidden; cursor: pointer; color: var(--primary); background-color: var(--base); box-shadow: 0 30px 60px var(--shadow), inset 0 0 0 1px var(--keyEdge); }
.ring-card::before { content: ""; position: absolute; inset: 0; transition: opacity 0.6s; }
.ring-card.night::before { background: radial-gradient(70% 55% at 10% 0%, rgba(224, 136, 109, 0.45), transparent 70%), radial-gradient(70% 55% at 95% 0%, rgba(176, 96, 154, 0.45), transparent 70%), radial-gradient(90% 60% at 50% 105%, rgba(111, 108, 224, 0.4), transparent 70%); }
.ring-card.day::before { background: radial-gradient(70% 55% at 10% 0%, rgba(255, 191, 168, 0.85), transparent 70%), radial-gradient(70% 55% at 95% 0%, rgba(246, 182, 204, 0.8), transparent 70%), radial-gradient(90% 60% at 50% 105%, rgba(180, 178, 255, 0.66), transparent 70%); }
.ring-card::after, .lock::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ring-card .content { position: relative; z-index: 1; container-type: inline-size; }
.ring-card svg.wheel { width: 100%; height: auto; }
.ring-card .answer { top: 50cqw; width: 44cqw; gap: 0.5cqw; }
.ring-card .answer .label { font-size: 3.4cqw; gap: 1cqw; }
.ring-card .answer .big { font-size: 13cqw; }
.ring-card .answer .big small { font-size: 5cqw; margin: 0 1.4cqw 0 0.5cqw; }
.ring-card .answer .hint { font-size: 3.6cqw; gap: 1.4cqw; margin-top: 1cqw; }
.ring-card .answer .hint .ic { width: 3cqw; height: 3cqw; }
.ring-card .answer .sub { font-size: 3.3cqw; }
.ring-card .caption { text-align: center; font-size: 13px; color: var(--secondary); margin-top: 12px; }

/* The Lock Screen card, at the size it has on an iPhone. */
.devices { display: grid; gap: 34px; }
.lock {
  container-type: inline-size;
  position: relative; overflow: hidden; border-radius: 28px; padding: 18px 20px 16px; color: var(--primary); font-size: 14px;
  background: radial-gradient(70% 120% at 8% 0%, rgba(224, 136, 109, 0.5), transparent 70%), radial-gradient(70% 120% at 96% 0%, rgba(176, 96, 154, 0.5), transparent 70%), radial-gradient(90% 90% at 50% 110%, rgba(111, 108, 224, 0.4), transparent 70%), #120f15;
  box-shadow: 0 30px 60px var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease;
}
.lock.in { opacity: 1; transform: none; }
.lock > * { position: relative; z-index: 1; }
.lock .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 18px; font-size: 13px; }
.lock .who { color: var(--secondary); }
.lock .next, .lock .logged { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.lock .logged { font-weight: 500; }
.lock .next > span:last-child { color: var(--primary); }
.lock .mid { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 12px; min-height: 58px; }
.lock .now { min-width: 0; }
.lock .now .l { font-size: 13px; color: var(--secondary); }
.lock .now .v { font-size: clamp(26px, 8.3cqw, 40px); font-weight: 300; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.15; }
.lock .now .v.since { font-size: clamp(21px, 6cqw, 30px); }
.lock .chips { display: grid; gap: 6px; flex: 0 0 auto; width: clamp(148px, 41cqw, 220px); }
.lock .chip { height: 26px; border-radius: 999px; border: 1px dashed currentColor; background: color-mix(in srgb, currentColor 14%, transparent); font-size: 12.5px; display: flex; align-items: center; gap: 8px; padding: 0 12px; white-space: nowrap; overflow: hidden; }
.lock .chip span { font-weight: 500; }
.lock .chip em { font-style: normal; color: var(--primary); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.lock .lkeys { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-top: 14px; height: 40px; }
.lock .lrocker { display: flex; border-radius: 999px; background: linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1px var(--keyEdge); }
.lock .lrocker .divider { flex: none; width: 1px; background: var(--keyEdge); margin: 10px 0; }
.lock .lhalf { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; white-space: nowrap; border-radius: 999px 0 0 999px; transition: background-color 0.25s, box-shadow 0.25s, color 0.25s; }
.lock .lhalf:last-child { border-radius: 0 999px 999px 0; }
.lock .lhalf.next, .lock .lhalf.lit { color: var(--feed); }
.lock .lhalf.lit { background-color: color-mix(in srgb, var(--feed) 16%, transparent); box-shadow: inset 0 0 0 1px var(--feed); }
.lock .lkey { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; border-radius: 999px; white-space: nowrap; background: linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1px var(--keyEdge); transition: box-shadow 0.25s, background-color 0.25s; }
.lock .lkey span { color: var(--primary); }
.lock .lkey.lit { box-shadow: inset 0 0 0 1px currentColor; background: color-mix(in srgb, currentColor 14%, var(--key)); }
.lock button { transition: transform 0.15s; }
.lock button:active { transform: scale(0.96); }

/* The Watch */
.watch-row { display: flex; align-items: center; gap: 26px; }
.watch-row p { color: var(--soft); font-size: 15px; margin: 0; max-width: 16em; }
.watch { position: relative; width: 190px; flex: 0 0 auto; }
.watch .case { position: relative; border-radius: 54px; padding: 12px; background: linear-gradient(160deg, #3d3842, #17141b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 26px 50px var(--shadow); cursor: pointer; }
.watch .case::before { content: ""; position: absolute; right: -7px; top: 30%; width: 9px; height: 42px; border-radius: 5px; background: linear-gradient(90deg, #4a4550, #2a262e); }
.watch .case::after { content: ""; position: absolute; right: -4px; top: 58%; width: 5px; height: 34px; border-radius: 3px; background: #2a262e; }
/* The Watch screen's own corner: about a quarter of its width. */
.watch .screen-frame { aspect-ratio: 198 / 242; border-radius: 24.5% / 20%; background: #000; }
.screen.wrist {
  width: 198px; height: 242px; --base: #000;
  background: radial-gradient(75% 45% at 5% -6%, rgba(224, 136, 109, 0.42), transparent 70%), radial-gradient(70% 42% at 98% -8%, rgba(176, 96, 154, 0.42), transparent 70%), radial-gradient(90% 40% at 50% 108%, rgba(111, 108, 224, 0.34), transparent 70%), #000;
}
.wtime { position: absolute; top: 12px; right: 24px; font-size: 15px; font-weight: 600; z-index: 2; }
/* The wheel across the whole screen, as on the Watch. */
.wdial { position: absolute; left: 2px; top: 24px; width: 194px; height: 194px; }
.answer.compact { width: 108px; gap: 0; }
.answer.compact .big { font-size: 33px; }
.answer.compact .big small { font-size: 13.6px; margin: 0 3px 0 1px; }
.answer.compact .big small:last-child { margin-right: 0; }
.answer.compact .hint { font-size: 14px; gap: 5px; margin-top: 1px; }
.answer.compact .hint .ic { width: 11px; height: 11px; }
.answer.compact .hint.c-feed, .answer.compact .hint.c-sleep, .answer.compact .hint.c-pump { font-size: 13px; }
.screen.wrist .dots { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; gap: 4px; z-index: 2; }
.screen.wrist .dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: background-color 0.3s; }
.screen.wrist .dots i.on { background: #fff; }
/* The keys: feeding and sleep on top, then nappy and bottle, then pump and medicine. Room for a
   name and the line under it, and the page scrolls for the last row, as on the Watch. */
.wkeys { position: absolute; inset: 36px 13px 0 7px; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; padding-bottom: 10px; scrollbar-width: none; }
.wkeys::-webkit-scrollbar, .wpick::-webkit-scrollbar { display: none; }
.wrocker { flex: 0 0 58px; display: flex; border-radius: 999px; background: linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1px var(--keyEdge); }
.wrocker > i { flex: none; width: 1px; background: var(--line); margin: 14px 0; }
.whalf { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 0 4px; color: var(--feed); border-radius: 999px 0 0 999px; transition: background-color 0.25s, box-shadow 0.25s; }
.whalf:last-child { border-radius: 0 999px 999px 0; }
.whalf.lit { background-color: color-mix(in srgb, var(--feed) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--feed); }
.wrow { flex: 0 0 48px; display: flex; gap: 7px; }
.wkey { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border-radius: 999px; background: linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1px var(--keyEdge); transition: box-shadow 0.25s, background-color 0.25s, transform 0.15s; }
.wkey.wide { flex: 0 0 50px; }
.wkey.lit { box-shadow: inset 0 0 0 1.5px currentColor; background: color-mix(in srgb, currentColor 16%, var(--key)); }
.wkey:active, .whalf:active, .wgive:active, .wchoice:active, .wamount:active, .wquick:active { transform: scale(0.97); }
.wi { display: grid; place-items: center; width: 15px; height: 15px; flex: none; }
/* A name with the line under it, centred together; the rocker keeps the name dead centre. */
.kt { display: flex; flex-direction: column; align-items: center; min-width: 0; line-height: 1.2; gap: 1px; }
.kt > span { font-size: 12.5px; color: var(--primary); white-space: nowrap; }
.kt small { font-size: 9.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kt .ghost { visibility: hidden; }
/* The corner keys, down in the corners the round wheel leaves free: the app's flat key with a
   wash and a fine ring of its colour, the icon in it; fuller with a stop square while running. */
/* Centred 16% of the width in from each edge, inside the screen's rounded corner, as on the Watch. */
.wquick { position: absolute; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: linear-gradient(color-mix(in srgb, currentColor 16%, transparent), color-mix(in srgb, currentColor 16%, transparent)), linear-gradient(var(--key), var(--keyLow));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 75%, transparent), 0 2px 8px rgba(0, 0, 0, 0.55); transition: background 0.3s, box-shadow 0.3s, transform 0.15s; }
.wquick.sleep { left: 12px; }
.wquick.feed { right: 12px; }
.wquick.running { background: linear-gradient(color-mix(in srgb, currentColor 30%, transparent), color-mix(in srgb, currentColor 30%, transparent)), linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1.5px currentColor, 0 2px 8px rgba(0, 0, 0, 0.55); }
.wquick .stop { width: 11px; height: 11px; border-radius: 2.5px; background: currentColor; }
.wquick .ic { width: 17px; height: 17px; }
/* The choices: which nappy, or how much. */
.wpick { position: absolute; inset: 50px 13px 0 7px; overflow-y: auto; padding-bottom: 12px; scrollbar-width: none; }
.wchoices { display: grid; gap: 7px; }
.wchoice { height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; color: var(--primary); background: linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1px var(--keyEdge); transition: transform 0.15s; }
.wamounts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.wamount { height: 40px; border-radius: 999px; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--primary); background: linear-gradient(var(--key), var(--keyLow)); box-shadow: inset 0 0 0 1px var(--keyEdge); transition: transform 0.15s; }
.wamounts.bottle .wamount.usual { box-shadow: inset 0 0 0 1.5px var(--feed); background: color-mix(in srgb, var(--feed) 16%, var(--key)); }
.wamounts.pump .wamount.usual { box-shadow: inset 0 0 0 1.5px var(--pump); background: color-mix(in srgb, var(--pump) 16%, var(--key)); }
/* The medicines, behind their key. */
.wback { position: absolute; left: 12px; top: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; padding-bottom: 2px; color: var(--feed); background: color-mix(in srgb, var(--feed) 22%, transparent); z-index: 3; }
.wtitle { position: absolute; right: 24px; top: 30px; font-size: 13px; color: var(--secondary); }
.wmeds { position: absolute; inset: 52px 13px 0 7px; overflow: auto; display: grid; gap: 6px; align-content: start; padding-bottom: 8px; scrollbar-width: none; }
.wmeds::-webkit-scrollbar { display: none; }
.wmed { padding: 8px; border-radius: 16px; background: color-mix(in srgb, var(--key) 60%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.wmed .n { display: flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 600; }
.wmed .l { font-size: 10px; line-height: 1.3; color: var(--secondary); margin: 3px 0 6px; }
.wgive { width: 100%; height: 30px; border-radius: 999px; font-size: 12px; font-weight: 500; background: color-mix(in srgb, var(--medicine) 16%, var(--key)); box-shadow: inset 0 0 0 1.5px var(--medicine); transition: transform 0.15s; }

@media (max-width: 520px) {
  .watch-row { flex-direction: column; text-align: center; }
  /* Too narrow for two side by side: larger, and laid one over the other. */
  .pair { display: grid; grid-template-columns: 100%; gap: 0; }
  .pair .ring-card { width: 64vw; border-radius: 30px; padding: 16px 14px 12px; }
  .pair .ring-card:first-child { justify-self: start; }
  .pair .ring-card:last-child { justify-self: end; margin-top: -16vw; transform: none; }
  .pair .ring-card:first-child .caption { visibility: hidden; }
  .ring-card .caption { font-size: 12px; }
  .lock { padding: 16px 16px 14px; }
  .lock .chip { font-size: 11.5px; padding: 0 9px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .mini-sky::before, .mini-sky::after, .mini-sky span, .breathe { animation: none; }
  .lock { transition: none; }
}
