/* Fennly website. Colours are the app's Sage (light) and Forest (dark) themes from ThemeManager, with two additions
   so text reaches WCAG AA: --ink (accent for links and small text) and --btn (button fill). Layout is shared with the
   Inkloom site so the two read as sisters. */

@font-face { font-family: 'Literata'; src: url('fonts/literata-latin-wght-normal.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('fonts/literata-latin-wght-italic.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f4efe4; --panel: #fbf8f1; --well: #ede6d6; --text: #2f3a2f; --muted: #5d6a55; --faint: #8a8f7e;
  --accent: #7c9a6b; --accent-soft: #dce6d0; --line: #e4dccb; --warm: #d9a07a; --rose: #c46a5e; --shadow: #4c5a3e;
  --ink: #596f4d; --btn: #596f4d; --on-btn: #ffffff;
  --paper: #fffdf8; --track: #e4e0d2;
  --shadow-k: 12%;

  --font-display: 'Literata', 'Sitka Heading', Georgia, serif;
  --font-body: 'Figtree', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-number: 'Figtree', 'Segoe UI Variable Display', system-ui, sans-serif;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --shadow-card: 0 8px 30px color-mix(in srgb, var(--shadow) var(--shadow-k), transparent);
  --shadow-lg: 0 18px 50px color-mix(in srgb, var(--shadow) calc(var(--shadow-k) * 1.5), transparent),
               0 2px 6px color-mix(in srgb, var(--shadow) var(--shadow-k), transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Forest: used when the system is dark (unless the visitor picked light), or when they picked dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #1e2620; --panel: #283229; --well: #232c25; --text: #e4eadf; --muted: #a9b8a0; --faint: #7e8f77;
    --accent: #9dbb8a; --accent-soft: #36443a; --line: #33403a; --warm: #e3b07e; --rose: #e8958c; --shadow: #000;
    --ink: #9dbb8a; --btn: #9dbb8a; --on-btn: #1e2620;
    --paper: #2c372d; --track: #36443a;
    --shadow-k: 34%;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #1e2620; --panel: #283229; --well: #232c25; --text: #e4eadf; --muted: #a9b8a0; --faint: #7e8f77;
  --accent: #9dbb8a; --accent-soft: #36443a; --line: #33403a; --warm: #e3b07e; --rose: #e8958c; --shadow: #000;
  --ink: #9dbb8a; --btn: #9dbb8a; --on-btn: #1e2620;
  --paper: #2c372d; --track: #36443a;
  --shadow-k: 34%;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); font-weight: 560; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 560; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--panel); color: var(--text); padding: 10px 14px; border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.3rem/1 var(--font-display); }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .97rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, transform .15s var(--ease); }
.theme-btn:hover { background: var(--well); }
.theme-btn:active { transform: scale(.94); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-mode='dark'] .theme-btn .sun { display: none; }
:root[data-mode='dark'] .theme-btn .moon { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .18s, transform .18s var(--ease), box-shadow .18s; }
.btn-primary { background: var(--btn); color: var(--on-btn); box-shadow: 0 6px 18px color-mix(in srgb, var(--btn) 30%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn) 88%, var(--text)); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.97); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--panel); }
.btn[aria-disabled='true'] { cursor: default; color: var(--muted); background: transparent; border-style: dashed; border-color: var(--faint); transform: none; box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .94rem; }

/* Hero */
.hero { position: relative; padding: clamp(32px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy .lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 32em; }
.hero h1 em { font-style: italic; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.fine { font-size: .93rem; color: var(--muted); margin: 0; }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob-a { width: 420px; height: 420px; background: var(--accent-soft); right: 4%; top: 6%; }
.blob-b { width: 260px; height: 260px; background: color-mix(in srgb, var(--warm) 40%, var(--bg)); right: 32%; bottom: 0; opacity: .35; }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: clamp(48px, 6.5vw, 92px) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; background: var(--accent); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.8c1.6 1.2 2.8 2.6 3.6 4.2C8 8.6 10.6 5.2 13.8 2.6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ticks strong { font-weight: 650; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }

/* Quillet */
.quillet { --muted: color-mix(in srgb, var(--muted) 78%, var(--text)); background: var(--accent-soft); border-radius: clamp(24px, 4vw, 40px); padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px); position: relative; overflow: hidden; }
.quillet .split { align-items: start; }
.quillet h2 { max-width: 14em; }
.quillet .lede { font-size: 1.12rem; }
.chat { background: var(--panel); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 12px; font-size: .95rem; }
.chat-head { display: flex; align-items: center; gap: 10px; font-weight: 650; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat-head svg { width: 34px; height: 34px; }
.chat-head small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; }
.msg.me { justify-self: end; background: var(--btn); color: var(--on-btn); border-bottom-right-radius: 5px; }
.msg.q { background: var(--well); border-bottom-left-radius: 5px; }
.msg .mini { margin-top: 10px; background: var(--paper); border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.msg .mini svg { width: 100%; height: auto; }
.chat-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 16px; color: var(--muted); font-size: .9rem; }
.chat-input i { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; }
.chat-input svg { width: 15px; height: 15px; }
.q-facts { margin-top: 28px; display: grid; gap: 6px; font-size: .97rem; }
.q-facts p { margin: 0; }

/* Works with Inkloom */
.pair { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); }
.pair .pets { display: flex; align-items: end; gap: 4px; }
.pair .pets svg { width: 84px; height: 84px; }
.pair h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pair p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 1.12rem/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); translate: 0 -70%; rotate: 45deg; transition: rotate .2s var(--ease); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 -20%; }
.faq details p { color: var(--muted); padding-right: 40px; }

