/* ============================================================
   To-do List & Task Manager — landing page
   Tokens and components are copied from the extension's own
   design system (src/styles.css) so the site looks like the product.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
img, svg { display: block; }
button { font: inherit; }
/* line icons from the sprite in index.html */
.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

:root {
  --accent: #6366f1;
  --accent-ink: #ffffff;

  --prio-high: #f1685f;
  --prio-med:  #f0a83c;
  --prio-low:  #3bbd8f;

  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* text that sits straight on the wallpaper */
  --on-photo: #ffffff;
  --on-photo-muted: rgba(255, 255, 255, 0.84);
  --photo-shadow: 0 2px 26px rgba(0, 0, 0, 0.45);
}

/* ---------- LIGHT (default) ---------- */
:root, [data-theme="light"] {
  --text:        #211c2b;
  --text-muted:  rgba(33, 28, 43, 0.62);
  --text-faint:  rgba(33, 28, 43, 0.40);
  --line:        rgba(33, 28, 43, 0.10);

  --glass:        rgba(255, 255, 255, 0.50);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-hover:  rgba(255, 255, 255, 0.34);
  --glass-border: rgba(255, 255, 255, 0.62);
  --field:        rgba(255, 255, 255, 0.78);
  --field-line:   rgba(33, 28, 43, 0.08);

  --blur: 26px;
  --shadow-card: 0 24px 70px -28px rgba(28, 18, 48, 0.55);
  --shadow-pop:  0 16px 44px -16px rgba(28, 18, 48, 0.42);
  color-scheme: light;
}

