/* Memo Note product site.
   One warm-paper canvas, a display face for the shouting and a quiet face for the reading.
   Every app pixel shown here comes from a real capture; nothing is illustrated or faked. */

:root {
  --paper: #f7f5f1;
  --paper-2: #fbfaf7;
  --card: #ffffff;
  --ink: #16130f;
  --ink-2: #575048;
  --ink-3: #8b8378;
  --chip: #efece5;
  --line: rgba(22, 19, 15, 0.1);
  --line-2: rgba(22, 19, 15, 0.19);

  --accent: #6c4cf0;
  --accent-2: #a58bff;
  --accent-ink: #ffffff;
  --accent-soft: #ece7ff;
  --accent-line: #d9d0ff;

  /* the seven colours a note can actually be (src/main/store.js NOTE_COLORS) */
  --n-lavender: #dcc9f2;
  --n-mint: #b9e7d0;
  --n-peach: #fbd4a8;
  --n-sky: #c2ddf6;
  --n-rose: #f9c6d5;
  --n-sand: #f0e2b0;
  --n-slate: #d6dce8;

  --success: #2f9e6d;
  --success-soft: #e4f4ec;
  --warning: #b8791a;
  --warning-soft: #fbf1de;
  --danger: #c9483f;
  --danger-soft: #fbe9e7;

  --night: #16130f;
  --night-2: #221e18;
  --night-3: #322b23;

  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-2xl: 34px;

  --shadow-sm: 0 1px 2px rgba(22, 19, 15, 0.05), 0 6px 16px rgba(22, 19, 15, 0.05);
  --shadow-md: 0 2px 4px rgba(22, 19, 15, 0.05), 0 18px 40px -18px rgba(22, 19, 15, 0.22);
  --shadow-lg: 0 4px 8px rgba(22, 19, 15, 0.06), 0 46px 90px -34px rgba(22, 19, 15, 0.34);
  --shadow-accent: 0 12px 30px -8px rgba(108, 76, 240, 0.45);

  --wrap: 1140px;
  --wrap-wide: 1280px;
  --gutter: 24px;

  --font: 'Instrument Sans', ui-sans-serif, system-ui, 'Segoe UI Variable Text', 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* the UA indents <figure> by 40px on both sides, which silently shrinks every product shot */
figure { margin: 0; }

/* flex/grid rules below would otherwise beat the UA's [hidden] default */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.62;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
/* a mailto: address is one long word with nowhere to break, and it is the widest thing on the
   page wherever the footer reaches — it must not be allowed to widen the layout */
a { overflow-wrap: anywhere; }
a { color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; }
h1 { font-size: clamp(38px, 6.6vw, 74px); font-weight: 800; }
h2 { font-size: clamp(28px, 4.2vw, 48px); }
h3 { font-size: 20px; letter-spacing: -0.022em; line-height: 1.2; }
h4 { font-size: 12.5px; letter-spacing: 0.11em; text-transform: uppercase; font-weight: 700; font-family: var(--font); }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 13.5px; background: var(--chip); padding: 2px 6px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--wrap-wide); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(34px, 4vw, 52px) 0; }
.lede { font-size: clamp(17px, 1.5vw, 20.5px); color: var(--ink-2); max-width: 56ch; line-height: 1.55; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); z-index: 99;
}
.skip:focus { left: 16px; top: 16px; }
.center { text-align: center; }
.center .lede, .center .eyebrow, .center .sec-head { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.55; }

/* numbered section headers: the thing that makes a page look authored rather than generated */
.sec-head { max-width: 64ch; margin-bottom: clamp(26px, 3.4vw, 40px); position: relative; }
.sec-head p { margin-top: 14px; }
.sec-num {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--ink-3); margin-bottom: 12px; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px;
}

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  /* no backdrop-filter: blurring a full-width bar on every scroll frame is the single biggest
     source of scroll jank here, and a flat paper bar looks the same */
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  color: var(--ink);
}
.site-head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 26px -18px rgba(22, 19, 15, 0.3); }
.head-in { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; text-decoration: none; font-size: 18px; color: var(--ink); letter-spacing: -0.03em; }
.brand-mark { border-radius: 8px; box-shadow: 0 2px 6px rgba(22, 19, 15, 0.16); }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav-link {
  text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 550;
  padding: 8px 13px; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--chip); color: var(--ink); }
