/* Tab Shelf landing page.
   Same language as the extension (shelf.css): Notion-inspired neutrals, one
   blue accent for actions, hairline borders. Shape rule: buttons and inputs
   8px, cards and panels 12px, full pill only for tags, chips and toggles.
   Pastel tints appear only on bento cells and chips. */

:root {
  --bg: #ffffff;
  --surface: #f6f5f4;
  --card: #ffffff;
  --ink: #191919;
  --text: #37352f;
  --muted: #615d59;
  --faint: #8f8b86;
  --border: rgba(0, 0, 0, 0.1);
  --hover: rgba(0, 0, 0, 0.04);

  --primary: #0075de;
  --primary-hover: #005fb5;
  --on-primary: #ffffff;
  --primary-subtle: rgba(0, 117, 222, 0.12);
  --tint-bg: #e6f3fe;
  --tint-ink: #005bab;

  --p-blue: #e1f3fe;   --p-blue-ink: #1f6c9f;
  --p-yellow: #fbf3db; --p-yellow-ink: #956400;
  --p-green: #edf3ec;  --p-green-ink: #346538;

  --nav-bg: rgba(255, 255, 255, 0.82);
  --toast: #191919;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --r-xs: 4px;
  --r-row: 6px;
  --r-sm: 8px;
  --r-lg: 12px;
  --r-full: 9999px;

  --shadow-sm: #00000003 0px 0.175px 1.041px 0px, #00000005 0px 0.8px 2.925px 0px, #00000007 0px 2.025px 7.847px 0px, #0000000a 0px 4px 18px 0px;
  --shadow-md: #00000002 0px 0.667px 3.502px 0px, #00000004 0px 2.933px 7.252px 0px, #00000005 0px 7.2px 14.462px 0px, #00000006 0px 13.867px 28.348px 0px, #00000008 0px 23.333px 52.123px 0px, #0000000a 0px 36px 89px 0px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.2s cubic-bezier(0.42, 0, 1, 1);
  --container: 1184px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191919;
    --surface: #252525;
    --card: #202020;
    --ink: rgba(255, 255, 255, 0.93);
    --text: rgba(255, 255, 255, 0.82);
    --muted: #a19f9a;
    --faint: #7d7b77;
    --border: rgba(255, 255, 255, 0.1);
    --hover: rgba(255, 255, 255, 0.055);

    --primary: #1f78d1;
    --primary-hover: #1866b3;
    --primary-subtle: rgba(35, 131, 226, 0.18);
    --tint-bg: rgba(35, 131, 226, 0.16);
    --tint-ink: #8ac4f7;

    --p-blue: rgba(35, 131, 226, 0.12);   --p-blue-ink: #8ac4f7;
    --p-yellow: rgba(255, 177, 16, 0.1);  --p-yellow-ink: #e5b75a;
    --p-green: rgba(84, 160, 92, 0.14);   --p-green-ink: #8fcf96;

    --nav-bg: rgba(25, 25, 25, 0.8);
    --toast: #2f2f2f;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 18px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.4), 0 36px 89px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--primary-subtle); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-xs); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 12px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); transition: top var(--t); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 928px; }

.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 15px; height: 15px; }
.i-xs { width: 11px; height: 11px; stroke-width: 2.25; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.82em;
  line-height: 1.55;
  text-align: center;
  color: var(--ink);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 18ch;
}
.h2.center { margin-left: auto; margin-right: auto; text-align: center; max-width: 24ch; }

.section { padding: 112px 0; }