/* ---------- DARK ---------- */
[data-theme="dark"] {
  --text:        #f4f1fa;
  --text-muted:  rgba(244, 241, 250, 0.66);
  --text-faint:  rgba(244, 241, 250, 0.42);
  --line:        rgba(255, 255, 255, 0.10);

  --glass:        rgba(26, 23, 38, 0.56);
  --glass-strong: rgba(34, 30, 48, 0.80);
  --glass-hover:  rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --field:        rgba(255, 255, 255, 0.08);
  --field-line:   rgba(255, 255, 255, 0.10);

  --blur: 30px;
  --shadow-card: 0 30px 80px -28px rgba(0, 0, 0, 0.7);
  --shadow-pop:  0 18px 48px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: #1a1430;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   STAGE — the wallpaper stays put while the page scrolls over it
   ============================================================ */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-grad, .bg-layer, .bg-tint { position: absolute; inset: 0; }
.bg-grad {
  background:
    radial-gradient(120% 90% at 18% 12%, #3a2d52 0%, transparent 55%),
    radial-gradient(120% 110% at 88% 8%, #1d3b52 0%, transparent 50%),
    radial-gradient(140% 120% at 75% 95%, #163a36 0%, transparent 55%),
    linear-gradient(160deg, #1a1430, #12131f 60%, #0f1a1a);
}
.bg-layer {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.bg-layer.on { opacity: 1; }
.bg-tint {
  /* a touch stronger than the extension's: long copy sits on the photo here */
  background: linear-gradient(180deg, rgba(10,6,24,0.30), rgba(10,6,24,0.16) 40%, rgba(10,6,24,0.36));
}
[data-theme="dark"] .bg-tint {
  background: linear-gradient(180deg, rgba(4,2,12,0.48), rgba(4,2,12,0.28) 40%, rgba(4,2,12,0.56));
}

.page { position: relative; z-index: 2; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 28px;
}
@media (min-width: 1240px) { .wrap { padding-left: 108px; } }
@media (max-width: 720px)  { .wrap { padding-inline: 16px; } }

/* ============================================================
   GLASS PRIMITIVE
   ============================================================ */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.card { border-radius: var(--radius-xl); overflow: hidden; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--on-photo); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
  text-shadow: var(--photo-shadow);
}
.brand img { border-radius: 9px; box-shadow: 0 6px 18px -6px rgba(0,0,0,0.5); }
.brand-by { font-weight: 500; opacity: 0.72; }
.toplinks { display: flex; gap: 4px; margin-left: auto; }
.toplinks a {
  color: var(--on-photo-muted); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.toplinks a:hover { background: rgba(255,255,255,0.14); color: #fff; }
@media (max-width: 720px) { .toplinks { display: none; } }

/* ============================================================
   SHORTCUTS DOCK → section navigation
   ============================================================ */
.dock {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 11px;
  border-radius: 26px;
}
@media (max-width: 1239px) { .dock { display: none; } }
.dock-item, .dock-add {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, outline-color 0.2s;
  outline: 2px solid transparent;
  outline-offset: 3px;
}
.dock-item:hover { transform: scale(1.08) translateX(2px); box-shadow: var(--shadow-pop); }
.dock-item[aria-current="true"] { outline-color: rgba(255,255,255,0.85); }
.dock-add {
  border: 1.5px dashed var(--glass-border);
  background: var(--glass-hover);
  color: var(--text-muted);
}
.dock-add:hover { color: var(--accent); border-color: var(--accent); }
/* the tooltip, styled like the extension's .dock-tip */
.dock [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translate(-4px, -50%);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 12.5px; font-weight: 600;
  padding: 5px 10px;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.dock [data-tip]:hover::after,
.dock [data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* ============================================================
   BOTTOM CONTROLS — the extension's fab bar, with the install button
   ============================================================ */
.bottom-bar {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.16s var(--ease), background 0.16s, filter 0.16s;
}
.fab.round { width: 46px; padding: 0; justify-content: center; }
.fab:hover { transform: translateY(-2px); background: var(--glass-strong); }
.fab-accent { background: var(--accent); color: var(--accent-ink); border: none; }
.fab-accent:hover { background: var(--accent); filter: brightness(1.07); }
.theme-fab .ico-sun { display: none; }
[data-theme="dark"] .theme-fab .ico-sun { display: block; }
[data-theme="dark"] .theme-fab .ico-moon { display: none; }
@media (max-width: 720px) {
  .bottom-bar {
    right: 16px; bottom: 16px;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .theme-fab { display: none; }
  /* while a big install button is on screen, the floating one would only cover the content */
  .bottom-bar.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
}

/* ============================================================
   HERO — the new tab itself
   ============================================================ */
.hero-sec { padding-top: clamp(12px, 3vh, 40px); }
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 8px;
}
.hero-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
.hero-greet {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--on-photo);
  text-shadow: var(--photo-shadow);
  max-width: 16ch;
  text-wrap: balance;
}
.hero-clock { flex: 0 0 auto; }
.clock-time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.clock-time .ampm { font-size: 0.46em; color: rgba(255,255,255,0.7); margin-left: 6px; }
@media (max-width: 720px) { .hero-clock { display: none; } }

.hero-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  padding: 18px 8px 26px;
}
.lede {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--on-photo-muted);
  text-shadow: 0 1px 16px rgba(0,0,0,0.45);
}
.cta-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--accent) 80%, #000);
  transition: transform 0.16s var(--ease), filter 0.16s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.rating {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-photo-muted); text-decoration: none;
  font-size: 14px; font-weight: 600;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.rating:hover { color: #fff; }
.stars { display: inline-flex; gap: 2px; color: #ffc65a; filter: drop-shadow(0 1px 6px rgba(0,0,0,0.35)); flex: 0 0 auto; }
/* extensions install on a computer only: say so on phones and tablets */
.mobile-note {
  display: none;
  margin: 0;
  max-width: 36ch;
  font-size: 14px;
  color: var(--on-photo-muted);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
@media (hover: none) and (pointer: coarse) { .mobile-note { display: block; } }

/* ============================================================
   PANELS (task card + notes)
   ============================================================ */
.panels {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.panels > .card { display: flex; flex-direction: column; }
.panels > .card:first-child { align-self: start; }
@media (max-width: 1040px) { .panels { grid-template-columns: minmax(0, 1fr); } }

.demo-note {
  margin: 16px 8px 0;
  font-size: 14px;
  color: var(--on-photo-muted);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

/* ---------- tabs ---------- */
.tabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 16px 12px;
  flex-wrap: wrap;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.tab:hover { background: var(--glass-hover); color: var(--text); }
.tab.active { background: var(--glass-strong); color: var(--text); box-shadow: 0 4px 14px -8px rgba(0,0,0,0.4); }
.tab .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--glass-hover);
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
}
.tab.active .count { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.tab-add, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--text-muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.tab-add { width: 30px; height: 30px; border-radius: 999px; }
.tab-add:hover { background: var(--glass-hover); color: var(--accent); }
.icon-btn { width: 34px; height: 34px; border-radius: 12px; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--glass-hover); color: var(--text); }
.tabs-spacer { flex: 1; }

.search-row { padding: 0 16px 12px; }
.search-row[hidden] { display: none; }
.search-input {
  width: 100%;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  outline: none;
}
.search-input:focus { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.search-input::placeholder { color: var(--text-faint); }

/* ---------- progress ---------- */
.progress-wrap { padding: 0 22px 14px; display: flex; align-items: center; gap: 12px; }
.progress-track { flex: 1; height: 7px; border-radius: 999px; background: var(--glass-hover); overflow: hidden; }
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #ffffff));
  transition: width 0.55s var(--ease);
}
.progress-label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-label b { color: var(--text); }

/* ---------- task list ---------- */
.task-scroll { list-style: none; margin: 0; padding: 2px 10px 8px; }
.task-empty { text-align: center; color: var(--text-muted); font-size: 15px; font-weight: 500; padding: 26px 20px 30px; }
.task {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px 9px 6px;
  border-radius: var(--radius-md);
  transition: background 0.16s var(--ease);
  position: relative;
}
.task:hover { background: var(--glass-hover); }
.task.is-new { animation: task-in 0.5s var(--ease); }
@keyframes task-in {
  0% { background: color-mix(in srgb, var(--accent) 22%, transparent); transform: translateY(6px); opacity: 0; }
  40% { opacity: 1; transform: none; }
  100% { background: transparent; }
}
.task.overdue { background: color-mix(in srgb, var(--prio-high) 8%, transparent); }
.task.overdue::after {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px; background: var(--prio-high);
}
.task.overdue .task-text { font-weight: 600; }
.task.overdue .check { border-color: var(--prio-high); }
.task.hl { background: var(--glass-hover); }

.drag-handle {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 22px; margin-top: 3px;
  color: var(--text-faint);
  cursor: grab;
  opacity: 0;
  transition: opacity 0.16s;
}
.task:hover .drag-handle, .task.hl .drag-handle { opacity: 1; }

.check {
  flex: 0 0 auto;
  width: 22px; height: 22px; margin-top: 2px;
  border-radius: 999px;
  border: 2px solid var(--text-faint);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  padding: 0;
  transition: all 0.18s var(--ease);
}
.check:hover { border-color: var(--accent); }
.check.checked { background: var(--accent); border-color: var(--accent); }
.check svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.5); transition: all 0.18s var(--ease); }
.check.checked svg { opacity: 1; transform: scale(1); }

.task-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.task-main { display: flex; align-items: flex-start; gap: 8px; }
.prio-flag { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 3px; margin-top: 7px; }
.prio-high { background: var(--prio-high); }
.prio-med  { background: var(--prio-med); }
.prio-low  { background: var(--prio-low); }
.task-text {
  font-size: 15px; line-height: 1.42; font-weight: 500;
  color: var(--text);
  word-break: break-word;
  flex: 1;
}
.task.done .task-text { color: var(--text-faint); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.task-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.task-meta:empty { display: none; }
.tag {
  display: inline-flex; align-items: center;
  height: 21px; padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
}
.subcount {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  background: transparent; border: none; cursor: pointer; padding: 0 4px;
}
.subcount .chev { transition: transform 0.2s var(--ease); }
.subcount[aria-expanded="true"] .chev { transform: rotate(180deg); }

.task-actions { display: flex; align-items: center; gap: 1px; opacity: 0; transition: opacity 0.16s; }
.task:hover .task-actions, .task:focus-within .task-actions, .task.hl .task-actions { opacity: 1; }
@media (hover: none) { .task-actions, .drag-handle { opacity: 1; } }
.mini-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: none; background: transparent;
  border-radius: 9px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mini-btn:hover { background: var(--glass-hover); color: var(--text); }
.mini-btn.danger:hover { color: var(--prio-high); }

/* subtasks */
.subtasks {
  list-style: none;
  margin: 4px 0 2px 30px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--line);
}
.subtasks[hidden] { display: none; }
.subtask { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 9px; }
.subtask:hover { background: var(--glass-hover); }
.subcheck {
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid var(--text-faint);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex: 0 0 auto; padding: 0;
}
.subcheck.checked { background: var(--accent); border-color: var(--accent); }
.subcheck svg { width: 9px; height: 9px; opacity: 0; }
.subcheck.checked svg { opacity: 1; }
.subtask-text { font-size: 13.5px; color: var(--text); flex: 1; }
.subtask.done .subtask-text { color: var(--text-faint); text-decoration: line-through; }

/* per-task note */
.task-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 2px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--glass-hover);
  border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.5;
  color: var(--text);
}
.task-note svg { color: var(--prio-med); margin-top: 2px; flex: 0 0 auto; }

/* due chips */
.due-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
  border: none;
}
.due-future  { background: var(--glass-hover); color: var(--text-muted); }
.due-soon    { background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 84%, var(--text)); }
.due-today   { background: color-mix(in srgb, var(--prio-med) 20%, transparent); color: color-mix(in srgb, var(--prio-med) 90%, var(--text)); }
.due-overdue { background: color-mix(in srgb, var(--prio-high) 20%, transparent); color: color-mix(in srgb, var(--prio-high) 92%, var(--text)); }

/* ---------- add row ---------- */
.add-row {
  margin: 6px 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-lg);
  padding: 4px 6px 4px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.add-row:focus-within,
.add-row.typing {
  background: var(--glass-strong);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.add-input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  padding: 11px 0;
}
.add-input::placeholder { color: var(--text-faint); }
.prio-cycle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: none; background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-faint);
  transition: background 0.15s, color 0.15s;
}
.prio-cycle:hover { background: var(--glass-hover); }
.prio-cycle[data-prio="high"] { color: var(--prio-high); }
.prio-cycle[data-prio="med"]  { color: var(--prio-med); }
.prio-cycle[data-prio="low"]  { color: var(--prio-low); }
.add-submit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: none;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform 0.15s var(--ease), filter 0.15s, opacity 0.15s;
}
.add-submit:hover { transform: translateY(-1px); filter: brightness(1.06); }
.add-submit:disabled { opacity: 0.4; cursor: default; transform: none; }
.add-hint {
  padding: 0 22px 14px;
  font-size: 12px;
  color: var(--text-faint);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
kbd {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--glass-hover);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

/* ---------- notes ---------- */
.notes-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; }
.notes-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.notes-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--prio-med); }
.notes-ico { margin-left: auto; color: var(--text-faint); }
.notes-area {
  width: 100%;
  border: none; outline: none; background: transparent; resize: none;
  font-family: var(--font-body);
  font-size: 14.5px; line-height: 1.6;
  color: var(--text);
  padding: 0 18px 18px;
  min-height: 220px;
  flex: 1;
}
.notes-foot {
  padding: 0 18px 14px;
  font-size: 11.5px;
  color: var(--text-faint);
  display: flex; justify-content: space-between; align-items: center;
}

