/*
  Sprout & Soil: plant care app landing page (Screenery template)
  A risograph print: two spot inks (fluorescent pink, medium blue) overprinted with multiply on warm off-white paper,
  with grain, halftone dots and a slight misregistration (--mx, --my) between the ink layers. The Misregister switch widens it.

  Contents
   1. Tokens
   2. Base and browser surfaces, paper grain
   3. Ink system: .print headings, .ink illustrations, misregistration
   4. Components: buttons, fields, chips, switch, toast
   5. Header
   6. Hero and the phone
   7. The app: list, care card, calendar, add sheet
   8. How it works and the formula
   9. Library
  10. Care sheet
  11. Pricing
  12. Download
  13. Questions, footer
  14. Motion
  15. Narrow screens
  16. Print: the care sheet in two inks
*/

/* ---------- 1. Tokens ---------- */
@property --mx { syntax: '<length>'; inherits: true; initial-value: 2px; }
@property --my { syntax: '<length>'; inherits: true; initial-value: -1.5px; }

:root {
  /* Spot inks and paper */
  --pink: #ff48b0;          /* Fluorescent pink: shapes, plates, halftone. Never body text (2.6:1 on paper). */
  --blue: #3255a4;          /* Medium blue: the text ink, 6:1 on paper */
  --deep: #23164f;          /* Where both inks overprint heavily: text on pink */
  --violet: #3a1d72;        /* pink x blue multiply, for small marks */
  --paper: #f3eee3;         /* Warm off-white stock */
  --paper-hi: #faf7f0;      /* Unprinted, brighter paper (phone screen, sheet) */
  --paper-lo: #e9e1d0;      /* Paper in shadow */
  --pink-wash: #ffd9ec;     /* 20% pink tint, screened */
  --blue-wash: #dde3f2;     /* 15% blue tint, screened */
  --danger: #b0186f;        /* Error text: a dense pink, 5.6:1 on paper */

  /* Misregistration: how far the pink plate sits from the blue */
  --mx: 2px;
  --my: -1.5px;

  /* Type */
  --display: 'Bagel Fat One', 'Darker Grotesque', system-ui, sans-serif;
  --body: 'Darker Grotesque', system-ui, sans-serif;
  --step--1: 1.05rem;
  --step-0: 1.25rem;
  --step-1: 1.5rem;
  --step-2: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem);
  --step-3: clamp(2.4rem, 1.6rem + 3vw, 3.9rem);
  --step-4: clamp(3rem, 1.8rem + 4.6vw, 5.6rem);

  /* Space and shape */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --r1: 6px; --r2: 12px; --r3: 20px; --r-pill: 999px;
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 5.5rem; scrollbar-color: var(--blue) var(--paper-lo); accent-color: var(--blue); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--blue);
  font: 500 var(--step-0)/1.4 var(--body);
  caret-color: var(--pink);
  overflow-x: clip;
}
/* Paper grain over everything: printed speckle, never blocks a click */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .45 2.2 0 0 0 -1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--pink); color: var(--deep); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; text-decoration-color: var(--pink); }
a:hover { text-decoration-color: var(--blue); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
table { font-variant-numeric: tabular-nums; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: var(--s4); top: -4rem; z-index: 100; background: var(--blue); color: var(--paper); padding: var(--s3) var(--s4); border-radius: var(--r1); font-weight: 700; }
.skip:focus { top: var(--s4); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 3. Ink system ---------- */
/* Display type prints twice: blue text, and a pink copy on its own plate, overprinted and a little out of register. */
.print {
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  color: var(--blue);
  line-height: .98;
  letter-spacing: -.01em;
}
.print::after {
  content: attr(data-ink) / '';
  position: absolute;
  inset: 0;
  color: var(--pink);
  mix-blend-mode: multiply;
  transform: translate(calc(var(--mx) * 2.2), calc(var(--my) * 2.2));
  pointer-events: none;
  text-wrap: balance;
}
/* Illustrations: two <use> layers, one per ink */
.ink { overflow: visible; }
.ink .ink-a { mix-blend-mode: multiply; transform: translate(var(--mx), var(--my)); }
.ink .ink-b { mix-blend-mode: multiply; transform: translate(calc(var(--mx) * -.6), calc(var(--my) * -.6)); }
.print::after, .ink .ink-a, .ink .ink-b { transition: transform .7s var(--ease); }

/* Misregister on: the plates slide apart */
html.mis { --mx: 7px; --my: -5px; }

/* ---------- 4. Components ---------- */
.btn {
  /* The face and the plate are both pseudo-elements, so the pink plate can sit under the blue face */
  --face: var(--blue);
  --edge: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: .55rem 1.35rem .7rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--face); /* repeated on ::after so the face covers the plate */
  color: var(--paper-hi);
  font: 800 var(--step-0)/1 var(--body);
  text-decoration: none;
  isolation: isolate;
  transition: transform .35s var(--ease);
}
.btn::before, .btn::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; }
/* The pink plate, printed out of register */
.btn::before {
  background: var(--pink);
  transform: translate(calc(var(--mx) + 3px), calc(var(--my) * -1 + 3px));
  transition: transform .35s var(--ease);
}
/* The blue face */
.btn::after { background: var(--face); box-shadow: var(--edge); transition: background-color .2s; }
.btn:hover { --face: var(--deep); }
.btn:hover::before { transform: translate(calc(var(--mx) + 5px), calc(var(--my) * -1 + 5px)); }
.btn:active { transform: translate(2px, 2px); }
.btn:active::before { transform: translate(1px, 1px); }
.btn--line { --face: var(--paper-hi); --edge: inset 0 0 0 2.5px var(--blue); color: var(--blue); }
.btn--line:hover { --face: var(--blue-wash); }
.btn--small { min-height: 44px; padding: .4rem 1rem .5rem; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy='true'] { cursor: default; }
.btn[disabled] { --face: var(--paper-lo); color: #4f4e66; }
.btn[disabled]::before { background: var(--pink-wash); }
/* Loading: a spinning drop */
.btn[aria-busy='true'] span::before {
  content: '';
  display: inline-block;
  width: .9em; height: .9em;
  margin-right: .5em;
  vertical-align: -.1em;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.linkish { background: none; border: 0; padding: var(--s2) 0; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: .2em; color: inherit; }

.field { margin: 0 0 var(--s4); padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; margin-bottom: var(--s2); padding: 0; font-weight: 800; font-size: var(--step--1); letter-spacing: .02em; }
.opt { font-weight: 500; }
input[type='text'], input[type='email'] {
  width: 100%;
  min-height: 46px;
  padding: .45rem .8rem .55rem;
  border: 2px solid var(--blue);
  border-radius: var(--r1);
  background: var(--paper-hi);
  color: var(--deep);
  font-weight: 600;
}
input::placeholder { color: #5d6a96; opacity: 1; }
input:focus-visible { outline: 3px solid var(--pink); outline-offset: 1px; }
.field--bad input[type='text'], .field--bad input[type='email'] { border-color: var(--danger); background: var(--pink-wash); }
.field__err { margin-top: var(--s2); color: var(--danger); font-weight: 700; font-size: var(--step--1); line-height: 1.25; }
.field--bad .chips, .field--bad .pots { border-radius: var(--r1); outline: 2px dashed var(--danger); outline-offset: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; }
.chip input, .pot input, .tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .3rem .85rem .4rem;
  border: 2px solid var(--blue); border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--step--1);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.chip input:checked + span { background: var(--blue); color: var(--paper-hi); box-shadow: 3px 2px 0 0 var(--pink); }
.chip input:focus-visible + span, .pot input:focus-visible + span, .tick input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.tick { position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 44px; margin-bottom: var(--s4); font-weight: 600; cursor: pointer; }
.tick span::before { content: ''; display: inline-block; width: 22px; height: 22px; margin-right: var(--s3); vertical-align: -5px; border: 2px solid var(--deep); border-radius: 4px; background: var(--paper-hi); }
.tick input:checked + span::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10.5 4 4 8-9' fill='none' stroke='%23faf7f0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Misregister switch */
.mis-switch {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s2);
  border: 0; background: none;
  font-weight: 800; font-size: var(--step--1);
}
.mis-switch__track { position: relative; width: 46px; height: 26px; border: 2px solid var(--blue); border-radius: var(--r-pill); background: var(--paper-hi); }
.mis-switch__dot { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: 3px -2px 0 var(--pink); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.mis-switch[aria-checked='true'] .mis-switch__track { background: var(--pink-wash); }
.mis-switch[aria-checked='true'] .mis-switch__dot { transform: translateX(20px); box-shadow: 7px -5px 0 var(--pink); }

/* ---------- 5. Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: var(--s5);
  padding: var(--s3) var(--gutter);
  background: var(--paper);
  border-bottom: 2px solid var(--blue);
}
.logo { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; margin-right: auto; }
.logo__mark { width: 40px; height: 40px; }
.logo__name { font: 400 1.5rem/1 var(--display); color: var(--blue); }
.logo__name i { font-style: normal; color: var(--pink); mix-blend-mode: multiply; }
.top__nav { display: flex; gap: var(--s5); font-weight: 700; }
.top__nav a { text-decoration: none; padding: var(--s2) 0; }
.top__nav a:hover { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; }

/* ---------- 6. Hero and the phone ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: var(--s7) var(--gutter) var(--s8);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s7);
  align-items: center;
}
.hero__title { font-size: var(--step-4); max-width: 11ch; }
.hero__lede { margin-top: var(--s5); max-width: 36ch; font-size: var(--step-1); line-height: 1.3; font-weight: 600; color: var(--deep); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }
.hero__note { margin-top: var(--s4); font-weight: 600; }
.hero__try { margin-top: var(--s6); max-width: 34ch; padding: var(--s3) var(--s4); border: 2px dashed var(--blue); border-radius: var(--r2); font-weight: 600; background: var(--paper-hi); }

.hero__stage { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 760px; }
.art { position: absolute; z-index: -1; pointer-events: none; }
.art--sun { width: 380px; top: 10px; right: -30px; }
.art--can { width: 210px; bottom: -10px; left: -130px; transform: rotate(-12deg); z-index: 2; }
.art--leaf { width: 300px; bottom: -10px; right: -60px; transform: rotate(18deg); }

.phone {
  position: relative;
  width: 368px;
  padding: 12px;
  border: 3px solid var(--blue);
  border-radius: 50px;
  background: var(--blue);
}
/* The pink plate of the phone body, halftone, out of register */
.phone::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, var(--pink) 42%, transparent 46%) 0 0 / 7px 7px;
  transform: translate(calc(var(--mx) * 3 + 14px), calc(var(--my) * -3 + 14px));
  transition: transform .7s var(--ease);
}
.phone__screen {
  position: relative;
  height: 724px;
  overflow: clip;
  border-radius: 38px;
  background: var(--paper-hi);
  color: var(--blue);
}
.status { position: absolute; inset: 0 0 auto; z-index: 3; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0; font: 800 .95rem/1 var(--body); font-variant-numeric: tabular-nums; background: var(--paper-hi); }
.status__icons { display: flex; gap: 4px; align-items: flex-end; }
.status__icons i { display: block; width: 4px; background: var(--blue); border-radius: 1px; }
.status__icons i:nth-child(1) { height: 6px; } .status__icons i:nth-child(2) { height: 9px; } .status__icons i:nth-child(3) { height: 12px; width: 18px; border-radius: 3px; background: none; border: 2px solid var(--blue); }