.tag {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px;
  border-radius: var(--r-full);
  background: var(--primary-subtle);
  color: var(--tint-ink);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500;
  white-space: nowrap;
  transition: background var(--t), color var(--t), transform 0.12s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 14px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-tint { background: var(--tint-bg); color: var(--tint-ink); }
.btn-tint:hover { background: color-mix(in srgb, var(--tint-bg), var(--primary) 10%); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 0 var(--border);
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }

.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.011em; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark.sm { width: 20px; height: 20px; border-radius: 6px; }

.menu { margin-left: auto; }
.menu-list { display: flex; align-items: center; gap: 2px; }
.menu-item { position: relative; }

.menu-trigger, .menu-link {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 12px;
  border-radius: var(--r-full);
  font-size: 15px; font-weight: 500;
  color: var(--text);
  transition: background var(--t), color var(--t);
}
.menu-trigger .i { color: var(--faint); transition: color var(--t); }
.menu-trigger:hover, .menu-link:hover, .menu-trigger[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.menu-trigger[aria-expanded="true"] .i { color: var(--ink); }

.menu-panel {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 600px;
  transform: translateX(-38%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: panel-in 0.22s var(--ease);
}
/* invisible bridge so the pointer can travel from trigger to panel */
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
@keyframes panel-in { from { opacity: 0; transform: translate(-38%, -4px); } }

.panel-grid { display: grid; grid-template-columns: 236px 1fr; gap: 8px; padding: 8px; }

.panel-feature {
  display: flex; flex-direction: column;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: background var(--t);
}
.panel-feature:hover { background: color-mix(in srgb, var(--surface), var(--ink) 4%); }
.pf-art {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, var(--p-blue), var(--card) 85%);
  font-size: 12px; color: var(--text);
}
.pf-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pf-row .chip { margin-left: auto; }
.pf-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.pf-desc { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 2px; }

.panel-links { display: flex; flex-direction: column; gap: 2px; padding: 2px 0; }
.panel-links a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
.panel-links a:hover { background: var(--hover); }
.panel-links .i { margin-top: 2px; color: var(--muted); }
.panel-links b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.panel-links small { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); }

.panel-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.panel-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--primary); }
.panel-all:hover .i { transform: translateX(2px); }
.panel-all .i { transition: transform var(--t); }
.panel-meta { display: flex; gap: 16px; color: var(--muted); }
.panel-meta a:hover { color: var(--ink); }

/* ---------- Shared mini components (match the extension) ---------- */

.fav {
  width: 16px; height: 16px; flex-shrink: 0;
  border-radius: var(--r-xs);
  background: var(--c, #888);
  color: #fff;
  font-size: 9px; font-weight: 700; line-height: 16px;
  text-align: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 3px;
  height: 18px; padding: 0 7px;
  border-radius: var(--r-full);
  background: var(--primary-subtle);
  color: var(--tint-ink);
  font-size: 11px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.count {
  font-size: 11px; font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--r-full);
  padding: 0 6px;
  line-height: 17px;
}
.fake-select {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 36px; padding: 0 10px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  font-size: 14px; color: var(--ink);
  white-space: nowrap;
}
.fake-select .i { color: var(--faint); }
.fake-select.sm { height: 28px; font-size: 12px; padding: 0 8px; }
.switch { width: 30px; height: 18px; border-radius: var(--r-full); background: color-mix(in srgb, var(--ink) 18%, transparent); position: relative; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(12px); }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--ink);
  animation: rise-y 0.8s var(--ease) both;
}

/* The headline word sits in a browser tab. A cursor closes it, and the
   next tab opens in its place: the product's one action, shown in the
   headline. Each tab fits its word; main.js eases the width between words. */
.tc-slot { position: relative; display: inline-block; }
.tabchip {
  display: inline-flex; align-items: baseline; gap: 0.18em;
  margin: 0 0.06em;
  padding: 0.02em 0.16em 0.08em 0.2em;
  border: 1px solid var(--border);
  border-radius: 0.2em;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transform-origin: 50% 100%;
  transition: opacity 0.28s var(--ease), transform 0.45s var(--ease);
}
.tabchip.closing { opacity: 0; transform: translateY(0.22em) scale(0.88); transition-duration: 0.22s, 0.3s; }
.tabchip.opening { opacity: 0; transform: translateX(-0.3em) scale(0.96); transition: none; }
.tc-ic {
  align-self: center;
  display: grid; place-items: center;
  width: 0.62em; height: 0.62em;
  border-radius: 0.14em;
  background: var(--primary-subtle);
  color: var(--primary);
  transform: translateY(0.02em);
}
.tc-ic .i { width: 0.38em; height: 0.38em; stroke-width: 2; }
.tc-word { display: inline-block; white-space: nowrap; transition: width 0.35s var(--ease); }
.tc-x {
  align-self: center;
  display: grid; place-items: center;
  width: 0.44em; height: 0.44em;
  margin-left: 0.04em; /* a touch of extra space after the word, like a real tab's close button */
  border-radius: 0.1em;
  color: var(--faint);
  transform: translateY(0.03em);
  transition: background 0.15s, color 0.15s;
}
.tc-x .i { width: 0.24em; height: 0.24em; stroke-width: 2.6; }
.tc-x.hover { background: var(--hover); color: var(--ink); }
.tc-x.press { background: color-mix(in srgb, var(--ink) 12%, transparent); }