/* ---------- popover (task menu) ---------- */
.pop {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  min-width: 196px;
}
.pop-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
}
.pop-item svg { color: var(--text-muted); }
.pop-item.hover { background: var(--glass-hover); }
.pop-item.danger, .pop-item.danger svg { color: var(--prio-high); }
.pop-caret { margin-left: auto; opacity: 0.5; }
.pop-divider { height: 1px; background: var(--line); margin: 5px 8px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-top: clamp(96px, 14vh, 160px); }
@media (max-width: 720px) {
  .section { padding-top: 84px; }
  .sec-head { padding: 0 4px; margin-bottom: 22px; }
  .hero-intro { padding: 16px 4px 22px; }
  .hero { padding: 4px; }
  .remind, .extra, .custom { padding: 18px; }
  .mock-dock span { width: 40px; height: 40px; border-radius: 13px; font-size: 14px; }
  .mock-select .pop { left: auto; right: 0; }
  .final { padding-top: 110px; }
}
.sec-head { padding: 0 8px; margin-bottom: 30px; max-width: 760px; }
.sec-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--on-photo);
  text-shadow: var(--photo-shadow);
  text-wrap: balance;
}
.sec-lede {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  color: var(--on-photo-muted);
  text-shadow: 0 1px 16px rgba(0,0,0,0.45);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* the extension's "hint row": icon tile + text, used for feature lists */
.rows { padding: 12px; }
.row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 12px;
  border-radius: var(--radius-md);
}
.row + .row { border-top: 1px solid var(--line); border-radius: 0; }
.row-ico {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  flex: 0 0 auto;
}
.row h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
}
.row p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }

