/* BookmarkLM — the app's design language on the web: Fraunces for names and headlines, Plus Jakarta Sans
   for everything you read, the indigo-to-violet brand gradient, soft brand-tinted depth, topic colours.
   Light and dark follow the device. No scripts: every effect here is CSS, and all motion stops when the
   device asks for reduced motion. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --primary: #5b5fef;
  --accent: #8278ff;
  --on-primary: #ffffff;
  --primary-soft: #eef0ff;
  --primary-line: #d9dcff;
  --spark: #ffe3a3;
  --bg: #fafafc;
  --bg-tint: #f2f2fe;
  --card: #ffffff;
  --surface: #f4f4f7;
  --surface-high: #ececf1;
  --text: #17171c;
  --text-2: #62636b;
  --text-3: #8d8d96;
  --border: #e7e7ec;
  --edge: rgba(222, 222, 232, 0.75);
  --success: #2fa66d;
  --success-soft: #e3f5ec;
  --heart: #e5484d;
  --ink: #15151c;            /* the dark band, in both themes */
  --ink-text: #f3f2ee;
  --ink-text-2: #a9a8b3;
  --shadow-sm: 0 1px 2px rgba(42, 46, 122, 0.06), 0 2px 8px rgba(42, 46, 122, 0.05);
  --shadow: 0 1px 2px rgba(42, 46, 122, 0.05), 0 10px 30px rgba(42, 46, 122, 0.09);
  --shadow-lg: 0 2px 6px rgba(42, 46, 122, 0.06), 0 30px 70px rgba(42, 46, 122, 0.18);
  --gradient: linear-gradient(135deg, #5b5fef 0%, #8278ff 100%);
  --gradient-text: linear-gradient(100deg, #5b5fef 10%, #8278ff 55%, #b16cf0 100%);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --max: 1180px;
  --gutter: 24px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.05, 0.7, 0.1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8e91ff;
    --accent: #a79fff;
    --on-primary: #16177a;
    --primary-soft: #23244f;
    --primary-line: #34367a;
    --bg: #0e0e11;
    --bg-tint: #15152a;
    --card: #17171b;
    --surface: #1f1f25;
    --surface-high: #26262d;
    --text: #eeece7;
    --text-2: #a8a7ae;
    --text-3: #7d7c85;
    --border: #2a2a31;
    --edge: #2a2a31;
    --success: #5cc692;
    --success-soft: #1b3a2b;
    --heart: #ff6b70;
    --ink: #1a1a22;
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px rgba(0, 0, 0, 0.55);
    --gradient-text: linear-gradient(100deg, #9da0ff 10%, #b3a9ff 55%, #d49cff 100%);
  }
}

/* ------------------------------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 3px; border-radius: 10px; }
::selection { background: color-mix(in srgb, var(--primary) 26%, transparent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; font-variation-settings: 'opsz' 72, 'SOFT' 50; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0; }
code { font: 600 0.9em var(--font); background: var(--surface); border: 1px solid var(--border); padding: 1px 7px; border-radius: 7px; }
kbd { font: 700 0.82em var(--font); padding: 2px 7px; border-radius: 7px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 1px 0 var(--border); color: var(--text); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--card); color: var(--text); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

.eyebrow { font: 700 12px/1.2 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------------------------ buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 650 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}
.button:hover { text-decoration: none; }
.button:active { transform: scale(0.98); }
.button .icon { width: 18px; height: 18px; }
.button.primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px rgba(91, 95, 239, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.button.primary:hover { box-shadow: 0 14px 32px rgba(91, 95, 239, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.button.ghost { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--text); border-color: var(--border); }
.button.ghost:hover { background: var(--card); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* "Coming soon" store badges: not links, so they don't pretend to be. */
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 14px;
  border-radius: 16px; background: var(--ink); color: var(--ink-text); border: 1px solid rgba(255, 255, 255, 0.08);
}
.store .icon { width: 26px; height: 26px; }
.store small { display: block; font: 600 11px/1.2 var(--font); letter-spacing: 0.04em; color: var(--ink-text-2); text-transform: uppercase; }
.store strong { display: block; font: 700 16px/1.25 var(--font); }
@media (prefers-color-scheme: dark) { .store { background: var(--surface-high); border-color: var(--border); } }