.tc-cursor {
  position: absolute; left: 0; top: 0;
  width: 0.4em; height: 0.4em;
  margin: -0.04em 0 0 -0.06em; /* the pointer tip, not the box corner, lands on the target */
  pointer-events: none;
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.2s;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.25));
}
.tc-cursor svg { width: 100%; height: 100%; fill: var(--ink); stroke: var(--bg); stroke-width: 1.4; paint-order: stroke; transition: transform 0.12s; transform-origin: 15% 15%; }
.tc-cursor.press svg { transform: scale(0.82); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
  margin-top: 36px;
}
.hero-copy { padding-top: 8px; animation: rise 0.8s 0.08s var(--ease) both; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes rise-y { from { transform: translateY(12px); } }

/* ---------- Hero demo: one 9s loop, every part keyed to the same clock ---------- */

.demo-shell { --s: 1; width: 100%; aspect-ratio: 640 / 420; position: relative; overflow: clip; overflow-clip-margin: 48px; animation: rise 0.9s 0.16s var(--ease) both; }
.demo {
  --dur: 9s;
  position: absolute; top: 0; left: 0;
  width: 640px; height: 420px;
  transform: scale(var(--s));
  transform-origin: top left;
  font-size: 13px;
}

.win {
  position: absolute; inset: 0 0 0 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.win-bar { display: flex; align-items: flex-end; gap: 10px; height: 44px; padding: 0 10px; background: var(--surface); border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; align-self: center; flex-shrink: 0; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.tabstrip { display: flex; gap: 2px; min-width: 0; overflow: hidden; }
.t {
  display: flex; align-items: center; gap: 5px;
  width: 64px; flex-shrink: 0;
  height: 32px; padding: 0 7px;
  border-radius: 8px 8px 0 0;
  font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden;
}
.t.is-active { width: 88px; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--border); }
.t .fav { width: 13px; height: 13px; font-size: 8px; line-height: 13px; }
.t.go { animation: tab-out var(--dur) var(--ease) infinite; animation-delay: calc(var(--i) * 45ms); }
@keyframes tab-out {
  0%, 29% { opacity: 1; transform: none; }
  34%, 86% { opacity: 0; transform: translateY(18px) scale(0.9); }
  92%, 100% { opacity: 1; transform: none; }
}

.win-body { position: relative; flex: 1; padding: 20px 228px 20px 20px; }

.d-empty {
  position: absolute; inset: 20px 228px 20px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--muted); font-weight: 500;
  animation: empty-io var(--dur) linear infinite;
}
.d-empty-ic { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--card); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--primary); }
@keyframes empty-io { 0%, 31% { opacity: 1; } 34%, 88% { opacity: 0; } 92%, 100% { opacity: 1; } }

.d-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 6px 6px 8px;
  background: var(--card);
  animation: card-io var(--dur) var(--ease) infinite;
}
@keyframes card-io {
  0%, 33% { opacity: 0; transform: translateY(8px); }
  37%, 84% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: translateY(-4px); }
}
.d-head { display: flex; align-items: baseline; gap: 5px; padding: 6px 8px 4px; color: var(--muted); font-size: 12px; }
.d-head b { color: var(--ink); font-size: 13.5px; }
.d-restore { margin-left: auto; color: var(--primary); font-weight: 500; padding: 2px 6px; border-radius: var(--r-xs); animation: press var(--dur) linear infinite; }
@keyframes press { 0%, 78% { background: transparent; } 79%, 83% { background: var(--primary-subtle); } 85%, 100% { background: transparent; } }

.d-cluster + .d-cluster { border-top: 1px solid var(--border); margin: 0 8px; }
.d-cluster + .d-cluster .d-row, .d-cluster + .d-cluster .d-label { margin: 0 -8px; }
.d-label { display: flex; align-items: center; gap: 6px; padding: 6px 8px 2px; font-size: 12px; color: var(--ink); }
.d-label b { font-weight: 600; }
.d-row { display: flex; align-items: center; gap: 7px; padding: 3px 8px 3px 30px; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: var(--r-row); }
.d-row-fav { padding-left: 8px; }
.d-card .d-row { animation: row-in var(--dur) var(--ease) infinite; animation-delay: calc(var(--r) * 50ms); }
@keyframes row-in {
  0%, 34% { opacity: 0; transform: translateY(4px); }
  39%, 84% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; }
}

