/* Cupola landing page
 * Shape rule: buttons, chips and tabs are full pills; cards are 28px; inner rows are 14px.
 * Accent: sage only. Pastel tints appear solely as the small feature-icon chips. */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F3EEE4;
  --bg-2: #ECE5D7;
  --surface: #FBF8F2;
  --ink: #1E2A24;
  --ink-2: #46544C;
  --ink-3: #55615A;
  --sage: #5E9F86;
  --sage-ink: #2F6B55;
  --btn: #1E2A24;
  --btn-ink: #F6F1E7;
  --soft: #E4DCCB;
  --line: rgba(30, 42, 36, .12);
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -18px rgba(54, 70, 58, .35);
  --peach: #F4C3AE;
  --butter: #F2DC95;
  --lilac: #D3CBEE;
  --mint: #BFE3D6;
  --glyph: url("../img/cupola-glyph-light.svg");
  --wall: image-set(url("../img/mac-wall-day.webp") type("image/webp"), url("../img/mac-wall-day.jpg") type("image/jpeg"));
  --band: image-set(url("../img/scenery-day.webp") type("image/webp"), url("../img/scenery-day.jpg") type("image/jpeg"));
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-card: 28px;
  --r-row: 14px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #15211B;
  --bg-2: #1A2821;
  --surface: #1E2D25;
  --ink: #EDE6D6;
  --ink-2: #C3BEB1;
  --ink-3: #939A90;
  --sage: #6FB59A;
  --sage-ink: #8FD0B6;
  --btn: #EDE6D6;
  --btn-ink: #15211B;
  --soft: #263830;
  --line: rgba(237, 230, 214, .12);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 44px -20px rgba(0, 0, 0, .6);
  --peach: #7A4E3F;
  --butter: #6E5E2C;
  --lilac: #4E4770;
  --mint: #3D5F52;
  --glyph: url("../img/cupola-glyph-dark.svg");
  --wall: image-set(url("../img/mac-wall-night.webp") type("image/webp"), url("../img/mac-wall-night.jpg") type("image/jpeg"));
  --band: image-set(url("../img/scenery-night.webp") type("image/webp"), url("../img/scenery-night.jpg") type("image/jpeg"));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: "Bricolage", "Outfit", sans-serif; font-weight: 700; letter-spacing: -.035em; margin: 0; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; }