/* ------------------------------------------------------------------------------- header, footer */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 21px/1 var(--serif); font-variation-settings: 'opsz' 72, 'SOFT' 50; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 3px 6px rgba(91, 95, 239, 0.3)); }
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--text); background: var(--surface); }
.site-nav .button { margin-left: 8px; color: #fff; }
.site-nav .button:hover { background: var(--gradient); }

.site-footer { margin-top: 120px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 50%, var(--bg)); }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-brand p { color: var(--text-2); margin-top: 14px; max-width: 30ch; font-size: 15px; }
.footer-col h2 { font: 700 12px/1.2 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; color: var(--text-3); font-size: 14px; }

/* ------------------------------------------------------------------------------------------ hero */

.hero { position: relative; padding: 72px 0 40px; overflow-x: clip; }
.hero::before {
  /* the brand's glow behind everything, strongest top right */
  content: ''; position: absolute; inset: -68px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 18%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(700px 420px at 8% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-tint), var(--bg) 78%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--primary-line);
  font-weight: 650; font-size: 14px; color: var(--text); box-shadow: var(--shadow-sm);
}
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; color: #fff; }
.pill .dot .icon { width: 13px; height: 13px; }
.hero h1 { font-size: clamp(46px, 7vw, 86px); line-height: 1; letter-spacing: -0.035em; margin: 26px 0 24px; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note .icon { width: 18px; height: 18px; color: var(--success); stroke-width: 2.4; }

/* The phone, and the two moments floating around it */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 700px; text-align: left; }
.hero-visual::before {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 68%);
  filter: blur(10px); z-index: -1;
}
.float { position: absolute; z-index: 2; animation: bob 7s ease-in-out infinite; }
.hero-buddy { position: absolute; z-index: 3; left: 3%; bottom: 2%; width: 172px; height: 172px; filter: drop-shadow(0 18px 22px rgba(42, 46, 122, 0.28)); animation: rise 0.9s var(--ease) both 0.85s, bob 6s ease-in-out infinite 1.8s; }
.float-saved { left: -9%; top: 25%; width: 290px; }
.float-search { right: -12%; bottom: 8%; width: 292px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ------------------------------------------------------------------------ the phone (the app's UI) */

.phone {
  --pw: 330px;
  position: relative; width: var(--pw); aspect-ratio: 9 / 19.2; padding: 11px; border-radius: 54px;
  background: linear-gradient(145deg, #2b2b33, #0c0c10 60%);
  box-shadow: 0 0 0 1.5px #3a3a44 inset, 0 50px 100px rgba(42, 46, 122, 0.28), 0 18px 36px rgba(20, 20, 40, 0.18);
  animation: rise 0.9s var(--ease) both 0.1s;
}
.phone::after { /* the camera cut-out */
  content: ''; position: absolute; top: 22px; left: 50%; width: 86px; height: 25px; margin-left: -43px; border-radius: 20px; background: #050507; z-index: 3;
}
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 44px;
  background: linear-gradient(180deg, #ecedfd 0%, #f6f6fb 34%, #f7f7fa 100%);
  color: #17171c; font-size: 12px; line-height: 1.35;
  display: flex; flex-direction: column;
}
.m-status { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0; font: 700 12.5px/1 var(--font); height: 44px; }
.m-status .icons { display: flex; gap: 5px; align-items: center; }
.m-status .icons i { display: block; width: 15px; height: 9px; border-radius: 2px; background: currentColor; opacity: 0.9; }
.m-status .icons i:first-child { width: 13px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 1px; }
.m-body { flex: 1; padding: 10px 16px 0; display: flex; flex-direction: column; gap: 11px; min-height: 0; }
.m-greet { display: flex; align-items: flex-start; justify-content: space-between; }
.m-title { font: 600 25px/1.1 var(--serif); font-variation-settings: 'opsz' 72, 'SOFT' 50; line-height: 1.1; letter-spacing: -0.02em; color: #17171c; }
.m-greet p + p { color: #6f7078; font-size: 11.5px; margin-top: 3px; }
.m-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e3e4fd; color: #5b5fef; font: 700 13px var(--font); }
.m-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 5px 0 13px; border-radius: 999px; background: #fff; border: 1px solid #e6e6ee; box-shadow: 0 4px 14px rgba(42, 46, 122, 0.07); color: #85858e; font-size: 11.5px; }
.m-search .icon { width: 15px; height: 15px; color: #17171c; }
.m-search .m-spark { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e7e8fd; color: #5b5fef; }
.m-search .m-spark .icon { width: 15px; height: 15px; color: #5b5fef; }
.m-memory { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: linear-gradient(135deg, #f0f0ff, #ffffff 70%); border: 1px solid #e3e4fb; box-shadow: 0 4px 14px rgba(42, 46, 122, 0.06); }
.m-memory .t { flex: 1; min-width: 0; }
.m-memory .k { font: 800 8.5px/1 var(--font); letter-spacing: 0.1em; color: #5b5fef; text-transform: uppercase; }
.m-memory b { display: block; font-weight: 650; font-size: 11.5px; margin-top: 4px; }
.m-memory span.meta { color: #6f7078; font-size: 10px; }
.m-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 3px; }
.m-head .m-h { font: 600 17px/1 var(--serif); font-variation-settings: 'opsz' 72, 'SOFT' 50; letter-spacing: -0.01em; margin: 0; }
.m-head span { color: #5b5fef; font-weight: 650; font-size: 11px; }
.m-list { list-style: none; margin: 0; padding: 2px 12px; border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgba(42, 46, 122, 0.07); }
.m-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.m-list li + li { border-top: 1px solid #efeff4; }
.m-list .t { flex: 1; min-width: 0; }
.m-list b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 11.5px; line-height: 1.3; }
.m-meta { display: flex; align-items: center; gap: 5px; color: #6f7078; font-size: 10px; margin-top: 3px; white-space: nowrap; }
.m-heart { width: 16px; height: 16px; color: #9a9aa2; }
.m-heart.on { color: #e5484d; }
.m-topics { display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 16px rgba(42, 46, 122, 0.07); }
.m-topics span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-weight: 600; font-size: 11px; border-bottom: 1px solid #efeff4; }
.m-topics span:nth-child(odd) { border-right: 1px solid #efeff4; }
.m-topics span:nth-last-child(-n + 2) { border-bottom: none; }
.m-topics em { margin-left: auto; font-style: normal; color: #85858e; font-weight: 500; }
.m-topics .ti { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; }
.m-topics .ti .icon { width: 13px; height: 13px; }
.m-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 8px 20px; margin-top: 10px; background: rgba(255, 255, 255, 0.92); border-top: 1px solid #ececf2; }
.m-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 600; color: #6f7078; }
.m-tabs span .icon { width: 18px; height: 18px; }
.m-tabs span.on { color: #17171c; }
.m-tabs span.on i { display: grid; place-items: center; width: 46px; height: 26px; border-radius: 999px; background: #e3e4fd; color: #3f43c9; }
.m-tabs i { display: grid; place-items: center; }

/* Thumbnails: soft, photo-like colour fields, as the app shows while pictures load */
.thumb { position: relative; width: 44px; height: 44px; border-radius: 12px; flex: none; overflow: hidden; }
.thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 55%); }
.thumb .icon { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; color: #fff; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
.th-health { background: linear-gradient(140deg, #a8dccf, #3c8a8c 70%, #2a6470); }
.th-pasta { background: linear-gradient(140deg, #fbe7a6, #eab25d 55%, #c7713a); }
.th-kyoto { background: linear-gradient(150deg, #ffc9a8, #e4798a 50%, #7a4fb8); }
.th-money { background: linear-gradient(140deg, #f2dd9c, #c9a24a 60%, #8f6a25); }
.th-run { background: linear-gradient(140deg, #b9e3b8, #5b9f6f 60%, #2f6b4b); }
.th-japan { background: linear-gradient(150deg, #cfd6ff, #7b83ee 55%, #4a4fb5); }

/* Platform badges and topic colours: exactly the app's */
.src { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 4px; color: #fff; flex: none; }
.src .icon { width: 9px; height: 9px; stroke-width: 2.6; }
.src .icon.fill { stroke: none; }
.p-yt { background: #e5302a; } .p-ig { background: #d13b7c; } .p-tt { background: #16161a; } .p-fb { background: #1877f2; }
.p-rd { background: #f2551f; } .p-x { background: #16161a; } .p-az { background: #e88b12; } .p-web { background: #6f7078; }

.t-aqua { --tb: #e2f0f3; --tf: #26707f; --tbd: #1a2c31; --tfd: #86c7d3; }
.t-coral { --tb: #f8e8e2; --tf: #a24f38; --tbd: #342320; --tfd: #e9a28d; }
.t-violet { --tb: #ece9fd; --tf: #5e4fcf; --tbd: #26223f; --tfd: #b6abff; }
.t-indigo { --tb: #e7e9f8; --tf: #414ca8; --tbd: #212540; --tfd: #a2a9ec; }
.t-rose { --tb: #f7e5ea; --tf: #9e4059; --tbd: #342026; --tfd: #e79aae; }
.t-amber { --tb: #f6eddb; --tf: #855b0c; --tbd: #322a18; --tfd: #e0b868; }
.t-green { --tb: #e5f0e7; --tf: #356d43; --tbd: #1d2c21; --tfd: #93cca0; }
.t-slate { --tb: #e8ecf2; --tf: #475a7a; --tbd: #212731; --tfd: #a3b3cd; }
.ti, .chip.topic { background: var(--tb); color: var(--tf); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-weight: 650; font-size: 13px; white-space: nowrap; background: var(--surface); color: var(--text); }
.chip .icon { width: 13px; height: 13px; }
.chip.plain { background: var(--surface); color: var(--text-2); }

/* Floating cards */
.fcard { background: var(--card); border: 1px solid var(--edge); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 16px; }
.fcard .row { display: flex; align-items: center; gap: 10px; }
.fcard .row > span:last-child { min-width: 0; }
.fcard .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; flex: none; }
.fcard .ok .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.fcard .h { font-weight: 700; font-size: 15px; }
.fcard .s { color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.fcard .s span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard .chips { display: flex; gap: 6px; margin-top: 12px; padding-left: 40px; }
.fcard .q { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-weight: 650; }
.fcard .q .icon { width: 18px; height: 18px; color: var(--text-2); }
.fcard .caret { width: 2px; height: 18px; background: var(--primary); margin-left: -6px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fcard .found { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 4px; }
.fcard .found .thumb { width: 48px; height: 48px; }
.fcard .found b { display: block; font-weight: 650; font-size: 14px; line-height: 1.3; }
.fcard .found mark { background: none; color: var(--primary); }
.fcard .label { font: 700 11px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 14px 4px 0; }

/* ----------------------------------------------------------------------------------- works with */

.works { padding: 28px 0 8px; text-align: center; }
.works p { color: var(--text-2); font-weight: 600; font-size: 15px; }
.works ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.works li { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); font-weight: 650; font-size: 15px; }
.works .src { width: 24px; height: 24px; border-radius: 7px; }
.works .src .icon { width: 14px; height: 14px; stroke-width: 2.2; }

/* ------------------------------------------------------------------------------------- sections */

.section { padding: 120px 0 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -0.03em; margin-top: 16px; }
.section-head .sub { color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); margin-top: 18px; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow); overflow: hidden; counter-increment: step; }
.step .stage { position: relative; height: 230px; display: grid; place-items: center; padding: 20px; background: linear-gradient(180deg, var(--bg-tint), color-mix(in srgb, var(--bg-tint) 30%, var(--card))); border-bottom: 1px solid var(--edge); overflow: hidden; }
.step .copy { padding: 24px 26px 28px; }
.step .copy::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font: 800 14px/1 var(--font); margin-bottom: 14px; }
.step h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.step p { color: var(--text-2); margin-top: 10px; }

/* step 1: a share sheet */
.share-sheet { width: 100%; max-width: 280px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--edge); padding: 14px 14px 16px; }
.share-sheet .link { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.share-sheet .link .thumb { width: 38px; height: 38px; border-radius: 10px; }
.share-sheet .link b { display: block; font-size: 13px; line-height: 1.25; }
.share-sheet .link span { font-size: 11.5px; color: var(--text-2); }
.share-sheet .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-2); }
.share-sheet .apps i { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 50%; background: var(--surface); color: var(--text-2); }
.share-sheet .apps i .icon { width: 18px; height: 18px; }
.share-sheet .apps .me { color: var(--text); }
.share-sheet .apps .me i { background: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--primary); border-radius: 14px; animation: ring 2.4s ease-in-out infinite; }
.share-sheet .apps .me img { width: 44px; height: 44px; border-radius: 14px; }
@keyframes ring { 50% { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent), 0 0 0 11px color-mix(in srgb, var(--accent) 18%, transparent); } }

/* step 2: organizing, then organized (a loop) */
.organize { position: relative; width: 100%; max-width: 290px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--edge); padding: 14px; }
.organize .top { display: flex; gap: 10px; align-items: center; }
.organize .top b { font-size: 13px; line-height: 1.3; display: block; }
.organize .top .m-meta { color: var(--text-2); }
.organize .result { display: grid; margin-top: 12px; }
.organize .working, .organize .done { grid-area: 1 / 1; }
.organize .working { display: flex; align-self: start; align-items: center; gap: 8px; color: var(--primary); font-weight: 650; font-size: 13px; animation: working 6s ease-in-out infinite; }
.organize .working .icon { width: 16px; height: 16px; }
.organize .done { animation: done 6s ease-in-out infinite; }
.organize .done .chips { display: flex; gap: 6px; }
.organize .done p { margin-top: 10px; font-size: 12.5px; color: var(--text); padding-left: 10px; border-left: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); }
@keyframes working { 0%, 30% { opacity: 1; } 38%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes done { 0%, 32% { opacity: 0; transform: translateY(6px); } 42%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* step 3: search the way you remember it */
.remember { width: 100%; max-width: 290px; }
.remember .q { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow); font-weight: 650; font-size: 14.5px; }
.remember .q .icon { width: 18px; height: 18px; color: var(--text-2); }
.remember .hit { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.remember .hit b { display: block; font-size: 13px; line-height: 1.3; }
.remember .hit mark { background: none; color: var(--primary); }
.remember .hit .m-meta { color: var(--text-2); }

/* Features: a bento of what's inside */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow); overflow: hidden; }
.tile h3 { font-size: 26px; line-height: 1.12; letter-spacing: -0.02em; }
.tile p { color: var(--text-2); }
.tile .visual { margin-top: auto; padding-top: 18px; }
.tile.topics { grid-column: span 4; grid-row: span 2; }
.tile.search, .tile.memory { grid-column: span 2; }
.tile.notes, .tile.vault, .tile.library { grid-column: span 2; }
.tile.chrome { grid-column: span 6; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 40px; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font: 700 12px/1 var(--font); letter-spacing: 0.02em; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic-card { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; aspect-ratio: 1.3; border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.collage .thumb { width: 100%; height: 100%; border-radius: 0; }
.collage .ti { display: grid; place-items: center; }
.collage .ti .icon { width: 24px; height: 24px; }
.topic-card b { font-weight: 700; font-size: 16px; padding: 0 6px; }
.topic-card .count { color: var(--text-2); font-size: 13.5px; padding: 0 6px; }
.th-mint { background: linear-gradient(140deg, #d4f1e4, #7cc3a7 60%, #3f8b73); }
.th-berry { background: linear-gradient(140deg, #f7c6d9, #d46a93 55%, #8e3a6b); }
.th-sand { background: linear-gradient(140deg, #f6ead2, #d9b98a 60%, #a57c4c); }
.th-sea { background: linear-gradient(150deg, #c5ecf5, #5bb2cf 55%, #2c6f96); }
.th-dusk { background: linear-gradient(150deg, #ffd9b0, #f08a6c 50%, #b04d7d); }
.th-violet { background: linear-gradient(150deg, #e2dcff, #9c8cf3 55%, #5b4fcf); }
.th-sky { background: linear-gradient(150deg, #dbe9ff, #8fb1f1 55%, #4f6fcf); }
.th-forest { background: linear-gradient(150deg, #cfe3c3, #6f9a5d 55%, #37573a); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips span { height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; border: 1px solid var(--border); font-weight: 600; font-size: 14px; background: var(--card); }
.filter-chips span.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.memory-card { padding: 16px; border-radius: 18px; background: linear-gradient(135deg, var(--primary-soft), var(--card) 75%); border: 1px solid var(--primary-line); display: flex; gap: 12px; align-items: center; }
.memory-card .k { font: 800 10.5px/1 var(--font); letter-spacing: 0.1em; color: var(--primary); text-transform: uppercase; }
.memory-card b { display: block; margin-top: 6px; font-size: 15px; line-height: 1.3; }
.memory-card .thumb { width: 52px; height: 52px; border-radius: 14px; }

.checklist { list-style: none; margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--surface); display: grid; gap: 10px; font-weight: 550; font-size: 15px; }
.checklist li { display: flex; align-items: center; gap: 10px; }
.checklist i { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--text-3); display: grid; place-items: center; flex: none; }
.checklist .on i { background: var(--primary); border-color: var(--primary); color: #fff; }
.checklist .on i .icon { width: 13px; height: 13px; stroke-width: 3; }
.checklist .on span { color: var(--text-3); text-decoration: line-through; }

.tile.vault { background: var(--ink); color: var(--ink-text); border-color: transparent; }
.tile.vault p { color: var(--ink-text-2); }
.tile.vault .tag { background: rgba(255, 255, 255, 0.1); color: #cfd0ff; }
.lock { width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(145deg, #2c2d52, #1b1b2c); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 10px rgba(130, 120, 255, 0.07), 0 0 60px rgba(130, 120, 255, 0.35); color: #cfd0ff; }
.lock .icon { width: 36px; height: 36px; stroke-width: 1.7; }
.dots { display: flex; gap: 10px; margin-top: 18px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #cfd0ff; opacity: 0.9; }
.dots i:nth-child(n + 4) { opacity: 0.25; }

.library-rows { display: grid; gap: 8px; }
.library-rows span { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); font-weight: 650; font-size: 15px; }
.library-rows span em { margin-left: auto; font-style: normal; color: var(--text-2); font-weight: 500; }
.library-rows .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--card); color: var(--primary); }
.library-rows .ic .icon { width: 17px; height: 17px; }
.library-rows .ic.heart { color: var(--heart); }

/* The Chrome extension, in a browser window */
.chrome-copy h3 { font-size: clamp(30px, 3.2vw, 40px); margin-top: 16px; }
.chrome-copy > p { color: var(--text-2); margin-top: 12px; }
.chrome-copy ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.chrome-copy li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.chrome-copy li b { color: var(--text); font-weight: 650; }
.chrome-copy li i { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.chrome-copy li i .icon { width: 18px; height: 18px; }
.browser { position: relative; border-radius: 18px; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-high); border-bottom: 1px solid var(--edge); }
.browser .lights { display: flex; gap: 6px; }
.browser .lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser .lights i:nth-child(2) { background: #febc2e; }
.browser .lights i:nth-child(3) { background: #28c840; }
.browser .url { flex: 1; height: 30px; border-radius: 999px; background: var(--card); display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 13px; color: var(--text-2); min-width: 0; }
.browser .url b { color: var(--text); font-weight: 600; }
.browser .url .icon { width: 13px; height: 13px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.browser .ext { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 16%, transparent); }
.browser .ext img { width: 20px; height: 20px; border-radius: 6px; }
.browser .page { position: relative; height: 330px; padding: 28px; }
.browser .page .ph { height: 14px; border-radius: 7px; background: var(--surface-high); margin-bottom: 12px; }
.browser .page .ph.h { height: 26px; width: 62%; margin-bottom: 20px; }
.browser .page .ph.img { height: 120px; border-radius: 14px; width: 55%; background: linear-gradient(150deg, #ffc9a8, #e4798a 50%, #7a4fb8); opacity: 0.8; }
.browser .page .ph:nth-child(3) { width: 48%; } .browser .page .ph:nth-child(4) { width: 52%; } .browser .page .ph:nth-child(5) { width: 40%; }
.popup { position: absolute; top: 10px; right: 14px; width: 282px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow-lg); }
.popup .ph-head { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--serif); font-variation-settings: 'opsz' 72, 'SOFT' 50; }
.popup .ph-head img { width: 24px; height: 24px; border-radius: 7px; }
.popup .pg { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--surface); }
.popup .pg small { display: block; color: var(--text-2); font-size: 11.5px; font-weight: 600; }
.popup .pg b { display: block; font: 600 15px/1.25 var(--serif); font-variation-settings: 'opsz' 72, 'SOFT' 50; margin: 4px 0 10px; }
.popup .saved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--success); font-weight: 700; font-size: 13px; }
.popup .saved .okc { width: 20px; height: 20px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; }
.popup .saved .okc .icon { width: 12px; height: 12px; stroke-width: 3; }
.popup .note { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.popup .kbd-hint { margin-top: 10px; font-size: 11.5px; color: var(--text-2); }

/* Privacy: the dark band */
.privacy { margin-top: 120px; }
.privacy .band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: var(--ink-text); padding: 72px 64px; }
.privacy .band::before { content: ''; position: absolute; width: 620px; height: 620px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(130, 120, 255, 0.4), transparent 65%); pointer-events: none; }
.privacy .eyebrow { color: #b3b5ff; }
.privacy h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.03em; margin-top: 16px; max-width: 14em; }
.privacy .intro { color: var(--ink-text-2); font-size: 19px; margin-top: 18px; max-width: 36em; }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 52px; list-style: none; padding: 0; }
.promises li { position: relative; }
.promises i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08); color: #cfd0ff; }
.promises i .icon { width: 22px; height: 22px; }
.promises b { display: block; font: 600 21px/1.2 var(--serif); font-variation-settings: 'opsz' 72, 'SOFT' 50; margin-top: 16px; }
.promises p { color: var(--ink-text-2); margin-top: 8px; font-size: 15.5px; }
.privacy .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; color: #fff; font-weight: 650; text-decoration: none; padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.privacy .more:hover { background: rgba(255, 255, 255, 0.14); }
.privacy .more .icon { width: 18px; height: 18px; }

/* The last word */
.get { margin-top: 120px; }
.get .card-cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 80px 40px; text-align: center; background: var(--gradient); color: #fff; box-shadow: 0 40px 90px rgba(91, 95, 239, 0.35); }
.get .card-cta::before, .get .card-cta::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.get .card-cta::before { width: 520px; height: 520px; left: -180px; bottom: -300px; background: radial-gradient(circle, rgba(255, 227, 163, 0.45), transparent 65%); }
.get .card-cta::after { width: 460px; height: 460px; right: -140px; top: -240px; background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%); }
.get img.mark { width: 150px; height: 150px; margin: -18px auto -10px; animation: bob 6s ease-in-out infinite;
  /* a white sticker outline, so Buddy stands out on the purple card */
  filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(0 22px 26px rgba(20, 20, 80, 0.35)); }
.get h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.035em; margin-top: 30px; }
.get p { font-size: 19px; opacity: 0.9; margin: 18px auto 0; max-width: 32em; }
.get .stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.get .store { background: rgba(15, 15, 40, 0.35); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.get .store small { color: rgba(255, 255, 255, 0.75); }
.get .contact { margin-top: 28px; font-size: 15px; opacity: 0.85; }
.get .contact a { color: #fff; font-weight: 650; }

/* ----------------------------------------------------------------------------------- legal pages */

.doc-hero { position: relative; padding: 64px 0 36px; }
.doc-hero::before { content: ''; position: absolute; inset: -68px 0 0; z-index: -1; background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.doc-hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin-top: 14px; }
.doc-hero .meta { display: inline-flex; margin-top: 18px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--edge); color: var(--text-2); font-size: 14px; font-weight: 600; }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-layout.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.toc { position: sticky; top: 92px; }
.toc p { font: 700 12px/1.2 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--border); display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; margin-left: -14px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.toc a:hover { color: var(--text); border-left-color: var(--primary); }
.doc { max-width: 760px; font-size: 17px; }
.doc h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 56px 0 14px; }
.doc h3 { font: 700 18px/1.3 var(--font); margin: 28px 0 8px; }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--primary); }
.doc strong { font-weight: 700; }
.summary { position: relative; margin: 0 0 12px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.summary::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--gradient); }
.summary > strong { font: 600 22px/1.2 var(--serif); font-variation-settings: 'opsz' 72, 'SOFT' 50; }
.summary ul { margin: 12px 0 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; margin: 10px 0; border-radius: 16px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 18px; border: 1px solid var(--edge); background: var(--card); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table th { color: var(--text-2); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface); }
.table td:first-child { font-weight: 700; white-space: nowrap; }
.callout { padding: 20px 22px; background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: 18px; margin: 16px 0; }
.doc-foot { margin-top: 48px; padding: 22px 24px; border-radius: 18px; background: var(--surface); color: var(--text-2); }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0 0; }
.lost .buddy { width: 170px; height: 170px; margin: 0 auto; filter: drop-shadow(0 20px 24px rgba(42, 46, 122, 0.25)); animation: bob 6s ease-in-out infinite; }
.lost .code { font: 600 clamp(120px, 22vw, 220px)/0.9 var(--serif); font-variation-settings: 'opsz' 72, 'SOFT' 50; letter-spacing: -0.06em; }
.lost h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 18px; }
.lost p { color: var(--text-2); margin-top: 12px; }
.lost p.code { color: transparent; margin: 0; }
.lost .hero-actions { justify-content: center; }

/* --------------------------------------------------------------------------------------- dark mode */

@media (prefers-color-scheme: dark) {
  .ti, .chip.topic { background: var(--tbd); color: var(--tfd); }
  .screen { background: linear-gradient(180deg, #1b1b38 0%, #121216 36%, #101013 100%); color: #eeece7; }
  .m-title { color: #eeece7; }
  .m-greet p + p, .m-meta, .m-topics em, .m-tabs span { color: #a5a4ab; }
  .m-avatar { background: #2b2d6e; color: #b9bbff; }
  .m-search { background: #1c1c22; border-color: #2a2a31; box-shadow: none; color: #85858e; }
  .m-search .icon { color: #eeece7; }
  .m-search .m-spark { background: #2b2d6e; }
  .m-search .m-spark .icon { color: #b9bbff; }
  .m-memory { background: linear-gradient(135deg, #22234a, #18181c 70%); border-color: #2c2e5a; box-shadow: none; }
  .m-memory .k, .m-head span { color: #9da0ff; }
  .m-memory span.meta { color: #a5a4ab; }
  .m-list, .m-topics { background: #18181c; box-shadow: none; }
  .m-list li + li, .m-topics span { border-color: #26262d !important; }
  .m-tabs { background: rgba(24, 24, 28, 0.94); border-top-color: #26262d; }
  .m-tabs span.on { color: #eeece7; }
  .m-tabs span.on i { background: #2b2d6e; color: #c9cbff; }
  .filter-chips span.on { background: var(--text); color: var(--bg); }
  .browser .page .ph.img { opacity: 0.55; }
  .get .card-cta { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
  .p-tt, .p-x { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
  .tile.vault { background: linear-gradient(160deg, #22234a, #15151f 70%); border-color: #2e3063; }
}

/* ----------------------------------------------------------------------------------------- motion */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.float-saved { animation: rise 0.9s var(--ease) both 0.45s, bob 7s ease-in-out infinite 1.4s; }
.float-search { animation: rise 0.9s var(--ease) both 0.65s, bob 7s ease-in-out infinite 2.2s; }

/* Sections rise into view where the browser can tie animation to scrolling; elsewhere they're just there. */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(0.985); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .organize .working { opacity: 0; }
  .organize .done { opacity: 1; }
}

/* ------------------------------------------------------------------------------------------ sizes */

@media (max-width: 1320px) {
  .float-saved { left: -5%; }
  .float-search { right: -3%; }
}

@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-visual { min-height: 690px; }
  .float-saved { left: calc(50% - 360px); }
  .hero-buddy { left: calc(50% - 330px); }
  .float-search { right: calc(50% - 370px); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.topics { grid-column: span 2; grid-row: auto; }
  .tile.search, .tile.memory, .tile.notes, .tile.vault, .tile.library { grid-column: span 1; }
  .tile.chrome { grid-column: span 2; grid-template-columns: 1fr; }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .site-nav a.wide { display: none; }
  .hero { padding-top: 44px; }
  .hero-visual { min-height: 0; padding: 24px 0 120px; }
  .phone { zoom: 0.84; }
  .float-saved { left: 0; top: auto; bottom: 34px; width: min(276px, 82%); }
  .float-search { display: none; }
  .hero-buddy { left: auto; right: 0; bottom: 30px; width: 112px; height: 112px; }
  .section { padding-top: 96px; }
  .bento { grid-template-columns: 1fr; }
  .tile.topics, .tile.search, .tile.memory, .tile.notes, .tile.vault, .tile.library, .tile.chrome { grid-column: auto; }
  .tile, .tile.chrome { padding: 24px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .popup { position: relative; top: auto; right: auto; width: auto; margin: -210px 14px 14px; }
  .browser .page { height: 230px; }
  .privacy .band { padding: 48px 24px; }
  .promises { grid-template-columns: 1fr; gap: 26px; }
  .get .card-cta { padding: 56px 22px; }
  .store { width: 100%; max-width: 330px; }
  .doc h2 { font-size: 26px; }
  .table td:first-child { white-space: normal; }
}

@media (max-width: 420px) {
  .site-nav .button { display: none; }
  .phone { zoom: 0.76; }
}