.head-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 12px; width: 42px; height: 42px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
.head-mobile { display: none; flex-direction: column; gap: 2px; padding-bottom: 16px; }
.head-mobile a { text-decoration: none; padding: 12px; border-radius: var(--r-sm); font-weight: 550; color: var(--ink-2); }
.head-mobile a:hover { background: var(--chip); }
.head-mobile .btn { color: var(--accent-ink); text-align: center; }
body.is-menu .head-mobile { display: flex; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 620; text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s, color 0.18s;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-solid { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent); }
.btn-solid:hover { background: #5c3ce4; box-shadow: 0 16px 36px -10px rgba(108, 76, 240, 0.55); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2c251c; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; border-color: var(--ink-3); }
.btn-quiet { background: var(--chip); color: var(--ink); }
.btn-quiet:hover { background: #e5e1d8; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

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

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 82% -14%, #eae3ff 0%, rgba(234, 227, 255, 0) 68%),
    radial-gradient(760px 420px at 4% 8%, #f6ecdd 0%, rgba(246, 236, 221, 0) 66%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  padding: clamp(44px, 6vw, 78px) 0 clamp(48px, 6vw, 76px);
}
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(30px, 5vw, 66px); align-items: center;
}
.hero h1 { max-width: 15ch; }
/* a marker stroke, the way a person highlights a line on paper — not gradient text */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, var(--n-sand) 58%, var(--n-peach) 96%, rgba(0, 0, 0, 0) 96%);
  padding: 0 2px;
}
.hero .lede { margin: 20px 0 26px; max-width: 46ch; }
.pill-note {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px 6px 7px; font-size: 13px; font-weight: 550; letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.pill-note b { background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 750; letter-spacing: 0.03em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--ink-2); font-size: 14px; font-weight: 550; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-meta span:nth-child(2) i { background: var(--n-mint); }
.hero-meta span:nth-child(3) i { background: var(--n-peach); }
.hero-meta span:nth-child(4) i { background: var(--n-sky); }
.tick {
  width: 16px; height: 16px; border-radius: 50%; background: var(--success); color: #fff; font-size: 10px;
  display: inline-grid; place-items: center; font-weight: 800; flex: none;
}

/* the hero's product visual: real capture inside honest window chrome, edge capsules on the right */
.hero-visual { position: relative; }

/* Notes scattered behind the product shot, the way they sit on a real desktop. They are set in
   the .hero-visual's own space so they always hug the screenshot, and half of each one hides
   under it — that overlap is the whole point: the cards are behind, the app is in front. */
.hero-bg { position: absolute; inset: -5% -3%; z-index: 0; pointer-events: none; }
.bg-note {
  position: absolute; display: grid; gap: 7px; width: 168px; padding: 13px 14px 15px;
  border-radius: 14px 14px 14px 3px; background: var(--bn); border: 1px solid rgba(22, 19, 15, 0.07);
  box-shadow: 0 18px 34px -22px rgba(22, 19, 15, 0.5); transform: rotate(var(--r, 0deg));
  font-size: 12.5px; line-height: 1.3; color: var(--ink-2);
}
.bg-note i { width: 9px; height: 9px; border-radius: 50%; background: var(--bn-dot); }
.bg-note b { font-family: var(--display); font-size: 13.5px; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.bg-note s { text-decoration: none; justify-self: start; font-size: 10.5px; font-weight: 650; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-3); background: rgba(255, 255, 255, 0.65); border-radius: 999px; padding: 2px 8px; }
.bg-note.n1 { top: -17%; left: -3%; --bn: var(--n-lavender); --bn-dot: #8b6cf2; }
.bg-note.n2 { top: -12%; right: -8%; --bn: var(--n-mint); --bn-dot: #35b98c; }
.bg-note.n3 { bottom: 13%; left: -9%; --bn: var(--n-peach); --bn-dot: #e08a4c; }
.bg-note.n4 { top: 30%; left: -10%; --bn: var(--n-sky); --bn-dot: #4f8fd6; }
.bg-note.n5 { top: -24%; left: 34%; --bn: var(--n-sand); --bn-dot: #c2a24f; }
.hero-visual .screen { position: relative; z-index: 2; }
.hero-visual .hero-rail { z-index: 3; }
/* a positioned note paints above normal-flow text, so the caption needs an explicit layer */
.hero-visual figcaption { position: relative; z-index: 2; }
.screen {
  position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.screen-bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  background: linear-gradient(180deg, #f6f4f0, #efece6); border-bottom: 1px solid var(--line);
}
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcd7cd; }
.screen-bar i:nth-child(1) { background: var(--n-rose); }
.screen-bar i:nth-child(2) { background: var(--n-sand); }
.screen-bar i:nth-child(3) { background: var(--n-mint); }
.screen-bar b { margin-left: 8px; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: -0.01em; }
.screen-body { display: block; width: 100%; height: auto; }
.hero-visual figcaption {
  margin-top: 14px; font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px;
}
.hero-visual figcaption::before { content: ''; width: 18px; height: 1px; background: var(--line-2); }

/* ---------- marquee ---------- */

.marquee {
  background: var(--night); color: rgba(255, 255, 255, 0.9); overflow: hidden;
  padding: 15px 0; border-top: 1px solid var(--night-3); border-bottom: 1px solid var(--night-3);
}
.marquee-track { display: flex; width: max-content; animation: mq 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 11px; padding: 0 26px; white-space: nowrap;
  font-size: 14px; font-weight: 550; letter-spacing: -0.005em; opacity: 0.9;
}
.marquee-track i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- facts strip ---------- */

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.fact { background: var(--card); padding: 24px 26px; }
.fact b { display: block; font-family: var(--display); font-size: 34px; letter-spacing: -0.045em; font-weight: 800; line-height: 1; }
.fact span { font-size: 14px; color: var(--ink-2); display: block; margin-top: 8px; }

/* ---------- real app screenshots ---------- */

.shot { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(150deg, #eee9e0 0%, #f7f5f1 44%, #eae4f6 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 16px 16px 0; }
.shot-screen { border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px rgba(22, 19, 15, 0.18); background: #fff; margin-right: 96px; }
.shot-screen img { display: block; width: 100%; height: auto; }
/* the rail capture carries its own transparent canvas: crop to the capsule column */
.shot-rail { position: absolute; right: 16px; top: 20px; height: calc(100% - 84px); width: 62px;
  object-fit: cover; object-position: 100% 50%;
  filter: drop-shadow(0 14px 26px rgba(22, 19, 15, 0.22)); pointer-events: none; }
.shot figcaption { padding: 14px 4px 16px; font-size: 13.5px; color: var(--ink-2); }

.mini { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.22s ease; }
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mini img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  object-position: 50% 50%; background: var(--paper); }
.mini figcaption { padding: 14px 16px 16px; display: grid; gap: 3px; }
.mini figcaption b { font-size: 15.5px; font-family: var(--display); letter-spacing: -0.02em; }
.mini figcaption span { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }

/* ---------- surfaces gallery ---------- */

.surfaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.surfaces .mini:nth-child(1) { grid-column: span 2; }

/* ---------- features ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.feature .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 15px; font-weight: 800; font-family: var(--display); }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* big alternating rows: a real screen on one side, one sentence on the other */
.stack { display: grid; gap: clamp(34px, 6vw, 78px); align-items: center; }
.stack-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 66px); align-items: center; }
.stack-row.flip .stack-media { order: 2; }
.stack-copy h2 { margin-bottom: 14px; }
.stack-copy p { color: var(--ink-2); margin: 0 0 20px; max-width: 44ch; }
.stack-media { position: relative; }
.stack-media img { display: block; width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.stack-media .float { position: absolute; right: -14px; top: -24px; width: 21%; min-width: 120px; border-radius: 16px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: rotate(4deg); }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-line { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 13.5px; color: var(--ink-2); font-weight: 550; }
.tag-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- dark band ---------- */

.band {
  background:
    radial-gradient(760px 320px at 88% 0%, rgba(165, 139, 255, 0.22), rgba(165, 139, 255, 0) 62%),
    linear-gradient(160deg, var(--night-2), var(--night));
  color: #f3f0ea; border-radius: var(--r-2xl); padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.band h2 { color: #fff; }
.band h3 { color: #fff; }
.band p { color: rgba(243, 240, 234, 0.72); }
.band .eyebrow { color: var(--accent-2); }
.band .sec-num { color: rgba(243, 240, 234, 0.55); border-color: rgba(255, 255, 255, 0.18); }
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 22px; }
.key { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 14px 15px; }
.key span { color: rgba(243, 240, 234, 0.8); font-size: 14.5px; }
kbd {
  font-family: var(--mono); font-size: 11.5px; background: rgba(255, 255, 255, 0.1); color: #fff;
  border-radius: 7px; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); white-space: nowrap; letter-spacing: 0.02em;
}
/* the same keycap on a light page */
.band:not(.on-light) kbd { background: var(--chip); color: var(--ink); border-color: var(--line-2); box-shadow: 0 2px 0 rgba(22, 19, 15, 0.14); }

/* ---------- comparison ---------- */

.compare { border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--card); }
.compare-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: 0; }
.compare-row > * { padding: 16px 20px; font-size: 15px; }
.compare-row > * + * { border-left: 1px solid var(--line); }
.compare-row.head { background: var(--paper-2); }
.compare-row.head > * { font-weight: 700; font-size: 13.5px; letter-spacing: -0.01em; color: var(--ink-2); }
.compare-row.head > :last-child { color: var(--accent); }
.compare-row b { font-weight: 620; }
.compare-row .us { background: #faf8ff; color: var(--ink); font-weight: 550; }
.compare-note { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }

/* ---------- plans (trial + licence) ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.plan, .price-card {
  position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  padding: 26px; box-shadow: var(--shadow-md); display: grid; gap: 14px; align-content: start;
}
.plan.is-current, .price-card.is-best { border-color: var(--accent); box-shadow: 0 30px 70px -34px rgba(108, 76, 240, 0.55); }
.plan-ribbon {
  position: absolute; top: 0; right: 24px; transform: translateY(-50%);
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 750; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 6px 13px; border-radius: 999px; box-shadow: var(--shadow-accent);
}
.plan-head { display: grid; gap: 4px; }
.plan-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.plan-price { display: flex; align-items: baseline; gap: 9px; }
.plan-price b, .price-num b { font-family: var(--display); font-size: 48px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.plan-price s, .price-num s { color: var(--ink-3); font-size: 14.5px; text-decoration: none; font-weight: 550; }
.price-num { display: flex; align-items: baseline; gap: 9px; }
.price-note { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.plan-foot { display: grid; gap: 10px; margin-top: 2px; }
.plan-state { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.plan-state.is-good { color: var(--success); }
.plan-state.is-bad { color: var(--danger); }
.plan-meta { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-3); }
.plan-meta li { display: flex; justify-content: space-between; gap: 14px; border-top: 1px dashed var(--line); padding-top: 5px; }
.plan-meta li:first-child { border-top: 0; padding-top: 0; }
.plan-meta b { color: var(--ink-2); font-weight: 600; }
/* the honest dead end: this plan is spent, so the button says so instead of vanishing */
.plan-used {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 13px 20px; border-radius: 999px; background: var(--chip); border: 1px dashed var(--line-2);
  color: var(--ink-2); font-size: 15px; font-weight: 620; text-align: center;
}
.plan-used::before { content: '✓'; color: var(--success); font-weight: 800; }
.price-card.is-trial { border-style: dashed; box-shadow: none; background: var(--paper-2); }
.price-badge { position: absolute; top: 18px; right: 18px; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.price-badge.is-quiet { background: var(--chip); color: var(--ink-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checks li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%;
  background: var(--success); box-shadow: inset 0 0 0 4px var(--card); }
.free-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; }

/* the current-plan strip that sits above a purchase: what you already have, in plain words */
.plan-now {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  background: linear-gradient(120deg, #f6f2ff, #fffdf9); border: 1px solid var(--accent-line);
  border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 18px;
}
.plan-now .dot { width: 40px; height: 40px; border-radius: 13px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 17px; }
.plan-now b { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; }
.plan-now span { font-size: 14px; color: var(--ink-2); }

/* ---------- trial box ---------- */

.trial-box { display: grid; gap: 9px; background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent); border-radius: var(--r-md); padding: 16px 18px; margin: 0 0 14px; }
.trial-box b { font-size: 16px; font-weight: 660; letter-spacing: -0.015em; color: #2b1f6e; }
.trial-box span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.trial-box .btn { justify-content: center; }
.trial-box .swap { margin-top: 4px; font-size: 13.5px; text-align: left; }
[data-trial-state].is-bad { color: var(--danger); }
[data-trial-state].is-good { color: var(--success); }

/* ---------- notice ---------- */

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--warning-soft); border: 1px solid #e8d6ae;
  color: #4d3a12; border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; margin: 16px 0; }
.notice strong { color: #35270c; }
.notice.is-info { background: var(--accent-soft); border-color: var(--accent-line); color: #2f2770; }
.notice.is-info strong { color: #241d5e; }
.notice.is-bad { background: var(--danger-soft); border-color: #eec6c1; color: #6b1f18; }
.notice.is-good { background: var(--success-soft); border-color: #bfe0cf; color: #0d3d28; }
.notice p { margin: 0; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 20px 0 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.028em;
  padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; font-family: var(--font); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { padding-left: 16px; border-left: 2px solid var(--accent); }
.faq details p { color: var(--ink-2); margin: 0 0 22px; max-width: 74ch; font-size: 15.5px; }

/* ---------- forms ---------- */

.auth-shell { max-width: 440px; margin: clamp(40px, 7vw, 80px) auto; }
.card-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-md); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field input {
  font: inherit; font-size: 15.5px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink); width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(108, 76, 240, 0.14); background: #fff; }
.field-hint { font-size: 13px; color: var(--ink-3); }
.swap { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
.swap a { color: var(--accent); font-weight: 600; text-decoration: none; }
.swap a:hover { text-decoration: underline; }

/* ---------- status rows ---------- */

.rows { display: grid; gap: 8px; margin: 18px 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 17px; }
.row b { font-weight: 620; }
.row span { color: var(--ink-3); font-size: 14.5px; text-align: right; }
.chip { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--chip); color: var(--ink-2); }
.chip.on { background: var(--success-soft); color: #0d3d28; }
.chip.off { background: var(--danger-soft); color: #6b1f18; }

/* ---------- legal prose ---------- */

.prose { max-width: 740px; margin: clamp(40px, 6vw, 72px) auto; }
.prose-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow-sm); }
.prose h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.prose h2 { font-size: 21px; margin: 30px 0 10px; }
.prose h3 { font-size: 17px; margin: 20px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--accent); }
.prose code { font-size: 13.5px; background: var(--chip); padding: 2px 6px; border-radius: 6px; }
.updated { color: var(--ink-3); font-size: 14px; margin-bottom: 24px; }

/* ---------- footer ---------- */

.site-foot { background: var(--night); color: rgba(243, 240, 234, 0.72); }
.foot-in { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 28px; padding: clamp(40px, 6vw, 62px) 0 26px; }
.foot-brand p { font-size: 14.5px; margin: 14px 0 0; max-width: 30ch; }
.foot-brand .brand { color: #fff; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col h4 { color: rgba(255, 255, 255, 0.45); margin-bottom: 6px; }
.foot-col a { color: rgba(243, 240, 234, 0.76); text-decoration: none; font-size: 14.5px; }
.foot-col a:hover { color: #fff; }
.foot-bar { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0 30px; font-size: 13.5px; }
.foot-by { display: inline-flex; align-items: center; gap: 9px; color: rgba(243, 240, 234, 0.6); }
.foot-by img { border-radius: 6px; }

/* ---------- demo video ---------- */

.demo { position: relative; width: 100%; margin: 0; }
.demo-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: #0f0d0a; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
/* the recording is 1360x720, not 16:9 — forcing 16/9 with cover sliced the edges of the note cards off */
.demo-frame video { display: block; width: 100%; height: auto; aspect-ratio: 1360 / 720; object-fit: contain; background: #0f0d0a; }
.demo-cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(15, 13, 10, 0.66); border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 550;
}
.demo-cap i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(165, 139, 255, 0.24); }
.demo-play {
  position: absolute; right: 16px; bottom: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(15, 13, 10, 0.66); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; font-size: 11px; letter-spacing: 0.06em; display: grid; place-items: center; backdrop-filter: blur(10px);
}
.demo-play:hover { background: rgba(108, 76, 240, 0.6); border-color: rgba(255, 255, 255, 0.32); }
.demo figcaption { margin-top: 13px; font-size: 13.5px; color: var(--ink-3); }
.demo-dark figcaption { color: rgba(243, 240, 234, 0.6); }

/* ---------- toast ---------- */

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 999px; font-size: 14.5px; box-shadow: var(--shadow-lg); opacity: 0;
  transition: opacity 0.2s, transform 0.2s; z-index: 60; pointer-events: none; max-width: 90vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

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

/* Nothing may be invisible because a script failed to run, so the hidden starting state only
   exists once the page has proved it can animate. */
.anim [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.7, 0.25, 1), transform 0.7s cubic-bezier(0.22, 0.7, 0.25, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.anim [data-reveal].is-in { opacity: 1; transform: none; }

.scroll-bar {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%; z-index: 50; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}

/* A replica of the product's edge rail. It straddles the right edge of the app screenshot, which
   is the whole point of the app: these capsules float above the window. Closed until the cursor
   arrives, exactly like the real rail. */
.rail-motif { display: grid; gap: 10px; justify-items: end; }
.hero-rail { position: absolute; right: -16px; top: 45%; transform: translateY(-50%); z-index: 4; }
.mc {
  display: flex; align-items: center; gap: 11px; margin-left: auto;
  width: 44px; height: 72px; padding: 0 14px; overflow: hidden;
  border-radius: 16px 4px 4px 16px; cursor: default;
  background: var(--mc); color: var(--mc-ink);
  box-shadow: 0 10px 24px rgba(22, 19, 15, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: width 0.42s cubic-bezier(0.22, 0.7, 0.25, 1), box-shadow 0.3s ease;
  animation: mc-in 0.8s cubic-bezier(0.22, 0.7, 0.25, 1) both;
  animation-delay: calc(300ms + var(--i, 0) * 110ms);
}
@keyframes mc-in { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }
.mc b { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.65; }
.mc em { font-style: normal; font-size: 13.5px; font-weight: 620; letter-spacing: -0.015em; white-space: nowrap;
  opacity: 0; transition: opacity 0.24s ease 0.12s; }
.mc:hover { width: 200px; box-shadow: 0 16px 36px rgba(22, 19, 15, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.mc:hover em { opacity: 1; }
.mc-a { --mc: var(--n-lavender); --mc-ink: #3b2a58; }
.mc-b { --mc: var(--n-mint); --mc-ink: #14402c; }
.mc-c { --mc: var(--n-peach); --mc-ink: #5a3a11; }
.mc-d { --mc: var(--n-sky); --mc-ink: #1d3a55; }
/* One capsule demonstrates the gesture on its own, then stops the moment a real cursor takes over. */
.rail-motif:not(:hover) .mc-b { animation: mc-in 0.8s cubic-bezier(0.22, 0.7, 0.25, 1) both, mc-demo 9s 2.6s infinite; }
.rail-motif:not(:hover) .mc-b em { animation: mc-demo-ink 9s 2.6s infinite; }
@keyframes mc-demo { 0%, 68%, 100% { width: 44px; } 76%, 90% { width: 178px; } }
@keyframes mc-demo-ink { 0%, 70%, 100% { opacity: 0; } 78%, 88% { opacity: 1; } }

/* cursor-following highlight on the two cards people are meant to click */
[data-glow] { position: relative; }
[data-glow]::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px 240px at var(--px, 50%) var(--py, 0%), rgba(108, 76, 240, 0.1), rgba(108, 76, 240, 0) 68%);
  opacity: 0; transition: opacity 0.35s ease;
}
[data-glow]:hover::after { opacity: 1; }

[data-tilt] { transform: perspective(1300px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s cubic-bezier(0.22, 0.7, 0.25, 1); }

.btn { position: relative; overflow: hidden; }
.btn-solid::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.3) 47%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-130%); transition: transform 0.7s ease;
}
.btn-solid:hover::after { transform: translateX(130%); }

.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.24s ease;
}
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }
.nav-link.is-current { color: var(--ink); }

.faq details[open] p { animation: faq-in 0.34s cubic-bezier(0.22, 0.7, 0.25, 1) both; animation-delay: calc(var(--i, 0) * 20ms); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.stack-media img { transition: transform 0.6s cubic-bezier(0.22, 0.7, 0.25, 1), box-shadow 0.4s ease; }
.stack-media:hover img { transform: translateY(-4px); }
.stack-media .float { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-9px); } }

.hero-visual .screen { animation: rise 0.9s cubic-bezier(0.22, 0.7, 0.25, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .hero-rail { right: -8px; }
}

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  /* stacked, the screenshot sits under the copy, so notes that hug its top edge land on the text */
  .hero-bg { display: none; }
  .hero h1 { max-width: 20ch; }
  .hero-visual { max-width: 620px; }
  .surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .surfaces .mini:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-row { grid-template-columns: 1fr; }
  .stack-row.flip .stack-media { order: 0; }
  .stack-media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: repeat(3, 1fr); }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > :first-child { grid-column: 1 / -1; padding-bottom: 0; border-bottom: 0; font-weight: 700; }
}

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .plan-now { grid-template-columns: auto 1fr; }
  .plan-now .btn { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav, .head-cta { display: none; }
  .burger { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: repeat(2, 1fr); }
  .head-mobile .btn { display: flex; }
  .demo-cap { display: none; }
  .surfaces { grid-template-columns: 1fr; }
  .surfaces .mini:nth-child(1) { grid-column: auto; }
  .section { padding: 52px 0; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .hero-rail { display: none; }
  .hero-bg { display: none; }
  .shot { padding: 12px 12px 0; }
  .shot-rail { display: none; }
  .shot-screen { margin-right: 0; }
  .facts { grid-template-columns: 1fr; }
  .band { border-radius: var(--r-lg); padding: 24px 20px; }
  .plan, .price-card { padding: 20px; border-radius: var(--r-lg); }
  .plan-price b, .price-num b { font-size: 40px; }
  .faq summary { font-size: 17px; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .compare-row > :first-child { padding-bottom: 4px; }
}

@media (max-width: 460px) {
  .hero { padding-top: 30px; }
  .btn-lg { padding: 13px 20px; font-size: 15.5px; }
  .btn-row .btn { width: 100%; }
  .row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .row span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  /* a 1ms animation still loops forever: the marquee, the capsule demo and the floating card are the
     three things here that move on a timer rather than in response to the cursor */
  .marquee-track, .rail-motif:not(:hover) .mc-b, .rail-motif:not(:hover) .mc-b em, .stack-media .float { animation: none; }
  [data-tilt] { transform: none; }
}
