/* lest.fyi: Emerald brand. Colors come from brand/colors.json only. */

@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Brand */
  --emerald: #00715E;
  --emerald-light: #8DF6D9;
  --sage-light: #CDE8DF;
  --sky-light: #C9E6FF;
  --black: #0B0F0E;            /* surfaceContainerLowest (dark) */
  --ink: color-mix(in srgb, #00715E 25%, #0B0F0E);   /* deep emerald, hero and footer */
  --ink-2: color-mix(in srgb, #00715E 38%, #0B0F0E);
  --ink-line: color-mix(in srgb, #8DF6D9 16%, transparent);
  --on-ink: #FFFFFF;
  --on-ink-muted: #BFC9C4;
  --on-ink-soft: #CDE8DF;
  --on-accent: #00382D;
  --on-accent-muted: #005143;

  /* Light page (Material 3 light roles) */
  --bg: #F7FAF8;
  --surface: #FFFFFF;
  --surface-low: #F2F4F1;
  --surface-high: #E6E9E6;
  --surface-variant: #DBE5E0;
  --text: #191C1B;
  --muted: #3F4945;
  --outline: #6F7975;
  --line: #DBE5E0;
  --primary: #006B59;
  --on-primary: #FFFFFF;
  --primary-container: #9BF3DB;
  --on-primary-container: #005143;
  --secondary-container: #CEE8DF;
  --on-secondary-container: #344B45;
  --tertiary: #33628A;
  --tertiary-container: #CEE5FF;
  --on-tertiary-container: #154A71;
  --soon: #9A5B00; --soon-bg: #FFF1DC;
  --late: #B3361A; --late-bg: #FDE7E1;
  --done: #2E7D32; --done-bg: #DDF3DE;
  --focus: #006B59;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06), 0 2px 8px rgb(0 0 0 / 0.04);
  --shadow-md: 0 2px 6px rgb(0 0 0 / 0.06), 0 16px 40px -12px rgb(0 0 0 / 0.16);
  --shadow-lg: 0 30px 80px -20px rgb(0 0 0 / 0.55);

  --max: 1200px;
  --gutter: 20px;
  --radius-lg: 32px;
  --radius: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111413;
    --surface: #191C1B;
    --surface-low: #1D201F;
    --surface-high: #272B29;
    --surface-variant: #323634;
    --text: #E1E3E0;
    --muted: #BFC9C4;
    --outline: #89938F;
    --line: #323634;
    --primary: #7FD7BF;
    --on-primary: #00382D;
    --primary-container: #005143;
    --on-primary-container: #9BF3DB;
    --secondary-container: #344B45;
    --on-secondary-container: #CEE8DF;
    --tertiary: #9ECBF8;
    --tertiary-container: #154A71;
    --on-tertiary-container: #CEE5FF;
    --soon: #F2B35A; --soon-bg: #3A2C14;
    --late: #FF9B80; --late-bg: #40201A;
    --done: #7CCB83; --done-bg: #1E3320;
    --focus: #7FD7BF;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 2px 6px rgb(0 0 0 / 0.3), 0 16px 40px -12px rgb(0 0 0 / 0.6);
  }
}

/* The app UI inside mockups is always shown in its light theme. */
.app-light {
  color-scheme: light;
  --bg: #F8FAF7;
  --surface: #FFFFFF;
  --surface-low: #F2F4F1;
  --surface-high: #E6E9E6;
  --surface-variant: #DBE5E0;
  --text: #191C1B;
  --muted: #3F4945;
  --outline: #6F7975;
  --line: #DBE5E0;
  --primary: #006B59;
  --on-primary: #FFFFFF;
  --primary-container: #9BF3DB;
  --on-primary-container: #005143;
  --secondary-container: #CEE8DF;
  --on-secondary-container: #344B45;
  --tertiary-container: #CEE5FF;
  --on-tertiary-container: #154A71;
  --soon: #9A5B00; --soon-bg: #FFF1DC;
  --done: #2E7D32; --done-bg: #DDF3DE;
  --late: #B3361A; --late-bg: #FDE7E1;
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sprite { display: none; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--emerald-light); color: var(--on-accent); font-weight: 700; padding: 12px 18px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }

.on-dark { --focus: #8DF6D9; color: var(--on-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ink-line);
  --focus: #8DF6D9;
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; min-height: 44px; }
.brand svg { width: 34px; height: 34px; }
.nav { display: none; gap: 4px; margin-left: 28px; }
.nav a { color: var(--on-ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; transition: background-color 0.2s, color 0.2s; }
.nav a:hover { color: var(--on-ink); background: rgb(255 255 255 / 0.08); }
.header-cta { margin-left: auto; }
@media (min-width: 880px) { .nav { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; letter-spacing: -0.005em;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, box-shadow 0.2s, filter 0.2s;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .i { width: 20px; height: 20px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-accent { background: var(--emerald-light); color: var(--on-accent); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ink { background: var(--ink); color: var(--on-ink); --focus: #00382D; }
.btn-ink:hover { background: var(--black); }

/* "Coming soon to Google Play" pill: a label, not a link */
.soon-pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 22px 6px 16px; border-radius: 999px;
  border: 1.5px solid rgb(255 255 255 / 0.28); color: var(--on-ink);
  line-height: 1.15;
}
.soon-pill .i { width: 22px; height: 22px; }
.soon-pill small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-muted); }
.soon-pill b { font-size: 16px; font-weight: 700; }
.soon-pill.on-light { border-color: color-mix(in srgb, #00382D 40%, transparent); color: var(--on-accent); }
.soon-pill.on-light small { color: var(--on-accent-muted); }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.on-dark .eyebrow, .band-dark .eyebrow { color: var(--emerald-light); }
.h2 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 56ch; margin-top: 18px; }
.accent { color: var(--emerald-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 55% at 88% 18%, color-mix(in srgb, #00715E 60%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, #00715E 35%, transparent), transparent 70%),
    var(--ink);
  padding: 40px 0 72px;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { max-width: 600px; }
.tagline { display: inline-flex; align-items: center; gap: 10px; color: var(--emerald-light); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.tagline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-light); }
.hero h1 { font-size: clamp(54px, 9vw, 100px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 24px; }
.hero h1 span { display: block; }
.hero .lede { color: var(--on-ink-muted); font-size: clamp(18px, 1.9vw, 21px); max-width: 36ch; margin-top: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { list-style: none; padding: 24px 0 0; margin: 32px 0 0; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; gap: 12px 24px; }
.trust li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--on-ink-soft); }
.trust .tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgb(255 255 255 / 0.07); border: 1px solid var(--ink-line); color: var(--emerald-light); }
.trust .i { width: 18px; height: 18px; }

/* Hero visual: photo, phone, floating cards */
.hero-visual { position: relative; width: 100%; max-width: 560px; margin-inline: auto; padding: 24px 0 8px; }
.hero-photo { position: absolute; inset: 0 0 0 18%; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 0.25)); }
.hero-visual .phone { position: relative; z-index: 2; margin-left: 0; }
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); color: var(--text);
  border-radius: 18px; padding: 12px 16px 12px 12px;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.45);
  font-size: 14px; line-height: 1.3; max-width: 230px;
}
.float-card b { display: block; font-size: 15px; font-weight: 700; }
.float-card span { color: var(--muted); font-size: 13px; }
.float-card .tile { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none; }
.tile-soon { background: var(--soon-bg); color: var(--soon); }
.tile-done { background: var(--done-bg); color: var(--done); }
.float-a { top: 6%; right: -8px; }
.float-b { bottom: 10%; right: 4%; }

@media (max-width: 959px) {
  .hero-visual { max-width: 440px; }
  .hero-visual { container-type: inline-size; display: flex; flex-direction: column; align-items: center; padding-top: 0; }
  .hero-photo { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; }
  .hero-photo img { object-position: 35% 35%; }
  .hero-visual .phone { --phone-w: 270px; margin: -96px auto 0; }
  .float-a { top: calc(75cqw - 158px); right: 0; left: auto; }
  .float-b { bottom: 12px; left: 0; right: auto; }
}
@media (max-width: 420px) {
  .hero-visual .phone { --phone-w: 248px; }
  .float-card { max-width: 180px; padding: 10px 12px 10px 10px; }
  .float-card .tile { width: 32px; height: 32px; border-radius: 10px; }
  .float-card b { font-size: 14px; }
  .float-card span { font-size: 12px; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 40px; }
  .hero-visual { margin-right: 0; }
}

/* Load-in motion */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-copy > * { animation: rise 0.7s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.05s; }
.hero-copy > :nth-child(3) { animation-delay: 0.1s; }
.hero-copy > :nth-child(4) { animation-delay: 0.15s; }
.hero-copy > :nth-child(5) { animation-delay: 0.2s; }
.hero-visual { animation: rise 0.9s 0.1s var(--ease-out) both; }
.float-a { animation: bob 6s 1s ease-in-out infinite; }
.float-b { animation: bob 7s 2s ease-in-out infinite; }

/* ---------- Phone mockup ---------- */
.phone {
  --phone-w: 290px;
  width: var(--phone-w);
  background: var(--black);
  border-radius: calc(var(--phone-w) * 0.155);
  padding: calc(var(--phone-w) * 0.03);
  box-shadow: inset 0 0 0 1.5px #3F4945, 0 0 0 1px rgb(255 255 255 / 0.04), var(--shadow-lg);
  font-size: calc(var(--phone-w) * 0.0415);
}
.screen {
  position: relative; overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.125);
  background: var(--bg);
  display: flex; flex-direction: column;
  line-height: 1.25;
}
.status { display: flex; justify-content: space-between; align-items: center; padding: 0.9em 1.5em 0.3em; font-size: 0.86em; font-weight: 700; }
.status .cam { width: 0.75em; height: 0.75em; border-radius: 50%; background: var(--black); }
.status .sys { display: flex; gap: 0.35em; align-items: center; }
.status .sys .i { width: 1.05em; height: 1.05em; stroke-width: 2.4; }
.app-bar { display: flex; align-items: center; gap: 0.55em; padding: 0.55em 0.8em 0.5em; }
.app-bar > .i, .app-bar .acts .i { width: 1.35em; height: 1.35em; }
.app-bar b { display: inline-flex; align-items: center; gap: 0.1em; font-size: 1.32em; letter-spacing: -0.02em; font-weight: 600; flex: 1; min-width: 0; }
.app-bar .caret { width: 0.75em; height: 0.75em; stroke-width: 3; }
.app-bar .acts { display: flex; align-items: center; gap: 0.6em; color: var(--muted); }
.date-btn { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border: 1.5px solid currentColor; border-radius: 0.3em; font-size: 0.82em; font-weight: 700; line-height: 1; }

