/* FindGlance website.
   Type: SF Pro Rounded for display and SF Pro for text, the same faces the app uses
   (falls back to the system font elsewhere). No web fonts are downloaded.
   Colour: neutral greys from the app's Theme. The lens gradient (violet, pink, peach) marks only
   what FindGlance points at: found words, parsed search chips, the selected file, the Pro plan.
   Shape: pills for buttons, chips and badges; 8px for keycaps; 12px for inputs and file cards
   (like the app's search field); 20px for windows, tiles and plan cards. */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --well: #f2f2f4;
  --hairline: #e3e3e8;
  --hairline-2: #d4d4da;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6b6b70;
  --faint: #a1a1a6;
  --brand: #5a4bf5;
  --brand-ink: #4a3cdc;
  --brand-soft: #f1ecff;
  --green: #1a8f55;
  --red: #d9363b;
  --btn-bg: #1d1d1f;
  --btn-bg-hover: #333336;
  --btn-ink: #ffffff;
  --tile-lavender: #f2effe;
  --tile-peach: #feede5;
  --tile-mint: #e7f6ee;
  --tile-sky: #eaf1fe;
  --shadow-sm: 0 1px 2px rgb(29 24 64 / 0.06);
  --shadow-md: 0 1px 2px rgb(29 24 64 / 0.05), 0 10px 30px -12px rgb(29 24 64 / 0.16);
  --shadow-lg: 0 2px 6px rgb(29 24 64 / 0.05), 0 30px 70px -24px rgb(44 32 120 / 0.28);
  --lens: linear-gradient(135deg, #5a4bf5 0%, #9b5cf6 40%, #f0609e 75%, #ff9a62 100%);
  --lens-x: linear-gradient(90deg, #5a4bf5 0%, #9b5cf6 40%, #f0609e 75%, #ff9a62 100%);
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e10;
    --surface: #1b1b1d;
    --surface-2: #1f1f22;
    --well: #262629;
    --hairline: #2b2b2f;
    --hairline-2: #3b3b40;
    --ink: #f2f2f4;
    --ink-2: #cdcdd2;
    --muted: #9c9ca3;
    --faint: #6e6e73;
    --brand: #8e83ff;
    --brand-ink: #aaa2ff;
    --brand-soft: #2a2540;
    --green: #3ccb82;
    --red: #ff5c61;
    --btn-bg: #f2f2f4;
    --btn-bg-hover: #ffffff;
    --btn-ink: #1d1d1f;
    --tile-lavender: #221d35;
    --tile-peach: #2f211b;
    --tile-mint: #16271e;
    --tile-sky: #162133;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 34px 80px -24px rgb(0 0 0 / 0.75);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e0e10;
  --surface: #1b1b1d;
  --surface-2: #1f1f22;
  --well: #262629;
  --hairline: #2b2b2f;
  --hairline-2: #3b3b40;
  --ink: #f2f2f4;
  --ink-2: #cdcdd2;
  --muted: #9c9ca3;
  --faint: #6e6e73;
  --brand: #8e83ff;
  --brand-ink: #aaa2ff;
  --brand-soft: #2a2540;
  --green: #3ccb82;
  --red: #ff5c61;
  --btn-bg: #f2f2f4;
  --btn-bg-hover: #ffffff;
  --btn-ink: #1d1d1f;
  --tile-lavender: #221d35;
  --tile-peach: #2f211b;
  --tile-mint: #16271e;
  --tile-sky: #162133;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 34px 80px -24px rgb(0 0 0 / 0.75);
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

::selection { background: rgb(155 92 246 / 0.22); }

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

.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }

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

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

.wrap {
  width: min(1200px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Pre-launch: pages carry data-release="soon" on <html> until the DMG is out. */
[data-release="soon"] .when-live { display: none !important; }
:root:not([data-release="soon"]) .when-soon { display: none !important; }

/* Type */

.h1 {
  font-size: clamp(2.7rem, 1.75rem + 3.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(2rem, 1.45rem + 2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
  text-wrap: pretty;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-ink);
}

.section { padding: clamp(80px, 9vw, 136px) 0; }

.section-head { max-width: 780px; }
.section-head > p:not(.eyebrow) {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}

/* The lens marks something FindGlance found */

.lens-ring { position: relative; }
.lens-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: var(--ring, 1px);
  border-radius: inherit;
  background: var(--lens);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.found {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.found::before,
.found::after {
  content: "";
  position: absolute;
  inset: 0.1em -0.1em -0.1em;
  border-radius: 0.2em;
  z-index: -1;
}
.found::before { background: var(--brand-soft); }
.found::after {
  padding: 0.045em;
  background: var(--lens);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@media (prefers-reduced-motion: no-preference) {
  .js .found::before,
  .js .found::after {
    clip-path: inset(0 100% 0 0 round 0.2em);
    animation: found-in 0.9s 0.45s var(--ease) forwards;
  }
}

@keyframes found-in {
  to { clip-path: inset(0 0 0 0 round 0.2em); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn .ic { width: 19px; height: 19px; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--btn-bg-hover); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn-ghost:hover { border-color: var(--muted); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; gap: 7px; }
.btn-sm .ic { width: 16px; height: 16px; }

.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Launch bar and header */

.announce {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.announce a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px var(--gutter);
  color: var(--ink-2);
  text-align: center;
  text-decoration: none;
}
.announce a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.announce strong { color: var(--ink); font-weight: 600; }
.announce .ic { width: 15px; height: 15px; color: var(--muted); }
.announce .spark { color: var(--brand); }

.top-sentinel { height: 1px; margin-bottom: -1px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.brand + .nav-actions { margin-left: auto; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--muted); color: var(--ink); }
.icon-btn .ic { width: 17px; height: 17px; }

.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 479px) {
  .nav-cta { display: none; }
}

/* Hero */

.hero { padding: 48px 0 64px; }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-icon {
  width: 76px;
  height: 76px;
  margin: 0 0 26px -4px;
  filter: drop-shadow(0 10px 18px rgb(90 75 245 / 0.18));
}

.hero-copy .lede { margin-top: 22px; }
.hero-copy .cta-row { margin-top: 34px; }

@media (min-width: 1080px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
  }
}

@media (max-width: 1079px) {
  .hero-copy { max-width: 640px; }
}

/* Interactive app window */

.demo { container-type: inline-size; min-width: 0; }

.app-window {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 14px 10px;
  border-right: 1px solid var(--hairline);
  background: var(--surface-2);
  overflow: hidden;
}

.traffic { display: flex; gap: 8px; padding: 2px 6px 18px; }
.traffic span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.traffic span:nth-child(2) { background: #febc2e; }
.traffic span:nth-child(3) { background: #28c840; }

.side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.side-brand img { width: 22px; height: 22px; }

.side-sep { height: 1px; margin: 8px 8px; background: var(--hairline); flex: none; }

.side-row {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--ink-2);
  white-space: nowrap;
}
.side-row .ic { width: 16px; height: 16px; color: var(--muted); }
.side-row .count { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-row .count.green { color: var(--green); font-weight: 600; }
.side-row.active { background: var(--brand-soft); color: var(--ink); font-weight: 500; }
.side-row.active .ic { fill: url(#lens-grad); }

.app-main { display: flex; flex-direction: column; min-width: 0; }

.app-titlebar { display: none; }

.app-top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid var(--hairline);
}

.app-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 400px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--hairline-2);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.2s;
}
.app-search > .ic { width: 15px; height: 15px; color: var(--muted); }
.app-search::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: 10px;
  background: var(--lens);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.app-search:focus-within,
.app-search.typing { border-color: transparent; }
.app-search:focus-within::after,
.app-search.typing::after { opacity: 1; }

.q-wrap { position: relative; flex: 1; min-width: 0; height: 100%; }

.app-search input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink);
}
.app-search input::placeholder { color: var(--muted); }
.app-search input:focus-visible { outline: 0; }
.app-search.typing input { color: transparent; }

.ghost {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  overflow: hidden;
  font-size: 13.5px;
  white-space: pre;
  pointer-events: none;
}
.app-search.typing .ghost { display: flex; }
.ghost-in { display: flex; align-items: center; }
.caret {
  width: 1.5px;
  height: 16px;
  margin-left: 1px;
  background: var(--brand);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.keycaps { display: flex; gap: 3px; }
.app-search:focus-within .keycaps,
.app-search.typing .keycaps,
.app-search.has-text .keycaps { display: none; }

.keycap {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--hairline-2);
  border-radius: 5px;
  background: var(--surface-2);
  box-shadow: 0 1px 0 var(--hairline-2);
  font-size: 11px;
  color: var(--muted);
}

.lib-size {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.lib-size b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.app-content {
  flex: 1;
  min-height: 0;
  padding: 18px 18px 22px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.res-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.res-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }

.understood {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.understood > .ic { width: 15px; height: 15px; fill: url(#lens-grad); }
.understood[hidden] { display: flex; visibility: hidden; }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.chip::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--lens);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fcard {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
}
.fcard.selected { border-color: transparent; }
.fcard.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--lens);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .chip { animation: pop-in 0.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
  .fcard { animation: rise-in 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.85); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
}

.fthumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 9px;
  background: var(--well);
}
.fthumb > img,
.fthumb > .vid {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.14);
}
.fthumb > .doc { height: 100%; width: auto; }

.vid { position: relative; overflow: hidden; }
.vid img { width: 100%; height: 100%; object-fit: cover; }
.vid .play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.vid .play .ic { width: 13px; height: 13px; margin-left: 2px; }
.vid .dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ficon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 16%, var(--surface));
  color: var(--c);
}
.ficon .ic { width: 28px; height: 28px; }

.badge {
  position: absolute;
  top: 7px;
  left: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, #8e8e93);
}

.fmeta { padding: 8px 10px 9px; border-top: 1px solid var(--hairline); }
.fname {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fdate { margin-top: 1px; font-size: 11.5px; color: var(--muted); }

.app-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 56px 16px;
  text-align: center;
  color: var(--muted);
}
.app-empty .ic { width: 30px; height: 30px; color: var(--faint); }
.app-empty b { color: var(--ink); font-weight: 600; font-size: 14px; }
.app-empty[hidden] { display: none; }

.try-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.try-row > span { margin-right: 4px; }

.try {
  position: relative;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.try:hover { border-color: var(--muted); color: var(--ink); }
.try[aria-pressed="true"] { border-color: transparent; background: var(--brand-soft); color: var(--ink); }
.try[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: var(--lens);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@container (max-width: 640px) {
  .app-window { grid-template-columns: minmax(0, 1fr); height: 490px; }
  .app-sidebar { display: none; }
  .app-titlebar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 14px;
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-2);
  }
  .app-titlebar span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
  .app-titlebar span:nth-child(2) { background: #febc2e; }
  .app-titlebar span:nth-child(3) { background: #28c840; }
  .app-top { height: 56px; padding: 0 14px; }
  .app-content { padding: 16px 14px 18px; }
  .lib-size { display: none; }
  .app-search { max-width: none; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Mini documents and screenshots inside thumbnails.
   They always look like paper or a real screenshot, so they stay light in dark mode. */

.doc {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 5px;
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 6px 14px -6px rgb(0 0 0 / 0.18);
  text-align: left;
  line-height: 1.25;
}
.doc.pdf { aspect-ratio: 17 / 22; }
.doc.slide { aspect-ratio: 16 / 10; }
.doc.sheet { aspect-ratio: 5 / 4; }

.page {
  display: flex;
  flex-direction: column;
  gap: 3.5cqw;
  height: 100%;
  padding: 8cqw 7.5cqw;
  font-size: 5cqw;
}

/* Boarding pass */
.pass .page { padding: 0; gap: 0; }
.pass-band { padding: 7cqw 7.5cqw 6cqw; background: #262b4e; color: #ffffff; }
.pass-top { display: flex; justify-content: space-between; font-size: 4.6cqw; color: #c7cbea; }
.pass-route { display: flex; align-items: center; justify-content: space-between; margin-top: 5cqw; }
.pass-route > div > b { display: block; font-size: 14cqw; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.pass-route > div > span { display: block; margin-top: 1.5cqw; font-size: 4.2cqw; color: #c7cbea; }
.pass-route .r { text-align: right; }
.pass-route .ic { width: 9cqw; height: 9cqw; color: #ffffff; }
.pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw 4cqw; padding: 7cqw 7.5cqw 0; }
.pass-grid > div > span { display: block; font-size: 4.2cqw; color: #6e6e73; }
.pass-grid > div > b { display: block; margin-top: 0.5cqw; font-size: 8.5cqw; font-weight: 700; }
.pass-code {
  margin: auto 7.5cqw 7cqw;
  height: 13cqw;
  background: repeating-linear-gradient(90deg, #1d1d1f 0 1.2cqw, transparent 1.2cqw 2.1cqw, #1d1d1f 2.1cqw 2.6cqw, transparent 2.6cqw 3.8cqw, #1d1d1f 3.8cqw 5.4cqw, transparent 5.4cqw 6.2cqw);
}

/* Order shipped */
.ship-bar { display: flex; align-items: center; gap: 2.5cqw; font-size: 4.6cqw; color: #6e6e73; }
.ship-logo { width: 6.5cqw; height: 6.5cqw; border-radius: 1.8cqw; background: #f27a3d; }
.ship-title { margin-top: 3cqw; font-size: 8.4cqw; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.ship-item { font-size: 4.6cqw; color: #6e6e73; }
.ship-label { margin-top: 3cqw; font-size: 4.2cqw; color: #6e6e73; }
.ship-num { font-family: var(--font-mono); font-size: 5.6cqw; font-weight: 600; letter-spacing: -0.01em; }
.ship-track { display: flex; gap: 2cqw; margin-top: 3cqw; }
.ship-track i { flex: 1; height: 1.8cqw; border-radius: 1cqw; background: #e5e5ea; }
.ship-track i.on { background: #1e9e5e; }
.ship-eta { font-size: 5cqw; font-weight: 600; color: #1e9e5e; }

/* Recipe note */
.recipe .page { background: #fffdf6; }
.rec-title { font-size: 10cqw; font-weight: 700; letter-spacing: -0.02em; }
.rec-meta { font-size: 4.4cqw; color: #8a8270; }
.rec-list { display: grid; gap: 2.4cqw; margin-top: 2cqw; padding-left: 5cqw; list-style: disc; font-size: 5.4cqw; }

/* PDFs */
.pdf .page { padding: 9cqw 8cqw; gap: 3cqw; font-size: 4cqw; color: #3a3a3e; }
.pdf-head { display: flex; justify-content: space-between; align-items: baseline; }
.pdf-head > b { font-size: 9cqw; color: #1d1d1f; letter-spacing: -0.02em; }
.pdf-head > span { font-size: 4.2cqw; color: #6e6e73; }
.pdf-from { margin-top: 2cqw; color: #6e6e73; }
.pdf-rows { display: grid; gap: 2.4cqw; margin-top: 4cqw; padding-top: 3cqw; border-top: 0.4cqw solid #e5e5ea; }
.pdf-rows > div, .pdf-total { display: flex; justify-content: space-between; gap: 3cqw; }
.pdf-total { margin-top: auto; padding-top: 3cqw; border-top: 0.4cqw solid #1d1d1f; color: #1d1d1f; }
.pdf-total > b { font-size: 5.2cqw; }
.pdf-title { font-size: 8cqw; color: #1d1d1f; letter-spacing: -0.02em; line-height: 1.1; }
.pdf-days { display: grid; gap: 3cqw; margin-top: 2cqw; }
.pdf-days > li > b { display: block; color: #1d1d1f; }
.cover .page { padding: 0; gap: 2cqw; }
.cover-block { height: 56%; background: #1f5c4a; }
.cover .page > b { margin: 4cqw 8cqw 0; font-size: 9cqw; color: #1d1d1f; letter-spacing: -0.02em; line-height: 1.1; }
.cover .page > span:last-child { margin: 0 8cqw; color: #6e6e73; }

/* Slides */
.slide .page { justify-content: flex-end; gap: 1.5cqw; padding: 8cqw; background: #1f2a44; color: #ffffff; }
.slide.alt .page { background: #0f766e; }
.slide .page > span { font-size: 4.4cqw; color: rgb(255 255 255 / 0.75); }
.slide .page > b { font-size: 10cqw; letter-spacing: -0.02em; line-height: 1.05; }

/* Spreadsheet */
.sheet .page { padding: 6cqw; gap: 3cqw; font-size: 4cqw; }
.sheet .page > b { font-size: 6cqw; }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet td { padding: 1.3cqw 2cqw; border: 0.3cqw solid #e5e5ea; }
.sheet td:last-child { text-align: right; }
.sheet tr:first-child td { background: #f2f2f4; font-weight: 600; }
.sheet tr:last-child td { font-weight: 700; }

/* Facts */

.facts { padding-bottom: 8px; }
.facts ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
}
.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.facts .ic { width: 24px; height: 24px; color: var(--ink); }

@media (max-width: 899px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .facts ul { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Text recognition stage */

.ocr-stage {
  margin-top: 48px;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.ocr-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 26px;
}

.ocr-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 300px;
  max-width: 460px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  background: var(--surface);
}
.ocr-search > .ic { width: 17px; height: 17px; color: var(--muted); }
.ocr-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}
.ocr-search input::placeholder { color: var(--muted); }
.ocr-search::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: var(--r-md);
  background: var(--lens);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.ocr-search:focus-within { border-color: transparent; }
.ocr-search:focus-within::after { opacity: 1; }
.ocr-search input:focus-visible { outline: 0; }

.ocr-try { display: flex; flex-wrap: wrap; gap: 8px; }

.ocr-count {
  width: 100%;
  font-size: 14px;
  color: var(--muted);
}

.ocr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.ocr-item { transition: opacity 0.35s var(--ease); }
.ocr-item.dim { opacity: 0.32; }

.ocr-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.08;
  padding: clamp(16px, 2.4vw, 28px);
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--well);
}
.ocr-frame .doc { width: min(100%, 290px); }
.ocr-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--lens-x) center / 100% 2px no-repeat,
    linear-gradient(to bottom, transparent 20%, rgb(155 92 246 / 0.12) 50%, transparent 50.5%);
  transform: translateY(-52%);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .scanning .ocr-frame::after { animation: scan 1.7s var(--ease) forwards; }
  .scanning .ocr-item:nth-child(2) .ocr-frame::after { animation-delay: 0.18s; }
  .scanning .ocr-item:nth-child(3) .ocr-frame::after { animation-delay: 0.36s; }
}
@keyframes scan {
  0% { transform: translateY(-52%); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(52%); opacity: 0; }
}

.w { border-radius: 0.12em; transition: background-color 0.25s, box-shadow 0.25s; }
.w.seen { box-shadow: 0 0 0 0.12em rgb(155 92 246 / 0.4); }
.w.hit {
  background: linear-gradient(135deg, rgb(90 75 245 / 0.18), rgb(240 96 158 / 0.18));
  box-shadow: 0 0 0 0.14em #a35cf0;
}

.copy-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: rgb(29 29 31 / 0.86);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.25s var(--ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.copy-pill .ic { width: 15px; height: 15px; }
.ocr-frame:hover .copy-pill,
.copy-pill:focus-visible { opacity: 1; transform: none; }
@media (hover: none) {
  .copy-pill { opacity: 1; transform: none; }
}

.ocr-name {
  margin-top: 12px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ocr-where { font-size: 13px; color: var(--muted); }

@media (max-width: 767px) {
  .ocr-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .ocr-grid::-webkit-scrollbar { display: none; }
  .ocr-item { scroll-snap-align: start; }
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 360px;
  padding: clamp(24px, 2.8vw, 36px);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.tile h3 {
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.tile-copy p { margin-top: 10px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

.tile-a { grid-column: span 7; }
.tile-b { grid-column: span 5; background: var(--tile-peach); border-color: transparent; }
.tile-c { grid-column: span 6; background: var(--tile-mint); border-color: transparent; }
.tile-d { grid-column: span 6; background: var(--tile-sky); border-color: transparent; }

@media (max-width: 959px) {
  .tile-a, .tile-b, .tile-c, .tile-d { grid-column: 1 / -1; min-height: 0; }
}

.sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}
.sources li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.sources li:hover { border-color: var(--hairline-2); transform: translateY(-1px); }
.src-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
  color: var(--c);
}
.src-ic .ic { width: 18px; height: 18px; }
:root[data-theme="dark"] .src-ic { color: color-mix(in srgb, var(--c) 65%, #ffffff); background: color-mix(in srgb, var(--c) 26%, var(--surface)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .src-ic { color: color-mix(in srgb, var(--c) 65%, #ffffff); background: color-mix(in srgb, var(--c) 26%, var(--surface)); }
}
.src-t { min-width: 0; }
.src-t b { display: block; font-size: 15px; font-weight: 600; }
.src-t span {
  display: block;
  overflow: hidden;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 479px) {
  .sources li { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.dupes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 240px;
}
.dupe {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease);
}
.dupe:hover { transform: translateY(-2px); }
.dupe:active { transform: scale(0.98); }
.dupe img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.3s, opacity 0.3s; }
.dupe.is-trash img { filter: saturate(0.4); opacity: 0.62; }
.dupe-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
}
.dupe-badge .ic { width: 13px; height: 13px; }
.dupe.is-trash .dupe-badge { background: var(--red); }
.dupe .x { display: none; }
.dupe.is-trash .x { display: block; }
.dupe.is-trash .check { display: none; }
.dupe-note { font-size: 15px; color: var(--ink-2); }
.dupe-note b { color: var(--ink); }

.cleanup { display: grid; gap: 8px; margin-top: auto; }
.cleanup label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: opacity 0.2s;
}
.cleanup input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--brand);
  cursor: pointer;
}
.cleanup label:has(input:not(:checked)) .cu-name,
.cleanup label:has(input:not(:checked)) b { opacity: 0.45; }
.cu-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--well);
  color: var(--ink-2);
}
.cu-ic .ic { width: 16px; height: 16px; }
.cu-name { flex: 1; min-width: 0; font-size: 15px; transition: opacity 0.2s; }
.cleanup label b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: opacity 0.2s; }
.cu-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 2px 0;
  font-size: 15px;
  color: var(--ink-2);
}
.cu-total b {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}
.keys li {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-2);
}
.kbds { display: flex; gap: 5px; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: 0 2px 0 var(--hairline-2);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.keys li:hover kbd { transform: translateY(2px); box-shadow: 0 0 0 var(--hairline-2); }

@media (max-width: 479px) {
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Privacy */

.privacy-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 64px minmax(0, 1fr);
  align-items: center;
  margin-top: 48px;
}

.mac-box {
  padding: clamp(20px, 3vw, 32px);
  border: 1.5px solid var(--hairline-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.mac-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}
.mac-label .ic { width: 24px; height: 24px; }
.mac-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mac-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--well);
  font-size: 14.5px;
  line-height: 1.3;
}
.mac-items .ic { width: 18px; height: 18px; color: var(--muted); }

.wire {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--hairline-2) 0 6px, transparent 6px 12px);
}

.out-list { display: grid; gap: 12px; }
.out-list li {
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
}
.out-list b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.out-list b .ic { width: 17px; height: 17px; color: var(--muted); }
.out-list span { display: block; margin-top: 3px; font-size: 14.5px; color: var(--muted); }

.privacy-foot { margin-top: 28px; color: var(--ink-2); max-width: 62ch; }

@media (max-width: 899px) {
  .privacy-diagram { grid-template-columns: minmax(0, 1fr); }
  .wire {
    width: 2px;
    height: 36px;
    margin: 0 auto;
    background: repeating-linear-gradient(180deg, var(--hairline-2) 0 6px, transparent 6px 12px);
  }
  .mac-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Pricing */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 52px 0 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--hairline-2);
}
.timeline li { position: relative; padding: 38px 24px 0 0; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--hairline-2);
  border-radius: 50%;
  background: var(--bg);
}
.timeline li:first-child::before { border: 0; background: var(--lens); }
.timeline b { display: block; font-family: var(--font-display); font-size: 17px; }
.timeline span { display: block; margin-top: 4px; font-size: 15.5px; color: var(--ink-2); max-width: 30ch; }

@media (max-width: 767px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .timeline::before { top: 12px; bottom: 12px; left: 11px; right: auto; width: 2px; height: auto; }
  .timeline li { padding: 0 0 0 44px; }
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.plan-pro { border-color: transparent; box-shadow: var(--shadow-lg); }
.plan-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--lens);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 20px;
  font-family: var(--font-display);
}
.price b { font-size: 68px; line-height: 1; letter-spacing: -0.045em; }
.price s { font-size: 26px; font-weight: 600; color: var(--muted); }
.price small { font-family: var(--font-text); font-size: 15px; color: var(--muted); }

.plan-note { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); max-width: 40ch; }

.features { display: grid; gap: 12px; margin: 26px 0 32px; }
.features li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; }
.features .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.features li.lead { font-weight: 600; }

.plan .btn { margin-top: auto; }

.assure {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 32px;
}
.assure li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.assure .ic { width: 22px; height: 22px; color: var(--ink); margin-top: 1px; }

@media (max-width: 899px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-pro { order: -1; }
  .assure { grid-template-columns: minmax(0, 1fr); }
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: start;
}
.faq-grid .section-head p { margin-top: 16px; }
.faq-grid .section-head a { color: var(--brand-ink); text-underline-offset: 3px; }

.faq details + details { border-top: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 17.5px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 64ch; }

@media (max-width: 899px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* Closing */

.closing { text-align: center; }
.closing img { width: 112px; height: 112px; margin: 0 auto 30px; filter: drop-shadow(0 14px 26px rgb(90 75 245 / 0.2)); }
.closing .h2 { margin-inline: auto; max-width: 16ch; }
.closing p { margin: 18px auto 0; font-size: 19px; color: var(--ink-2); max-width: 44ch; }
.closing .cta-row { justify-content: center; margin-top: 34px; }
.closing .req { margin-top: 20px; max-width: none; font-size: 14.5px; color: var(--muted); }

/* Footer */

.site-footer {
  padding: 44px 0 52px;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
  color: var(--muted);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 48px;
}
.foot .brand { font-size: 17px; }
.foot .brand img { width: 26px; height: 26px; }
.foot-tag { margin-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-line { margin-top: 32px; font-size: 13px; }

/* Long-form pages (privacy, terms) */

.doc-page { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.doc-page .wrap { max-width: 760px; }
.doc-page h1 { font-size: clamp(2.2rem, 1.7rem + 2vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; }
.doc-page .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc-page .summary {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}
.doc-page .summary strong { color: var(--ink); }
.doc-page .summary p { margin-top: 0; }
.doc-page h2 { margin-top: 44px; font-size: 1.45rem; letter-spacing: -0.02em; }
.doc-page p, .doc-page li { color: var(--ink-2); }
.doc-page p { margin-top: 14px; }
.doc-page ul { margin-top: 14px; padding-left: 22px; list-style: disc; display: grid; gap: 8px; }
.doc-page a { color: var(--brand-ink); text-underline-offset: 3px; }
.doc-page code { padding: 0.1em 0.35em; border-radius: 6px; background: var(--well); font-family: var(--font-mono); font-size: 0.88em; overflow-wrap: anywhere; }

/* 404 */

.lost { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost img { width: 96px; height: 96px; margin: 0 auto 26px; }
.lost p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.lost .cta-row { justify-content: center; margin-top: 28px; }

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: var(--shadow-lg);
  font-size: 14.5px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s, transform 0.35s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Scroll reveal */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .js .reveal.in { opacity: 1; transform: none; }
}

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