.pop {
  position: absolute; top: 52px; right: 12px;
  width: 204px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  animation: pop-io var(--dur) var(--ease) infinite;
}
@keyframes pop-io {
  0%, 38% { opacity: 1; transform: none; }
  43%, 88% { opacity: 0; transform: translateY(-6px) scale(0.98); }
  93%, 100% { opacity: 1; transform: none; }
}
.pop-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--ink); font-size: 12.5px; }
.pop-open { margin-left: auto; font-size: 11px; color: var(--muted); }
.pop-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.pop-stat { background: var(--surface); border-radius: var(--r-sm); padding: 7px 9px; display: flex; flex-direction: column-reverse; }
.pop-stat small { font-size: 10.5px; color: var(--muted); }
.flip { display: grid; font-size: 20px; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); }
.flip b { grid-area: 1 / 1; font-variant-numeric: tabular-nums; }
.flip .a { animation: flip-a var(--dur) linear infinite; }
.flip .b { animation: flip-b var(--dur) linear infinite; }
@keyframes flip-a { 0%, 30% { opacity: 1; } 32%, 90% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes flip-b { 0%, 30% { opacity: 0; } 32%, 90% { opacity: 1; } 92%, 100% { opacity: 0; } }
.pop-keep { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11px; color: var(--muted); }
.pop-select { flex: 1; height: 24px; display: flex; align-items: center; padding: 0 7px; border: 1px solid var(--border); border-radius: 6px; color: var(--ink); white-space: nowrap; }
.pop-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; border-radius: var(--r-sm);
  background: var(--primary); color: var(--on-primary);
  font-size: 12.5px; font-weight: 500;
  animation: btn-press var(--dur) var(--ease) infinite;
}
@keyframes btn-press { 0%, 24% { transform: none; background: var(--primary); } 26%, 28% { transform: scale(0.95); background: var(--primary-hover); } 31%, 100% { transform: none; background: var(--primary); } }
.pop-note { display: block; text-align: center; font-size: 10.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Privacy strip ---------- */

.assure { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.assure-list { display: flex; justify-content: center; gap: 48px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.assure-list li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--text); }
.assure-list .i { color: var(--muted); }

/* ---------- How it works: rows with an inline visual ---------- */

.steps { margin-top: 48px; counter-reset: none; }
.step {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px; align-items: center;
  padding: 28px 0;
}
.step + .step { border-top: 1px solid var(--border); }
.step h3 { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.step p { font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 46ch; }
.step-vis { display: flex; align-items: center; gap: 6px; }
.keys .i { color: var(--faint); margin: 0 4px; }
.key {
  display: grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: var(--r-sm);
  background: var(--card);
  font-family: var(--font-mono); font-size: 13px; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.key-wide { min-width: 72px; }
.mini-cluster { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); font-size: 14px; color: var(--ink); }

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
  margin-top: 48px;
}
.cell {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
  transition: box-shadow var(--t);
}
.cell:hover { box-shadow: var(--shadow-sm); }
.cell h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.cell p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 40ch; }
.tint-blue { background: var(--p-blue); border-color: transparent; }
.tint-blue h3 .i { color: var(--p-blue-ink); }
.tint-yellow { background: var(--p-yellow); border-color: transparent; }
.tint-yellow h3 .i { color: var(--p-yellow-ink); }
.tint-green { background: var(--p-green); border-color: transparent; }
.tint-green h3 .i { color: var(--p-green-ink); }

.cell-smart { grid-column: span 4; grid-row: span 2; background: var(--surface); border-color: transparent; }
.cell-search { grid-column: span 2; }
.cell-undo { grid-column: span 2; }
.cell-backup { grid-column: span 3; }
.cell-hover { grid-column: span 3; }

.smart-demo {
  margin-top: auto;
  align-self: flex-start;
  width: min(380px, 100%);
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  transform: translateY(12px);
}
.sm-item { padding: 9px 11px; border-radius: var(--r-row); }
.sm-item b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.sm-item small { display: block; font-size: 13px; color: var(--muted); }
.sm-item.is-hover { background: var(--hover); }
.cell-smart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; }
.cell-smart .cell-text { align-self: start; }
.cell-smart .smart-demo { align-self: end; justify-self: end; margin: 0 0 -40px; transform: none; }

.search-demo {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--ink); font-size: 15px;
}
.search-demo .i { color: var(--faint); }
.caret { width: 1.5px; height: 18px; background: var(--primary); animation: blink 1.1s steps(1) infinite; margin-left: -6px; }
@keyframes blink { 50% { opacity: 0; } }

.toast-demo {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  align-self: flex-start;
  padding: 10px 12px 10px 14px;
  border-radius: var(--r-sm);
  background: var(--toast); color: #fff;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-md);
}
.toast-demo b { color: #62aef0; font-weight: 600; }

.file-demo {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  align-self: flex-start;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
}
.file-ic { display: grid; place-items: center; width: 40px; height: 48px; border-radius: 6px; background: var(--surface); font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--muted); }
.file-demo b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.file-demo small { display: block; font-size: 13px; color: var(--muted); }