/* ---------- 7. The app ---------- */
.view { position: absolute; inset: 34px 0 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: var(--s3) 18px var(--s5); }
.app-head { padding: var(--s2) 4px var(--s3); }
.app-head__date { font-weight: 700; font-size: 1rem; }
.app-head__title { font: 400 2.3rem/1 var(--display); color: var(--blue); margin-top: 2px; }
.app-head__sum { margin-top: var(--s2); font-weight: 700; font-size: 1.1rem; color: var(--deep); line-height: 1.2; }
.app-head__sum b { background: var(--pink); color: var(--deep); padding: 0 .3em; border-radius: 4px; font-weight: 800; }

.plants { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plant {
  width: 100%;
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 10px; align-items: center;
  padding: 8px 10px 9px 8px;
  border: 2px solid var(--blue); border-radius: 16px;
  background: var(--paper-hi);
  text-align: left;
  transition: transform .3s var(--ease), background-color .2s;
}
.plant:hover { background: var(--blue-wash); }
.plant:active { transform: scale(.985); }
.plant__art { grid-row: 1 / 4; width: 46px; height: 46px; }
.plant__name { grid-column: 2; font: 400 1.2rem/1.05 var(--display); color: var(--blue); }
.plant__sub { grid-column: 2; font-size: .98rem; font-weight: 600; line-height: 1.15; color: var(--deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plant__due { grid-column: 3; grid-row: 1 / 3; justify-self: end; padding: .15rem .55rem .25rem; border-radius: var(--r-pill); border: 2px solid var(--blue); font-weight: 800; font-size: .98rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plant__dots { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.plant__dots i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--blue); }
.plant__dots i.on { background: var(--blue); }
.plant__dots i.over { background: var(--pink); border-color: var(--deep); }
.plant--today .plant__due { background: var(--pink); border-color: var(--pink); color: var(--deep); }
.plant--soon .plant__due { background: var(--blue); color: var(--paper-hi); }
.plant--late { background: var(--pink-wash); border-color: var(--deep); }
.plant--late .plant__due { background: var(--deep); border-color: var(--deep); color: var(--paper-hi); }
.plant--new { animation: pop .8s var(--ease); }
/* Overdue plants in ?state=thirsty get a halftone flood */
.plant--late { background-image: radial-gradient(circle, rgba(255, 72, 176, .35) 38%, transparent 42%); background-size: 6px 6px; }

.app-foot { position: sticky; bottom: calc(var(--s5) * -1); margin: var(--s4) -18px calc(var(--s5) * -1); padding: var(--s3) 18px var(--s4); background: linear-gradient(to bottom, transparent, var(--paper-hi) 30%); display: grid; gap: 6px; justify-items: center; }
.app-add { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; min-height: 50px; border: 0; border-radius: var(--r-pill); background: var(--blue); color: var(--paper-hi); font-weight: 800; font-size: 1.2rem; box-shadow: 3px 3px 0 var(--pink); }
.app-add:hover { background: var(--deep); }
.app-foot__count { font-weight: 700; font-size: .98rem; }

/* Care card */
.card-head { display: flex; align-items: center; justify-content: space-between; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--blue); border-radius: 50%; background: var(--paper-hi); color: var(--blue); }
.icon-btn:hover { background: var(--blue-wash); }
.card-head__room { font-weight: 800; padding: .15rem .7rem .25rem; border-radius: var(--r-pill); background: var(--blue-wash); }
.card-hero { display: grid; grid-template-columns: 96px 1fr; gap: var(--s3); align-items: center; margin: var(--s3) 0; }
.card-hero__art { width: 96px; height: 96px; }
.card-hero__name { font: 400 2.1rem/1 var(--display); color: var(--blue); overflow-wrap: anywhere; }
.card-hero__latin { font-style: italic; font-weight: 600; color: var(--deep); margin-top: 4px; }
.due-box { padding: var(--s3) var(--s4) var(--s4); border-radius: 18px; background: var(--blue-wash); border: 2px solid var(--blue); }
.due-box__big { font: 400 1.6rem/1.05 var(--display); color: var(--blue); }
.due-box__next { margin-top: 4px; font-weight: 700; color: var(--deep); }
.due-box .btn { width: 100%; margin-top: var(--s3); }
.due-box--late { background: var(--pink-wash); border-color: var(--deep); }
.due-box--late .due-box__big { color: var(--deep); }
.btn--water[disabled] { --face: var(--paper-hi); --edge: inset 0 0 0 2px var(--blue); color: var(--blue); }
.btn--water[disabled]::before { background: transparent; }
.facts { display: grid; gap: 0; margin: var(--s4) 0 0; }
.facts div { display: grid; grid-template-columns: 7.2rem 1fr; gap: var(--s2); padding: 7px 0; border-bottom: 1.5px dashed var(--blue); }
.facts dt { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.facts dd { margin: 0; font-weight: 600; color: var(--deep); line-height: 1.3; }
.formula-line { margin-top: var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r1); background: var(--pink-wash); color: var(--deep); font-weight: 700; font-size: 1.02rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.cal { margin-top: var(--s4); }
.cal__title { font: 400 1.25rem/1 var(--display); margin-bottom: var(--s2); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-weight: 800; font-size: .85rem; padding-bottom: 2px; }
.cal__day { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--deep); background: var(--paper); }
.cal__day--past { color: #4c4a6e; background: transparent; }
.cal__day--done { background: var(--pink); color: var(--deep); border-radius: 50% 50% 50% 8px; }
.cal__day--plan { box-shadow: inset 0 0 0 2.5px var(--blue); border-radius: 50%; background: var(--paper-hi); color: var(--blue); }
.cal__day--late { background: repeating-linear-gradient(-45deg, var(--pink-wash) 0 3px, var(--paper-hi) 3px 6px); color: var(--deep); }
.cal__day--today { outline: 3px solid var(--deep); outline-offset: -1px; }
.cal__day--today.cal__day--plan { background: var(--blue); color: var(--paper-hi); }
.cal__key { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s3) 0 0; padding: 0; font-weight: 700; font-size: .95rem; }
.cal__key li { display: flex; align-items: center; gap: 6px; }
.k { width: 14px; height: 14px; display: inline-block; }
.k--done { background: var(--pink); border-radius: 50% 50% 50% 3px; }
.k--plan { box-shadow: inset 0 0 0 2px var(--blue); border-radius: 50%; }
.k--late { background: repeating-linear-gradient(-45deg, var(--pink) 0 2px, var(--paper-hi) 2px 4px); border-radius: 3px; }

/* Add a plant sheet */
.sheet {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(circle, rgba(50, 85, 164, .35) 36%, transparent 40%) 0 0 / 6px 6px, rgba(250, 247, 240, .55);
}
.sheet__body {
  max-height: calc(100% - 48px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: var(--s4) 18px var(--s5);
  border: 3px solid var(--blue);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--paper-hi);
  box-shadow: 0 -10px 30px rgba(35, 22, 79, .18);
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.sheet__head h2 { font: 400 1.7rem/1 var(--display); color: var(--blue); }
.search { position: relative; }
.search .i { position: absolute; left: 10px; top: 13px; }
.search input { padding-left: 38px; }
.sp-list { position: relative; list-style: none; margin: var(--s2) 0 0; padding: 4px; max-height: 172px; overflow-y: auto; border: 2px solid var(--blue); border-radius: var(--r1); scrollbar-width: thin; }
.sp-opt { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border-radius: 6px; cursor: pointer; line-height: 1.1; }
.sp-opt svg { width: 32px; height: 32px; }
.sp-opt b { display: block; font-weight: 800; color: var(--deep); }
.sp-opt small { font-size: .9rem; font-style: italic; font-weight: 600; }
.sp-opt em { font-style: normal; font-weight: 800; font-size: .9rem; }
.sp-opt.is-active { background: var(--blue-wash); }
.sp-opt[aria-selected='true'] { background: var(--blue); color: var(--paper-hi); }
.sp-opt[aria-selected='true'] b { color: var(--paper-hi); }
.sp-empty { padding: var(--s3); font-weight: 600; }
.pots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pot { position: relative; }
.pot span { display: grid; place-items: center; text-align: center; min-height: 58px; padding: 6px 4px; border: 2px solid var(--blue); border-radius: var(--r2); font-size: .92rem; font-weight: 600; line-height: 1.05; cursor: pointer; }
.pot b { display: block; font-size: 1.05rem; font-weight: 800; }
.pot input:checked + span { background: var(--blue); color: var(--paper-hi); box-shadow: 3px 2px 0 var(--pink); }
.preview { margin: var(--s2) 0 var(--s4); padding: var(--s3); border-radius: var(--r2); background: var(--pink-wash); color: var(--deep); }
.preview__label { font-weight: 800; font-size: .95rem; }
.preview__out { font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.preview__out b { font: 400 1.35rem/1.1 var(--display); color: var(--blue); display: block; margin-bottom: 2px; }
.sheet__fail { margin-bottom: var(--s3); padding: var(--s3); border-radius: var(--r1); border: 2px solid var(--danger); color: var(--danger); font-weight: 700; line-height: 1.25; }

.toast {
  position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 10px 12px 10px 16px;
  border-radius: 16px;
  background: var(--deep); color: var(--paper-hi);
  font-weight: 700; line-height: 1.2;
  box-shadow: 4px 4px 0 var(--pink);
  transform: translateY(calc(100% + 40px));
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.toast.is-on { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.toast button { flex: none; min-height: 40px; padding: 0 12px; border: 2px solid var(--pink); border-radius: var(--r-pill); background: transparent; color: var(--paper-hi); font-weight: 800; }

/* ---------- 8. How it works ---------- */
.how, .library, .pricing, .faq { max-width: var(--wrap); margin: 0 auto; padding: var(--s8) var(--gutter); }
.sec-title { font-size: var(--step-3); max-width: 18ch; }
.how { border-top: 2px solid var(--blue); }
.steps { list-style: none; margin: var(--s7) 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); grid-template-areas: 'add sum' 'tap sum'; gap: var(--s6) var(--s7); }
.step { counter-increment: step; position: relative; }
.step::before {
  content: counter(step);
  display: block;
  font: 400 4.2rem/1 var(--display);
  color: var(--pink);
  -webkit-text-stroke: 2px var(--blue);
  margin-bottom: var(--s2);
}
.step--add h3, .step--tap h3 { padding-right: 150px; }
.step h3 { font: 400 var(--step-2)/1.05 var(--display); color: var(--blue); }
.step p { margin-top: var(--s3); max-width: 44ch; font-weight: 600; color: var(--deep); }
.step--add { grid-area: add; }
.step--tap { grid-area: tap; }
.step--sum { grid-area: sum; padding: var(--s6); border-radius: var(--r3); background: var(--blue); color: var(--paper-hi); }
.step--sum::before { color: var(--pink); -webkit-text-stroke: 2px var(--paper-hi); }
.step--sum h3, .step--sum p { color: var(--paper-hi); }
.step__art { position: absolute; right: 0; top: 0; width: 96px; height: 96px; }
.step__art--can { width: 140px; height: auto; top: 6px; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: var(--s5) 0; }
.formula__term { display: grid; padding: var(--s2) var(--s4) var(--s3); border-radius: var(--r2); background: var(--paper-hi); color: var(--blue); font-weight: 700; font-size: 1rem; line-height: 1.1; }
.formula__term b { font: 400 1.6rem/1.05 var(--display); }
.formula__term--out { background: var(--pink); color: var(--deep); }
.formula__term--out b { color: var(--deep); }
.formula__op { font: 400 2rem/1 var(--display); color: var(--pink); }
.factors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.factors table { width: 100%; border-collapse: collapse; }
.factors caption { text-align: left; font: 400 1.3rem/1 var(--display); padding-bottom: var(--s2); }
.factors th, .factors td { padding: 6px 0; border-bottom: 1.5px dashed rgba(250, 247, 240, .6); text-align: left; font-weight: 600; }
.factors td { text-align: right; font-weight: 800; white-space: nowrap; }
.factors tr.is-now th, .factors tr.is-now td { color: var(--deep); background: var(--pink); }
.factors tr.is-now th { padding-left: 8px; border-radius: 6px 0 0 6px; }
.factors tr.is-now td { padding-right: 8px; border-radius: 0 6px 6px 0; }
.worked { margin-top: var(--s5) !important; max-width: none !important; padding: var(--s3) var(--s4); border: 2px dashed var(--pink); border-radius: var(--r2); font-variant-numeric: tabular-nums; }

/* ---------- 9. Library ---------- */
.library { border-top: 2px solid var(--blue); }
.library__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: end; }
.library__head p { max-width: 52ch; font-weight: 600; color: var(--deep); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s6) 0 var(--s5); }
.filter__btn, .bill__btn { min-height: 44px; padding: .3rem 1rem .45rem; border: 2px solid var(--blue); border-radius: var(--r-pill); background: var(--paper-hi); color: var(--blue); font-weight: 800; font-size: var(--step--1); transition: background-color .2s, color .2s; }
.filter__btn:hover, .bill__btn:hover { background: var(--blue-wash); }
.filter__btn[aria-pressed='true'], .bill__btn[aria-pressed='true'] { background: var(--blue); color: var(--paper-hi); box-shadow: 3px 2px 0 var(--pink); }
.filter__count { margin-left: auto; font-weight: 700; }
.lib { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.sp { position: relative; display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto 1fr; column-gap: var(--s3); align-items: start; padding: var(--s4); border: 2px solid var(--blue); border-radius: var(--r2); background: var(--paper-hi); }
.sp:nth-child(4n+2) { background: var(--pink-wash); }
.sp:nth-child(4n+3) { background: var(--blue-wash); }
.sp__art { grid-row: 1 / 4; width: 60px; height: 60px; }
.sp h3 { font: 400 1.25rem/1.05 var(--display); color: var(--blue); }
.sp__latin { font-style: italic; font-weight: 600; font-size: 1rem; color: var(--deep); }
.sp__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: var(--s2); font-weight: 800; font-size: 1rem; color: var(--deep); }
.sp__meta span + span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; vertical-align: 3px; border-radius: 50%; background: var(--pink); }
.sp__add { grid-column: 1 / -1; justify-self: start; margin-top: var(--s3); min-height: 44px; padding: 0 var(--s4); border: 2px solid var(--blue); border-radius: var(--r-pill); background: transparent; color: var(--blue); font-weight: 800; }
.sp__add:hover { background: var(--blue); color: var(--paper-hi); }
.library__note { margin-top: var(--s5); font-weight: 600; }

/* ---------- 10. Care sheet ---------- */
.sheetsec { position: relative; background: var(--pink-wash); border-block: 2px solid var(--blue); }
.sheetsec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s7); align-items: center; padding: var(--s8) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
.sheetsec .sec-title { font-size: var(--step-2); }
.sheetsec__copy p { margin-top: var(--s4); max-width: 46ch; font-weight: 600; color: var(--deep); }
.sheetsec__copy .btn { margin-top: var(--s5); }
.sheetsec__hint { font-size: var(--step--1); }
.caresheet {
  position: relative;
  padding: var(--s6);
  background: var(--paper-hi);
  border-radius: 4px;
  box-shadow: 0 2px 2px rgba(35, 22, 79, .08), 0 18px 40px -12px rgba(35, 22, 79, .3);
  transform: rotate(-1deg);
  color: var(--blue);
}
.caresheet__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 var(--s4); padding-bottom: var(--s3); border-bottom: 4px solid var(--pink); }
.caresheet__brand { grid-column: 1 / -1; font-weight: 800; font-size: 1rem; }
.caresheet__title { font: 400 var(--step-2)/1 var(--display); }
.caresheet__range { font-weight: 700; text-align: right; font-size: 1rem; }
.caresheet__table { width: 100%; border-collapse: collapse; margin-top: var(--s3); font-size: 1.05rem; }
.caresheet__table th, .caresheet__table td { padding: 8px 6px; text-align: left; vertical-align: top; border-bottom: 1.5px solid var(--blue-wash); line-height: 1.15; }
.caresheet__table thead th { font-weight: 800; font-size: .95rem; border-bottom: 2px solid var(--blue); }
.caresheet__table tbody th { font: 400 1.1rem/1.05 var(--display); }
.caresheet__table tbody th span { display: block; font: italic 600 .95rem/1.15 var(--body); color: var(--deep); }
.caresheet__table td { font-weight: 600; color: var(--deep); }
.ticks { width: 7.5rem; line-height: 1; }
.ticks i { display: inline-block; width: 15px; height: 15px; margin: 0 3px 3px 0; border: 1.75px solid var(--blue); border-radius: 3px; }
.ticks i:nth-child(odd) { border-color: var(--pink); }
.caresheet__foot { display: grid; grid-template-columns: 1fr 120px; gap: var(--s4); align-items: end; margin-top: var(--s4); }
.caresheet__foot p { font-weight: 600; font-size: 1rem; color: var(--deep); }
.caresheet__art { width: 120px; height: auto; }

