@font-face {
  font-family: "Moralana";
  src: url("fonts/Moralana.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #f1f1f2;
  --bg-top: #f2f2f3;
  --bg-bottom: #eff0f1;
  --bg-raised: #ffffff;
  --ink: #121212;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --accent: #ff9933;
  --accent-ink: #c45e00;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 1px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --desktop-bg: rgb(237, 235, 230);
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%) fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  background: rgba(250, 250, 247, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,153,51,0.18);
}
.brand-name {
  font-family: "Moralana", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  color: var(--accent-ink);
  letter-spacing: 0.2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 14px;
}
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #000; box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--bg-raised);
  color: var(--ink);
  border-color: var(--border-strong);
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", "Roboto Mono", Consolas, monospace;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }

/* Hero */
.hero { padding: 72px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,153,51,0.10);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255,153,51,0.28);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.app-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 0 6px;
  border-radius: 22px;
  image-rendering: -webkit-optimize-contrast;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-word {
  font-family: "Moralana", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--accent);
  font-size: 60px;
  line-height: 1;
  height: 96px;
  display: inline-flex;
  align-items: center;
  transform: translateY(8px);
  font-weight: 400;
  letter-spacing: 0;
}
.hero-copy h1 {
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
  font-weight: 600;
  white-space: nowrap;
}
.accent {
  font-family: "Moralana", inherit;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0;
}
.lede {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 520px;
  margin: 0 0 28px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-row > .btn,
.cta-row > .btn-stack { min-width: 200px; }
.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.btn-stack > .btn { width: 100%; }
.btn-caption {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.01em;
  text-align: center;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
.micro {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.todo-anim {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  position: relative;
  margin: 0 auto;
}

/* Features */
.features { padding: 88px 0 48px; }
.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-weight: 600;
}
.section-sub {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 36px;
  max-width: 640px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,153,51,0.12);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.feature-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 14.5px;
}

/* Privacy */
.privacy { padding: 56px 0 88px; }
.privacy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.privacy h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 14px 0 16px;
  font-weight: 600;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(48,169,91,0.12);
  color: #199a4f;
  font-size: 11px;
  font-weight: 700;
}
.privacy-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}
.lockbox {
  width: 240px;
  height: 240px;
  border-radius: 32px;
  background: radial-gradient(circle at 30% 25%, #ffffff, #f1efea);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lockbox::before, .lockbox::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.14;
}
.lockbox::before { width: 140px; height: 140px; top: -40px; right: -40px; }
.lockbox::after { width: 90px; height: 90px; bottom: -20px; left: -30px; opacity: 0.08; }
.lockbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  z-index: 1;
}
.lockbox-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* CTA */
.cta {
  padding: 72px 0 96px;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  font-weight: 600;
}
.cta-inner p {
  color: var(--ink-soft);
  margin: 0 auto 26px;
  max-width: 520px;
  font-size: 17px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-footer .brand-name { font-size: 16px; }
.footer-links { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { color: var(--muted); font-size: 13px; }

/* ====== Showcase (hover-to-play videos) ====== */

.showcase {
  padding: 112px 0 96px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.demo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 956 / 1706;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 8px 16px rgba(0,0,0,0.08),
    0 24px 48px rgba(0,0,0,0.14);
  cursor: pointer;
  transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow .3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-frame:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.05),
    0 14px 28px rgba(0,0,0,0.10),
    0 40px 80px rgba(0,0,0,0.20);
}
.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
}

/* "Hover to play" affordance — fades out once video is playing. */
.demo-frame::after {
  content: "▶  Hover to play";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  opacity: 1;
  transition: opacity .25s ease;
  pointer-events: none;
}
.demo-frame.is-playing::after { opacity: 0; }

.demo-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-align: center;
}
.demo-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 960px) {
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid .demo:last-child { grid-column: 1 / -1; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-grid .demo:last-child { max-width: none; }
  .showcase { padding: 48px 0 72px; }
  .demo-frame::after { content: "▶  Tap to play"; }
  .demo-frame:hover { transform: none; }
}

/* ====== Todo Desktop Animation ====== */
/* Everything is absolutely positioned inside .todo-anim using percentages,
   so the scene scales with the container. */

.desk {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--desktop-bg);
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.08);
}

.menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 22px;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 9px;
  color: rgba(0,0,0,0.6);
  z-index: 2;
}
.menubar .apple {
  color: rgba(0,0,0,0.72);
  font-size: 11px;
  line-height: 1;
}
.menubar .status { display: flex; align-items: center; gap: 8px; }
.menubar .status svg { display: inline-block; }

.window {
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translate(-50%, 0);
  width: 70%;
  height: 56%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.16), 0 4px 10px rgba(0,0,0,0.06);
  overflow: hidden;
}
.window-bar {
  height: 22px;
  background: #f5f4f2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.tl {
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15);
}
.tl.r { background: rgb(250, 92, 89); }
.tl.y { background: rgb(252, 189, 51); }
.tl.g { background: rgb(77, 199, 84); }