.month .dow, .month .wk { display: grid; grid-template-columns: repeat(7, 1fr); }
.month .dow { font-size: 0.72em; font-weight: 600; color: var(--muted); text-align: center; padding: 0.2em 0 0.45em; border-bottom: 1px solid var(--line); }
/* Day number, the window lane, then two lanes of chips; thin lines between days as in the app. */
.month .wk { grid-template-rows: 1.85em 1.45em 1.45em 1.45em; padding-bottom: 0.45em; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 7) 100%; background-position: -1px 0; }
.month .d { text-align: center; font-size: 0.8em; font-weight: 600; padding-top: 0.45em; }
.month .d.out { color: var(--outline); font-weight: 500; }
.month .d.today b { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; margin-top: -0.3em; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.month .ev { grid-row: 3; align-self: center; height: 1.3em; font-size: 0.66em; font-weight: 600; line-height: 1.3em; padding: 0 0.35em; white-space: nowrap; overflow: hidden; border-radius: 0.35em; margin: 0 0.2em; }
.month .ev.r2 { grid-row: 2; } .month .ev.r3 { grid-row: 3; } .month .ev.r4 { grid-row: 4; }
.month .ev.win { grid-row: 2; background: var(--secondary-container); color: var(--on-secondary-container); border-left: 0.3em solid var(--primary); border-radius: 0.35em 0 0 0.35em; margin-right: 0; }
.month .ev.win.cont { border-left: 0; border-radius: 0; margin-left: 0; color: transparent; }
.month .ev.win.end { border-radius: 0 0.35em 0.35em 0; margin-right: 0.2em; }
.month .ev.one { background: var(--secondary-container); color: var(--on-secondary-container); }
.month .ev.late { background: var(--late-bg); color: var(--late); }
.c1-4 { grid-column: 1 / 4; } .c1-8 { grid-column: 1 / 8; } .c2-3 { grid-column: 2 / 3; }
.c3-4 { grid-column: 3 / 4; } .c3-8 { grid-column: 3 / 8; } .c4-5 { grid-column: 4 / 5; }
.c5-6 { grid-column: 5 / 6; } .c6-7 { grid-column: 6 / 7; }

.fab { position: absolute; right: 0.9em; bottom: 1.9em; display: grid; place-items: center; width: 3.3em; height: 3.3em; border-radius: 1em; background: var(--primary-container); color: var(--on-primary-container); box-shadow: var(--shadow-md); }
.fab .i { width: 1.5em; height: 1.5em; stroke-width: 2.4; }
.gesture { width: 34%; height: 0.28em; border-radius: 1em; background: var(--text); opacity: 0.85; margin: 0.9em auto 0.5em; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.flip > :first-child { order: 2; }
}

/* Photo frames */
.photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-variant); }
.photo > img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame { position: relative; }
.photo-frame .photo { aspect-ratio: 5 / 4; }
@media (min-width: 960px) { .photo-frame .photo { aspect-ratio: 1 / 1; } }