/* ---------- 11. Pricing ---------- */
.pricing__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); }
.bill { display: flex; gap: var(--s2); }
.plans { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s5); margin-top: var(--s6); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: var(--s6); border-radius: var(--r3); border: 2.5px solid var(--blue); background: var(--paper-hi); }
.plan__name { font: 400 var(--step-2)/1 var(--display); }
.plan__price { display: flex; align-items: baseline; gap: var(--s2); margin-top: var(--s3); }
.plan__price b { font: 400 var(--step-3)/1 var(--display); font-variant-numeric: tabular-nums; }
.plan__price span { font-weight: 700; }
.plan__save { margin-top: var(--s2); font-weight: 600; min-height: 1.4em; }
.plan__list { list-style: none; margin: var(--s5) 0 var(--s6); padding: 0; display: grid; gap: var(--s2); font-weight: 600; flex: 1; }
.plan__list li { display: flex; gap: var(--s2); align-items: flex-start; line-height: 1.25; }
.plan__list .i { margin-top: 2px; color: var(--pink); stroke-width: 2.6; }
.plan--free .plan__list .i { color: var(--blue); stroke-width: 1.75; }
.plan--pro { position: relative; overflow: hidden; background: var(--blue); color: var(--paper-hi); border-color: var(--blue); isolation: isolate; }
.plan--pro::after { content: ''; position: absolute; z-index: -1; width: 280px; height: 280px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, var(--pink) 40%, transparent 44%) 0 0 / 10px 10px; opacity: .9; }
.plan--pro .btn { --face: var(--paper-hi); color: var(--blue); }
.plan--pro .btn:hover { --face: var(--pink-wash); }