/* Chrome window — tabs, toolbar, body */
.chrome-titlebar {
  height: 28px;
  background: #dee1e6;
  padding: 0 10px;
  gap: 8px;
  border-bottom: 0 none;
  /* keep align-items: center from .window-bar so traffic lights stay centered */
}
.chrome-titlebar .tl { align-self: center; }
.chrome-tabs {
  flex: 1;
  display: flex;
  align-items: flex-end;
  align-self: stretch;
  gap: 2px;
  height: 100%;
  padding-left: 4px;
  overflow: hidden;
}
.ctab {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  background: transparent;
  border-radius: 6px 6px 0 0;
  color: rgba(0,0,0,0.55);
  font-size: 7.5px;
  flex-shrink: 1;
  min-width: 0;
  max-width: 72px;
}
.ctab.active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 -1px 0 rgba(0,0,0,0.04);
}
.ctab-fav {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ctab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-weight: 500;
}
.ctab-x {
  font-size: 9px;
  color: rgba(0,0,0,0.4);
  line-height: 1;
}
.ctab-new {
  width: 14px;
  height: 14px;
  font-size: 11px;
  line-height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.5);
  margin-bottom: 3px;
}

.chrome-toolbar {
  height: 26px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.chrome-nav {
  display: inline-flex;
  gap: 3px;
  color: rgba(0,0,0,0.5);
}
.chrome-nav-btn {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
}
.chrome-url {
  flex: 1;
  height: 16px;
  background: #e8eaed;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  font-size: 7.5px;
  color: rgba(0,0,0,0.65);
  overflow: hidden;
}
.chrome-url svg {
  flex-shrink: 0;
  color: rgba(0,0,0,0.55);
}
.chrome-url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrome-body {
  height: auto !important;
  flex: 1;
  background: #fff !important;
  background-image: none !important;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-coachella {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  height: 20px;
  background: linear-gradient(180deg, #c04434 0%, #d77264 100%);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.cp-coachella-title {
  font-family: "Moralana", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  line-height: 1;
  color: #f4ead3;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.cp-coachella-spacer { flex: 1; }
.cp-coachella-jump {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f4ead3;
  flex-shrink: 0;
}
.cp-coachella-arrow {
  font-size: 6px;
  line-height: 1;
  opacity: 0.9;
}
.cp-coachella-link {
  font-size: 4.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 1px;
  white-space: nowrap;
}
.cp-row {
  display: flex;
  gap: 6px;
}
.cp-card {
  flex: 1;
  height: 34px;
  background: #f1f3f5;
  border-radius: 4px;
  border: 0.5px solid rgba(0,0,0,0.05);
}
.cp-line {
  height: 5px;
  background: #e8eaed;
  border-radius: 2px;
}
.cp-line.short { width: 55%; }

.window {
  display: flex;
  flex-direction: column;
}

.dock {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.65);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 6px 12px;
  display: flex;
  gap: 7px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dock .app {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  box-shadow: inset 0 -2px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.1);
}

/* Cursor */
.cursor {
  position: absolute;
  width: 14px;
  height: 18px;
  pointer-events: none;
  z-index: 10;
  transform: translate(-1px, -1px);
  transition: left 1s ease-in-out, top 1s ease-in-out;
  filter: drop-shadow(0 1px 0.5px rgba(0,0,0,0.35));
}

/* Toasts */
.toast {
  position: absolute;
  right: 3%;
  width: 46%;
  background: #fff;
  border-radius: 8px;
  border: 0.5px solid rgba(0,0,0,0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2), 0 4px 10px rgba(0,0,0,0.08);
  padding: 9px 11px 8px;
  font-size: 10px;
  color: #222;
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1);
  opacity: 0;
  transform: translateX(24px);
  z-index: 6;
}
.toast.visible { opacity: 1; transform: translateX(0); }

.toast-rec { bottom: 15%; }
.toast-insight { bottom: 15%; }

.toast-head {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-left: 7px;
}
.toast-head::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: #3478f6;
}
.toast-insight .toast-head::before { background: var(--accent); }
.toast-eyebrow {
  display: flex; align-items: center; gap: 4px;
  color: #8a8a8a;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toast-body {
  margin-top: 2px;
  padding-left: 7px;
  font-size: 11px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.35;
}
.toast-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 0;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  font-size: 10px;
  font-weight: 500;
  color: #6b6b6b;
  transition: color .2s ease;
}
.toast-action.added { color: #199a4f; }

.toast-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #b5b5b5;
  font-size: 10px;
}