h2 em, h1 em { font-style: normal; color: var(--sage-ink); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 10px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-lede { color: var(--ink-2); font-size: 1.12rem; max-width: 34em; margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .3s var(--ease), background-color .3s var(--ease);
  will-change: transform;
}
.btn i { font-size: 1.15em; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(1px) scale(.97); transition-duration: .08s; }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 24px -12px rgba(30, 42, 36, .7), inset 0 -3px 0 rgba(0,0,0,.18); }
[data-theme="dark"] .btn-primary { box-shadow: 0 10px 24px -12px rgba(0,0,0,.8), inset 0 -3px 0 rgba(0,0,0,.14); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .92rem; }
.price-tag { background: var(--btn); color: var(--btn-ink); font-size: .82rem; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  color: var(--ink-2); font-size: 1.2rem; transition: background-color .2s, transform .25s var(--ease-out);
}
.icon-btn:hover { background: var(--soft); transform: rotate(-12deg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.hero-install-hint { margin-top: 14px; color: var(--ink-3); font-size: .88rem; line-height: 1.5; text-wrap: pretty; text-wrap: balance; }
.hero-install-hint i { font-size: 1rem; vertical-align: -2px; margin-right: 8px; }
.hero-install-hint .hero-price-emph { color: var(--ink); font-weight: 600; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.nav-inner { width: min(1180px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Bricolage", sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; background: var(--glyph) center / 130% no-repeat; transition: transform .3s var(--ease-out); transform-origin: 50% 80%; }
.brand:hover .brand-mark { animation: ring 0.9s var(--ease); }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-weight: 500; transition: background-color .2s, color .2s; }
.nav-links a:hover { background: var(--soft); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  width: min(1240px, 100% - 40px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 4vw, 64px);
  min-height: calc(100dvh - 64px); padding: 28px 0 64px;
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.045em; }
.squiggle { position: relative; white-space: nowrap; color: var(--sage-ink); }
.squiggle::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.14em; height: .28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 Q 15 2 30 7 T 60 7 T 90 7 T 118 5' fill='none' stroke='%235E9F86' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); animation: draw 1.1s .7s var(--ease) forwards;
}
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); margin-top: 22px; max-width: 34ch; }

/* ---------- mac frame ---------- */
.hero-demo { position: relative; }
.mac { --notch-w: clamp(96px, 20%, 150px); }
.mac-screen {
  position: relative; aspect-ratio: 16 / 10.6; border-radius: 22px 22px 6px 6px; overflow: hidden;
  background: #0d1411; border: clamp(7px, 1.1vw, 12px) solid #0b0f0d; box-shadow: 0 40px 80px -40px rgba(21, 33, 27, .55), 0 0 0 1px rgba(255,255,255,.06) inset;
  container-type: inline-size;
  isolation: isolate; /* keeps the open notch panel beneath the "coming soon" sticker */
}
.wallpaper { position: absolute; inset: 0; background: var(--wall) 70% 40% / cover no-repeat; transform: scale(1.04); transition: background-image .4s; }
.mac-base { height: clamp(12px, 1.8vw, 20px); margin: 0 -5%; border-radius: 2px 2px 22px 22px; background: linear-gradient(#cfd2cf, #a9ada9 70%, #8d918d); box-shadow: 0 18px 30px -18px rgba(0,0,0,.5); position: relative; }
.mac-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 45%; transform: translateX(-50%); background: rgba(0,0,0,.14); border-radius: 0 0 10px 10px; }
[data-theme="dark"] .mac-base { background: linear-gradient(#4a4f4c, #333735 70%, #262927); }
.menubar {
  position: absolute; inset: 0 0 auto; height: 26px; padding: 0 12px; display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #fff; background: rgba(20, 28, 24, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 1;
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 13px; }
.mb-left b { font-weight: 700; }
.menubar i { font-size: 14px; }

/* notch that grows into the panel */
.island {
  position: absolute; top: 0; left: 50%; z-index: 3; transform: translateX(-50%);
  width: var(--notch-w); height: 26px; background: #050706; border-radius: 0 0 13px 13px;
  transition: width .6s var(--spring), height .6s var(--spring), border-radius .5s var(--ease), box-shadow .4s;
  overflow: hidden; color: #EDE6D6;
}
.island::before { content: ""; position: absolute; top: 9px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2c3a44, #0b0f12 70%); transition: opacity .2s; }
.island.open::before { opacity: 0; }
.island-hit { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.island.open .island-hit { inset: 0 0 auto; height: 26px; }
.island.open { width: min(94%, 470px); height: var(--panel-h, 320px); border-radius: 0 0 26px 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.island:not(.open):hover { width: calc(var(--notch-w) + 16px); height: 30px; }
.island.peek:not(.open) { width: calc(var(--notch-w) + 90px); }
.peek-dot { position: absolute; top: 7px; right: 12px; font-size: 11px; color: #BFE3D6; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.island.peek:not(.open) .peek-dot { opacity: 1; }

.panel { padding: 30px 14px 14px; opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity .25s, transform .45s var(--spring); pointer-events: none; }
.island.open .panel { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.panel-head { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; }
.panel-brand { width: 24px; height: 24px; background: url("../img/cupola-glyph-dark.svg") center / 140% no-repeat; }
.panel-tabs { justify-self: center; display: flex; gap: 4px; background: rgba(255,255,255,.07); padding: 3px; border-radius: 999px; }
.panel-tabs button { width: 38px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-size: 15px; color: #a7b0aa; transition: background-color .2s, color .2s, transform .25s var(--ease-out); }
.panel-tabs button:hover { color: #fff; transform: scale(1.08); }
.panel-tabs button[aria-selected="true"] { background: rgba(111, 181, 154, .26); color: #BFE3D6; }
.panel-all { text-decoration: none; font-size: 11px; color: #a7b0aa; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); white-space: nowrap; }
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.date-strip button { padding: 5px 0 6px; border-radius: 12px; text-align: center; line-height: 1.1; font-size: 11px; color: #a7b0aa; position: relative; transition: background-color .2s, transform .25s var(--ease-out); }
.date-strip button b { display: block; font-size: 15px; color: #EDE6D6; font-weight: 600; margin-top: 2px; }
.date-strip button:hover { background: rgba(255,255,255,.06); transform: translateY(-1px); }
.date-strip button[aria-pressed="true"] { background: #6FB59A; color: #15211B; }
.date-strip button[aria-pressed="true"] b { color: #15211B; }
.date-strip button.has::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #6FB59A; }
.date-strip button[aria-pressed="true"].has::after { background: #15211B; }
.quick { margin-top: 10px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 13px; }
.quick i { color: #6FB59A; font-size: 16px; }
.quick input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; }
.quick input::placeholder { color: #8b958f; }
.quick-hint { font-size: 11px; color: #BFE3D6; background: rgba(111,181,154,.2); padding: 2px 8px; border-radius: 999px; white-space: nowrap; display: none; }
.quick-hint.show { display: inline-block; }
.panel-body { margin-top: 10px; min-height: 120px; }
.panel-body.swap { animation: swap .35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateX(10px); } }
.p-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-row); background: rgba(255,255,255,.05); font-size: 13px; margin-bottom: 6px; }
.p-row.cal { background: color-mix(in srgb, var(--c, #6FB59A) 16%, rgba(255,255,255,.05)); }
.p-row .bar { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--c, #6FB59A); }
.p-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-row small { color: #a7b0aa; font-size: 11.5px; white-space: nowrap; }
.p-row.new { animation: pop .5s var(--ease-out); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.p-empty { font-size: 13px; color: #a7b0aa; text-align: center; padding: 18px 0; }
.p-check { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px #8b958f; display: grid; place-items: center; flex: none; transition: background-color .2s, box-shadow .2s, transform .25s var(--ease-out); }
.p-check:hover { transform: scale(1.15); }
.p-check[aria-pressed="true"] { background: #6FB59A; box-shadow: none; }
.p-check[aria-pressed="true"]::after { content: ""; width: 8px; height: 4px; border: solid #15211B; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.p-row.done .t { color: #8b958f; text-decoration: line-through; }
.p-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.p-note { padding: 10px; border-radius: var(--r-row); background: rgba(255,255,255,.05); font-size: 12px; color: #a7b0aa; text-align: left; transition: background-color .2s, transform .25s var(--ease-out); }
.p-note:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.p-note b { display: block; color: #EDE6D6; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.p-focus { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 4px 0; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.p-switch { display: flex; gap: 2px; background: rgba(255,255,255,.07); padding: 2px; border-radius: 999px; }
.p-switch button { height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; color: #a7b0aa; transition: background-color .2s, color .2s; }
.p-switch button[aria-pressed="true"] { background: #6FB59A; color: #15211B; }
.p-add { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #EDE6D6; font-size: 13px; flex: none; transition: transform .25s var(--ease-out), background-color .2s; }
.p-add:hover { background: rgba(255,255,255,.14); transform: scale(1.08); }
.p-clip { padding: 0; gap: 0; background: none; }
.p-clip-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 8px 10px; border-radius: var(--r-row); background: rgba(255,255,255,.05); text-align: left; transition: background-color .2s; }
.p-clip-main:hover, .p-clip-main:focus-visible { background: rgba(255,255,255,.09); }
.p-clip-ic { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; background: rgba(255,255,255,.08); color: #BFE3D6; flex: none; }
.p-clip-main .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-clip-main small { color: #a7b0aa; font-size: 11px; white-space: nowrap; }
.p-pin { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #a7b0aa; font-size: 13px; flex: none; margin-left: 6px; transition: color .2s, background-color .2s, transform .25s var(--ease-out); }
.p-pin:hover { background: rgba(255,255,255,.08); color: #EDE6D6; transform: scale(1.08); }
.p-pin[aria-pressed="true"] { color: #BFE3D6; }
.p-compose { display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.p-compose-head { display: flex; align-items: center; gap: 10px; }
.p-compose-head button { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; color: #a7b0aa; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.07); transition: background-color .2s, color .2s; }
.p-back { margin-right: auto; }
.p-save { background: #6FB59A; color: #15211B; margin-left: auto; }
.p-compose-head button:hover { background: rgba(255,255,255,.14); color: #EDE6D6; }
.p-save:hover { background: #7fc3a9; color: #15211B; }
.p-compose-title { background: none; border: 0; outline: 0; color: #EDE6D6; font: inherit; font-weight: 600; font-size: 14px; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.p-compose-title::placeholder { color: #8b958f; }
.p-compose-body { flex: 1; min-height: 70px; background: rgba(255,255,255,.05); border: 0; outline: 0; border-radius: var(--r-row); padding: 8px 10px; color: #EDE6D6; font: inherit; font-size: 12.5px; resize: none; }
.p-compose-body::placeholder { color: #8b958f; }

.psst {
  position: absolute; top: 34px; left: calc(50% + var(--notch-w) / 2 + 8px); z-index: 2;
  font-family: "Caveat", cursive; font-size: clamp(18px, 2.4vw, 24px); color: #1E2A24; text-shadow: 0 1px 8px rgba(255,255,255,.45);
  display: flex; align-items: flex-start; gap: 4px; transform: rotate(-4deg); pointer-events: none;
  animation: bob 2.4s ease-in-out infinite; transition: opacity .3s;
}
.psst i { font-size: 1.1em; transform: scaleX(-1); }
.psst.gone { opacity: 0; }
[data-theme="dark"] .psst { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
@keyframes bob { 50% { transform: rotate(-4deg) translateY(-4px); } }
.touch-only { display: none; }
@media (hover: none), (max-width: 760px) { .touch-only { display: inline; } .hover-only { display: none; } }

/* ---------- focus dial (shared) ---------- */
.dial { position: relative; width: var(--size, 150px); aspect-ratio: 1; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.dial:active { cursor: grabbing; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dial .track { fill: none; stroke: var(--dial-track, rgba(255,255,255,.1)); stroke-width: 9; }
.dial .arc { fill: none; stroke: var(--sage); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .25s var(--ease); }
.dial.running .arc { transition: stroke-dashoffset 1s linear; }
.dial .knob { fill: var(--dial-knob, #fff); filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.dial-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: "Bricolage", sans-serif; font-variant-numeric: tabular-nums; }
.dial-read b { font-size: calc(var(--size, 150px) * .2); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.dial-read small { font-family: "Outfit", sans-serif; font-size: 12px; opacity: .65; margin-top: 4px; }
.play { width: 46px; height: 46px; border-radius: 50%; background: var(--sage); color: #15211B; display: grid; place-items: center; font-size: 20px; transition: transform .25s var(--ease-out); flex: none; }
.play:hover { transform: scale(1.1); }
.play:active { transform: scale(.92); }
.quick-times { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-times button { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--soft); color: var(--ink-2); transition: transform .25s var(--ease-out), background-color .2s; }
.quick-times button:hover { transform: translateY(-2px); }
.quick-times button[aria-pressed="true"] { background: var(--sage); color: #15211B; }

/* ---------- talk ---------- */
.talk-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); margin-top: 44px; align-items: center; }
.talk-box { background: var(--surface); border-radius: var(--r-card); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); }
.talk-input { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.talk-input:focus-within { box-shadow: inset 0 0 0 2px var(--sage); }
.talk-input i { color: var(--sage); font-size: 22px; }
.talk-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--ink); }
.parse { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 22px; background: var(--bg-2); min-height: 94px; }
.parse-kind { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: var(--sage); color: #15211B; transition: transform .3s var(--ease-out); }
.parse-kind.bump { animation: bump .4s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.15) rotate(-6deg); } }
.parse-title { font-weight: 600; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
.parse-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.parse-chips span { font-size: .85rem; padding: 3px 11px; border-radius: 999px; background: var(--surface); color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.parse-chips span i { color: var(--sage-ink); }
.stickers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.stickers button {
  font-family: "Caveat", cursive; font-size: 1.45rem; line-height: 1.1; padding: 10px 18px; border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow); transform: rotate(var(--r)); transition: transform .3s var(--ease-out);
}
.stickers button:hover { transform: rotate(0deg) scale(1.08) translateY(-4px); }
.stickers button:active { transform: scale(.94); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.tile { background: var(--surface); border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 22px; overflow: hidden; position: relative; }
.tile-cal { grid-column: span 7; }
.tile-rem { grid-column: span 5; }
.tile-notes { grid-column: span 5; }
.tile-clip { grid-column: span 7; }
.tile-focus { grid-column: span 12; }
/* Full width, so the copy sits beside the dial instead of above it. */
@media (min-width: 1021px) {
  .tile-focus { flex-direction: row; align-items: center; gap: clamp(28px, 5vw, 72px); }
  .tile-focus .tile-copy { flex: 0 0 min(320px, 32%); }
  .tile-focus .toy { margin-top: 0; flex: 1; }
}
.tile-copy p { color: var(--ink-2); margin-top: 6px; max-width: 36ch; }
.tile-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--c); color: var(--ink); font-size: 22px; margin-bottom: 14px; transition: transform .3s var(--ease-out); }
.tile:hover .tile-icon { transform: rotate(-10deg) scale(1.08); }
.toy { margin-top: auto; }
.week-toy { display: grid; gap: 14px; margin-top: 0; flex: 1; grid-template-rows: auto 1fr; } /* days sit right under the copy; events fill the rest */
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-days button { padding: 10px 0; border-radius: 16px; background: var(--bg); text-align: center; line-height: 1.1; font-size: .78rem; color: var(--ink-3); transition: transform .25s var(--ease-out), background-color .2s; }
.week-days button b { display: block; font-family: "Bricolage", sans-serif; font-size: 1.35rem; color: var(--ink); margin-top: 3px; }
.week-days button:hover { transform: translateY(-3px); }
.week-days button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.week-days button[aria-pressed="true"] b { color: var(--btn-ink); }
.week-events { display: grid; gap: 8px; min-height: 124px; align-content: start; }
.w-ev { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--r-row); background: color-mix(in srgb, var(--c) 18%, var(--bg)); animation: pop .4s var(--ease-out) both; }
.w-ev time { font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.w-ev span { font-weight: 500; }
.w-empty { color: var(--ink-3); font-family: "Caveat", cursive; font-size: 1.5rem; padding: 18px 4px; }
.rem-toy { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rem-toy li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-row); background: var(--bg); transition: opacity .3s; }
.rem-toy .p-check { width: 24px; height: 24px; box-shadow: inset 0 0 0 2px var(--ink-3); }
.rem-toy .p-check[aria-pressed="true"] { background: var(--sage); box-shadow: none; }
.rem-toy li.done span { text-decoration: line-through; color: var(--ink-3); }
.rem-toy small { margin-left: auto; font-size: .8rem; color: var(--ink-3); }
.rem-count { font-family: "Caveat", cursive; font-size: 1.4rem; color: var(--sage-ink); min-height: 1.6em; }
.note-toy { background: var(--bg); border-radius: 20px; padding: 18px 20px; }
.note-title { font-family: "Bricolage", sans-serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.note-toy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.note-toy li { display: flex; align-items: center; gap: 10px; }
.note-toy li button { font-size: 1.3rem; color: var(--sage); display: grid; transition: transform .25s var(--ease-out); }
.note-toy li button:hover { transform: scale(1.18); }
.note-toy li button[aria-pressed="true"] + span { color: var(--ink-3); }
.note-scribble { font-family: "Caveat", cursive; font-size: 1.45rem; color: var(--ink-2); margin-top: 10px; transform: rotate(-2deg); }
.focus-toy { display: flex; align-items: center; gap: clamp(18px, 4vw, 40px); flex-wrap: wrap; --dial-track: var(--bg-2); --dial-knob: var(--surface); }
.focus-side { display: grid; gap: 14px; flex: 1; min-width: 200px; }
.focus-side .row { display: flex; align-items: center; gap: 12px; }
.focus-side .hint { font-family: "Caveat", cursive; font-size: 1.35rem; color: var(--ink-3); }
.clip-toy { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.clip-toy li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-row); background: var(--bg); cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .2s; }
.clip-toy li:hover, .clip-toy li:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }
.clip-toy li:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.clip-toy .ct-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; background: var(--surface); color: var(--sage-ink); flex: none; }
.clip-toy .ct-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.clip-toy .ct-t.is-code { font-family: monospace; font-size: .92rem; }
.clip-toy small { color: var(--ink-3); font-size: .8rem; flex: none; }
.clip-toy li.just-copied { animation: pop .4s var(--ease-out); }
.clip-toy-aside { font-family: "Caveat", cursive; font-size: 1.4rem; color: var(--sage-ink); min-height: 1.6em; }

/* ---------- clipboard spotlight ---------- */
.clip-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); margin-top: 44px; align-items: start; }
.clip-box { background: var(--surface); border-radius: var(--r-card); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.clip-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.clip-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.clip-filters button { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; transition: transform .25s var(--ease-out), background-color .2s, color .2s; }
.clip-filters button:hover { transform: translateY(-2px); color: var(--ink); }
.clip-filters button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.clip-filters button span { font-size: .78rem; opacity: .75; }
.clip-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.clip-search:focus-within { box-shadow: inset 0 0 0 2px var(--sage); }
.clip-search i { color: var(--ink-3); font-size: 16px; }
.clip-search input { border: 0; outline: 0; background: none; font: inherit; font-size: .92rem; color: var(--ink); width: 160px; max-width: 40vw; }
.clip-stack { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.clip-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 0 10px 0 0; border-radius: var(--r-row); background: var(--bg); transition: transform .25s var(--ease-out), box-shadow .2s; }
.clip-card.fresh { animation: clip-in .4s var(--ease-out) both; }
.clip-card.reorderable { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 4px; cursor: grab; }
.clip-grip { display: grid; place-items: center; width: 22px; height: 40px; color: var(--ink-3); font-size: 18px; touch-action: none; }
.clip-card.dragging { position: relative; z-index: 2; cursor: grabbing; box-shadow: var(--shadow); transition: box-shadow .2s; }
.clip-card.dragging .clip-main { pointer-events: none; }
.clip-card:hover, .clip-card:focus-within { transform: translateY(-2px); box-shadow: var(--shadow); }
.clip-main { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0 12px 14px; text-align: left; border-radius: var(--r-row); }
.clip-main:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
@keyframes clip-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.clip-kind { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; background: var(--surface); color: var(--ink-2); flex: none; }
.clip-kind.k-link { background: var(--sage); color: #15211B; }
.clip-kind.k-color { padding: 0; overflow: hidden; }
.clip-kind.k-color span { width: 100%; height: 100%; display: block; }
.clip-kind.k-code { background: var(--lilac); color: var(--ink); }
.clip-kind.k-text { background: var(--butter); color: var(--ink); }
.clip-body { min-width: 0; display: grid; }
.clip-text { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-text.is-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9rem; }
.clip-meta { font-size: .8rem; color: var(--ink-3); margin-top: 1px; }
.clip-actions { display: flex; align-items: center; gap: 4px; }
.clip-pin { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); font-size: 15px; transition: transform .25s var(--ease-out), color .2s, background-color .2s; }
.clip-pin:hover { background: var(--soft); color: var(--ink); transform: scale(1.08); }
.clip-pin[aria-pressed="true"] { color: var(--sage-ink); }
.clip-copied { font-size: .78rem; color: var(--sage-ink); font-weight: 600; opacity: 0; transition: opacity .25s; }
.clip-card.just-copied .clip-copied { opacity: 1; }
.clip-empty { color: var(--ink-3); text-align: center; padding: 28px 0; font-family: "Caveat", cursive; font-size: 1.4rem; }
.clip-foot { margin-top: 16px; font-size: .82rem; color: var(--ink-3); text-align: center; }
.clip-side { display: grid; gap: 22px; align-content: start; }
.clip-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.clip-facts li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .95rem; }
.clip-facts li i { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--sage-ink); font-size: 15px; box-shadow: var(--shadow); }
.clip-hint { font-family: "Caveat", cursive; font-size: 1.4rem; color: var(--ink-3); margin: 0; }
.clip-stickers { justify-content: flex-start; }
@media (max-width: 1020px) {
  .clip-grid { grid-template-columns: 1fr; }
  .clip-side { order: -1; }
}
@media (max-width: 760px) {
  .clip-toolbar { flex-direction: column; align-items: stretch; }
  .clip-search input { width: auto; max-width: none; flex: 1; }
  .clip-main { grid-template-columns: 36px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .clip-card.fresh { animation: none; }
}

/* ---------- full app window ----------
 * A recreation of Cupola's main window, built from the app's own theme tokens
 * (Packages/Theming light.json/dark.json): navy sidebar, indigo accent, glass cards. */
.aw-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.aw-tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; color: var(--ink-2); transition: transform .25s var(--ease-out), background-color .25s, color .25s; }
.aw-tabs button i { font-size: 1.15em; }
.aw-tabs button:hover { transform: translateY(-2px); color: var(--ink); }
.aw-tabs button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.aw-tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--sage); }
.aw-tabs.auto button[aria-pressed="true"]::after { animation: aw-progress var(--aw-step, 6s) linear forwards; }
@keyframes aw-progress { to { width: 100%; } }
.aw-stage { margin: 22px 0 0; padding: clamp(12px, 3.6vw, 48px); border-radius: var(--r-card); background: var(--band) center / cover no-repeat; box-shadow: var(--shadow); container-type: inline-size; }
.aw-caption { max-width: 32em; margin: 18px auto 0; color: var(--ink-2); text-align: center; min-height: 1.6em; }
.aw-caption b { color: var(--ink); }

.aw {
  --aw-top: #E6ECFB; --aw-bot: #F3EEF9; --aw-glow: #E9D5F5;
  --aw-ink: #1A2140; --aw-ink2: #4B5472; --aw-ink3: #5F6784; --aw-sep: #E1E5EF;
  --aw-surface: rgba(255, 255, 255, .85); --aw-solid: #FFFFFF; --aw-border: rgba(255, 255, 255, .8); --aw-muted: rgba(26, 33, 64, .06);
  --aw-accent: #4F46E5; --aw-accent-soft: rgba(79, 70, 229, .12); --aw-tag: #4F46E5; --aw-shadow: 0 6px 18px rgba(27, 35, 64, .08);
  --aw-side-top: #2F3E6D; --aw-side-bot: #1E2A52; --aw-fill: 20%;
  --aw-art: image-set(url("../img/sidebar-day.webp") type("image/webp"), url("../img/sidebar-day.jpg") type("image/jpeg")); --aw-hero: image-set(url("../img/hero-day.webp") type("image/webp"), url("../img/hero-day.jpg") type("image/jpeg"));
  position: relative; display: flex; gap: 10px; padding: 10px; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate;
  border-radius: 26px; color: var(--aw-ink); text-align: left;
  font: 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  background: radial-gradient(60% 70% at 100% 0, var(--aw-glow), transparent 70%), linear-gradient(var(--aw-top), var(--aw-bot));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 40px 80px -30px rgba(10, 20, 40, .55);
}
[data-theme="dark"] .aw {
  --aw-top: #0B0B0C; --aw-bot: #141415; --aw-glow: #242426;
  --aw-ink: #F5F5F7; --aw-ink2: #C7C7CC; --aw-ink3: #AEAEB2; --aw-sep: #2E2E31;
  --aw-surface: rgba(28, 28, 30, .87); --aw-solid: #2C2C2E; --aw-border: rgba(255, 255, 255, .08); --aw-muted: rgba(255, 255, 255, .07);
  --aw-accent: #8B8CF8; --aw-accent-soft: rgba(139, 140, 248, .18); --aw-tag: #A5A6FB; --aw-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  --aw-side-top: #161617; --aw-side-bot: #0A0A0B; --aw-fill: 28%;
  --aw-art: image-set(url("../img/sidebar-night.webp") type("image/webp"), url("../img/sidebar-night.jpg") type("image/jpeg")); --aw-hero: image-set(url("../img/hero-night.webp") type("image/webp"), url("../img/hero-night.jpg") type("image/jpeg"));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.aw h3, .aw h4 { font-family: inherit; letter-spacing: -.02em; margin: 0; }
.aw b { font-weight: 600; }
.aw button { color: inherit; }
.aw .h-red { --h: #EF4444; } .aw .h-green { --h: #22A55B; } .aw .h-blue { --h: #3B82F6; } .aw .h-yellow { --h: #E5A50A; }
.aw .h-violet { --h: #7C5CFC; } .aw .h-amber { --h: #F59E0B; } .aw .h-orange { --h: #F97316; } .aw .h-teal { --h: #14B8A6; }
.aw .h-purple { --h: #8B5CF6; } .aw .h-indigo { --h: #6366F1; } .aw .h-lime { --h: #84CC16; } .aw .h-pink { --h: #EC4899; } .aw .h-gray { --h: #8E8E93; }
.aw-muted { color: var(--aw-ink3); }

.aw-lights { position: absolute; top: 24px; left: 26px; z-index: 5; display: flex; gap: 7px; }
.aw-lights i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.aw-lights i:nth-child(2) { background: #FEBC2E; }
.aw-lights i:nth-child(3) { background: #28C840; }

.aw-side { position: relative; flex: 0 0 196px; display: flex; flex-direction: column; padding: 48px 10px 14px; border-radius: 20px; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(var(--aw-side-top), var(--aw-side-bot)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 20px rgba(0, 0, 0, .18); }
.aw-side::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5%; height: 52%; z-index: -1; opacity: .7; background: var(--aw-art) center bottom / cover no-repeat; -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
.aw-toggle { position: absolute; top: 15px; right: 14px; font-size: 16px; opacity: .7; }
.aw-nav { display: grid; gap: 2px; }
.aw-nav button, .aw-nav-row { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 12px; border: 1px solid transparent; font-size: 13px; color: rgba(255, 255, 255, .86); text-align: left; white-space: nowrap; transition: background-color .2s; }
.aw-nav button:hover { background: rgba(255, 255, 255, .07); }
.aw-nav button.on { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }
.aw-nav i { font-size: 16px; width: 18px; flex: none; text-align: center; }
.aw-nav-row { color: rgba(255, 255, 255, .66); }
.aw-nav-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 10px 4px; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .5); }
.aw-tagline { margin-top: auto; padding: 0 10px 2px; font-family: "Bradley Hand", "Caveat", cursive; font-size: 22px; line-height: 1.08; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }

.aw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aw-top { flex: none; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 2px 0 6px; }
.aw-search { display: flex; align-items: center; gap: 8px; width: min(320px, 44%); height: 30px; padding: 0 10px; border-radius: 999px; background: var(--aw-surface); box-shadow: inset 0 0 0 1px var(--aw-border), var(--aw-shadow); color: var(--aw-ink3); font-size: 12px; }
.aw-search span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw kbd { font: 600 10px/1 inherit; padding: 3px 5px; border-radius: 5px; background: var(--aw-muted); box-shadow: none; color: var(--aw-ink3); }
.aw-top-quote { flex: 1; min-width: 0; text-align: center; font-style: italic; font-size: 12px; color: var(--aw-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw[data-page="home"] .aw-top-quote { visibility: hidden; }
.aw-top-icons { display: flex; gap: 6px; margin-left: auto; }
.aw-top-icons i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--aw-surface); box-shadow: inset 0 0 0 1px var(--aw-border); color: var(--aw-ink2); font-size: 15px; }

.aw-page { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px 2px; overflow: hidden; animation: aw-in .45s var(--ease); }
.aw-page[hidden], .aw-focus[hidden] { display: none; }
@keyframes aw-in { from { opacity: 0; transform: translateY(8px); } }
.aw-card { min-width: 0; min-height: 0; padding: 14px; border-radius: 20px; background: var(--aw-surface); box-shadow: inset 0 0 0 1px var(--aw-border), var(--aw-shadow); }
.aw-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.aw-card-h em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12px; color: var(--aw-ink3); }
.aw-ic { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; font-size: 13px; color: var(--h); background: color-mix(in srgb, var(--h) 18%, transparent); }
.aw-ic-lg { width: 38px; height: 38px; border-radius: 11px; font-size: 20px; }
.aw-circ, .aw-icon { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--aw-surface); box-shadow: inset 0 0 0 1px var(--aw-border); color: var(--aw-ink2); font-size: 13px; }
.aw-icon { background: var(--aw-muted); box-shadow: none; }
.aw-capsule, .aw-soft, .aw-primary { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.aw-capsule { height: 24px; padding: 0 10px; font-weight: 500; background: var(--aw-surface); box-shadow: inset 0 0 0 1px var(--aw-border); }
.aw-soft { background: var(--aw-muted); }
button.aw-soft:hover { background: var(--aw-accent-soft); }
.aw-primary { background: var(--aw-accent); color: #fff; }
.aw-seg { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--aw-muted); font-size: 12px; }
.aw-seg > span { display: grid; place-items: center; padding: 4px 12px; border-radius: 999px; color: var(--aw-ink2); }
.aw-seg > span.on { background: var(--aw-solid); color: var(--aw-ink); font-weight: 600; box-shadow: var(--aw-shadow); }
.aw-tag { font-size: 11px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; color: var(--aw-tag); background: color-mix(in srgb, #6366F1 14%, transparent); }

/* home */
.aw-hero { position: relative; flex: none; min-height: 128px; padding: 12px 14px; border-radius: 20px; overflow: hidden; }
.aw-hero-art { position: absolute; inset: 0 0 0 32%; background: var(--aw-hero) center 60% / cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); border-radius: 20px; }
.aw-hero-copy { position: relative; }
.aw-hero h3 { font-size: 30px; font-weight: 700; line-height: 1.1; }
.aw-hero-copy > p { margin-top: 4px; }
.aw-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aw-qpill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--aw-surface); box-shadow: inset 0 0 0 1px var(--aw-border), var(--aw-shadow); }
.aw-qpill i { color: var(--h); font-size: 14px; }
.aw-hero-date { position: absolute; top: 10px; right: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; color: #fff; background: rgba(15, 20, 40, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.aw-hero-date i { color: #FFD166; font-size: 15px; }
.aw-clock { position: absolute; right: 16px; bottom: 8px; font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.aw-toolbar { flex: none; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.aw-toolbar > b { font-size: 14px; white-space: nowrap; }
.aw-sep { flex: none; width: 1px; height: 20px; background: var(--aw-sep); }
.aw-days { flex: 1; min-width: 0; display: flex; gap: 4px; overflow: hidden; }
.aw-day { flex: 1 0 36px; display: grid; justify-items: center; padding: 3px 0; border-radius: 10px; font-size: 11px; color: var(--aw-ink3); }
.aw-day b { font-size: 13px; color: var(--aw-ink); }
.aw-day.on { background: var(--aw-accent); color: rgba(255, 255, 255, .85); }
.aw-day.on b { color: #fff; }
.aw-filter { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--aw-muted); }
.aw-filter i { width: 24px; height: 22px; display: grid; place-items: center; border-radius: 999px; color: var(--aw-ink3); }
.aw-filter i.on { background: var(--aw-solid); color: var(--aw-accent); box-shadow: var(--aw-shadow); }
.aw-cards { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aw-cards .aw-card { overflow: hidden; }
.aw-ev { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; align-items: center; margin-bottom: 6px; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--h) var(--aw-fill), transparent); }
.aw-ev .aw-ic { grid-row: span 2; color: #fff; background: var(--h); }
.aw-ev b, .aw-rrow b, .aw-nrow b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-ev small { font-size: 11px; color: var(--aw-ink2); }
.aw-rrow { display: flex; align-items: center; gap: 9px; padding: 7px 4px; border-bottom: 1px solid var(--aw-sep); }
.aw-rrow:last-child { border-bottom: 0; }
.aw-rrow > div { flex: 1; min-width: 0; display: grid; }
.aw-rrow b { transition: opacity .3s; }
.aw-rrow small, .aw-nrow small { font-size: 11px; color: var(--aw-ink3); }
.aw-rrow.overdue small { color: #DC3545; }
.aw-check { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--h); transition: background-color .2s, transform .25s var(--ease-out); }
.aw-check:hover { transform: scale(1.15); }
.aw-rrow.done > .aw-check { background: var(--h); }
.aw-rrow.done > .aw-check::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.aw-rrow.done b { text-decoration: line-through; opacity: .55; }
.aw-flag { color: #F97316; font-size: 13px; }
.aw-nrow { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--aw-sep); }
.aw-nrow:last-child { border-bottom: 0; }
.aw-nrow > div { min-width: 0; display: grid; }
.aw-nrow .aw-ic { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }
.aw-nrow small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aw-link-group { padding: 6px 0; border-bottom: 1px solid var(--aw-sep); }
.aw-link-group:last-child { border-bottom: 0; }
.aw-link-group .aw-nrow { border-bottom: 0; padding: 3px 4px; }
.aw-link-ic { margin-left: 42px; font-size: 11px; color: var(--aw-ink3); }
.aw-restore { flex: none; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--aw-muted); font-size: 11px; font-weight: 600; color: var(--aw-ink2); transition: background-color .2s, color .2s; }
.aw-restore:hover { background: var(--aw-accent-soft); color: var(--aw-accent); }
.aw-rrow.restoring { overflow: hidden; transition: max-height .3s var(--ease-out), opacity .22s var(--ease), transform .3s var(--ease-out), padding-block .3s var(--ease-out), border-color .3s; opacity: 0; transform: translateX(14px); padding-block: 0; border-bottom-color: transparent; pointer-events: none; }
.aw-trash-empty { display: grid; justify-items: center; gap: 8px; padding: 34px 10px; color: var(--aw-ink3); font-size: 12.5px; }
.aw-trash-empty i { font-size: 26px; }

/* calendar */
.aw-cal-card { flex: 1; display: flex; flex-direction: column; gap: 6px; border-radius: 22px; }
.aw-cal-head { display: flex; align-items: center; gap: 8px; }
.aw-cal-head h3 { margin: 0 6px; font-size: 22px; font-weight: 700; white-space: nowrap; }
.aw-cal-head .aw-seg { margin-left: auto; }
.aw-week { flex: 1; min-height: 0; display: grid; grid-template-columns: 40px repeat(var(--cols, 7), minmax(0, 1fr)); grid-template-rows: 30px minmax(0, 1fr); }
.aw-wh { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 11px; color: var(--aw-ink3); }
.aw-wh b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; font-size: 13px; color: var(--aw-ink); }
.aw-wh.today b { background: var(--aw-accent); color: #fff; }
.aw-gutter { position: relative; }
.aw-gutter span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--aw-ink3); }
.aw-col { position: relative; border-left: 1px solid var(--aw-sep); background-image: linear-gradient(var(--aw-sep) 1px, transparent 1px); background-size: 100% calc(100% / 11); }
.aw-col.today { background-color: color-mix(in srgb, var(--aw-accent) 5%, transparent); }
.aw-wev { position: absolute; left: 3px; width: calc(100% - 6px); z-index: 1; display: flex; gap: 5px; padding: 4px 6px; border-radius: 8px; overflow: hidden; font-size: 11px; line-height: 1.25; cursor: grab; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; background: color-mix(in srgb, var(--h) var(--aw-fill), var(--aw-solid)); transition: box-shadow .2s, transform .25s var(--ease-out); }
.aw-wev:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.aw-wev:focus-visible { outline: 2px solid var(--aw-accent); outline-offset: 1px; border-radius: 8px; z-index: 2; }
.aw-wev.drag { cursor: grabbing; z-index: 3; opacity: .92; transform: scale(1.03); transition: box-shadow .2s, transform .2s var(--ease-out), top .08s linear; box-shadow: 0 10px 24px rgba(0, 0, 0, .2), inset 0 0 0 1.5px var(--aw-accent); }
.aw-wev .aw-ic { width: 18px; height: 18px; border-radius: 5px; font-size: 11px; color: #fff; background: var(--h); }
.aw-wev div { min-width: 0; display: grid; align-content: start; }
.aw-wev b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-wev small { font-size: 11px; color: var(--aw-ink2); white-space: nowrap; overflow: hidden; }
.aw-wev.short { padding-block: 2px; align-items: center; }
.aw-wev.short small { display: none; }
.aw-wev.short .aw-ic { width: 14px; height: 14px; font-size: 9px; }
.aw-now { position: absolute; left: -1px; right: 0; z-index: 2; height: 2px; background: #E5484D; pointer-events: none; }
.aw-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }

/* reminders */
.aw-ph { flex: none; display: flex; align-items: center; gap: 12px; padding: 2px 4px; }
.aw-ph h3 { font-size: 22px; font-weight: 700; line-height: 1.1; }
.aw-ph p { font-size: 12px; }
.aw-ph-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.aw-seg-icons > span { padding: 4px 9px; }
.aw-stats { flex: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.aw-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 10px; border-radius: 16px; background: var(--aw-surface); box-shadow: inset 0 0 0 1px var(--aw-border), var(--aw-shadow); }
.aw-stat i { grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; color: #fff; background: var(--h); }
.aw-stat b { font-size: 18px; line-height: 1; }
.aw-stat small { font-size: 11px; color: var(--aw-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-stat.on { box-shadow: inset 0 0 0 2px var(--h), var(--aw-shadow); }
.aw-rem-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 10px; }
.aw-lists, .aw-rem-main { overflow: hidden; }
.aw-list { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 10px; font-size: 12.5px; }
.aw-list i { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--h); }
.aw-list em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--aw-ink3); }
.aw-list.on { background: var(--aw-accent-soft); }
.aw-list-more { height: auto; padding: 4px 8px 2px; gap: 6px; color: var(--aw-ink3); font-size: 11px; font-style: italic; cursor: default; }
.aw-list-more i { background: none; border-radius: 0; font-size: 12px; width: auto; height: auto; opacity: .75; }
.aw-tags-h { margin: 12px 0 6px; }
.aw-tagrow { display: flex; flex-wrap: wrap; gap: 4px; }
.aw-prio { margin-bottom: 6px; }
.aw-lead { width: 12px; flex: none; display: grid; place-items: center; font-size: 11px; color: var(--aw-ink3); }
.aw-rem-main .aw-rrow .aw-ic { width: 26px; height: 26px; }
.aw-badges { flex: none; display: flex; align-items: center; gap: 5px; }
.aw-sub { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--aw-ink3); }
.aw-prio-mark { font-size: 12px; font-weight: 800; color: #DC3545; }
.aw-prio-mark.warn { color: #C26A06; }
.aw-subs { margin-left: 26px; padding-left: 8px; border-left: 1px solid var(--aw-sep); border-bottom: 1px solid var(--aw-sep); }
.aw-subs .aw-rrow { padding-block: 5px; }

/* notes */
.aw-notes-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 10px; }
.aw-nlist { display: flex; flex-direction: column; overflow: hidden; }
.aw-nlist .aw-card-h { justify-content: space-between; }
.aw-search-sm { flex: none; width: 100%; height: 28px; margin-bottom: 6px; background: var(--aw-muted); box-shadow: none; }
.aw-nlist-rows { display: grid; gap: 2px; }
.aw-nitem { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; transition: background-color .2s; }
.aw-nitem:hover { background: var(--aw-muted); }
.aw-nitem.on { background: var(--aw-accent-soft); }
.aw-nitem .aw-ic { width: 40px; height: 40px; border-radius: 10px; font-size: 18px; background-size: cover; background-position: center; }
.aw-nitem > div { min-width: 0; display: grid; gap: 1px; }
.aw-ntitle { display: flex; align-items: center; gap: 4px; font-size: 12.5px; }
.aw-ntitle b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-ntitle i { font-size: 11px; color: var(--aw-ink3); }
.aw-ntitle small { margin-left: auto; font-size: 11px; color: var(--aw-ink3); white-space: nowrap; }
.aw-nsnip { font-size: 11px; color: var(--aw-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-ntags { display: flex; gap: 4px; margin-top: 2px; }
.aw-ncontent { overflow: hidden; padding: 22px 26px; }
.aw-ncontent h4 { font-size: 22px; font-weight: 700; }
.aw-nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 14px; font-size: 11.5px; color: var(--aw-ink3); }
.aw-ncontent p, .aw-ncontent li { font-size: 13px; color: var(--aw-ink2); }
.aw-ncontent h5 { margin: 14px 0 6px; font-size: 15px; font-weight: 700; color: var(--aw-ink); }
.aw-ncontent ul { margin: 6px 0; padding-left: 1.2em; display: grid; gap: 4px; }
.aw-nck { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 13px; color: var(--aw-ink2); text-align: left; }
.aw-nck span:first-child { width: 17px; height: 17px; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #E5A50A; transition: background-color .2s; }
.aw-nck.done span:first-child { background: #E5A50A; }
.aw-nck.done span:first-child::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.aw-nck.done span:last-child { text-decoration: line-through; opacity: .55; }
.aw-nlocked { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--aw-ink3); }
.aw-nlocked i { font-size: 34px; }
.aw-nback { display: none; margin-bottom: 10px; }

/* clipboard */
.aw-clip-top { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.aw-clip-filter { position: relative; flex-wrap: wrap; justify-content: center; }
.aw-clip-filter > span[data-kind] { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; transition: color .2s; }
.aw-clip-filter > span[data-kind].on { background: none; box-shadow: none; }
.aw-clip-filter > span[data-kind] em { font-style: normal; font-size: 11px; color: var(--aw-ink3); }
.aw-clip-filter > span[data-kind].on em { color: inherit; opacity: .7; }
.aw-clip-more { position: relative; z-index: 1; display: inline-flex; padding: 0; background: none; }
.aw-clip-more-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 4px 12px; border-radius: 999px; color: var(--aw-ink2); font: inherit; cursor: pointer; transition: color .2s; }
.aw-clip-more-btn i { font-size: 10px; transition: transform .2s; }
.aw-clip-more-btn.on { color: var(--aw-ink); font-weight: 600; }
.aw-clip-more-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.aw-clip-more-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 5; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: var(--aw-solid); box-shadow: var(--aw-shadow); min-width: 112px; }
.aw-clip-more-menu[hidden] { display: none; }
.aw-clip-more-menu span { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 6px 10px; border-radius: 9px; font-size: 12.5px; color: var(--aw-ink2); cursor: pointer; }
.aw-clip-more-menu span.on, .aw-clip-more-menu span:hover { background: var(--aw-accent-soft); color: var(--aw-ink); }
.aw-clip-more-menu em { font-style: normal; font-size: 11px; color: var(--aw-ink3); }
.aw-clip-pill { position: absolute; top: 2px; left: 0; height: calc(100% - 4px); width: 0; border-radius: 999px; background: var(--aw-solid); box-shadow: var(--aw-shadow); transition: transform .3s var(--ease-out), width .3s var(--ease-out); z-index: 0; }
.aw-clip-search { width: min(360px, 90%); cursor: text; }
.aw-clip-search input { flex: 1; min-width: 0; border: 0; background: none; color: inherit; font: inherit; }
.aw-clip-search input::placeholder { color: var(--aw-ink3); }
.aw-clip-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; transition: grid-template-columns .35s var(--ease-out); }
.aw-clip-cols:has(.aw-clip-apps.collapsed) { grid-template-columns: 56px minmax(0, 1fr); }
.aw-clip-apps { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.aw-clip-collapse { position: absolute; top: 12px; right: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; color: var(--aw-ink3); transition: background-color .2s; }
.aw-clip-collapse:hover { background: var(--aw-muted); }
.aw-clip-applist { display: grid; gap: 2px; overflow: auto; }
.aw-clip-app { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; border-radius: 10px; font-size: 12.5px; text-align: left; transition: background-color .2s; }
.aw-clip-app:hover { background: var(--aw-muted); }
.aw-clip-app.on { background: var(--aw-accent-soft); font-weight: 600; }
.aw-clip-app .aw-ic { width: 20px; height: 20px; border-radius: 50%; font-size: 11px; }
.aw-clip-app-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-clip-app em { flex: none; font-style: normal; font-size: 11px; color: var(--aw-ink3); }
.aw-clip-apps.collapsed { flex-basis: 56px; }
.aw-clip-apps.collapsed .aw-card-h, .aw-clip-apps.collapsed .aw-clip-app-name, .aw-clip-apps.collapsed .aw-clip-app em { display: none; }
.aw-clip-apps.collapsed .aw-clip-applist { margin-top: 26px; }
.aw-clip-apps.collapsed .aw-clip-app { justify-content: center; padding: 0; }
.aw-clip-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.aw-clip-grid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; align-content: start; }
.aw-clip-card { position: relative; display: flex; flex-direction: column; min-height: 86px; border-radius: 16px; overflow: hidden; background: var(--aw-surface); box-shadow: inset 0 0 0 1px var(--aw-border), var(--aw-shadow); text-align: left; cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .2s; animation: aw-in .35s var(--ease); }
.aw-clip-card:hover { transform: translateY(-2px); }
.aw-clip-card:focus-visible { outline: 2px solid var(--aw-accent); outline-offset: 2px; }
.aw-clip-card.selected { box-shadow: 0 0 0 2px var(--aw-accent), var(--aw-shadow); }
.aw-clip-prev { height: 76px; background: var(--aw-muted) center / cover no-repeat; }
.aw-clip-file { height: 76px; display: grid; place-items: center; font-size: 40px; color: var(--aw-accent); background: color-mix(in srgb, var(--aw-accent) 8%, transparent); }
.aw-clip-body { flex: 1; min-height: 0; padding: 10px 10px 6px; font-size: 12px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.aw-clip-card.code .aw-clip-body { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; white-space: pre-wrap; background: var(--aw-muted); margin: 8px; border-radius: 8px; padding: 8px; -webkit-line-clamp: 5; }
.aw-clip-card.editing .aw-clip-body { display: none; }
.aw-clip-edit { flex: 1; width: calc(100% - 20px); margin: 10px; padding: 6px; border: 0; border-radius: 8px; background: var(--aw-muted); color: inherit; font: inherit; resize: none; }
.aw-clip-foot { flex: none; display: flex; align-items: center; gap: 5px; padding: 6px 10px 9px; font-size: 11px; color: var(--aw-ink3); }
.aw-clip-foot i { font-size: 11px; }
.aw-clip-foot span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-clip-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.aw-clip-actions button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 24, 40, .5); color: #fff; font-size: 11px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.aw-clip-actions button.pinned { color: var(--aw-accent); background: #fff; }
/* `.aw button { color: inherit }` outranks a single class, so the icon stays white in light mode too. */
.aw .aw-clip-copy { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--aw-accent); color: #fff; font-size: 13px; opacity: 0; box-shadow: var(--aw-shadow); transition: opacity .2s, transform .2s var(--ease-out); }
.aw-clip-copy:hover { transform: scale(1.08); }
.aw-clip-card:hover .aw-clip-actions, .aw-clip-card:hover .aw-clip-copy,
.aw-clip-card:focus-within .aw-clip-actions, .aw-clip-card:focus-within .aw-clip-copy { opacity: 1; }
@media (hover: none) { .aw-clip-actions, .aw .aw-clip-copy { opacity: 1; } }
/* Like the app's gallery card: the check sits bottom-left, in place of the source app's icon. */
.aw-clip-check { position: absolute; left: 7px; bottom: 6px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--aw-accent); color: #fff; font-size: 10px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s var(--ease-out); }
.aw-clip-card.selected .aw-clip-check { opacity: 1; transform: scale(1); }
.aw-clip-card.selected .aw-clip-foot > i { visibility: hidden; }
.aw-toast { position: absolute; left: 50%; bottom: 64px; z-index: 6; display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--aw-solid); color: var(--aw-ink); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .22), inset 0 0 0 1px var(--aw-border); opacity: 0; transform: translate(-50%, 10px) scale(.96); pointer-events: none; transition: opacity .2s var(--ease), transform .3s var(--ease-out); }
.aw-toast i { color: #22A55B; font-size: 15px; }
.aw-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.aw-clip-add { display: grid; place-items: center; gap: 4px; min-height: 86px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--aw-ink3) 40%, transparent); color: var(--aw-ink3); font-size: 20px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.aw-clip-add:hover { background: var(--aw-accent-soft); border-color: var(--aw-accent); color: var(--aw-accent); }
.aw-clip-note { flex: none; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--aw-ink3); }
.aw-clip-note[hidden] { display: none; }
.aw-clip-bar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 999px; background: var(--aw-solid); box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--aw-border); font-size: 12px; font-weight: 600; white-space: nowrap; animation: aw-in .3s var(--ease); }
.aw-clip-bar[hidden] { display: none; }
.aw-clip-bar button { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; color: var(--aw-ink2); transition: background-color .2s, color .2s; }
.aw-clip-bar button:hover { background: var(--aw-muted); color: var(--aw-ink); }
.aw-clip-bar button.danger { color: #DC3545; }
.aw-clip-bar button.danger:hover { background: color-mix(in srgb, #DC3545 14%, transparent); }
.aw-clip-div { width: 1px; height: 18px; background: color-mix(in srgb, var(--aw-ink3) 40%, transparent); }

/* contacts */
.aw-contacts-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 10px; }
.aw-clist { display: flex; flex-direction: column; overflow: hidden; }
.aw-clist-rows { display: grid; gap: 2px; overflow: auto; }
.aw-citem { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; padding: 7px 8px; border-radius: 12px; text-align: left; transition: background-color .2s; }
.aw-citem:hover { background: var(--aw-muted); }
.aw-citem.on { background: var(--aw-accent-soft); }
.aw-citem-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--h); }
.aw-citem > div { min-width: 0; display: grid; }
.aw-citem b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-citem small { font-size: 11px; color: var(--aw-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-ccontent { overflow: auto; padding: 26px; display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; }
.aw-ccontent-av { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff; background: var(--h); margin-bottom: 8px; }
.aw-ccontent h4 { font-size: 20px; font-weight: 700; }
.aw-ccontent p.aw-muted { font-size: 12.5px; }
.aw-crow { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 320px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: var(--aw-muted); font-size: 12.5px; text-align: left; }
.aw-crow i { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--aw-surface); box-shadow: inset 0 0 0 1px var(--aw-border); color: var(--aw-accent); font-size: 12px; }
.aw-crow div { min-width: 0; display: grid; }
.aw-crow small { font-size: 11px; color: var(--aw-ink3); }
.aw-crow b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-cback { display: none; margin-bottom: 4px; align-self: flex-start; }

/* focus mode */
.aw-focus { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 16px; background: radial-gradient(60% 70% at 100% 0, var(--aw-glow), transparent 70%), linear-gradient(var(--aw-top), var(--aw-bot)); animation: aw-in .5s var(--ease); }
.aw[data-page="focus"] .aw-side, .aw[data-page="focus"] .aw-main { visibility: hidden; }
.aw-fhead { flex: none; display: flex; align-items: center; gap: 8px; padding-left: 64px; }
.aw-fmid { margin: 0 auto; }
.aw-fbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
.aw-fleft { display: grid; justify-items: center; align-content: center; gap: 14px; }
.aw-dial { display: grid; justify-items: center; gap: 10px; color: var(--aw-ink); }
.aw-dial .dial { --size: clamp(120px, 20cqi, 230px) !important; --dial-track: var(--aw-muted); --dial-knob: #fff; }
.aw-dial .dial .arc { stroke: var(--aw-accent); }
.aw-dial .dial-read b { font-family: inherit; }
.aw-dial .dial-read small { font-family: inherit; }
.aw-dial .play { background: var(--aw-accent); color: #fff; }
.aw-fzone { width: min(340px, 90%); display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; text-align: center; border: 1.5px dashed color-mix(in srgb, var(--aw-ink3) 45%, transparent); transition: background-color .2s, border-color .2s; }
.aw-fzone small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--aw-ink3); }
.aw-fzone b { font-size: 14px; }
.aw-fzone.hover, .aw-fzone.set { background: var(--aw-accent-soft); border-color: var(--aw-accent); border-style: solid; }
.aw-ftasks { display: flex; flex-direction: column; gap: 6px; }
.aw-ftask { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--aw-muted); font-size: 12.5px; font-weight: 500; text-align: left; cursor: grab; transition: transform .25s var(--ease-out), background-color .2s; }
.aw-ftask::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--h); }
.aw-ftask:hover { transform: translateX(3px); background: var(--aw-accent-soft); }
.aw-hint { margin-top: auto; font-family: "Caveat", cursive; font-size: 17px; color: var(--aw-ink3); }
.aw-music { flex: none; display: flex; align-items: center; gap: 12px; width: min(560px, 100%); margin: 0 auto; padding: 10px 14px; border-radius: 18px; background: var(--aw-surface); box-shadow: inset 0 0 0 1px var(--aw-border), var(--aw-shadow); }
.aw-art { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #8B5CF6, #3B82F6); }
.aw-track { display: grid; min-width: 0; }
.aw-track small { font-size: 11px; color: var(--aw-ink3); }
.aw-bar { flex: 1 1 100px; height: 4px; border-radius: 4px; background: var(--aw-muted); }
.aw-bar i { display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--aw-accent); }
.aw-controls { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--aw-ink2); }
.aw-controls i:nth-child(2) { font-size: 28px; color: var(--aw-accent); }

/* narrower windows: the sidebar becomes the app's icon rail */
@container (max-width: 980px) {
  .aw { font-size: 12px; }
  .aw-side { flex-basis: 60px; padding: 48px 7px 10px; }
  .aw-nav button > span, .aw-nav-row > span, .aw-nav-head, .aw-tagline, .aw-toggle { display: none; }
  .aw-nav button, .aw-nav-row { justify-content: center; padding: 0; }
  .aw-lights { left: 21px; gap: 5px; }
  .aw-lights i { width: 9px; height: 9px; }
  .aw-top-quote { display: none; }
  .aw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-cards > .aw-card:nth-child(3) { display: none; }
  .aw-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aw-rem-cols { grid-template-columns: minmax(0, 1fr); }
  .aw-lists, .aw-badges .aw-tag { display: none; }
  .aw-notes-cols { grid-template-columns: 230px minmax(0, 1fr); }
  .aw-fbody { grid-template-columns: minmax(0, 1fr) 230px; }
  .aw-cal-head .aw-icon { display: none; }
  .aw-clip-cols { grid-template-columns: 56px minmax(0, 1fr); transition: none; }
  .aw-clip-apps .aw-card-h, .aw-clip-apps .aw-clip-app-name, .aw-clip-apps .aw-clip-app em, .aw-clip-collapse { display: none; }
  .aw-clip-apps .aw-clip-app { justify-content: center; padding: 0; }
  .aw-clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-contacts-cols { grid-template-columns: 180px minmax(0, 1fr); }
}
/* phone-sized: one column, like the app at its narrowest */
@container (max-width: 640px) {
  .aw { aspect-ratio: auto; height: 600px; gap: 8px; padding: 8px; border-radius: 22px; }
  .aw-side { flex-basis: 46px; padding: 42px 4px 8px; border-radius: 16px; }
  .aw-nav button, .aw-nav-row { height: 44px; }
  .aw-lights { top: 19px; left: 17px; gap: 3px; }
  .aw-lights i { width: 8px; height: 8px; }
  .aw-search span, .aw kbd { display: none; }
  .aw-search { width: 30px; padding: 0; justify-content: center; }
  .aw-hero { min-height: 116px; padding: 10px; }
  .aw-hero h3 { font-size: 21px; max-width: 12ch; }
  .aw-hero-art { inset: 0 0 0 20%; }
  .aw-hero-date { display: none; }
  .aw-clock { display: none; }
  .aw-wev .aw-ic { display: none; }
  .aw-quick .aw-qpill { height: 24px; padding: 0 9px; font-size: 11px; }
  .aw-quick .aw-qpill:nth-child(3) { display: none; }
  .aw-toolbar > b, .aw-toolbar .aw-circ, .aw-toolbar .aw-sep, .aw-filter { display: none; }
  .aw-cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; }
  .aw-cal-head .aw-seg { display: none; }
  .aw-cal-head h3 { font-size: 16px; margin: 0 auto 0 4px; }
  .aw-cal-card { padding: 10px; }
  .aw-ph p, .aw-ph-end .aw-seg, .aw-ph-end .aw-icon { display: none; }
  .aw-ph h3 { font-size: 18px; }
  .aw-ph .aw-ic-lg { width: 30px; height: 30px; font-size: 16px; }
  .aw-stats { gap: 6px; }
  .aw-stat { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px; }
  .aw-stat i { grid-row: auto; width: 22px; height: 22px; font-size: 12px; }
  .aw-stat b { font-size: 15px; }
  .aw-stat small { font-size: 11px; }
  .aw-prio { display: none; }
  .aw-rem-main .aw-rrow .aw-ic { display: none; }
  .aw-notes-cols { grid-template-columns: minmax(0, 1fr); }
  .aw-notes-cols:not(.reading) .aw-ncontent, .aw-notes-cols.reading .aw-nlist { display: none; }
  .aw-nback { display: inline-flex; }
  .aw-ncontent { padding: 16px; }
  .aw-fhead { padding-left: 54px; }
  .aw-fhead span.aw-soft { display: none; }
  .aw-fbody { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .aw-ftasks { flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .aw-ftasks .aw-card-h, .aw-hint { display: none; }
  .aw-ftask { padding: 7px 9px; font-size: 11.5px; }
  .aw-ftask:nth-of-type(n+3) { display: none; }
  .aw-bar { display: none; }
  .aw-music { padding: 8px 10px; }
  .aw-clip-top { gap: 6px; align-items: stretch; }
  .aw-clip-filter { font-size: 11px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; align-self: center; max-width: 100%; }
  .aw-clip-filter::-webkit-scrollbar { display: none; }
  .aw-clip-filter > span { flex: none; padding-inline: 9px; }
  .aw-clip-filter em { display: none; }
  .aw-clip-search.aw-search { width: 100%; padding: 0 10px; justify-content: flex-start; }
  .aw-clip-cols { grid-template-columns: minmax(0, 1fr); }
  .aw-clip-apps { display: none; }
  .aw-clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .aw-clip-prev, .aw-clip-file { height: 56px; }
  .aw-clip-body { -webkit-line-clamp: 3; padding: 8px 8px 4px; font-size: 11.5px; }
  .aw-clip-card.code .aw-clip-body { -webkit-line-clamp: 4; margin: 6px; }
  .aw-clip-bar { left: 8px; right: 8px; bottom: 10px; transform: none; justify-content: space-between; padding: 6px 8px; font-size: 11px; gap: 2px; }
  .aw-clip-bar button { padding: 0 6px; }
  .aw-clip-bar button > i, .aw-clip-bar .aw-clip-div, .aw-clip-bar [data-aw-clip-selectall] { display: none; }
  .aw-contacts-cols { grid-template-columns: minmax(0, 1fr); }
  .aw-contacts-cols:not(.reading) .aw-ccontent, .aw-contacts-cols.reading .aw-clist { display: none; }
  .aw-cback { display: inline-flex; }
}

/* ---------- how it works ----------
 * The app's Settings > Permissions diagram (LocalDataFlowCard.swift), in the site's palette:
 * each app keeps its bento tint (Calendar sage, Notes butter, Reminders peach) for its reads,
 * and writes travel back in the ink colour of Cupola's own buttons. Timing mirrors FlowClock:
 * a 3.6s cycle, rows a third of a cycle apart, each write half a cycle after its read. */
.how-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(28px, 4.5vw, 64px); margin-top: 48px; align-items: center; }
.how-mac { margin: 0; position: relative; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(18px, 2.6vw, 28px); container-type: inline-size; }
.how-mac::before { content: ""; position: absolute; inset: 10px; border-radius: calc(var(--r-card) - 10px); border: 1.5px dashed color-mix(in srgb, var(--ink-3) 45%, transparent); background: color-mix(in srgb, var(--bg) 45%, transparent); pointer-events: none; }
.how-head, .how-flow, .how-hint { position: relative; }
.how-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 2px 4px 0; }
.how-this { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.how-this i { font-size: 18px; }
.how-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: color-mix(in srgb, var(--sage) 16%, transparent); color: var(--sage-ink); }
.how-chip i { font-size: 15px; }

.how-flow {
  --p: 3.6s; --pk: 24px; --icon: 50px;
  display: grid; margin-top: 14px;
  grid-template-columns: 82px minmax(64px, 1fr) minmax(158px, 236px);
  grid-template-rows: 42px repeat(3, 80px) 12px;
}
.how-flow [data-row="0"] { grid-row: 2; --c: #8FC4AE; --dr: 0s; --dw: -1.8s; }
.how-flow [data-row="1"] { grid-row: 3; --c: #F2DC95; --dr: -1.2s; --dw: -3s; }
.how-flow [data-row="2"] { grid-row: 4; --c: #F4C3AE; --dr: -2.4s; --dw: -4.2s; }
.how-cap { grid-area: 1 / 1; align-self: center; justify-self: center; font-size: .78rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

/* Cupola, as a small window with one row per app, level with that app's lanes */
.how-panel { grid-column: 3; grid-row: 1 / -1; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sage) 45%, transparent), 0 12px 30px -12px color-mix(in srgb, var(--sage) 55%, transparent); }
.how-panel-name { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; font-family: "Bricolage", sans-serif; font-weight: 700; font-size: .9rem; letter-spacing: -.01em; }
.how-glyph { width: 20px; height: 20px; background: var(--glyph) center / 130% no-repeat; }
.how-row { grid-column: 3; position: relative; align-self: center; display: flex; align-items: center; gap: 10px; height: 54px; margin: 0 10px; padding: 0 10px; border-radius: var(--r-row); background: var(--bg); text-align: left; transition: transform .35s var(--ease-out), opacity .3s; }
.how-row:hover { transform: translateX(-3px); }
.how-row:active { transform: scale(.97); }
.how-row::before, .how-row::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: inset 0 0 0 1.5px var(--c); opacity: 0; pointer-events: none; }
.how-row-ic { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--c); color: #1E2A24; font-size: 15px; }
.how-lines { position: relative; z-index: 1; flex: 1; min-width: 0; display: grid; gap: 6px; }
.how-lines i { display: block; height: 6px; width: min(var(--w), 100%); border-radius: 999px; background: color-mix(in srgb, var(--ink-2) 35%, transparent); }
.how-lines i + i { height: 5px; background: color-mix(in srgb, var(--ink-3) 25%, transparent); }

/* Apple's apps: little drawn icons, the same in both themes, like real app icons */
.how-app { grid-column: 1; position: relative; isolation: isolate; align-self: center; justify-self: center; border-radius: 13px; transition: transform .4s var(--ease-out), opacity .3s; }
.how-app:hover { transform: translateY(-3px) rotate(-5deg); }
.how-app:active { transform: scale(.92); }
.how-app::before, .how-app::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 14px; background: var(--c); filter: blur(10px); opacity: 0; pointer-events: none; }
.how-name { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font-size: .74rem; color: var(--ink-2); white-space: nowrap; }
.how-icon { display: grid; width: var(--icon); height: var(--icon); border-radius: 12px; overflow: hidden; background: #FFFDF8; box-shadow: 0 0 0 1px rgba(30, 42, 36, .08), 0 6px 14px -6px rgba(30, 42, 36, .45); color: #1E2A24; }
.ic-cal { align-content: center; justify-items: center; line-height: 1; }
.ic-cal b { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #2F6B55; }
.ic-cal strong { font-family: "Bricolage", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -.04em; margin-top: 2px; }
.ic-notes { align-content: start; gap: 6px; padding: 0 9px; background: linear-gradient(#F2DC95 0 28%, #FFFDF5 28%); }
.ic-notes i { display: block; height: 2px; border-radius: 2px; background: #E3D7B8; }
.ic-notes i:first-child { margin-top: 20px; }
.ic-notes i:last-child { width: 60%; }
.ic-rem { align-content: center; gap: 5px; padding: 0 8px; }
.ic-rem i { display: flex; align-items: center; gap: 5px; }
.ic-rem i::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #E7A68B; }
.ic-rem i:first-child::before { background: #5E9F86; box-shadow: none; }
.ic-rem i:nth-child(3)::before { box-shadow: inset 0 0 0 1.5px #D9B94F; }
.ic-rem i::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: #E2DDD2; }

/* Two straight dotted lanes per app: reads above, writes below */
.how-lanes { grid-column: 2; display: grid; align-content: center; gap: 6px; padding: 0 12px 0 6px; transition: opacity .3s; }
.how-lane { --lc: color-mix(in srgb, var(--c) 62%, var(--ink)); position: relative; height: 22px; }
.how-lane.write { --lc: color-mix(in srgb, var(--ink-3) 85%, transparent); }
[data-theme="dark"] .how-lane.read { --lc: color-mix(in srgb, var(--c) 75%, transparent); }
.how-lane::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: radial-gradient(circle, var(--lc) 1px, transparent 1.5px) 0 50% / 7px 2px repeat-x; }
.how-lane::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4.5px; border: solid var(--lc); border-width: 2px 2px 0 0; border-radius: 1px; }
.how-lane.read::after { right: 1px; transform: rotate(45deg); }
.how-lane.write::after { left: 1px; transform: rotate(-135deg); }
.how-go { position: absolute; inset: 0; pointer-events: none; }
.how-pk { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: var(--pk); height: var(--pk); margin: calc(var(--pk) / -2) 0 0 calc(var(--pk) / -2); border-radius: 8px; background: var(--c); color: #1E2A24; font-size: calc(var(--pk) * .56); box-shadow: 0 3px 8px -2px rgba(30, 42, 36, .35); }
.how-pk i { grid-area: 1 / 1; }
.how-pk.w { left: 100%; background: var(--btn); color: var(--btn-ink); -webkit-text-stroke: .5px currentColor; }
.how-pk.w i + i { opacity: 0; }
/* Still frame (reduced motion): packets rest mid-lane, like the app. */
.how-lane.read .how-go.loop { transform: translateX(30%); }
.how-lane.write .how-go.loop { transform: translateX(-35%); }

.how-hint { display: block; margin-top: 8px; text-wrap: balance; font-family: "Caveat", cursive; font-size: 1.3rem; line-height: 1.45; color: var(--ink-3); text-align: center; }
.how-hint i { font-size: 18px; vertical-align: -2px; margin-right: 6px; }
.how-pop { position: absolute; left: 50%; bottom: 100%; z-index: 2; margin-bottom: 2px; padding: 1px 9px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-family: "Caveat", cursive; font-size: 1.1rem; line-height: 1.3; white-space: nowrap; transform: translateX(-50%); pointer-events: none; animation: how-pop 1.1s var(--ease) forwards; }
.how-row .how-pop { left: auto; right: 8px; bottom: 50%; transform: translateY(50%); animation-name: how-pop-row; }
.how-app .how-pop { left: 100%; bottom: 50%; margin: 0 0 0 8px; transform: translateY(50%); animation-name: how-pop-row; }
.how-app.hit::after, .how-row.hit::before { animation: how-hit .8s var(--ease); }

/* Hovering or focusing one app or row spotlights its lanes. */
.how-flow[data-hot] [data-row] { opacity: .38; }
.how-flow[data-hot="0"] [data-row="0"], .how-flow[data-hot="1"] [data-row="1"], .how-flow[data-hot="2"] [data-row="2"] { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .how-lane.read .how-go.loop { animation: how-read var(--p) linear var(--dr) infinite; }
  .how-lane.write .how-go.loop { animation: how-write var(--p) linear var(--dw) infinite; }
  .how-pk.w i:first-child { animation: how-alt calc(var(--p) * 2) step-end var(--dw) infinite; }
  .how-pk.w i + i { animation: how-alt calc(var(--p) * 2) step-end calc(var(--dw) - var(--p)) infinite; }
  .how-row::after { animation: how-land var(--p) linear var(--dr) infinite; }
  .how-app::before { animation: how-land var(--p) linear var(--dw) infinite; }
  .how-icon { animation: how-bump var(--p) linear var(--dw) infinite; }
  .how-mac.idle *, .how-mac.idle *::before, .how-mac.idle *::after { animation-play-state: paused; }
}
@keyframes how-read { 0% { transform: translateX(0); opacity: 0; } 10%, 90% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes how-write { 0% { transform: translateX(0); opacity: 0; } 10%, 90% { opacity: 1; } 100% { transform: translateX(-100%); opacity: 0; } }
@keyframes how-alt { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* A row lights up as a read lands (and an icon as a write lands), then fades. */
@keyframes how-land { 0% { opacity: .9; } 8% { opacity: .34; } 16% { opacity: .05; } 30%, 92% { opacity: 0; } 96% { opacity: .34; } 100% { opacity: .9; } }
@keyframes how-bump { 0% { transform: scale(1.07); } 8% { transform: scale(1.03); } 16%, 92% { transform: none; } 96% { transform: scale(1.03); } 100% { transform: scale(1.07); } }
@keyframes how-hit { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes how-pop { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes how-pop-row { 0% { opacity: 0; transform: translateY(50%) scale(.8); } 18% { opacity: 1; transform: translateY(50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(50%) translateX(6px); } }

.how-side { display: grid; gap: 26px; }
.how-grid > .how-note { grid-column: 1 / -1; }
.how-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.how-legend li, .how-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.how-legend h3, .how-note h3 { font-size: 1.08rem; }
.how-legend p, .how-note p { color: var(--ink-2); font-size: .96rem; margin-top: 3px; }
.how-key { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--btn); color: var(--btn-ink); font-size: 17px; -webkit-text-stroke: .5px currentColor; box-shadow: 0 6px 14px -8px rgba(30, 42, 36, .6); transition: transform .3s var(--ease-out); }
.how-key.read { background: linear-gradient(135deg, #8FC4AE, #F2DC95 55%, #F4C3AE); color: #1E2A24; }
.how-legend li:hover .how-key { transform: rotate(-10deg) scale(1.08); }
.how-note { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(22px, 4vw, 56px); padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.how-note-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.how-note-main h3 { text-wrap: balance; }
.how-note-main p { max-width: 32em; }
.how-note p.how-note-aside { display: flex; gap: 8px; align-items: baseline; margin-top: 14px; font-size: .88rem; color: var(--ink-3); }
.how-note-aside i { flex: none; position: relative; top: 2px; font-size: 15px; color: var(--sage-ink); }
.how-note-online { padding-left: clamp(22px, 4vw, 56px); border-left: 1px solid var(--line); }
.how-note p.how-note-lead { margin-top: 0; font-weight: 600; color: var(--ink); }
.how-note-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.how-note-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; color: var(--ink-2); font-size: .94rem; line-height: 1.45; }
.how-note-list i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--sage) 16%, transparent); color: var(--sage-ink); font-size: 15px; }
.how-note p.how-note-close { margin-top: 14px; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) {
  .how-note { grid-template-columns: minmax(0, 1fr); }
  .how-note-online { padding-left: 0; padding-top: 20px; border-left: 0; border-top: 1px solid var(--line); }
}
.how-note-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: color-mix(in srgb, var(--sage) 20%, transparent); color: var(--sage-ink); font-size: 20px; }

@container (max-width: 480px) {
  .how-flow { --pk: 20px; --icon: 40px; grid-template-columns: 64px minmax(44px, 1fr) minmax(118px, 176px); grid-template-rows: 36px repeat(3, 68px) 8px; }
  .how-panel-name { height: 36px; padding: 0 10px; font-size: .8rem; }
  .how-glyph { width: 16px; height: 16px; }
  .how-row { height: 46px; margin: 0 7px; padding: 0 7px; gap: 7px; }
  .how-row-ic { width: 24px; height: 24px; border-radius: 8px; font-size: 13px; }
  .how-name { font-size: .7rem; }
  .how-icon { border-radius: 10px; }
  .ic-cal strong { font-size: 1.15rem; }
  .ic-notes { gap: 5px; padding: 0 7px; }
  .ic-notes i:first-child { margin-top: 15px; }
  .ic-rem { gap: 4px; padding: 0 6px; }
  .how-lanes { padding: 0 8px 0 4px; }
  .how-pk { border-radius: 7px; }
  .how-hint { font-size: 1.15rem; }
}
@container (max-width: 340px) {
  .how-flow { grid-template-columns: 58px minmax(48px, 1fr) minmax(100px, 132px); }
  .how-lines i + i { display: none; }
  .how-cap { font-size: .7rem; }
}

/* ---------- trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.trio-item h3 { margin: 16px 0 8px; }
.trio-item p { color: var(--ink-2); }
.trio-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); font-size: 26px; color: var(--sage-ink); transition: transform .3s var(--ease-out); }
.trio-item:hover .trio-icon { transform: translateY(-4px) rotate(8deg); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.price-card { background: var(--surface); border-radius: var(--r-card); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); position: relative; }
.price-card::before { content: ""; position: absolute; top: -26px; right: 28px; width: 64px; height: 64px; background: var(--glyph) center / 130% no-repeat; transform: rotate(10deg); transition: transform .3s var(--ease-out); }
.price-card:hover::before { transform: rotate(-6deg) translateY(-6px); }
.price-label { font-weight: 600; color: var(--sage-ink); }
.price { font-family: "Bricolage", sans-serif; font-weight: 700; font-size: clamp(3.6rem, 8vw, 5rem); letter-spacing: -.05em; line-height: 1; margin-top: 6px; }
.price small { font-family: "Outfit", sans-serif; font-size: 1.1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-left: 8px; }
.price-tax { color: var(--ink-3); font-size: .9rem; margin-top: 10px; }
.price-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.price-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.price-list i { color: var(--sage); font-size: 20px; margin-top: 2px; }
.price-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.price-fine { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .9rem; margin-top: 18px; }
/* ---------- get ---------- */
.get-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.get-card { min-width: 0; background: var(--surface); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.get-card h3 { display: flex; align-items: center; gap: 10px; }
.get-card h3 i { color: var(--sage-ink); }
.get-card > p { color: var(--ink-2); max-width: 32em; }
.get-meta { font-size: .88rem; color: var(--ink-3); }
.cmd { display: flex; align-items: center; gap: 6px; width: 100%; background: #15211B; color: #BFE3D6; border-radius: 18px; padding: 8px 8px 8px 18px; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 500 .9rem/1.6 ui-monospace, "SF Mono", Menlo, monospace; scrollbar-width: none; }
.cmd .icon-btn { color: #BFE3D6; flex: none; }
.cmd .icon-btn:hover { background: rgba(255,255,255,.1); }
.install-card { grid-column: 1 / -1; }
.install-card .cmd { max-width: 760px; }
.steps { margin: 0; padding-left: 1.3em; color: var(--ink-2); display: grid; gap: 6px; }
.steps b { color: var(--ink); font-weight: 600; }
kbd { font: 600 .82em/1 "Outfit", sans-serif; padding: 3px 7px; border-radius: 7px; background: var(--bg-2); box-shadow: inset 0 -2px 0 var(--line); color: var(--ink); }
.phone-card { display: none; }
.phone-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.phone-actions .btn { width: 100%; }
@media (hover: none) and (pointer: coarse), (max-width: 760px) {
  .phone-card { display: flex; grid-column: 1 / -1; }
  .get-grid .desk-only { order: 2; }
}

/* ---------- coming soon ---------- */
.soon-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.soon-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.soon-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--sage); opacity: 0; animation: soon-ping 2.2s var(--ease) infinite; }
@keyframes soon-ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
.soon-tag { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.soon-sticker { position: absolute; z-index: 3; top: -34px; left: -26px; width: 118px; height: 118px; display: grid; place-items: center; border-radius: 50%; background: var(--butter); color: var(--ink); text-decoration: none; box-shadow: 0 14px 30px -14px rgba(40, 50, 40, .55), inset 0 -3px 0 rgba(0,0,0,.08); transform: rotate(-12deg); transition: transform .3s var(--ease-out); }
.soon-sticker:hover { transform: rotate(4deg) scale(1.08); }
.soon-sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: soon-spin 18s linear infinite; }
.soon-sticker text { font: 700 11.2px "Outfit", sans-serif; letter-spacing: 2.4px; fill: currentColor; }
.soon-sticker-mark { width: 50px; height: 50px; background: url("../img/cupola-glyph-light.svg") center / 130% no-repeat; }
@keyframes soon-spin { to { transform: rotate(360deg); } }
[data-theme="dark"] .soon-sticker { background: #E9D58E; color: #1E2A24; }

/* ---------- waitlist ---------- */
.wl-section { position: relative; overflow: hidden; isolation: isolate; }
.wl-section::before { content: ""; position: absolute; inset: 8% -10% auto; height: 70%; z-index: -1; background: radial-gradient(40% 50% at 70% 50%, color-mix(in srgb, var(--sage) 22%, transparent), transparent 70%), radial-gradient(30% 40% at 25% 30%, color-mix(in srgb, var(--butter) 40%, transparent), transparent 70%); filter: blur(10px); }
.wl-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.wl-copy h2 em { display: inline-block; }
.wl-perks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.wl-perks li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.wl-perks b { display: block; font-weight: 600; }
.wl-perks span { color: var(--ink-2); font-size: .96rem; }
.wl-perk-ic { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: var(--ink); background: var(--tint); transition: transform .3s var(--ease-out); }
.wl-perks li:hover .wl-perk-ic { transform: rotate(-10deg) scale(1.08); }

.wl-stage { position: relative; padding-top: 6px; }
.wl-card { position: relative; background: var(--surface); border-radius: 32px; padding: 70px clamp(22px, 4vw, 40px) clamp(24px, 4vw, 36px); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.wl-card h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -.03em; outline: none; }
.wl-sub { color: var(--ink-2); margin-top: 8px; }
.wl-sub b { color: var(--ink); overflow-wrap: anywhere; }
.wl-fine { margin-top: 16px; font-size: .86rem; color: var(--ink-3); }
.wl-fine a, .wl-fine span { color: var(--sage-ink); overflow-wrap: anywhere; }
.wl-card [hidden] { display: none !important; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the notch face */
.wl-notch {
  --px: 0px; --py: 0px;
  position: absolute; top: -1px; left: 50%; z-index: 2; transform: translateX(-50%);
  width: 120px; height: 36px; padding: 0 16px; border-radius: 0 0 20px 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #0E1210; color: #EDE6D6; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.7), inset 0 -1px 0 rgba(255,255,255,.05);
  transition: width .5s var(--ease-out), height .45s var(--ease-out), border-radius .5s var(--ease);
}
.wl-notch.wide { width: 196px; }
/* the little outward fillets where a MacBook notch meets the top edge */
.wl-notch::before, .wl-notch::after { content: ""; position: absolute; top: 0; width: 10px; height: 10px; pointer-events: none; }
.wl-notch::before { left: -10px; background: radial-gradient(circle at 0 100%, transparent 9.5px, #0E1210 10px); }
.wl-notch::after { right: -10px; background: radial-gradient(circle at 100% 100%, transparent 9.5px, #0E1210 10px); }
.wl-eyes { display: flex; gap: 13px; flex: none; transition: gap .3s; }
.wl-eye { position: relative; width: 13px; height: 13px; border-radius: 50%; background: #F6F1E7; transition: height .16s var(--ease), border-radius .2s, background-color .2s, transform .2s var(--ease-out); }
.wl-eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6.5px; height: 6.5px; margin: -3.25px 0 0 -3.25px; border-radius: 50%; background: #0E1210; transform: translate(var(--px), var(--py)); transition: transform .18s var(--ease), opacity .2s; }
.wl-notch.wide .wl-eyes { gap: 8px; }
.wl-notch.wide .wl-eye { width: 10px; height: 10px; }
.wl-notch.wide .wl-eye::after { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.wl-notch.blink .wl-eye { transform: scaleY(.08); }
.wl-notch-text { display: grid; grid-template-columns: 0fr; opacity: 0; overflow: hidden; white-space: nowrap; transition: grid-template-columns .45s var(--ease-out), opacity .3s; }
.wl-notch.wide .wl-notch-text { grid-template-columns: 1fr; opacity: 1; }
.wl-spin { display: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(246, 241, 231, .25); border-top-color: #9FD9C1; animation: wl-rot .7s linear infinite; }
@keyframes wl-rot { to { transform: rotate(360deg); } }
.wl-zzz { position: absolute; right: -4px; top: 6px; display: none; font-family: "Caveat", cursive; color: var(--ink-3); font-size: 15px; }
.wl-zzz i { position: absolute; font-style: normal; opacity: 0; animation: wl-z 2.4s var(--ease) infinite; }
.wl-zzz i:nth-child(2) { animation-delay: .8s; font-size: 18px; }
.wl-zzz i:nth-child(3) { animation-delay: 1.6s; font-size: 22px; }
@keyframes wl-z { 0% { transform: translate(0, 0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(22px, -26px); opacity: 0; } }
.wl-notch[data-mood="happy"] .wl-eye { height: 8px; margin-top: 5px; background: transparent; border: 2.6px solid #F6F1E7; border-bottom: 0; border-radius: 12px 12px 0 0; }
.wl-notch[data-mood="happy"] .wl-eye::after { opacity: 0; }
.wl-notch[data-mood="worried"] .wl-eye { transform: scaleY(.8); }
.wl-notch[data-mood="worried"] .wl-eye:first-child { transform: rotate(-14deg) scaleY(.75); border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; }
.wl-notch[data-mood="worried"] .wl-eye:last-child { transform: rotate(14deg) scaleY(.75); border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; }
.wl-notch[data-mood="sad"] .wl-eye { height: 8px; margin-bottom: 5px; background: transparent; border: 2.6px solid #F6F1E7; border-top: 0; border-radius: 0 0 12px 12px; }
.wl-notch[data-mood="sad"] .wl-eye::after { opacity: 0; }
.wl-notch[data-mood="sleep"] .wl-eye { height: 2.6px; border-radius: 3px; }
.wl-notch[data-mood="sleep"] .wl-eye::after { opacity: 0; }
.wl-notch[data-mood="sleep"] .wl-zzz { display: block; }
.wl-notch[data-mood="busy"] .wl-spin { display: block; }
.wl-notch[data-mood="busy"] .wl-eye::after { animation: wl-scan 1s ease-in-out infinite alternate; }
@keyframes wl-scan { from { transform: translate(-3px, 0); } to { transform: translate(3px, 0); } }
.wl-notch.gulp { animation: wl-gulp .4s var(--ease-out); }
@keyframes wl-gulp { 30% { transform: translateX(-50%) scale(1.14, 1.35); } 60% { transform: translateX(-50%) scale(.96, .92); } }
.wl-notch.shake { animation: wl-shake .45s var(--ease); }
@keyframes wl-shake { 20%, 60% { transform: translateX(calc(-50% - 7px)); } 40%, 80% { transform: translateX(calc(-50% + 7px)); } }
.wl-notch.hop { animation: wl-hop .4s var(--ease-out); }
@keyframes wl-hop { 35% { transform: translateX(-50%) translateY(-5px) scale(1.06); } }

/* email field */
.wl-field { position: relative; display: flex; align-items: center; margin-top: 22px; height: 60px; border-radius: 20px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .25s var(--ease), background-color .25s, transform .3s var(--ease-out); }
.wl-field:focus-within { background: var(--surface); box-shadow: inset 0 0 0 2px var(--sage), 0 0 0 6px color-mix(in srgb, var(--sage) 16%, transparent); transform: translateY(-1px); }
.wl-field.bad { box-shadow: inset 0 0 0 2px #D9645A, 0 0 0 6px rgba(217, 100, 90, .12); }
.wl-field.nudge { animation: wl-nudge .4s var(--ease); }
@keyframes wl-nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.wl-field-ic { position: absolute; left: 18px; font-size: 20px; color: var(--ink-3); transition: color .2s, transform .3s var(--ease-out); }
.wl-field:focus-within .wl-field-ic { color: var(--sage-ink); transform: rotate(-8deg); }
.wl-field input { flex: 1; min-width: 0; height: 100%; padding: 0 50px 0 50px; border: 0; background: none; outline: none; color: var(--ink); font: 500 1.06rem "Outfit", sans-serif; transition: color .3s, letter-spacing .4s; }
.wl-field input::placeholder { color: var(--ink-3); opacity: .7; }
.wl-field.sending input { color: transparent; letter-spacing: -.3em; }
.wl-field-state { position: absolute; right: 16px; width: 24px; height: 24px; display: grid; place-items: center; font-size: 22px; }
.wl-field-state i { position: absolute; transform: scale(0); transition: transform .4s var(--ease-out); }
.wl-ok { color: var(--sage); }
.wl-bad { color: #D9645A; }
.wl-field.ok .wl-ok, .wl-field.bad .wl-bad { transform: scale(1); }
.wl-hint { min-height: 30px; padding-top: 8px; }
.wl-err { display: flex; gap: 7px; align-items: flex-start; color: #B8473E; font-size: .92rem; animation: wl-drop .35s var(--ease); }
[data-theme="dark"] .wl-err { color: #F0948B; }
.wl-err i { margin-top: 3px; }
@keyframes wl-drop { from { opacity: 0; transform: translateY(-6px); } }
.wl-suggest { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--butter) 70%, transparent); color: var(--ink); font-size: .92rem; animation: wl-drop .35s var(--ease); transition: transform .25s var(--ease-out); }
.wl-suggest:hover { transform: scale(1.04); }
.wl-suggest b { font-weight: 700; overflow-wrap: anywhere; }
.wl-submit { width: 100%; margin-top: 6px; height: 56px; position: relative; overflow: hidden; }
.wl-submit i { transition: transform .3s var(--ease-out); }
.wl-submit:hover i { transform: translate(4px, -4px) rotate(8deg); }
.wl-submit.loading { pointer-events: none; }
.wl-submit.loading .wl-submit-label::after { content: ""; display: inline-block; width: 1.1em; text-align: left; animation: wl-dots 1.2s steps(4) infinite; }
@keyframes wl-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.wl-submit.loading i { animation: wl-fly 1s var(--ease) infinite; }
@keyframes wl-fly { 50% { transform: translate(8px, -8px) rotate(12deg); opacity: .2; } }

/* the flying envelope */
.wl-flyer { position: fixed; left: 0; top: 0; z-index: 95; width: 40px; height: 29px; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.wl-flyer svg { width: 100%; height: 100%; }
.wl-flyer rect { fill: #FBF8F2; stroke: #1E2A24; stroke-width: 1.6; }
.wl-flyer path { fill: none; stroke: #5E9F86; stroke-width: 2; stroke-linejoin: round; }

/* link sent */
.wl-mail { position: relative; width: 120px; height: 86px; margin: 4px auto 22px; animation: wl-bob 3s ease-in-out infinite; }
@keyframes wl-bob { 50% { transform: translateY(-6px) rotate(-2deg); } }
.wl-mail-back { position: absolute; inset: 0; border-radius: 12px; background: color-mix(in srgb, var(--sage) 55%, var(--surface)); }
.wl-mail-back::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%; background: color-mix(in srgb, var(--sage) 70%, var(--surface)); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; animation: wl-flap 3s ease-in-out infinite; }
@keyframes wl-flap { 0%, 100% { transform: scaleY(-1); } 50% { transform: scaleY(-.85); } }
.wl-letter { position: absolute; left: 12px; right: 12px; top: -22px; height: 70px; padding: 14px 12px; border-radius: 8px; background: #FFFDF8; box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; align-content: start; gap: 7px; animation: wl-peek 3s ease-in-out infinite; }
.wl-letter i { height: 5px; border-radius: 3px; background: #E4DCCB; }
.wl-letter i:first-child { width: 60%; background: var(--sage); }
.wl-letter i:last-child { width: 80%; }
@keyframes wl-peek { 50% { transform: translateY(-8px); } }
.wl-mail-front { position: absolute; inset: 0; border-radius: 12px; background: color-mix(in srgb, var(--sage) 45%, var(--surface)); clip-path: polygon(0 18%, 50% 62%, 100% 18%, 100% 100%, 0 100%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.06); }
.wl-mail-badge { position: absolute; top: -12px; right: -12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #E5484D; color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 6px 14px -4px rgba(229,72,77,.6); animation: wl-badge .6s var(--ease-out) .5s both; }
@keyframes wl-badge { from { transform: scale(0); } }
.wl-view[data-wl-view="sent"], .wl-verifying, .wl-view[data-wl-view="left"], .wl-view[data-wl-view="error"] { text-align: center; }
.wl-steps { list-style: none; margin: 20px auto 0; padding: 0; display: grid; gap: 8px; max-width: 360px; text-align: left; }
.wl-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-row); background: var(--bg); color: var(--ink-2); opacity: 0; animation: wl-step .5s var(--ease) forwards; }
.wl-steps li:nth-child(2) { animation-delay: .12s; }
.wl-steps li:nth-child(3) { animation-delay: .24s; }
@keyframes wl-step { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.wl-steps li > span:first-child { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--sage-ink); font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); }
.wl-steps b { color: var(--ink); }
.wl-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; }
.wl-view[data-wl-view="joined"] .wl-actions { justify-content: flex-start; }
.wl-link { color: var(--ink-3); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; border-radius: 8px; }
.wl-link:hover { color: var(--ink); }
.wl-resend { gap: 8px; }
.wl-resend:disabled { opacity: .75; cursor: default; transform: none; }
.wl-ring { width: 18px; height: 18px; transform: rotate(-90deg); display: none; }
.wl-resend:disabled .wl-ring { display: block; }
.wl-ring circle { fill: none; stroke: var(--line); stroke-width: 2.5; }
.wl-ring .wl-ring-arc { stroke: var(--sage-ink); stroke-dasharray: 50.27; stroke-dashoffset: calc(50.27 * (1 - var(--p, 0))); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }

/* verifying, left, error */
.wl-seal { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 44px; color: var(--sage); background: color-mix(in srgb, var(--sage) 16%, transparent); }
.wl-verifying .wl-seal { animation: wl-pulse 1.4s ease-in-out infinite; }
.wl-verifying .wl-seal i { animation: wl-rot 2.4s linear infinite; }
@keyframes wl-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 14px color-mix(in srgb, var(--sage) 10%, transparent); } }
.wl-seal-soft { color: var(--ink-2); background: var(--butter); animation: wl-wave 1.6s var(--ease) .3s 2; }
@keyframes wl-wave { 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
.wl-seal-sad { color: #D9645A; background: rgba(217, 100, 90, .12); }

/* the ticket */
.wl-ticket {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --cut: 71%;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, 29%); margin-bottom: 22px; border-radius: 20px;
  color: #EDE6D6; background: linear-gradient(135deg, #22332B, #16221C 60%, #1B2A23);
  box-shadow: 0 26px 50px -24px rgba(20, 30, 25, .8), inset 0 1px 0 rgba(255,255,255,.06);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease);
  -webkit-mask: radial-gradient(circle at var(--cut) 0, transparent 11px, #000 11.5px) top / 100% 51% no-repeat, radial-gradient(circle at var(--cut) 100%, transparent 11px, #000 11.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at var(--cut) 0, transparent 11px, #000 11.5px) top / 100% 51% no-repeat, radial-gradient(circle at var(--cut) 100%, transparent 11px, #000 11.5px) bottom / 100% 51% no-repeat;
}
.wl-ticket:hover { transition-duration: .12s; }
.wl-t-main { min-width: 0; padding: 20px 22px 18px; }
.wl-t-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: "Bricolage", sans-serif; font-size: 1.1rem; }
.wl-t-mark { width: 26px; height: 26px; background: url("../img/cupola-glyph-dark.svg") center / 130% no-repeat; }
.wl-t-pill { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: rgba(159, 217, 193, .16); color: #9FD9C1; font: 600 .72rem "Outfit", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.wl-t-label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(237, 230, 214, .5); }
.wl-t-email { font-weight: 600; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 12px; }
.wl-t-row { display: flex; gap: 26px; }
.wl-t-val { font-weight: 600; font-size: .92rem; }
.wl-t-bars { display: flex; gap: 2px; height: 26px; margin-top: 14px; }
.wl-t-bars i { display: block; height: 100%; background: #EDE6D6; border-radius: 1px; }
.wl-t-stub { position: relative; display: grid; align-content: center; justify-items: center; padding: 16px 10px; border-left: 2px dashed rgba(237, 230, 214, .22); text-align: center; }
.wl-t-no { display: flex; font-family: "Bricolage", sans-serif; font-weight: 800; font-size: clamp(2rem, 4.4vw, 2.7rem); line-height: 1; letter-spacing: -.02em; color: #9FD9C1; }
.wl-t-no::before { content: "#"; font-size: .55em; margin: .18em .06em 0 0; opacity: .7; }
.wl-roll { display: inline-block; height: 1em; overflow: hidden; }
.wl-roll > span { display: block; white-space: pre; line-height: 1em; }
.wl-stamp { position: absolute; bottom: 12px; padding: 3px 9px; border: 2.5px solid #E7B85A; border-radius: 8px; color: #E7B85A; font: 800 .72rem "Outfit", sans-serif; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-12deg) scale(2.6); opacity: 0; }
.wl-ticket.stamped .wl-stamp { opacity: .92; transform: rotate(-12deg) scale(1); transition: transform .35s var(--ease-out), opacity .15s; }
.wl-t-shine { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: soft-light; opacity: .55; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 40%), linear-gradient(115deg, transparent 30%, rgba(159, 217, 193, .35) 45%, rgba(242, 220, 149, .3) 55%, transparent 70%); background-size: 100% 100%, 220% 100%; background-position: 0 0, calc(var(--mx) * 1.2) 0; }
[data-theme="dark"] .wl-ticket { color: #1E2A24; background: linear-gradient(135deg, #F4EEDF, #E9E1CD 60%, #EFE8D6); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255,255,255,.6); }
[data-theme="dark"] .wl-t-label { color: rgba(30, 42, 36, .5); }
[data-theme="dark"] .wl-t-mark { background-image: url("../img/cupola-glyph-light.svg"); }
[data-theme="dark"] .wl-t-pill { background: rgba(47, 107, 85, .12); color: #2F6B55; }
[data-theme="dark"] .wl-t-bars i { background: #1E2A24; }
[data-theme="dark"] .wl-t-stub { border-left-color: rgba(30, 42, 36, .22); }
[data-theme="dark"] .wl-t-no { color: #2F6B55; }
[data-theme="dark"] .wl-stamp { color: #B7832A; border-color: #B7832A; }
.wl-leave { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-row); background: var(--bg); color: var(--ink-2); animation: wl-drop .35s var(--ease); }
.wl-leave b { color: var(--ink); overflow-wrap: anywhere; }
.wl-leave .wl-actions { margin-top: 10px; justify-content: flex-start; }

@media (max-width: 1020px) {
  .wl-wrap { grid-template-columns: minmax(0, 1fr); }
  .wl-copy { text-align: center; display: grid; justify-items: center; }
  .wl-perks { text-align: left; max-width: 460px; }
  .wl-stage { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 760px) {
  .soon-sticker { width: 80px; height: 80px; top: -40px; left: -12px; }
  .soon-sticker text { font-size: 11.6px; }
  .soon-sticker-mark { width: 38px; height: 38px; }
  .wl-card { padding-top: 64px; border-radius: 28px; }
  .wl-t-main { padding: 16px 16px 14px; }
  .wl-t-row { gap: 16px; }
  .wl-mail { margin-top: 18px; }
}
@media (max-width: 480px) {
  .wl-ticket { grid-template-columns: minmax(0, 1fr) 30%; --cut: 70%; }
  .wl-t-pill { display: none; }
  .wl-t-val { font-size: .84rem; white-space: nowrap; }
  .wl-t-email { font-size: .94rem; }
  .wl-t-row { gap: 14px; }
  .wl-stamp { font-size: .7rem; padding: 2px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .soon-sticker svg, .wl-mail, .wl-letter, .wl-mail-back::before { animation: none; }
}

/* ---------- thank-you page ----------
 * Where checkout lands (thanks.html). Reuses the waitlist's notch face, card and ticket, so the
 * character that took your email is the one handing over your key. */
.ty { padding: clamp(20px, 4vw, 48px) 0 clamp(72px, 10vw, 120px); }
.ty-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; min-height: calc(100dvh - 180px); }
.ty-copy h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.ty-lede { font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: var(--ink-2); margin-top: 20px; max-width: 40ch; }
.ty-lede b { color: var(--ink); overflow-wrap: anywhere; }
.ty ::selection { background: color-mix(in srgb, var(--sage) 34%, transparent); color: var(--ink); }

/* the checklist: tick each step as you go */
.ty-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: ty; }
.ty-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 72%, transparent); transition: background-color .35s var(--ease), transform .3s var(--ease-out); }
.ty-step:hover { transform: translateX(4px); }
.ty-step b { font-weight: 600; }
.ty-step p { color: var(--ink-2); font-size: .96rem; margin-top: 3px; }
.ty-step .cmd { margin-top: 12px; }
.ty-step .cmd code { font-size: .84rem; }
.ty-step.done { background: color-mix(in srgb, var(--sage) 14%, transparent); }
.ty-step.done > div > b { color: var(--sage-ink); }
.ty-check { position: relative; width: 30px; height: 30px; margin-top: -2px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 28%, transparent); display: grid; place-items: center; transition: background-color .25s, box-shadow .25s, transform .3s var(--ease-out); }
.ty-check::before { counter-increment: ty; content: counter(ty); font: 700 .86rem "Outfit", sans-serif; color: var(--ink-3); transition: opacity .2s, transform .25s var(--ease-out); }
.ty-check::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 6px; margin: -5px 0 0 -6px; border: solid #15211B; border-width: 0 0 2.6px 2.6px; transform: rotate(-45deg) scale(0); transition: transform .3s var(--ease-out); }
.ty-check:hover { transform: scale(1.12) rotate(-6deg); box-shadow: inset 0 0 0 2px var(--sage); }
.ty-check:active { transform: scale(.9); transition-duration: .08s; }
.ty-check[aria-pressed="true"] { background: var(--sage); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--sage) 90%, transparent); }
.ty-check[aria-pressed="true"]::before { opacity: 0; transform: scale(.4); }
.ty-check[aria-pressed="true"]::after { transform: rotate(-45deg) scale(1); }
.ty-cheer { min-height: 2.2em; margin-top: 14px; font-family: "Caveat", cursive; font-size: 1.6rem; line-height: 1.1; color: var(--sage-ink); }
.ty-cheer.pop { animation: ty-cheer .5s var(--ease-out); }
@keyframes ty-cheer { from { opacity: 0; transform: translateY(8px) rotate(-3deg) scale(.9); } }

/* the card and its states */
.ty-card { padding-top: 76px; }
.ty-card .wl-notch { cursor: pointer; }
.ty-card .wl-notch:focus-visible { outline-offset: 4px; border-radius: 0 0 20px 20px; }
.ty-view[hidden], .ty-steps[hidden] { display: none; }
.ty-center { text-align: center; }
.ty-center .wl-actions { justify-content: center; }
.ty-h { font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -.03em; outline: none; }
.ty-ticket { margin-bottom: 26px; grid-template-columns: minmax(0, 1fr) minmax(88px, 25%); --cut: 75%; }
.ty-ticket .wl-t-row { margin-top: 14px; }
.ty-keys { display: grid; gap: 6px; margin-top: 6px; }
.ty-key { display: block; padding: 10px 12px; border-radius: 12px; background: rgba(237, 230, 214, .07); font: 600 clamp(.86rem, 1.5vw, 1rem)/1.35 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; cursor: text; transition: background-color .25s, box-shadow .25s; }
.ty-key:hover { background: rgba(237, 230, 214, .12); }
.ty-key.flash { animation: ty-flash .9s var(--ease); }
@keyframes ty-flash { 0% { box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--sage-ink) 55%, transparent); background: color-mix(in srgb, var(--sage) 30%, transparent); } 100% { box-shadow: 0 10px 20px -8px transparent; } }
[data-theme="dark"] .ty-key { background: rgba(30, 42, 36, .07); }
[data-theme="dark"] .ty-key:hover { background: rgba(30, 42, 36, .12); }
.ty-inf { font-size: clamp(2.4rem, 4.6vw, 3rem); color: #9FD9C1; line-height: 1; margin-top: 2px; }
[data-theme="dark"] .ty-inf { color: #2F6B55; }
.ty-ticket.stamped .ty-inf { animation: ty-inf 2.8s ease-in-out infinite; }
@keyframes ty-inf { 50% { transform: scale(1.08) rotate(-6deg); } }
.ty-actions { justify-content: flex-start; }
.ty-copy-key { min-width: 164px; }
.ty-copy-key i { transition: transform .3s var(--ease-out); }
.ty-copy-key:hover i { transform: rotate(-12deg) scale(1.12); }
.ty-copy-key.copied { background: var(--sage); color: #15211B; }
.ty-seal-wait { color: var(--ink-2); background: var(--butter); }
.ty-seal-wait i { animation: ty-turn 2.4s var(--ease) infinite; }
@keyframes ty-turn { 0%, 30% { transform: rotate(0); } 50%, 80% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

@media (max-width: 1020px) {
  /* one column: heading, then the key, then the steps */
  .ty-grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .ty-copy { display: contents; }
  .ty-copy h1 { order: 1; text-align: center; }
  .ty-lede { order: 2; text-align: center; margin-inline: auto; }
  .ty-stage { order: 3; max-width: 560px; width: 100%; margin: 36px auto 0; }
  .ty-steps { order: 4; width: 100%; max-width: 560px; margin-inline: auto; }
  .ty-cheer { order: 5; text-align: center; }
}
@media (max-width: 480px) {
  .ty-step { padding: 14px; gap: 12px; }
  .ty-ticket { grid-template-columns: minmax(0, 1fr) 27%; --cut: 73%; }
  .ty-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ty-ticket.stamped .ty-inf, .ty-seal-wait i { animation: none; }
}

/* ---------- faq ---------- */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 36px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), background-color .3s; will-change: height; }
.faq details:hover { transform: translateY(-2px); }
.faq details.is-open { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 28px 50px -24px rgba(54, 70, 58, .45); }
[data-theme="dark"] .faq details.is-open { box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 28px 54px -24px rgba(0, 0, 0, .75); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 600; font-size: 1.08rem; position: relative; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.faq summary:active { transform: scale(.995); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 500; transition: transform .3s var(--ease-out), background-color .25s, color .25s; }
.faq summary:hover::after { transform: scale(1.12); }
.faq details.is-open summary::after { transform: rotate(135deg); background: var(--sage); color: #15211B; }
.faq details.is-open summary:hover::after { transform: rotate(135deg) scale(1.12); }
.faq details p { padding: 0 24px 22px; color: var(--ink-2); max-width: 32em; transform-origin: 0 0; }
.no-js .faq details[open] summary::after { transform: rotate(135deg); background: var(--sage); color: #15211B; }

/* ---------- final + footer ---------- */
.final-inner { text-align: center; display: grid; justify-items: center; }
.final-notch { position: relative; width: 120px; height: 20px; margin-bottom: -4px; background: #050706; border-radius: 0 0 13px 13px; overflow: hidden; transition: width .7s var(--spring), height .7s var(--spring), border-radius .6s var(--ease), margin .6s var(--ease); }
.final-notch::before { content: ""; position: absolute; top: 7px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2c3a44, #0b0f12 70%); transition: opacity .3s; }
.final-notch-glow { position: absolute; inset: auto 0 0 0; height: 0; opacity: 0; background: linear-gradient(180deg, transparent, rgba(111, 181, 154, .4)); transition: height .5s .1s var(--ease), opacity .4s .1s; }
.final-inner.in .final-notch, .final-inner:hover .final-notch { width: 188px; height: 52px; border-radius: 0 0 24px 24px; margin-bottom: 10px; }
.final-inner.in .final-notch::before, .final-inner:hover .final-notch::before { opacity: 0; }
.final-inner.in .final-notch-glow, .final-inner:hover .final-notch-glow { height: 100%; opacity: 1; }
.final-mark { width: 92px; height: 92px; background: var(--glyph) center / 130% no-repeat; animation: floaty 4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(4deg); } }
.final h2 { margin-top: 12px; max-width: 16ch; }
/* Footer: brand block + five link columns. Markup comes from _build/build.mjs (footerHtml). */
.footer { padding: 56px 0 48px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 4fr); gap: 40px; }
.footer-about { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-about p { margin: 0; max-width: 18em; }
.footer .brand { color: var(--ink); }
.footer-small { font-size: .88rem; }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; }
.footer-h { margin: 0 0 10px; font-family: inherit; font-size: .92rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-col a, .footer-col button {
  display: inline-block; margin-left: -10px; padding: 5px 10px; border: 0; border-radius: 999px; background: none;
  color: var(--ink-2); font: inherit; font-size: .92rem; line-height: 1.35; text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.footer-col a:hover, .footer-col button:hover { background: var(--soft); color: var(--ink); }
.footer-col [aria-current="page"] { color: var(--ink); background: var(--soft); }
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.badges-section { padding-top: 8px; padding-bottom: 8px; }
.badges-label { margin: 0 0 20px; text-align: center; font-size: .85rem; color: var(--ink-3); }
.footer-badges {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 28px; width: 100%;
  padding-inline: 24px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.footer-badges::-webkit-scrollbar { display: none; }
.footer-badges a { flex: none; }
.footer-badges.is-scrolling {
  justify-content: flex-start;
  overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.footer-badges.is-scrolling.is-dragging { cursor: grabbing; user-select: none; }
.footer-badges.is-scrolling.is-dragging a { cursor: grabbing; }
.badge-item { display: flex; align-items: center; justify-content: center; height: 40px; }
.badge-item img {
  display: block; height: 100%; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1) opacity(.55); transition: filter .2s ease, opacity .2s ease;
}
.badge-item:hover img, .badge-item:focus-visible img { filter: none; opacity: 1; }
.badge-item:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .badge-item img { transition: none; } }
.get-legal { font-size: .88rem; color: var(--ink-3); max-width: 32em; }
.get-legal a, .faq details p a { color: var(--sage-ink); text-underline-offset: 3px; }

/* ---------- storage consent card ---------- */
.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 85; width: min(400px, calc(100% - 32px));
  background: var(--surface); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line);
  display: grid; gap: 12px;
  opacity: 0; transform: translateY(24px) scale(.96); transform-origin: 20% 100%;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.consent[hidden] { display: none; }
.consent.show { opacity: 1; transform: none; }
.consent-head { display: flex; align-items: center; gap: 12px; }
.consent-head h2 { font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.2; }
.consent-icon { width: 40px; height: 40px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--butter); color: var(--ink); font-size: 1.3rem; }
.consent.show .consent-icon { animation: wobble .5s var(--ease-out) .25s; }
@keyframes wobble { from { transform: scale(.75) rotate(-10deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.consent p { color: var(--ink-2); font-size: .94rem; }
.consent p a { color: var(--sage-ink); text-underline-offset: 3px; }
.consent-state { font-size: .86rem !important; color: var(--ink-3) !important; }
.consent-options { display: grid; gap: 6px; }
.consent-option { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--r-row); background: var(--bg-2); cursor: pointer; }
.consent-option input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--sage); cursor: pointer; }
.consent-option span { display: grid; gap: 1px; line-height: 1.3; }
.consent-option b { color: var(--ink); font-weight: 600; font-size: .94rem; }
.consent-option small { color: var(--ink-3); font-size: .84rem; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.consent-actions .btn { width: 100%; padding: 0 12px; }

/* ---------- checkout consent dialog ---------- */
.checkout {
  width: min(460px, calc(100% - 32px)); border: 0; padding: 30px 28px 24px; border-radius: var(--r-card);
  background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
}
.checkout[open] { animation: pop .4s var(--ease-out); }
.checkout::backdrop { background: rgba(21, 33, 27, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.checkout h2 { font-size: 1.6rem; letter-spacing: -.03em; padding-right: 36px; }
.checkout-x { position: absolute; top: 16px; right: 16px; }
.checkout-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.checkout-list li { display: flex; gap: 10px; align-items: flex-start; }
.checkout-list i { color: var(--sage); font-size: 1.2rem; margin-top: 2px; }
.checkout-list b { color: var(--ink); }
.checkout-agree { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-row); background: var(--bg-2); cursor: pointer; }
.checkout-agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--sage); cursor: pointer; }
.checkout-agree a { color: var(--sage-ink); text-underline-offset: 3px; }
.checkout-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.checkout-actions .btn { flex: 1 1 auto; }
.checkout-actions .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.checkout-fine { margin-top: 14px; font-size: .85rem; color: var(--ink-3); }

/* ---------- "See how it works" video ---------- */
/* A soft pill beside "Try it free"; the play circle sits inset on its left. */
.btn.watch { padding-left: 8px; gap: 12px; }
.watch-play { width: 36px; height: 36px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--sage); color: #15211B; font-size: 1rem; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--sage) 55%, transparent); transition: transform .3s var(--ease-out); }
.watch-play i { margin-left: 2px; }
.watch:hover .watch-play { transform: scale(1.12); }
.watch:active .watch-play { transform: scale(.92); transition-duration: .08s; }

.video {
  width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 0; padding: 12px; border-radius: var(--r-card);
  background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.video[open] { animation: pop .4s var(--ease-out); }
.video::backdrop { background: rgba(21, 33, 27, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 10px 12px; }
.video-head h2 { font-size: 1.15rem; letter-spacing: -.02em; }
/* Capped by height too, so the whole 16:9 player fits on a short or landscape screen. */
.video-frame { width: min(100%, (100dvh - 110px) * 16 / 9); margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--r-row); overflow: hidden; background: #0b0f0d; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- legal pages ---------- */
.legal { padding: clamp(32px, 6vw, 72px) 0 clamp(72px, 10vw, 120px); }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: 88px; font-size: .92rem; }
.legal-toc p { font-weight: 600; color: var(--ink-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; padding-left: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 6px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s; }
.legal-toc a:hover { background: var(--soft); color: var(--ink); }
.legal-body { max-width: 720px; min-width: 0; }
.legal-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--sage-ink); }
.legal-body h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; margin-top: 6px; }
.legal-updated { color: var(--ink-3); margin-top: 12px; }
.legal-short { margin: 32px 0 12px; background: var(--surface); border-radius: var(--r-card); padding: clamp(22px, 3.5vw, 32px); box-shadow: var(--shadow); }
.legal-short h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.legal-short ul { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.legal-short li { display: flex; gap: 10px; align-items: flex-start; }
.legal-short li i { color: var(--sage); font-size: 1.2rem; margin-top: 2px; flex: none; }
.legal-short > p { font-size: .9rem; color: var(--ink-3); }
.legal-body section { padding-top: 40px; scroll-margin-top: 72px; }
.legal-body section h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 12px; }
.legal-body h3 { font-size: 1.08rem; margin: 22px 0 6px; }
.legal-body section p, .legal-body section li { color: var(--ink-2); }
.legal-body section p + p { margin-top: 10px; }
.legal-body section ul { margin: 10px 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-body section b { color: var(--ink); font-weight: 600; }
.legal-body section a:not(.btn) { color: var(--sage-ink); text-underline-offset: 3px; }
.legal-body .cmd { margin-top: 10px; padding: 12px 18px; }
.legal-body section .btn { margin-top: 4px; }
.legal-table { overflow-x: auto; margin: 16px 0; border-radius: var(--r-row); box-shadow: 0 0 0 1px var(--line); }
.legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal-table th { color: var(--ink); background: var(--bg-2); font-weight: 600; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table code { font: 500 .86rem ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); white-space: nowrap; }

/* ---------- confetti + toast ---------- */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti-layer i { position: absolute; width: 9px; height: 13px; border-radius: 3px; will-change: transform, opacity; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--btn); color: var(--btn-ink); padding: 12px 20px; border-radius: 999px; font-weight: 500; z-index: 90; transition: transform .4s var(--ease-out), visibility 0s .4s; visibility: hidden; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .4s var(--ease-out); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; gap: 40px; }
  .hero-copy { text-align: center; display: grid; justify-items: center; }
  .lede { max-width: 42ch; }
  .cta-row { justify-content: center; }
  .talk-grid, .pricing, .how-grid { grid-template-columns: 1fr; }
  .tile-cal, .tile-rem, .tile-notes, .tile-clip, .tile-focus { grid-column: span 12; }
}
@media (min-width: 700px) and (max-width: 1020px) {
  .tile-rem, .tile-notes { grid-column: span 6; }
}
.mobile-cta-bar { display: none; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; gap: 2px; background: var(--surface); border-radius: 20px;
    padding: 10px; box-shadow: 0 16px 40px -20px rgba(30, 42, 36, .45), inset 0 0 0 1px var(--line);
    z-index: 60;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 14px; min-height: 44px; display: flex; align-items: center; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-primary.btn-sm { width: 40px; height: 40px; padding: 0; gap: 0; }
  .nav-actions .btn-primary.btn-sm span { display: none; }
  .nav-menu-toggle { display: grid; }
  .icon-btn { width: 44px; height: 44px; }
  .trio, .get-grid { grid-template-columns: minmax(0, 1fr); }
  /* Keeps the MacBook proportions while closed; grows only as tall as the open panel needs. */
  /* MacBook proportions (the hero is 100vw - 40px wide here) while closed; grows only as tall as the open panel needs. */
  .mac-screen { --closed-h: calc((100vw - 40px) * 10.6 / 16); aspect-ratio: auto; height: var(--closed-h); border-radius: 18px 18px 6px 6px; transition: height .6s var(--spring); }
  .mac-screen:has(.island.open) { height: max(var(--closed-h), calc(var(--panel-h, 320px) + 34px)); }
  .mac { --notch-w: 104px; }
  .hide-xs { display: none; }
  .psst { left: auto; right: 10px; top: 36px; }
  .psst i { display: none; }
  .island.open { width: 96%; }
  .panel { padding-inline: 10px; }
  .panel-tabs { gap: 2px; }
  .panel-tabs button { width: 32px; }
  .tile { padding: 20px; }
  .week-days { gap: 4px; }
  .week-days button b { font-size: 1.1rem; }
  .parse { grid-template-columns: 1fr; }
  .aw-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 6px 20px 14px; scrollbar-width: none; }
  .aw-tabs::-webkit-scrollbar { display: none; }
  .aw-tabs button { flex: none; height: 40px; padding: 0 15px; }
  .aw-stage { margin-top: 8px; }
  .consent { left: 16px; bottom: 16px; }
  .footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .mobile-cta-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    padding: 10px 10px 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-radius: 999px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
    transform: translateY(0); opacity: 1;
    transition: transform .3s var(--ease-out), opacity .25s var(--ease-out), visibility .3s;
  }
  .mobile-cta-bar.is-hidden { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; pointer-events: none; }
  .mobile-cta-bar .btn { min-height: 44px; flex: none; }
  .mobile-cta-price { font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
}
@media (max-width: 600px) {
  .legal-table { box-shadow: none; overflow: visible; }
  .legal-table table { min-width: 0; }
  .legal-table thead { display: none; }
  .legal-table tbody { display: grid; gap: 10px; }
  .legal-table tr { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-row); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .legal-table td { display: grid; gap: 2px; padding: 0; border: 0; }
  .legal-table td::before { content: attr(data-label); font-size: .78rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
}
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { display: none; }
}
@media (max-width: 420px) {
  .cta-row .btn { flex: 1 1 100%; }
  .price-actions .btn { flex: 1 1 100%; }
  .checkout { padding: 26px 20px 20px; }
  .checkout-actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled, .menubar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .menubar { background: rgba(20, 28, 24, .85); }
}