.hc-demo {
  margin-top: auto;
  align-self: flex-start;
  max-width: 340px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  transform: translateY(14px);
}
.hc-head { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.hc-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.hc-url { margin-top: 3px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.hc-meta { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

/* ---------- Pro ---------- */

.pro { background: var(--surface); }
.pro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.pro-copy .h2 { margin-top: 16px; }
.pro-feat { margin-top: 32px; }
.pro-feat h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; color: var(--ink); }
.pro-feat h3 .i { color: var(--primary); }
.pro-feat p { margin-top: 6px; font-size: 16px; color: var(--muted); max-width: 48ch; }
.pro-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.pro-cta small { font-size: 14px; color: var(--muted); }

.pro-vis { position: relative; padding-bottom: 24px; }
.pv-card {
  padding: 8px 8px 84px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.pv-card .d-label { padding: 10px 10px 4px; font-size: 13px; }
.pv-card .d-row { font-size: 14px; padding: 5px 10px 5px 32px; }
.pv-card .d-row-fav { padding-left: 10px; }
.pv-card .chip { height: 20px; font-size: 12px; padding: 0 8px; }
.d-quote {
  margin: 0 10px 6px 32px;
  padding: 0 0 2px 10px;
  border-left: 2px solid var(--border);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px; line-height: 1.5;
  color: var(--muted);
}
.pv-auto {
  position: absolute; right: -16px; bottom: 0;
  width: 260px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.pv-auto-head { display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: 15px; }
.pv-auto-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.plan {
  display: flex; flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
}
.plan-pro { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm); }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan h3 { font-size: 18px; font-weight: 600; color: var(--ink); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 24px; }
.price b { font-family: var(--font-display); font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.price small { font-size: 15px; color: var(--muted); }
.ticks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; flex: 1; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--text); }
.ticks .i { color: var(--primary); }
.plan-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq .h2 { margin-bottom: 32px; }
.qa { border-bottom: 1px solid var(--border); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  font-size: 18px; font-weight: 600; color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { color: var(--muted); transition: transform 0.3s var(--ease); }
.qa[open] summary .i { transform: rotate(45deg); }
.qa summary:hover .i { color: var(--ink); }
.qa p { padding: 0 48px 24px 0; font-size: 16px; color: var(--muted); max-width: 64ch; }

/* ---------- Final CTA ---------- */

.final { padding-top: 32px; }
.final-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 88px 24px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 80% at 50% 0%, var(--p-blue), transparent 70%),
    var(--surface);
}
.final-box .h2 { max-width: 26ch; }
.final-box p { margin: 14px 0 28px; font-size: 18px; color: var(--muted); }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--border); }
.foot-inner { display: flex; align-items: center; gap: 32px; padding-top: 28px; padding-bottom: 28px; }
.foot-links { display: flex; gap: 20px; margin-left: auto; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot small { font-size: 13px; color: var(--muted); }

/* ---------- Scroll reveal (only when JS runs) ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-sub { max-width: 46ch; }
  .pro-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .pv-auto { right: 0; }
}

@media (max-width: 860px) {
  .menu { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-smart { grid-column: span 2; grid-row: auto; grid-template-columns: 1fr; }
  .cell-smart .smart-demo { justify-self: start; margin-bottom: -28px; }
  .cell-search, .cell-undo, .cell-backup, .cell-hover { grid-column: span 1; }
}

@media (max-width: 640px) {
  .wrap, .nav-inner { padding-left: 16px; padding-right: 16px; }
  .demo-shell { overflow-clip-margin: 0px; }
  .section { padding: 80px 0; }
  .hero { padding: 40px 0 40px; }
  .br-lg { display: none; }
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .assure-list { flex-direction: column; align-items: flex-start; gap: 12px; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .step p { font-size: 16px; }
  .key { min-width: 38px; height: 38px; }
  .bento { grid-template-columns: 1fr; }
  .cell-smart, .cell-search, .cell-undo, .cell-backup, .cell-hover { grid-column: auto; }
  .cell { padding: 22px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .pv-auto { position: relative; right: auto; width: auto; margin-top: 12px; }
  .pro-vis { padding-bottom: 0; }
  .pv-card { padding-bottom: 12px; }
  .qa summary { font-size: 16px; }
  .qa p { padding-right: 0; }
  .final-box { padding: 64px 20px; }
  .foot-inner { flex-wrap: wrap; gap: 16px; }
  .foot-links { margin-left: 0; width: 100%; order: 3; }
}

/* ---------- Reduced motion: show the after state, still ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .t.go, .d-empty, .flip .a { opacity: 0; }
  .flip .b { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .caret { display: none; }
}