/* Confetti */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.confetti span {
  position: absolute;
  width: 4px;
  height: 2.4px;
  border-radius: 1px;
  opacity: 0;
}
@keyframes confetti-pop {
  0%   { opacity: 1; transform: translate(0,0) rotate(0); }
  100% { opacity: 0; transform: var(--end-transform); }
}


/* ====== Responsive ====== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: left; }
  .hero-visual { order: 2; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 28px; }
  .privacy-visual { min-height: 200px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 48px 0 32px; }
  .features, .privacy, .cta { padding-top: 56px; padding-bottom: 40px; }
  .nav-links a:not(.btn) { display: none; }
  .lede { font-size: 16px; }
  .section-sub { font-size: 15.5px; }
  .app-icon { width: 72px; height: 72px; }
  .hero-copy h1 { white-space: normal; }
  .cta-row { flex-wrap: nowrap; gap: 10px; align-items: flex-start; }
  .cta-row > .btn,
  .cta-row > .btn-stack {
    min-width: 0;
    flex: 1 1 0;
  }
  .cta-row .btn {
    gap: 6px;
    padding: 0 10px;
    font-size: clamp(10px, 2.8vw, 14px);
    height: auto;
    min-height: 40px;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
  }
  .cta-row .btn svg { width: 12px; height: 12px; flex-shrink: 0; }
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding: 24px 0 28px;
  background: transparent;
}
.footer-inner {
  display: flex;
  justify-content: flex-end;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}
.footer-links a:hover { color: var(--ink); }

/* Legal / Privacy page */
.legal { padding: 72px 0 56px; }
.legal-wrap { max-width: 760px; }
.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.legal h2 {
  font-size: 20px;
  margin: 32px 0 10px;
  letter-spacing: -0.005em;
}
.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}
.legal ul {
  padding-left: 20px;
  margin: 0 0 16px;
}
.legal li { margin-bottom: 8px; }
.legal a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .cursor, .toast { transition: none; }
  .confetti span { animation: none !important; }
}

/* Notifications row — mirrors Recall/Views/Shared/ToastNotificationView.swift */
.notifs {
  padding: 48px 0 8px;
}
.notifs-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  /* Right padding keeps the peeking card from hugging the container edge. */
  padding-right: 96px;
  /* Fade the right edge instead of a hard cutoff. */
  -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 96px), transparent 100%);
          mask-image: linear-gradient(to right, black 0, black calc(100% - 96px), transparent 100%);
}
.notifs-row::-webkit-scrollbar { display: none; }
.notifs-row > .notif-card {
  /* Sized so three cards fit with the fourth peeking ~15% on typical desktops. */
  flex: 0 0 clamp(260px, 29%, 310px);
}
.notif-card {
  --notif-accent: #3478f6;
  position: relative;
  display: grid;
  grid-template-columns: 3px 1fr auto;
  grid-template-rows: 1fr auto auto;
  column-gap: 12px;
  row-gap: 0;
  padding: 12px 14px 8px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  font-size: 12px;
  color: var(--ink);
  overflow: visible;
  isolation: isolate;
}
.notif-insight { --notif-accent: #ff9933; }
.notif-rec     { --notif-accent: #3478f6; }

.notif-bar {
  grid-column: 1;
  grid-row: 1 / 2;
  width: 3px;
  border-radius: 2px;
  background: var(--notif-accent);
  margin: 2px 0;
}
.notif-main {
  grid-column: 2;
  grid-row: 1 / 2;
  min-width: 0;
  padding: 2px 0 4px;
}
.notif-head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  color: #8a8a8a;
}
.notif-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
}
.notif-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #8a8a8a;
}
.notif-title {
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-chevron {
  grid-column: 3;
  grid-row: 1 / 2;
  align-self: center;
  color: #b5b5b5;
  flex-shrink: 0;
}

.notif-add {
  grid-column: 1 / 4;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 4px 0 6px;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06), 0 2px 3px rgba(0,0,0,0.04);
  color: #6b6b6b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.notif-add:hover { transform: translateY(-1px); }
.notif-add.added { color: #199a4f; cursor: default; }
.notif-add.added:hover { transform: none; }
.notif-add-icon { display: inline-flex; }

.notif-card .confetti {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

@media (max-width: 960px) {
  .notifs-row > .notif-card { flex-basis: 280px; }
}

/* Processing strip — mirrors Recall/Views/Shared/ProcessingStrip.swift */
.processing-strips {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.processing-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-size: 10px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
  pointer-events: auto;
}
.processing-strip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.processing-strip .strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: strip-pulse 700ms ease-in-out infinite alternate;
}
.processing-strip .strip-dot.blue { background: #3b82f6; }
.processing-strip .strip-dot.orange { background: var(--accent); }
.processing-strip .strip-dot.green { background: #22c55e; }
@keyframes strip-pulse {
  from { opacity: 1; }
  to { opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .processing-strip { transition: none; }
  .processing-strip .strip-dot { animation: none; }
}