/* Get it */
.get { text-align: center; display: grid; justify-items: center; gap: 4px; }
.get .pot { width: 120px; height: 120px; }
.get .pot .quill { transform-origin: 64px 54px; transition: rotate .6s var(--ease); }
.get .pot:hover .quill { rotate: -8deg; }
.get p { max-width: 34rem; color: var(--muted); }
.get .cta-row { justify-content: center; margin-top: 12px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .94rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* Plain text pages (privacy, 404) */
.doc { max-width: 44rem; padding: clamp(40px, 6vw, 72px) 0 80px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2em; }
.doc li { margin-bottom: .4em; }
.draft-note { background: var(--accent-soft); border-radius: var(--r-lg); padding: 16px 20px; margin: 0 0 32px; }
.draft-note p { margin: 0; }

/* Narrower screens */
@media (max-width: 960px) {
  .nav { display: none; }
  .head-actions { margin-left: auto; }
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .pair { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .head-actions .btn { padding: 0 14px; }
}
@media (max-width: 420px) {
  .head-actions .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Fennly's own pieces ---------- */

/* Hero: the focus card. On load the ring fills to where the session is and the sprout grows its leaves. */
.focus { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; padding: 10px; background: var(--well); border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.focus-main { background: var(--panel); border-radius: var(--r-lg); padding: 20px; display: grid; justify-items: center; text-align: center; gap: 6px; }
.ring { position: relative; width: min(100%, 220px); aspect-ratio: 1; margin: 6px 0 2px; }
.ring > svg { width: 100%; height: 100%; rotate: -90deg; }
.ring .track { fill: none; stroke: var(--track); stroke-width: 12; }
.ring .prog { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 38; }
.ring .inside { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.ring .inside svg { width: 88px; height: 88px; margin-bottom: -6px; }
.ring .time { font: 650 2rem/1 var(--font-number); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ring .of { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.blocks { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.blocks i { width: 18px; height: 6px; border-radius: 3px; background: var(--track); }
.blocks i.done { background: var(--accent); }
.blocks i.half { background: linear-gradient(90deg, var(--accent) 50%, var(--track) 50%); }
.focus-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--well); font-size: .8rem; font-weight: 600; color: var(--text); }
.chip.on { background: var(--btn); color: var(--on-btn); }
.grow { transform-box: fill-box; transform-origin: center bottom; }
.grow.l1 { transform-origin: right bottom; } .grow.l2 { transform-origin: left bottom; }
@media (prefers-reduced-motion: no-preference) {
  .js .ring .prog { animation: ring .9s var(--ease) .1s both; }
  .js .grow { animation: grow .35s var(--ease) both; }
  .js .grow.l1 { animation-delay: .3s; } .js .grow.l2 { animation-delay: .5s; } .js .grow.l3 { animation-delay: .7s; }
}
@keyframes ring { from { stroke-dashoffset: 100; } }
@keyframes grow { from { scale: 0; opacity: 0; } }

/* Time's up */
.timesup { padding: clamp(20px, 3vw, 32px); max-width: 460px; width: 100%; margin-inline: auto; display: grid; gap: 14px; }
.timesup .title { font: 600 1.35rem/1.2 var(--font-display); margin: 0; }
.timesup .sub { margin: -8px 0 0; color: var(--muted); font-size: .92rem; }
.timesup .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.timesup .btn { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.timesup .extend { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--well); }
.timesup .extend b { font-size: .85rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin: 32px 0 0; }
.facts dt { font-weight: 650; }
.facts dd { margin: 2px 0 0; color: var(--muted); }

/* Gentle blocking */
.blocking { display: grid; gap: 16px; }
.headsup { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px 18px; max-width: 400px; position: relative; z-index: 1; }
.headsup .count { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem/1 var(--font-number); background: var(--accent-soft); color: var(--ink); border: 3px solid var(--accent); }
.headsup p { margin: 0; font-size: .92rem; }
.headsup small { color: var(--muted); }
.browser { overflow: hidden; margin: -34px 0 0 clamp(0px, 6vw, 60px); }
.browser .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--well); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser .url { margin-left: 8px; flex: 1; background: var(--panel); border-radius: 999px; padding: 5px 14px; font-size: .8rem; color: var(--muted); }
.browser .page { padding: 48px 24px 38px; display: grid; justify-items: center; text-align: center; gap: 4px; background: var(--bg); }
.browser .page svg { width: 84px; height: 84px; }
.browser .page b { font: 600 1.5rem/1.2 var(--font-display); }
.browser .page span { color: var(--muted); font-size: .9rem; }
.allowed { margin-top: clamp(32px, 5vw, 56px); }
.allowed p { margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: .88rem; }

/* Schedule */
.week { padding: clamp(14px, 2.4vw, 24px); }
.week svg { width: 100%; height: auto; }

/* Overrides: the defaults as a short row */
.defaults { display: flex; flex-wrap: wrap; gap: 16px 44px; margin: 28px 0 0; padding: 0; list-style: none; }
.defaults li { display: grid; }
.defaults b { font: 600 2rem/1.1 var(--font-display); color: var(--ink); }
.defaults span { color: var(--muted); font-size: .92rem; }

/* What Fennly is and isn't */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.compare > div { padding: clamp(22px, 3.4vw, 40px); }
.compare > div + div { background: var(--well); }
.compare h3 { font-size: 1.35rem; margin-bottom: 14px; }
.compare ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; }
.compare li::marker { color: var(--accent); }

/* Parents: three real steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--on-btn); font: 700 1.1rem/1 var(--font-number); }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 21px; left: 54px; right: -12px; border-top: 2px dashed var(--line); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; }
.code { display: inline-flex; gap: 4px; margin-top: 14px; }
.code span { width: 30px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font: 700 1.05rem/1 var(--font-number); }
.parent-note { margin-top: 36px; color: var(--muted); max-width: 44rem; }

/* Insights */
.insights { padding: clamp(18px, 3vw, 28px); }
.insights .stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-bottom: 16px; }
.insights .stats div { display: grid; }
.insights .stats b { font: 650 1.4rem/1.1 var(--font-number); }
.insights .stats span { font-size: .82rem; color: var(--muted); }
.insights svg { width: 100%; height: auto; }
.bar { fill: var(--accent); }
.bar.bar-day text { font: 600 11px var(--font-body); fill: var(--muted); text-anchor: middle; }
.bar-base { stroke: var(--line); stroke-width: 1; }
.insights .export { display: flex; gap: 8px; margin-top: 12px; }

/* Companions, each in its own theme's colours */
.pets3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.pets3 figure { margin: 0; border-radius: var(--r-xl); padding: 18px 12px 16px; text-align: center; background: var(--t-bg); color: var(--t-text); }
.pets3 svg { width: min(100%, 110px); height: auto; margin: 0 auto 6px; }
.pets3 figcaption { font-size: .9rem; }
.pets3 figcaption b { display: block; font: 600 1.05rem/1.3 var(--font-display); }
.t-sage { --t-bg: #ede6d6; --t-text: #2f3a2f; } .t-oat { --t-bg: #e8dccd; --t-text: #3b2a22; } .t-lav { --t-bg: #e8e3f3; --t-text: #2e2840; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .t-sage { --t-bg: #283229; --t-text: #e4eadf; }
  :root:not([data-theme='light']) .t-oat { --t-bg: #30261f; --t-text: #f1e6dc; }
  :root:not([data-theme='light']) .t-lav { --t-bg: #352f48; --t-text: #ede7f6; }
}
:root[data-theme='dark'] .t-sage { --t-bg: #283229; --t-text: #e4eadf; }
:root[data-theme='dark'] .t-oat { --t-bg: #30261f; --t-text: #f1e6dc; }
:root[data-theme='dark'] .t-lav { --t-bg: #352f48; --t-text: #ede7f6; }
.joys { margin-top: 28px; }
.get .pet { width: 120px; height: 120px; }
.get .pet .plant { transform-origin: 60px 74px; transition: rotate .6s var(--ease); }
.get .pet:hover .plant { rotate: 4deg; }

/* Focus card details, schedule bits and small helpers used on the home page */
.focus-info { background: var(--panel); border-radius: var(--r-lg); padding: 22px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: .9rem; }
.focus-info p { margin: 0; color: var(--muted); }
.focus-info .note { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; width: 100%; }
.focus-info .note b { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); font-size: .78rem; font-weight: 650; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.task-title { font: 600 1.3rem/1.2 var(--font-display); }
.chip svg { width: 14px; height: 14px; }
.wk-rows rect { fill: var(--well); }
.wk-day-l text { font: 600 13px var(--font-body); fill: var(--muted); }
.wk-on rect { fill: var(--accent); }
.wk-hour text { font: 500 11px var(--font-number); fill: var(--muted); text-anchor: middle; }
.wk-cap { margin: 10px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.parents { display: grid; gap: clamp(36px, 5vw, 56px); }
.ticks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.bar.part { fill: color-mix(in srgb, var(--accent) 45%, var(--well)); }
.sub-h { font-size: 1.2rem; margin-top: 32px; }
.fine-top { margin-top: 12px; font-size: .93rem; }
.split.top { align-items: start; }
.small { font-size: .93rem; }
.joy-title { font-size: 1.25rem; }

@media (max-width: 960px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .ticks.two { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .focus { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .pets3 { grid-template-columns: minmax(0, 1fr); }
  .pets3 figure { display: grid; grid-template-columns: 84px 1fr; align-items: center; text-align: left; gap: 12px; }
  .pets3 svg { margin: 0; }
  .browser { margin: -24px 0 0; }
}
