/* Landing page. Colours mirror the app's Theme.swift: five themes, each with light and dark. */

:root {
  --accent-l: #4F7557; --accent-d: #A3C7A4; --on-accent-d: #202A21;
  --bg-l: #F7F7F2; --border-l: #D1D1C7;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root[data-theme="ocean"]    { --accent-l: #3F6A8F; --accent-d: #9EC1E0; --on-accent-d: #1B2530; --bg-l: #F4F6F8; --border-l: #CDD2D9; }
:root[data-theme="plum"]     { --accent-l: #6B5591; --accent-d: #C1B0E0; --on-accent-d: #251F30; --bg-l: #F6F5F8; --border-l: #D3CFD9; }
:root[data-theme="rose"]     { --accent-l: #9A4A6F; --accent-d: #E8AECA; --on-accent-d: #301F27; --bg-l: #F8F5F6; --border-l: #D9CFD3; }
:root[data-theme="graphite"] { --accent-l: #4A4A4A; --accent-d: #D6D6D6; --on-accent-d: #1F1F1F; --bg-l: #F5F5F5; --border-l: #D1D1D1; }

/* Light */
:root {
  color-scheme: light;
  --bg: var(--bg-l);
  --page: color-mix(in oklab, var(--bg-l) 70%, white);
  --surface: rgba(255, 255, 255, 0.8);
  --menu: #FFFFFF;
  --input-border: var(--border-l);
  --text: #2E2E2E; --text-2: #757575; --text-3: #949494;
  --accent: var(--accent-l); --on-accent: #FFFFFF;
  --hover: rgba(0, 0, 0, 0.07);
  --hairline: rgba(0, 0, 0, 0.12);
  --alert: #A66624; --pill-alert: #F5D49C;
  --sticky: #F5EDCC; --sage: #DBEBD4; --blue: #D6E8F5; --rose: #F5DBDB; --lavender: #E6DBF2;
  --sticky-border: rgba(166, 145, 82, 0.18);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --frame-shadow: 0 30px 80px -20px rgba(40, 45, 35, .35), 0 0 0 1px rgba(0,0,0,.06);
  --wall-1: color-mix(in oklab, var(--accent-l) 45%, #F4E9D8);
  --wall-2: color-mix(in oklab, var(--accent-l) 25%, #FFFFFF);
  --wall-3: color-mix(in oklab, var(--accent-l) 70%, #E8B48A);
}
/* Dark: neutrals stay neutral and the accent carries the colour, as in the app. */
@media (prefers-color-scheme: dark) {
  :root:not([data-appearance="light"]) {
    color-scheme: dark;
    --bg: #1E1E1E; --page: #171717; --surface: rgba(44, 44, 44, 0.8); --menu: #2C2C2C;
    --input-border: #5C5C5C;
    --text: #EFEFEF; --text-2: #BBBBBB; --text-3: #9C9C9C;
    --accent: var(--accent-d); --on-accent: var(--on-accent-d);
    --hover: rgba(255, 255, 255, 0.07); --hairline: rgba(255, 255, 255, 0.12);
    --alert: #EBC180; --pill-alert: #514027;
    --sticky: #413D29; --sage: #303F2D; --blue: #2C3D49; --rose: #493234; --lavender: #3D3349;
    --sticky-border: rgba(212, 193, 139, 0.18);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --frame-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
    --wall-1: color-mix(in oklab, var(--accent-d) 30%, #1B1D22);
    --wall-2: color-mix(in oklab, var(--accent-d) 12%, #121314);
    --wall-3: color-mix(in oklab, var(--accent-d) 45%, #3A2A26);
  }
}
:root[data-appearance="dark"] {
  color-scheme: dark;
  --bg: #1E1E1E; --page: #171717; --surface: rgba(44, 44, 44, 0.8); --menu: #2C2C2C;
  --input-border: #5C5C5C;
  --text: #EFEFEF; --text-2: #BBBBBB; --text-3: #9C9C9C;
  --accent: var(--accent-d); --on-accent: var(--on-accent-d);
  --hover: rgba(255, 255, 255, 0.07); --hairline: rgba(255, 255, 255, 0.12);
  --alert: #EBC180; --pill-alert: #514027;
  --sticky: #413D29; --sage: #303F2D; --blue: #2C3D49; --rose: #493234; --lavender: #3D3349;
  --sticky-border: rgba(212, 193, 139, 0.18);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --frame-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  --wall-1: color-mix(in oklab, var(--accent-d) 30%, #1B1D22);
  --wall-2: color-mix(in oklab, var(--accent-d) 12%, #121314);
  --wall-3: color-mix(in oklab, var(--accent-d) 45%, #3A2A26);
}
:root { --accent-dim: color-mix(in srgb, var(--accent) 10%, transparent); --alert-dim: color-mix(in srgb, var(--alert) 12%, transparent); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
a { color: var(--accent); }
button { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
em { font-style: italic; }
h1 em, h2 em { color: var(--accent); }

/* Header and footer */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.brand svg { width: 26px; height: 26px; }
.brand .mark { fill: var(--accent); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { color: var(--text-2); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top nav .nav-download { color: var(--accent); font-weight: 600; }
.bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px max(16px, calc((100vw - 1120px) / 2)) 44px; border-top: 1px solid var(--hairline);
  font-size: 14px; color: var(--text-2);
}
.bottom nav { display: flex; gap: 18px; }
.bottom a { color: var(--text-2); }

/* Hero */
.hero { padding: 36px 16px 24px; text-align: center; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; margin: 0 auto 18px; max-width: 14em; text-wrap: balance; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 34em; margin: 0 auto; }
.hero > * { animation: rise .8s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .08s; }
.hero > :nth-child(3) { animation-delay: .18s; }
.hero > :nth-child(4) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.demo-wrap { margin: 34px auto 0; max-width: 1040px; }
.demo-hint { margin: 0 0 16px; padding: 0 8px; font-size: 14px; color: var(--text-2); transition: opacity .4s ease; }
.demo-hint b { font-weight: 600; color: var(--accent); }
.demo-hint.gone { opacity: 0; }
.hint-dot { display: inline-block; vertical-align: 1px; margin-right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }

/* The fake desktop */
.desktop {
  position: relative; overflow: hidden; text-align: left;
  aspect-ratio: 16 / 10; border-radius: 16px; box-shadow: var(--frame-shadow);
  background:
    radial-gradient(120% 90% at 0% 100%, var(--wall-3) 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 0%, var(--wall-2) 0%, transparent 60%),
    linear-gradient(160deg, var(--wall-2), var(--wall-1));
  font-size: 14px; line-height: 1.4; user-select: none; -webkit-user-select: none;
}
.menubar {
  position: absolute; inset: 0 0 auto; height: 26px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text); background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 1;
}
.mb-left { display: flex; gap: 16px; opacity: .85; }
.mb-app { font-weight: 700; }
.mb-right { font-variant-numeric: tabular-nums; opacity: .85; }
.bg-window {
  position: absolute; left: 7%; top: 16%; width: 52%; height: 70%; border-radius: 12px; overflow: hidden;
  background: color-mix(in srgb, var(--menu) 88%, transparent); box-shadow: 0 20px 50px -12px rgba(0,0,0,.3), 0 0 0 1px var(--hairline);
}
.bg-titlebar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border-bottom: 1px solid var(--hairline); font-size: 12px; color: var(--text-3); }
.bg-titlebar i { width: 11px; height: 11px; border-radius: 50%; background: var(--hairline); }
.bg-titlebar span { margin-left: auto; margin-right: auto; padding-right: 48px; }
.bg-body { padding: 22px 26px; display: grid; gap: 13px; }
.bg-body span { display: block; height: 9px; border-radius: 5px; background: var(--hover); }

/* Pill */
.pill {
  --w: 160px; position: absolute; z-index: 5; top: 36px; right: 16px; height: 40px; width: var(--w);
  border-radius: 999px; background: var(--bg); box-shadow: var(--shadow);
  display: flex; align-items: center; overflow: hidden;
  transition: width .32s var(--ease), height .22s ease, top .22s ease, background-color .45s ease, transform .4s var(--spring), opacity .25s ease;
  animation: pill-in .5s var(--spring) .5s backwards; transform-origin: top right;
}
@keyframes pill-in { from { opacity: 0; transform: scale(.82); } }
.pill::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: transparent; transition: background-color .16s ease; pointer-events: none; }
.pill[data-mode="full"]:hover::before { background: var(--hover); }
.pill.lit { background: var(--pill-alert); }
.pill[data-mode="quick"] { box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.pill[data-mode="quick"]:focus-within::before { background: var(--accent-dim); }
.pill[data-mode="hidden"] { opacity: 0; transform: scale(.9); pointer-events: none; }

.pill-logo {
  position: absolute; left: 15px; top: 7px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; cursor: pointer; z-index: 2; transition: left .32s var(--ease), top .22s ease, transform .22s ease;
}
.pill-logo svg { position: absolute; inset: 1px; width: 24px; height: 24px; transition: opacity .2s ease, transform .3s var(--spring); }
.logo-mark path { fill: var(--accent); }
.logo-plus { opacity: 0; transform: scale(.7) rotate(-45deg); }
.logo-plus path { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; fill: none; }
.pill-logo:hover .logo-mark, .pill-logo:focus-visible .logo-mark, .pill[data-mode="quick"] .logo-mark { opacity: 0; transform: scale(.7) rotate(-45deg); }
.pill-logo:hover .logo-plus, .pill-logo:focus-visible .logo-plus { opacity: 1; transform: none; }
.pill[data-mode="quick"] .logo-plus { opacity: 1; transform: rotate(45deg); }
.pill[data-mode="quick"] .pill-logo:hover { background: var(--hover); }

.pill-body {
  height: 100%; flex: 1; display: flex; align-items: center; gap: 6px; padding: 0 16px 0 48px; border: 0; background: none;
  white-space: nowrap; cursor: pointer; text-align: left; transition: opacity .2s ease; min-width: 0; position: relative;
}
.pill-body > * { flex: none; }
.pill-title { font-size: 13px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.pill-count { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: var(--accent-dim); color: var(--accent); font-variant-numeric: tabular-nums; }
.pill-trailing { font-size: 13px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.pill-trailing.alert { color: var(--alert); font-weight: 600; }
.pill-done { position: absolute; right: 16px; border: 0; background: none; padding: 0; color: var(--alert); font-size: 13px; font-weight: 600; cursor: pointer; }
.pill-compact {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--accent); opacity: 0; pointer-events: none; transition: opacity .2s ease;
}

/* Compact: a small badge until the pointer comes near. */
.pill[data-mode="compact"] { height: 28px; top: 42px; }
.pill[data-mode="compact"] .pill-body, .pill[data-mode="compact"] .pill-done { opacity: 0; pointer-events: none; }
.pill[data-mode="compact"] .pill-logo { left: calc((var(--w) - 26px) / 2); top: 1px; transform: scale(.8); }
.pill[data-mode="compact"].badge .pill-logo { opacity: 0; }
.pill[data-mode="compact"].badge .pill-compact { opacity: 1; }
.pill[data-mode="compact"].badge { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.pill[data-mode="compact"].badge.alert { background: color-mix(in srgb, var(--alert) 12%, var(--bg)); }
.pill[data-mode="compact"].badge.alert .pill-compact { color: var(--alert); }

/* Quick entry */
.quick { position: absolute; inset: 0 10px 0 48px; display: flex; align-items: center; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.pill[data-mode="quick"] .quick { opacity: 1; pointer-events: auto; transition-delay: .08s; }
.pill[data-mode="quick"] .pill-body, .pill[data-mode="quick"] .pill-done { opacity: 0; pointer-events: none; }
.quick input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 14px var(--sans); }
.quick input::placeholder, .input-field input::placeholder { color: var(--text-3); }
.send {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: var(--accent-dim); cursor: pointer; transition: background-color .15s ease, opacity .15s ease;
}
.send svg { width: 15px; height: 15px; }
.send path { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.send:disabled { opacity: .45; cursor: default; }

.quick-toast {
  position: absolute; z-index: 4; top: 84px; right: 16px; max-width: min(360px, calc(100% - 32px));
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--menu);
  box-shadow: var(--shadow); font-size: 13px; color: var(--text-2);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s ease, transform .25s var(--ease);
}
.quick-toast.show { opacity: 1; transform: none; pointer-events: auto; }
.quick-toast b { color: var(--text); font-weight: 500; }
.quick-toast button { margin-left: 4px; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; }

/* macOS-style notification banners */
.banners { position: absolute; z-index: 8; top: 86px; right: 12px; display: grid; gap: 8px; width: min(330px, calc(100% - 24px)); pointer-events: none; }
.banner {
  display: flex; gap: 11px; align-items: center; padding: 11px 13px; border-radius: 16px; pointer-events: auto;
  background: color-mix(in srgb, var(--menu) 86%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.3), 0 0 0 1px var(--hairline);
  animation: banner-in .45s var(--spring) both; font-size: 13px; cursor: default;
}
.banner.out { animation: banner-out .3s ease forwards; }
@keyframes banner-in { from { opacity: 0; transform: translateX(40px); } }
@keyframes banner-out { to { opacity: 0; transform: translateX(40px); } }
.banner-icon { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--hairline); }
.banner-icon svg { width: 22px; height: 22px; }
.banner-icon path { fill: var(--accent); }
.banner b { display: block; font-weight: 600; color: var(--text); }
.banner span { color: var(--text-2); }

/* Panel */
.panel {
  position: absolute; z-index: 6; top: 36px; right: 16px; width: min(380px, calc(100% - 32px)); height: calc(100% - 52px); max-height: 540px;
  display: flex; flex-direction: column; border-radius: 20px; background: var(--bg); color: var(--text);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.35), 0 0 0 1px var(--hairline);
  transform-origin: top right; animation: panel-in .34s var(--spring) both;
}
.panel.closing { animation: panel-out .2s ease forwards; }
@keyframes panel-in { from { opacity: 0; transform: scale(.4, .1); border-radius: 30px; } }
@keyframes panel-out { to { opacity: 0; transform: scale(.6, .2); } }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 8px 16px 4px; color: var(--text-2); }
.panel-title { font-size: 13px; font-weight: 500; line-height: 32px; color: var(--text); }
.spacer { flex: 1; }
.icon-btn { width: 26px; height: 26px; display: grid; place-items: center; border: 0; padding: 0; border-radius: 6px; background: none; cursor: pointer; color: var(--text-2); }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.panel-scroll { flex: 1; overflow-y: auto; padding: 14px 20px 16px; scrollbar-width: none; }
.panel-scroll::-webkit-scrollbar { display: none; }
.day { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 14px; }
.notes:empty { display: none; }
.note-card {
  height: 86px; padding: 10px; border-radius: 10px; border: 1px solid var(--sticky-border); text-align: left; overflow: hidden;
  cursor: pointer; font-size: 11.5px; line-height: 1.35; color: var(--text-2); transition: filter .15s ease, transform .2s var(--spring);
  display: block; width: 100%;
}
.note-card:hover { filter: brightness(1.03) saturate(1.1); transform: translateY(-1px); }
.note-card b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.note-card.new { animation: pop .4s var(--spring); }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }

.items { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: flex-start; gap: 14px; padding: 5px 0; font-size: 14.5px; }
.item.new { animation: slide .35s var(--ease); }
@keyframes slide { from { opacity: 0; transform: translateY(6px); } }
.item-lead { flex: none; width: 44px; height: 28px; display: grid; place-items: center; }
.check {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-3); background: none; padding: 0; cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s ease, border-color .15s ease;
}
.check:hover { border-color: var(--accent); }
.check svg { width: 12px; height: 12px; opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .25s var(--spring); }
.check path { stroke: var(--on-accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.item.done .check { background: var(--accent); border-color: var(--accent); }
.item.done .check svg { opacity: 1; transform: none; }
.timer-icon { width: 15px; height: 15px; }
.timer-icon * { stroke: var(--text-2); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.item-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 4px; }
.item-text { overflow-wrap: anywhere; }
.item.done .item-text { color: var(--text-3); text-decoration: line-through; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; border: 0;
  background: var(--accent-dim); color: var(--accent); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chip svg { width: 11px; height: 11px; }
.chip svg * { stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chip.alert { background: var(--alert-dim); color: var(--alert); }
button.chip { cursor: pointer; }
.item-del { flex: none; opacity: 0; margin-top: 2px; }
.item:hover .item-del, .item-del:focus-visible { opacity: 1; }
.empty { font-size: 13px; color: var(--text-3); margin: 6px 0 0; }

.note-view { flex: 1; display: flex; padding: 6px 20px 8px; }
.note-view textarea {
  flex: 1; resize: none; border: 0; outline: 0; background: none; color: var(--text); font: 14.5px/1.5 var(--sans); padding: 0;
}

.panel-foot { padding: 8px 16px 16px; display: grid; gap: 10px; }
.later { font-size: 13px; color: var(--text-2); }
.later summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 2px 4px; }
.later summary::-webkit-details-marker { display: none; }
.later summary svg { width: 13px; height: 13px; transition: transform .2s ease; }
.later summary path { stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.later[open] summary svg { transform: rotate(90deg); }
.later-count { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--hover); }
.later-items { max-height: 120px; overflow-y: auto; padding-top: 4px; }
.later-items .item { font-size: 13.5px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 0 4px; font-size: 13px; color: var(--text-2); animation: slide .2s var(--ease); }
.toast svg { flex: none; width: 16px; height: 16px; }
.toast circle { fill: var(--accent); }
.toast path { stroke: var(--on-accent); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.toast span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast button { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: underline; cursor: pointer; }

.input-row { display: flex; align-items: flex-end; gap: 8px; }
.new-note {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--input-border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text-2); padding: 0;
}
.new-note:hover { background: var(--hover); color: var(--text); }
.new-note svg { width: 17px; height: 17px; }
.new-note * { stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; }
.input-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 5px 0 14px;
  border-radius: 22px; border: 1px solid var(--input-border); background: var(--surface); transition: box-shadow .15s ease;
}
.input-field:focus-within { box-shadow: inset 0 0 0 100px var(--accent-dim); }
.input-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 14px var(--sans); padding: 10px 0; }
.input-field .send { background: var(--hover); }
.input-field .send path { stroke: var(--text-2); }

/* Try chips and look controls */
.try { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.try-label { width: 100%; font-size: 13px; color: var(--text-3); margin-bottom: 2px; }
.try button {
  border: 1px solid var(--hairline); background: var(--bg); color: var(--text); border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; cursor: pointer; transition: border-color .15s ease, transform .2s var(--spring), background-color .15s ease;
}
.try button:hover { border-color: var(--accent); transform: translateY(-1px); }
.try button:active { transform: translateY(1px); }
.try button:disabled { opacity: .5; cursor: default; transform: none; }

.look { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 22px; }
.swatches { display: flex; gap: 10px; }
.swatches button {
  width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 0 0 1px var(--hairline); transition: box-shadow .15s ease, transform .2s var(--spring);
}
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--accent); }
[data-theme-pick="green"] { background: #4F7557; } [data-theme-pick="ocean"] { background: #3F6A8F; }
[data-theme-pick="plum"] { background: #6B5591; } [data-theme-pick="rose"] { background: #9A4A6F; }
[data-theme-pick="graphite"] { background: #4A4A4A; }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hover); }
.segmented button { border: 0; background: none; padding: 5px 13px; border-radius: 999px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.segmented button[aria-checked="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* Download */
.cta { margin: 56px auto 0; display: grid; justify-items: center; gap: 12px; scroll-margin-top: 90px; }
.download {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; font-size: 17px;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .2s var(--spring), box-shadow .2s ease;
}
.download:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.download[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: none; }
.download svg { width: 19px; height: 19px; }
.download path { stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cta-meta { margin: 0; font-size: 14px; color: var(--text-2); }

/* Sections */
main > section:not(.hero) { max-width: 1040px; margin: 0 auto; padding: 88px 16px 0; scroll-margin-top: 50px; }
section h2 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; margin: 0 0 32px; text-align: center; text-wrap: balance; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid article { background: var(--bg); border-radius: 18px; padding: 24px; box-shadow: 0 0 0 1px var(--hairline); }
.grid h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.grid p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.pricing .price { font-family: var(--serif); font-size: 48px; line-height: 1; margin: 10px 0 14px; }
.pricing .price small { font-family: var(--sans); font-size: 15px; color: var(--text-2); }
.pricing ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.pricing li { margin: 5px 0; }
.pricing .featured { box-shadow: 0 0 0 1.5px var(--accent); }
.soon { display: inline-block; margin-top: 14px !important; font-size: 13px !important; font-weight: 600; color: var(--accent) !important; padding: 4px 10px; border-radius: 999px; background: var(--accent-dim); }

.changelog { text-align: center; }
.changelog h2 { margin-bottom: 6px; }
.changelog-date { color: var(--text-3); font-size: 14px; margin: 0 0 22px; }
.changelog ul { text-align: left; max-width: 560px; margin: 0 auto 18px; padding-left: 20px; color: var(--text-2); }
.changelog li { margin: 6px 0; }
.muted { color: var(--text-3); font-size: 14px; }

.faq { max-width: 680px !important; padding-bottom: 96px !important; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 16px 2px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--text-2); }

/* Phones: a taller desktop so the panel has room. */
@media (max-width: 640px) {
  .top nav { gap: 16px; }
  .top nav a:not(.nav-download) { display: none; }
  .hero { padding-top: 28px; }
  .demo-wrap { margin-top: 32px; }
  .desktop { aspect-ratio: auto; height: 600px; border-radius: 14px; }
  .mb-left span:not(.mb-app) { display: none; }
  .bg-window { left: 5%; width: 80%; top: 20%; height: 55%; }
  .panel { right: 10px; width: calc(100% - 20px); }
  .pill { right: 10px; }
  .quick-toast { right: 10px; }
  main > section:not(.hero) { padding-top: 64px; }
}

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