/* ---------- type-it section ---------- */
.syntax { padding: 10px; }
.syntax-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 28px minmax(0, 1.1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
}
.syntax-row + .syntax-row { border-top: 1px solid var(--line); }
.typed {
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--field);
  border: 1px solid var(--field-line);
  color: var(--text);
  overflow-wrap: anywhere;
}
.typed .tok { color: var(--accent); font-weight: 700; }
.syntax-arrow { color: var(--text-faint); justify-self: center; }
.syntax-row .task { padding: 6px 8px; }
.syntax-row .task:hover { background: transparent; }
.keys {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-muted);
}
.keys span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) {
  .syntax-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .syntax-arrow { transform: rotate(90deg); justify-self: start; margin-left: 12px; }
}

.legend { padding: 18px 20px; }
.legend h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.legend dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; font-size: 14.5px; }
.legend dt { justify-self: start; }
.legend dd { margin: 0; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.legend dd .prio-flag { margin-top: 0; }

/* ---------- tasks showcase ---------- */
.showcase { position: relative; overflow: visible; }
.showcase .task-scroll { padding-bottom: 14px; }
.menu-anchor { position: relative; }
.showcase .pop {
  position: absolute;
  right: 6px;
  bottom: 34px; /* opens upward so it stays inside the card */
  z-index: 5;
}
@media (max-width: 560px) { .showcase .pop { display: none; } }

/* ---------- focus ---------- */
.focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .focus-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.bullets { list-style: none; margin: 24px 0 0; padding: 0 8px; display: flex; flex-direction: column; gap: 12px; max-width: 52ch; }
.bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--on-photo-muted);
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.bullets svg { flex: 0 0 auto; margin-top: 3px; color: #fff; filter: drop-shadow(0 1px 8px rgba(0,0,0,0.4)); }

.focus-card {
  width: min(380px, 100%);
  border-radius: 30px;
  padding: 18px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.focus-card.minimized { display: none; }
.focus-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.focus-mode {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.brk .focus-mode { background: color-mix(in srgb, var(--prio-low) 18%, transparent); color: var(--prio-low); }
.focus-min-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 10px;
  border-radius: 999px; border: none;
  background: var(--glass-hover);
  color: var(--text-muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.16s;
}
.focus-min-btn:hover { background: var(--glass-strong); color: var(--text); transform: translateY(-1px); }
.focus-ring-wrap { position: relative; width: 280px; height: 280px; margin: 10px 0 2px; max-width: 100%; }
.focus-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--glass-hover); stroke-width: 12; }
.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.95s linear;
}
.brk .ring-fill { stroke: var(--prio-low); }
.focus-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.focus-time {
  font-family: var(--font-display);
  font-size: 60px; font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.focus-sub { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.focus-rounds { display: flex; align-items: center; gap: 7px; margin: 12px 0 4px; }
.round-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--text-faint); transition: background 0.25s, transform 0.25s; }
.round-dot.on { background: var(--accent); transform: scale(1.15); }
.focus-rounds-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-left: 6px; }
.focus-controls { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.focus-ctl {
  width: 48px; height: 48px;
  border-radius: 999px; border: none;
  background: var(--glass-hover);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.16s, color 0.16s, transform 0.16s;
}
.focus-ctl:hover { background: var(--glass-strong); color: var(--text); transform: translateY(-2px); }
.focus-play {
  width: 70px; height: 70px;
  border-radius: 999px; border: none;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 0.16s var(--ease), filter 0.16s;
}
.focus-play:hover { transform: scale(1.05); filter: brightness(1.06); }
.focus-play .ico-pause { display: none; }
.running .focus-play .ico-pause { display: block; }
.running .focus-play .ico-play { display: none; }
.focus-durations { display: flex; gap: 10px; margin-top: 22px; width: 100%; }
.dur {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--glass-hover);
}
.dur-label { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.dur-step { display: flex; align-items: center; gap: 8px; }
.dur-step output { font-family: var(--font-display); font-size: 17px; font-weight: 600; min-width: 56px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dur-step button {
  width: 28px; height: 28px;
  border-radius: 8px; border: none;
  background: var(--glass-strong);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dur-step button:disabled { opacity: 0.35; cursor: default; }

/* minimized pill */
.focus-pill {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 19;
  display: flex; align-items: center; gap: 10px;
  height: 46px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  color: var(--text);
  box-shadow: var(--shadow-pop);
  animation: pill-in 0.3s var(--ease) both;
}
.focus-pill[hidden] { display: none; }
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.focus-pill .pill-ico { color: var(--accent); display: flex; }
.brk.focus-pill .pill-ico { color: var(--prio-low); }
.pill-time { font-family: var(--font-display); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill-btn {
  width: 32px; height: 32px;
  border-radius: 999px; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}
.pill-btn:hover { background: var(--glass-hover); color: var(--text); }
@media (max-width: 720px) { .focus-pill { bottom: 76px; } }

/* ---------- reminders ---------- */
.remind-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 860px) { .remind-grid { grid-template-columns: minmax(0, 1fr); } }
.remind { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.remind h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.remind p { margin: 0; color: var(--text-muted); font-size: 15px; }
.remind-stage {
  margin-top: auto;
  border-radius: var(--radius-lg);
  background: var(--glass-hover);
  border: 1px solid var(--line);
  padding: 22px 18px;
  display: flex; align-items: center; justify-content: center;
  min-height: 230px;
}
/* a generic desktop notification */
.notif {
  width: min(340px, 100%);
  background: rgba(250, 249, 252, 0.94);
  color: #211c2b;
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 12px 14px 12px;
  font-size: 13.5px;
}
.notif-head { display: flex; align-items: center; gap: 8px; color: rgba(33,28,43,0.55); font-size: 12px; font-weight: 600; }
.notif-head img { border-radius: 5px; }
.notif-head span:last-child { margin-left: auto; font-weight: 500; }
.notif-title { font-weight: 700; margin: 8px 0 1px; }
.notif-body { color: rgba(33,28,43,0.75); }
.notif-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.notif-btns span {
  text-align: center; padding: 6px 8px;
  border-radius: 9px; background: rgba(33,28,43,0.07);
  font-weight: 600; font-size: 12.5px;
}
/* the extension's alarm window */
.alarm {
  width: min(340px, 100%);
  background: #17131f;
  color: #f4f1fa;
  border-radius: 16px;
  box-shadow: 0 22px 50px -18px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
}
.alarm-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; }
.alarm-pulse {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: color-mix(in srgb, var(--prio-high) 22%, transparent);
  color: var(--prio-high);
  animation: alarm-pulse 1.6s var(--ease) infinite;
}
@keyframes alarm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--prio-high) 45%, transparent); }
  60% { box-shadow: 0 0 0 12px transparent; }
}
.alarm-title { font-size: 15.5px; font-weight: 700; }
.alarm-sub { font-size: 12px; color: rgba(244,241,250,0.6); }
.alarm-mute { margin-left: auto; font-size: 11.5px; font-weight: 600; color: rgba(244,241,250,0.6); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 5px 10px; }
.alarm-item {
  margin: 0 12px 12px;
  background: #221c2e;
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid var(--prio-high);
  border-radius: 14px;
  padding: 12px 14px;
}
.alarm-task { font-size: 14.5px; font-weight: 600; }
.alarm-due { font-size: 12px; color: var(--prio-high); font-weight: 600; margin-top: 2px; }
.alarm-btns { display: flex; gap: 6px; margin-top: 10px; }
.alarm-btns span { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.08); }
.alarm-btns span:first-child { background: var(--accent); color: #fff; }
.remind-note { margin: 18px 8px 0; font-size: 14px; color: var(--on-photo-muted); text-shadow: 0 1px 12px rgba(0,0,0,0.4); }

/* ---------- the rest of the new tab ---------- */
.extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.extra { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.extra:nth-child(odd) { border-right: 1px solid var(--line); }
.extra:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.extra h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.extra p { margin: 0; color: var(--text-muted); font-size: 15px; }
@media (max-width: 760px) {
  .extras { grid-template-columns: minmax(0, 1fr); }
  .extra:nth-child(odd) { border-right: none; }
  .extra:not(:last-child) { border-bottom: 1px solid var(--line); }
}
.mock { margin-top: auto; }
.mock-search {
  border-radius: var(--radius-md);
  background: var(--field);
  border: 1px solid var(--field-line);
  overflow: hidden;
}
.mock-search-field { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text-faint); font-size: 14.5px; border-bottom: 1px solid var(--line); }
.mock-search-field b { color: var(--text); font-weight: 500; }
.mock-search-field kbd { margin-left: auto; }
.mock-result { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 14px; }
.mock-result mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.mock-result .from { margin-left: auto; font-size: 12px; color: var(--text-faint); font-weight: 600; }
.mock-dock { display: flex; gap: 10px; flex-wrap: wrap; }
.mock-dock span {
  width: 46px; height: 46px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.mock-dock span.add { border: 1.5px dashed var(--text-faint); color: var(--text-muted); background: transparent; }
.mock-notes {
  border-radius: var(--radius-md);
  background: var(--glass-hover);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 14px; line-height: 1.6;
  white-space: pre-line;
}
.mock-select { position: relative; font-size: 15px; line-height: 1.6; color: var(--text-muted); padding-bottom: 96px; }
.mock-select mark { background: color-mix(in srgb, var(--accent) 34%, transparent); color: var(--text); border-radius: 3px; padding: 1px 0; }
.mock-select .pop { position: absolute; left: 34%; top: 40px; min-width: 210px; }
.mock-select .pop-item.hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ---------- make it yours ---------- */
.custom { padding: 22px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px 34px; }
@media (max-width: 860px) { .custom { grid-template-columns: minmax(0, 1fr); } }
.field-label { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.bg-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bg-pick {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.16s var(--ease), border-color 0.16s;
}
.bg-pick:hover { transform: translateY(-2px); }
.bg-pick[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.side-controls { display: flex; flex-direction: column; gap: 22px; }
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass-hover);
  border: 1px solid var(--line);
}
.seg button {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; background: transparent;
  padding: 7px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--glass-strong); color: var(--text); box-shadow: 0 4px 14px -8px rgba(0,0,0,0.4); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 3px solid var(--glass-strong);
  cursor: pointer;
  padding: 0;
  transition: transform 0.16s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
.custom-note { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------- where it lives ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: center; }
@media (max-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.home-opts { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.home-opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  background: var(--glass-hover);
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}
.home-opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--glass-strong)); }
.home-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.home-opt strong { display: block; font-size: 16px; font-weight: 600; }
.home-opt small { display: block; font-size: 13.5px; color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
.radio {
  margin-left: auto; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 999px;
  border: 2px solid var(--text-faint);
  display: grid; place-items: center;
}
.home-opt[aria-pressed="true"] .radio { border-color: var(--accent); }
.home-opt[aria-pressed="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }

/* a tiny browser window drawn in CSS */
.browser {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(250, 249, 252, 0.94);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.4);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: rgba(33,28,43,0.06); }
.browser-bar i { width: 10px; height: 10px; border-radius: 999px; background: rgba(33,28,43,0.18); }
.browser-url { margin-left: 10px; flex: 1; height: 20px; border-radius: 999px; background: rgba(33,28,43,0.07); font-size: 11px; color: rgba(33,28,43,0.5); display: flex; align-items: center; padding: 0 10px; font-family: system-ui, sans-serif; }
.browser-ext { width: 18px; height: 18px; border-radius: 5px; background: url("../img/icon-128.png") center / cover; box-shadow: 0 0 0 2px var(--accent); }
.browser-body { position: relative; aspect-ratio: 16 / 9; display: flex; }
.browser-tab {
  flex: 1;
  background: url("../bg/night-thumb.webp") center / cover;
  display: flex; align-items: center; justify-content: center; gap: 4%;
  padding: 6%;
}
.mini-card { background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.6); border-radius: 10px; height: 74%; padding: 4%; display: flex; flex-direction: column; gap: 9%; }
.mini-card.list { flex: 1.6; }
.mini-card.note { flex: 1; }
.mini-card i { display: block; height: 7%; border-radius: 99px; background: rgba(33,28,43,0.18); }
.mini-card i:first-child { width: 40%; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.mini-card i:nth-child(3) { width: 80%; }
.mini-card i:nth-child(4) { width: 64%; }
.browser-site {
  flex: 1;
  display: none;
  flex-direction: column; gap: 6%;
  padding: 5% 6%;
  background: #fff;
}
.browser-site i { display: block; height: 6%; border-radius: 99px; background: rgba(33,28,43,0.1); }
.browser-site i:first-child { height: 14%; width: 50%; background: rgba(33,28,43,0.16); }
.browser-site i:nth-child(odd) { width: 82%; }
.browser-panel {
  display: none;
  width: 34%;
  background: rgba(244, 242, 250, 1);
  border-left: 1px solid rgba(33,28,43,0.08);
  padding: 4%;
  flex-direction: column; gap: 6%;
}
.browser-panel i { display: block; height: 7%; border-radius: 99px; background: rgba(33,28,43,0.16); }
.browser-panel i:first-child { width: 50%; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.browser[data-mode="panel"] .browser-tab { display: none; }
.browser[data-mode="panel"] .browser-site,
.browser[data-mode="panel"] .browser-panel { display: flex; }

/* ---------- privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
.privacy-grid .row + .row { border-top: none; border-radius: var(--radius-md); }
@media (max-width: 760px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }
.privacy-foot { padding: 0 24px 20px; font-size: 14px; color: var(--text-muted); }
.privacy-foot a { color: var(--accent); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { padding: 8px 10px; max-width: 860px; }
.faq details { border-radius: var(--radius-md); }
.faq details + details { border-top: 1px solid var(--line); border-radius: 0; }
.faq summary {
  list-style: none;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { margin-left: auto; flex: 0 0 auto; color: var(--text-muted); transition: transform 0.2s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 14px 18px; color: var(--text-muted); font-size: 15.5px; max-width: 68ch; }

/* ---------- final CTA + footer ---------- */
.final { padding-top: clamp(110px, 18vh, 200px); padding-bottom: 40px; }
.final .sec-title { font-size: clamp(36px, 5.6vw, 70px); max-width: 14ch; }
.final .cta-col { margin-top: 26px; padding: 0 8px; }
.final .sec-head { margin-bottom: 0; }
.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding-top: 40px; padding-bottom: 96px;
  font-size: 14px;
  color: var(--on-photo-muted);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.footer a { color: var(--on-photo-muted); text-decoration: none; font-weight: 600; }
.footer a:hover { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.footer .brand { font-size: 16px; }
@media (max-width: 720px) { .footer nav { margin-left: 0; } }

/* ---------- privacy policy page ---------- */
.legal-wrap { padding-top: clamp(24px, 6vh, 72px); }
.legal-wrap .sec-head { display: flex; flex-direction: column; gap: 12px; }
.legal-title { margin: 0; }
.legal {
  max-width: 860px;
  padding: clamp(22px, 4vw, 40px);
  font-size: 16px;
  line-height: 1.65;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600; letter-spacing: -0.015em;
  margin: 34px 0 10px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0; color: var(--text-muted); max-width: 70ch; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-muted); max-width: 70ch; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--glass-hover);
  border: 1px solid var(--line);
  color: var(--text);
}
.legal a { color: var(--accent); font-weight: 600; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