/* ---------- 12. Download ---------- */
.download {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start;
  padding: var(--s8) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: var(--pink);
  color: var(--deep);
}
.download .sec-title { color: var(--deep); }
.download .sec-title::after { color: var(--blue); opacity: .55; }
.download__copy p { margin-top: var(--s4); max-width: 40ch; font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.art--dl { width: 340px; left: -40px; bottom: -40px; transform: rotate(14deg); }
.dl-form { padding: var(--s6); border-radius: var(--r3); background: var(--paper-hi); color: var(--blue); box-shadow: 0 20px 40px -16px rgba(35, 22, 79, .45); }
.dl-msg { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r2); font-weight: 600; line-height: 1.3; }
.dl-msg--error { border: 2px solid var(--danger); color: var(--danger); background: var(--paper-hi); }
.dl-msg--ok { background: var(--blue); color: var(--paper-hi); }
.dl-msg--ok .linkish { color: var(--paper-hi); }

/* ---------- 13. Questions, footer ---------- */
.faq__list { margin-top: var(--s6); border-top: 2.5px solid var(--blue); max-width: 900px; }
.faq details { border-bottom: 2px solid var(--blue); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 56px; padding: var(--s3) 0; font: 400 var(--step-1)/1.15 var(--display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='%2323164f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--s5); max-width: 66ch; font-weight: 600; color: var(--deep); }

.foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s5) var(--s7); padding: var(--s8) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) var(--s7); background: var(--blue); color: var(--paper-hi); }
.foot__name { font-size: var(--step-3); color: var(--paper-hi); }
.foot__name::after { color: var(--pink); mix-blend-mode: normal; opacity: .9; z-index: -1; }
.foot__brand { isolation: isolate; }
.foot__brand > p:last-child { margin-top: var(--s4); max-width: 40ch; font-weight: 600; }
.foot__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s5); align-content: start; font-weight: 700; }
.foot__nav a { padding: var(--s2) 0; text-decoration-color: var(--pink); }
.foot__contact { font-weight: 800; font-size: var(--step-1); }
.foot__colophon { grid-column: 1 / -1; padding-top: var(--s5); border-top: 1.5px dashed rgba(250, 247, 240, .5); font-weight: 600; font-size: var(--step--1); }