/* Quick add overlay on the paperwork photo */
.quick-add { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; border-radius: 22px; padding: 16px; background: var(--surface); box-shadow: var(--shadow-md); max-width: 420px; }
.quick-add .field { display: flex; align-items: center; gap: 10px; border: 2px solid var(--primary); border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: 15px; }
.quick-add .field .i { color: var(--primary); }
.quick-add .caret { width: 2px; height: 1.1em; background: var(--primary); margin-left: -6px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 6px 12px; background: var(--secondary-container); color: var(--on-secondary-container); }
.chip .i { width: 15px; height: 15px; }
.chip.win { background: var(--primary-container); color: var(--on-primary-container); }
.chip.list { background: var(--tertiary-container); color: var(--on-tertiary-container); }
@media (min-width: 600px) { .quick-add { left: 24px; bottom: 24px; right: auto; width: calc(100% - 48px); } }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 8px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 800; color: var(--primary); }
.steps h3 { font-size: 19px; letter-spacing: -0.01em; font-weight: 700; }
.steps p { color: var(--muted); margin-top: 4px; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 28px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.card > p { color: var(--muted); font-size: 16px; }
.card .mini { margin-top: auto; padding-top: 18px; }
.card-dark { background: var(--ink); border-color: transparent; color: var(--on-ink); --focus: #8DF6D9; }
.card-dark > p { color: var(--on-ink-muted); }
.card-dark .card-sub { color: var(--on-ink-muted); margin-top: 10px; font-size: 16px; max-width: 38ch; }
.card-photo { padding: 0; }
.card-photo .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.card-photo .photo img { object-position: 30% 35%; }
.card-photo .body { padding: 24px 28px 28px; display: grid; gap: 10px; }
.card-photo .body p { color: var(--muted); font-size: 16px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2 { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .row-2 { grid-row: span 2; }
  .card-photo.row-2 .photo { aspect-ratio: auto; flex: 1; min-height: 260px; }
}

/* Mini: week view with a window bar */
.mini-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-radius: 18px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--ink-line); padding: 14px 10px 16px; }
.mini-week .dh { text-align: center; font-size: 12px; font-weight: 600; color: var(--on-ink-muted); padding-bottom: 10px; }
.mini-week .dh b { display: block; font-size: 18px; color: var(--on-ink); font-weight: 700; margin-top: 2px; }
.mini-week .dh.today b { display: grid; place-items: center; width: 34px; height: 34px; margin: 2px auto 0; border-radius: 50%; background: var(--emerald-light); color: var(--on-accent); }
.mini-week .bar { grid-column: 1 / 8; height: 30px; border-radius: 10px 0 0 10px; background: var(--emerald-light); color: var(--on-accent); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; padding: 0 12px; margin: 0 -10px 0 4px; white-space: nowrap; overflow: hidden; }
.mini-week .bar .i { width: 16px; height: 16px; }
.mini-week .ev { height: 30px; margin: 8px 3px 0; border-radius: 10px; background: var(--sky-light); color: #154A71; font-size: 12px; font-weight: 700; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.mini-week .ev.e-tue { grid-column: 2 / 3; grid-row: 3; }
.mini-week .ev.e-fri { grid-column: 5 / 7; grid-row: 3; }
.view-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.view-tabs span { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ink-line); color: var(--on-ink-soft); }
.view-tabs .on { background: var(--emerald-light); border-color: transparent; color: var(--on-accent); }
.cal-row { display: grid; gap: 20px; }
@media (min-width: 720px) { .cal-row { grid-template-columns: 0.9fr 1.1fr; align-items: end; } }

/* Mini: escalating nudges */
.nudges { display: grid; gap: 8px; }
.nudge { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.nudge time { font-weight: 700; color: var(--muted); }
.nudge span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font-weight: 700; white-space: nowrap; }
.nudge .i { width: 15px; height: 15px; }
.n1 span { width: 46%; background: var(--surface-low); color: var(--muted); border: 1px solid var(--line); }
.n2 span { width: 62%; background: var(--secondary-container); color: var(--on-secondary-container); }
.n3 span { width: 80%; background: var(--primary-container); color: var(--on-primary-container); }
.n4 span { width: 100%; background: var(--primary); color: var(--on-primary); }

/* Mini: Android notification */
.notif { border-radius: 22px; background: var(--surface-low); border: 1px solid var(--line); padding: 14px 16px 12px; font-size: 14px; box-shadow: var(--shadow-sm); }
.notif .top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.notif .top svg.logo { width: 18px; height: 18px; }
.notif b { display: block; margin-top: 8px; font-size: 15px; }
.notif p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.notif .actions { display: flex; gap: 8px; margin-top: 12px; }
.notif .actions span { font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: var(--secondary-container); color: var(--on-secondary-container); }
.notif .actions span:first-child { background: var(--primary); color: var(--on-primary); }

/* Mini: shared list avatars */
.avatars { display: flex; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 14px; font-weight: 800; border: 3px solid var(--surface); }
.avatars .avatar + .avatar { margin-left: -10px; }
.a1 { background: #9BF3DB; color: #005143; }
.a2 { background: #C9E6FF; color: #154A71; }
.a3 { background: #FFF1DC; color: #9A5B00; }
.a4 { background: #CDE8DF; color: #344B45; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; border-width: 2px; }
.share-rows { display: grid; gap: 8px; margin-top: 14px; }
.share-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-low); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.share-row .t { flex: 1; min-width: 0; }
.share-row small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.share-row.done .t > span { text-decoration: line-through; color: var(--muted); }
.share-row .i { color: var(--done); }

/* Mini: Google Calendar event */
.gcal { border-radius: 18px; border: 1px solid var(--line); background: var(--surface-low); padding: 14px; font-size: 13px; }
.gcal .cal-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.gcal .cal-name i { width: 12px; height: 12px; border-radius: 4px; background: var(--emerald); }
.gcal .span-ev { margin-top: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; color: var(--muted); font-weight: 600; }
.gcal .span-ev .allday { grid-column: 1 / 6; background: var(--emerald); color: #FFFFFF; border-radius: 8px; padding: 6px 10px; text-align: left; font-weight: 700; }

/* Mini: plain-words quick add */
.typed { border-radius: 16px; border: 2px solid var(--primary); background: var(--surface-low); padding: 12px 14px; font-size: 15px; font-weight: 600; line-height: 1.9; }
.typed mark { border-radius: 8px; padding: 3px 8px; background: var(--primary-container); color: var(--on-primary-container); }
.typed mark.list { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.typed mark.when { background: var(--secondary-container); color: var(--on-secondary-container); }

/* ---------- Reminders that reach you ---------- */
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.reach-visual { position: relative; padding-bottom: 32px; }
.reach-visual .photo { aspect-ratio: 4 / 3; }
.reach-visual .photo img { object-position: 70% center; }
.heads-up { position: absolute; left: 16px; right: 16px; top: 16px; z-index: 2; max-width: 380px; }
.heads-up .notif { background: var(--surface); box-shadow: var(--shadow-md); }
@media (min-width: 600px) { .heads-up { left: 24px; top: 24px; } }
.health { margin-top: 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg); padding: 8px; }
.health-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; font-weight: 800; }
.health-head .i { color: var(--primary); }
.health ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.health li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); font-size: 15px; font-weight: 600; }
.health li .t { flex: 1; }
.health li small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.health .ok { color: var(--done); }
.health .warn { color: var(--soon); }
.health .fix { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); }

/* ---------- Shared lists band ---------- */
.band-dark { background: var(--ink); color: var(--on-ink); border-radius: 36px; overflow: hidden; display: grid; --focus: #8DF6D9; }
.band-dark .photo { border-radius: 0; aspect-ratio: 4 / 3; }
.band-dark .photo img { object-position: 40% center; }
.band-dark .body { padding: 36px 24px 40px; }
.band-dark .lede { color: var(--on-ink-muted); }
@media (min-width: 960px) {
  .band-dark { grid-template-columns: 1fr 1fr; }
  .band-dark .photo { aspect-ratio: auto; min-height: 100%; }
  .band-dark .body { padding: 64px 56px; }
}
.list-card { margin-top: 28px; border-radius: 22px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--ink-line); padding: 14px; }
.list-card .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 12px; }
.list-card .head b { font-size: 16px; }
.list-card .head small { display: block; color: var(--on-ink-muted); font-size: 13px; font-weight: 600; }
.list-card .avatar { border-color: var(--ink); }
.list-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list-card li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgb(255 255 255 / 0.06); font-size: 15px; font-weight: 600; }
.list-card li .t { flex: 1; min-width: 0; }
.list-card li small { display: block; color: var(--on-ink-muted); font-size: 13px; font-weight: 500; }
.list-card li.done .t > span { text-decoration: line-through; color: var(--on-ink-muted); }
.list-card li .i { color: var(--emerald-light); }
.toast { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--emerald-light); color: var(--on-accent); font-size: 14px; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px 14px 24px; font-weight: 700; font-size: 17px; border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform 0.25s var(--ease-out); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details > p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--emerald-light); color: var(--on-accent); border-radius: 36px; padding: 48px 28px; display: grid; gap: 28px; align-items: center; --focus: #00382D; }
.cta-band .h2 { max-width: 14ch; }
.cta-band p { color: var(--on-accent-muted); font-size: 18px; margin-top: 14px; max-width: 46ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta-band .mark { display: none; position: absolute; right: -90px; bottom: -150px; width: 380px; height: 380px; opacity: 0.1; pointer-events: none; }
.cta-band a:not(.btn) { color: var(--on-accent); font-weight: 700; }
@media (min-width: 960px) {
  .cta-band { grid-template-columns: 1.3fr 1fr; padding: 72px 64px; }
  .cta-band .actions { flex-direction: column; align-items: stretch; justify-self: end; }
  .cta-band .soon-pill { justify-content: center; }
  .cta-band .mark { display: block; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 64px 0 32px; margin-top: 88px; --focus: #8DF6D9; }
.site-footer .cols { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.site-footer .about { grid-column: 1 / -1; }
.site-footer .about p { color: var(--on-ink-muted); margin-top: 14px; max-width: 32ch; font-size: 15px; }
.site-footer h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--emerald-light); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-footer li a:hover { color: var(--on-ink); text-decoration: underline; }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-line); color: var(--on-ink-muted); font-size: 14px; }
@media (min-width: 880px) {
  .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .site-footer .about { grid-column: auto; }
}
.section + .site-footer, .section-tight + .site-footer { margin-top: 0; }

/* ---------- Legal and utility pages ---------- */
.page-hero { background: var(--ink); color: var(--on-ink); padding: 56px 0 64px; --focus: #8DF6D9; }
.page-hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; max-width: 18ch; }
.page-hero p { color: var(--on-ink-muted); margin-top: 14px; font-weight: 600; }
.doc { padding: 48px 0 24px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 16px; }
.doc h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin: 44px 0 12px; }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 16px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); font-weight: 600; }
.doc .callout { background: color-mix(in srgb, var(--primary-container) 35%, var(--surface)); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; margin: 24px 0; }
.doc code { font-size: 0.9em; background: var(--surface-low); padding: 2px 8px; border-radius: 6px; }
.muted { color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-weight: 700; }
@media (max-width: 600px) { table.data { display: block; overflow-x: auto; } }

/* ---------- Rhythm and small-screen overlays ---------- */
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }
@media (max-width: 599px) {
  .quick-add, .heads-up { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: -56px 12px 0; }
  .reach-visual { padding-bottom: 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .btn:hover { transform: none; }
}