/* ---------- 14. Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { background-color: var(--pink); } 100% { background-color: var(--paper-hi); } }
@keyframes slide-in { from { transform: translateX(30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(60%); } to { transform: none; } }
/* Misregister on: the plates drift against each other, like a drum that will not hold */
@keyframes drift {
  0% { transform: translate(var(--mx), var(--my)); }
  50% { transform: translate(calc(var(--mx) * -.4), calc(var(--my) * 1.6)); }
  100% { transform: translate(calc(var(--mx) * 1.3), calc(var(--my) * -.5)); }
}
@media (prefers-reduced-motion: no-preference) {
  .view--card:not([hidden]) { animation: slide-in .45s var(--ease); }
  .sheet:not([hidden]) .sheet__body { animation: sheet-up .5s var(--ease); }
  html.mis .ink .ink-a, html.mis .print::after { animation: drift 2.8s ease-in-out infinite alternate; }
  html.mis .phone::before { animation: drift 3.4s ease-in-out infinite alternate; }
  .art--can { animation: tip 6s ease-in-out infinite alternate; }
  @keyframes tip { from { rotate: 0deg; } to { rotate: -5deg; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 15. Narrow screens ---------- */
@media (max-width: 1080px) {
  .top__nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: var(--s6); padding-top: var(--s6); }
  .hero__title { max-width: 14ch; }
  .hero__stage { min-height: 0; padding: var(--s5) 0 var(--s6); }
  .steps { grid-template-columns: 1fr 1fr; grid-template-areas: 'add tap' 'sum sum'; }
  .sheetsec, .download { grid-template-columns: 1fr; }
  .caresheet { transform: none; }
}
@media (max-width: 720px) {
  .top { gap: var(--s2); padding: var(--s2) var(--s4); }
  .logo__name { font-size: 1.2rem; }
  .logo__mark { width: 32px; height: 32px; }
  .top__cta { display: none; }
  .mis-switch__label { font-size: 1rem; }
  .hero { padding: var(--s5) var(--s4) var(--s6); }
  .hero__lede { font-size: var(--step-0); }
  .hero__try { display: none; }
  .art--sun { width: 300px; right: -80px; }
  .art--can { width: 120px; left: -6px; top: -14px; bottom: auto; }
  .hero__stage { padding-top: 76px; }
  .art--leaf { width: 220px; right: -70px; }
  .phone { width: min(368px, calc(100vw - 2rem)); padding: 9px; border-radius: 42px; }
  .phone::before { transform: translate(calc(var(--mx) * 2 + 8px), calc(var(--my) * -2 + 9px)); }
  .phone__screen { height: 680px; border-radius: 33px; }
  .view { padding-inline: 12px; }
  .app-foot { margin-inline: -12px; padding-inline: 12px; }
  .sheet__body { padding-inline: 12px; }
  .how, .library, .pricing, .faq { padding: var(--s7) var(--s4); }
  .steps { grid-template-columns: 1fr; grid-template-areas: 'add' 'sum' 'tap'; gap: var(--s6); }
  .step--sum { padding: var(--s5) var(--s4); margin-inline: calc(var(--s2) * -1); }
  .step__art { width: 72px; height: 72px; }
  .step__art--can { width: 110px; height: auto; }
  .factors { grid-template-columns: 1fr; }
  .formula__term b { font-size: 1.3rem; }
  .library__head { grid-template-columns: 1fr; gap: var(--s4); }
  .filter__count { width: 100%; margin-left: 0; }
  .lib { grid-template-columns: 1fr; }
  .sheetsec, .download { padding: var(--s7) var(--s4); gap: var(--s6); }
  .caresheet { padding: var(--s4); margin-inline: calc(var(--s2) * -1); }
  .caresheet__table thead { display: none; }
  .caresheet__table, .caresheet__table tbody, .caresheet__table tr { display: block; }
  .caresheet__table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3); padding: var(--s3) 0; border-bottom: 1.5px solid var(--blue-wash); }
  .caresheet__table th, .caresheet__table td { padding: 0; border: 0; }
  .caresheet__table td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; }
  .caresheet__table td:nth-child(3), .caresheet__table td:nth-child(4), .caresheet__table td:nth-child(5) { grid-column: 1 / -1; }
  .caresheet__range { text-align: left; grid-column: 1 / -1; }
  .caresheet__foot { grid-template-columns: 1fr 84px; }
  .caresheet__art { width: 84px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: var(--s5); }
  .bill { flex-wrap: wrap; }
  .dl-form { padding: var(--s5) var(--s4); }
  .art--dl { display: none; }
  .sp__add { grid-column: 2; margin-top: var(--s2); }
  .foot { grid-template-columns: 1fr; padding: var(--s7) var(--s4) var(--s6); }
}

/* ---------- 16. Print: only the care sheet, in two inks ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff; }
  body::after, .top, .skip, .hero, .how, .library, .pricing, .download, .faq, .foot, .sheetsec__copy { display: none !important; }
  .sheetsec { display: block; padding: 0; border: 0; background: #fff; }
  .caresheet { transform: none; box-shadow: none; padding: 0; background: #fff; }
  .caresheet, .caresheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .caresheet__table { font-size: 11pt; }
  .caresheet__table tr { break-inside: avoid; }
  .caresheet__table tbody th { font-size: 13pt; }
  .ticks i { width: 14px; height: 14px; }
  .caresheet__head { border-bottom-color: var(--pink); }
  .caresheet__table th, .caresheet__table td { border-bottom-color: #f7c6e1; }
}
