/* Snipboard — a deliberately small, native-feeling design system. */
:root {
  --bg: #f5f5f3;
  --bg-elevated: #fafaf9;
  --surface: #ffffff;
  --surface-subtle: #eeeeeb;
  --surface-strong: #e4e4e0;
  --text: #161616;
  --text-soft: #5f5f5c;
  --text-faint: #70706d;
  --line: rgba(20, 20, 20, 0.12);
  --line-strong: rgba(20, 20, 20, 0.2);
  --button: #171717;
  --button-text: #ffffff;
  --glass: rgba(250, 250, 249, 0.76);
  --shadow-sm: 0 8px 30px rgba(15, 15, 15, 0.06);
  --shadow-lg: 0 32px 90px rgba(15, 15, 15, 0.13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --page: min(1200px, calc(100vw - 48px));
  --header-height: 76px;
  color-scheme: light;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  --bg: #0c0c0d;
  --bg-elevated: #101011;
  --surface: #151516;
  --surface-subtle: #1d1d1f;
  --surface-strong: #28282b;
  --text: #f4f4f2;
  --text-soft: #adada8;
  --text-faint: #898985;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --button: #f3f3f0;
  --button-text: #111112;
  --glass: rgba(15, 15, 16, 0.78);
  --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.46);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 7%, rgba(128, 128, 128, 0.075), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

:focus-visible {
  border-radius: 5px;
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--button);
  color: var(--button-text);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--page);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-dot,
.demo-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: currentColor;
  vertical-align: 1px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.042em;
  line-height: 1.04;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5.2vw, 4.6rem);
  font-weight: 660;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 650;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 54px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.section-heading.centered > p:last-child {
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.025);
}

.nav-shell {
  display: flex;
  width: var(--page);
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  display: inline-block;
  width: 29px;
  height: 25px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("/assets/snipboard-mark.svg") center / contain no-repeat;
  mask: url("/assets/snipboard-mark.svg") center / contain no-repeat;
}

.brand-mark.large {
  width: 48px;
  height: 42px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 560;
}

.desktop-nav a,
.footer-links a {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.theme-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  place-items: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-icon {
  grid-area: 1 / 1;
  width: 17px;
  fill: none;
  opacity: 0;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: rotate(-30deg) scale(0.7);
  transition: opacity 180ms ease, transform 220ms ease;
}

:root[data-theme="light"] .theme-icon-moon,
:root[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 180ms ease, background 160ms ease, border-color 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button:hover {
  transform: translateY(-2px);
}

button.button {
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: var(--button);
  color: var(--button-text);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--text) 14%, transparent);
}

.checkout-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.checkout-status:empty {
  min-height: 0;
  margin-top: 0;
}

.button-primary:hover {
  box-shadow: 0 14px 34px color-mix(in srgb, var(--text) 21%, transparent);
}

.button-secondary {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface);
}

.button-small {
  min-height: 38px;
  padding-inline: 15px;
  border-radius: 10px;
  font-size: 12px;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: min(760px, calc(100vh - var(--header-height)));
  padding-block: clamp(110px, 15vw, 190px) 100px;
  place-items: center;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 940px;
}

.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 8.5vw, 7.7rem);
  font-weight: 680;
  letter-spacing: -0.068em;
  line-height: 0.94;
}

.hero h1 span {
  display: block;
  color: var(--text-faint);
  font-weight: 560;
}

.hero-lede {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.compatibility {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 520;
}

.compatibility span {
  padding-inline: 5px;
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  width: min(980px, 88vw);
  height: 480px;
  pointer-events: none;
}

.orbit-line {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  inset: 0;
  transform: rotate(-7deg);
}

.orbit-two {
  inset: 90px -70px -55px 60px;
  opacity: 0.5;
  transform: rotate(12deg);
}

/* Product walkthrough */
.flow-section {
  padding-block: 110px 150px;
}

.demo-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.demo-toolbar {
  display: grid;
  height: 58px;
  padding-inline: 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span,
.source-chrome span,
.mac-titlebar > span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.demo-toolbar p {
  overflow: hidden;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-live-dot {
  width: 6px;
  height: 6px;
  margin-right: 6px;
}

.demo-replay {
  display: inline-flex;
  justify-self: end;
  padding: 8px 10px;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 620;
}

.demo-replay:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

.demo-replay svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.demo-window {
  display: grid;
  min-height: 560px;
  background: var(--bg-elevated);
  grid-template-columns: 176px minmax(0, 1fr);
}

.demo-sidebar {
  display: flex;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-subtle) 64%, transparent);
  flex-direction: column;
  gap: 6px;
}

.demo-logo {
  height: 52px;
  padding-left: 10px;
}

.mini-mark {
  display: block;
  width: 24px;
  height: 21px;
  background: var(--text);
  -webkit-mask: url("/assets/snipboard-mark.svg") center / contain no-repeat;
  mask: url("/assets/snipboard-mark.svg") center / contain no-repeat;
}

.demo-nav-item {
  display: flex;
  height: 38px;
  padding-inline: 10px;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 560;
}

.demo-nav-item.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.demo-nav-item.muted {
  opacity: 0.6;
}

.demo-nav-icon {
  width: 16px;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

.demo-nav-spacer {
  flex: 1;
}

.demo-canvas {
  min-width: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg-elevated);
  background-size: 34px 34px;
}

.demo-canvas-header {
  display: flex;
  height: 82px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
}

.demo-canvas-header div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-canvas-header small {
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.demo-canvas-header strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.demo-capture-button {
  display: flex;
  height: 32px;
  padding-inline: 12px;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-text);
  font-size: 10px;
  font-weight: 680;
}

.demo-workspace {
  position: relative;
  height: 478px;
  overflow: hidden;
}

.source-window {
  position: absolute;
  z-index: 2;
  top: 52px;
  left: 7%;
  width: 42%;
  height: 326px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: opacity 500ms ease, transform 600ms cubic-bezier(.2, .8, .2, 1);
}

.source-chrome {
  display: flex;
  height: 29px;
  padding-inline: 11px;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}

.source-chrome span {
  width: 6px;
  height: 6px;
}

.source-content {
  position: relative;
  display: flex;
  height: calc(100% - 29px);
  padding: 28px;
  flex-direction: column;
  gap: 10px;
}

.source-kicker,
.source-title,
.source-line {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.source-kicker {
  width: 28%;
  height: 5px;
}

.source-title {
  width: 78%;
  height: 12px;
  background: var(--text-soft);
  opacity: 0.62;
}

.source-title.short {
  width: 54%;
}

.source-image {
  position: relative;
  height: 110px;
  margin-block: 7px 3px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-subtle);
}

.source-sun,
.thumb-sun {
  position: absolute;
  top: 22%;
  right: 18%;
  width: 23px;
  height: 23px;
  border: 1px solid var(--text-faint);
  border-radius: 999px;
}

.source-hill,
.thumb-hill {
  position: absolute;
  bottom: -24%;
  left: -6%;
  width: 72%;
  height: 70%;
  border: 1px solid var(--text-faint);
  border-radius: 50% 55% 0 0;
  transform: rotate(12deg);
}

.source-hill.hill-two {
  right: -7%;
  left: auto;
  transform: rotate(-12deg);
}

.source-line {
  width: 84%;
  height: 5px;
}

.source-line.short {
  width: 64%;
}

.selection-region {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 61px;
  width: 58%;
  height: 126px;
  border: 1px dashed var(--text);
  background: color-mix(in srgb, var(--surface) 8%, transparent);
  transition: opacity 320ms ease, transform 450ms ease;
}

.selection-region i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--text);
}

.selection-region i:nth-child(1) { top: -4px; left: -4px; }
.selection-region i:nth-child(2) { top: -4px; right: -4px; }
.selection-region i:nth-child(3) { right: -4px; bottom: -4px; }
.selection-region i:nth-child(4) { bottom: -4px; left: -4px; }

.selection-region span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--text);
  color: var(--bg);
  font-size: 8px;
  font-style: normal;
  font-weight: 680;
}

.capture-tray-card {
  position: absolute;
  z-index: 3;
  top: 54px;
  right: 7%;
  width: 35%;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translate(38px, -8px) scale(0.94);
  transition: opacity 380ms ease, transform 600ms cubic-bezier(.16, 1, .3, 1);
}

.snip-thumbnail {
  position: relative;
  height: 104px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-subtle);
}

.thumb-sun {
  width: 18px;
  height: 18px;
}

.thumb-hill {
  left: 8%;
  width: 80%;
}

.snip-arrow {
  position: absolute;
  top: 35%;
  left: 15%;
  width: 62%;
  fill: none;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 700ms 250ms ease;
}

.snip-meta {
  display: flex;
  padding: 10px 3px 1px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.snip-meta strong {
  font-size: 10px;
}

.snip-meta span {
  color: var(--text-faint);
  font-size: 8px;
}

.connection-line {
  position: absolute;
  z-index: 1;
  right: 12%;
  bottom: 38px;
  width: 43%;
  height: 195px;
  overflow: visible;
  fill: none;
  opacity: 0;
  stroke: var(--text-faint);
  stroke-width: 1.4;
  transition: opacity 300ms ease;
}

.connection-line path {
  stroke-dasharray: 430;
  stroke-dashoffset: 430;
  transition: stroke-dashoffset 900ms 250ms ease;
}

.thought-card {
  position: absolute;
  z-index: 4;
  right: 7%;
  bottom: 46px;
  width: 37%;
  min-height: 142px;
  padding: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 400ms ease, transform 600ms cubic-bezier(.16, 1, .3, 1);
}

.thought-kind,
.today-label {
  display: block;
  margin-bottom: 9px;
  color: var(--text-faint);
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.15em;
}

.thought-card strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.thought-card p {
  margin: 11px 0 0;
  color: var(--text-soft);
  font-size: 9px;
}

.today-card {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: min(530px, 76%);
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, -40%) scale(0.92);
  transition: opacity 450ms ease, transform 650ms cubic-bezier(.16, 1, .3, 1);
}

.today-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.today-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--surface-subtle);
  font-size: 16px;
  place-items: center;
}

.today-content div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.today-content strong {
  font-size: 13px;
  letter-spacing: -0.02em;
}

.today-content small {
  color: var(--text-faint);
  font-size: 9px;
}

.demo-cursor {
  position: absolute;
  z-index: 10;
  top: 62%;
  left: 37%;
  width: 20px;
  height: 25px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  pointer-events: none;
  transition: top 900ms cubic-bezier(.2, .8, .2, 1), left 900ms cubic-bezier(.2, .8, .2, 1), opacity 250ms ease;
}

.demo-cursor::before {
  content: "";
  position: absolute;
  border-width: 11px 0 0 17px;
  border-style: solid;
  border-color: transparent transparent transparent var(--text);
  transform: rotate(-23deg);
  transform-origin: 0 0;
}

.demo-cursor span {
  position: absolute;
  top: 15px;
  left: 12px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--text);
  border-radius: 50%;
  opacity: 0;
}

.demo-shell[data-step="1"] .selection-region,
.demo-shell[data-step="2"] .selection-region,
.demo-shell[data-step="3"] .selection-region {
  opacity: 0;
  transform: scale(0.88);
}

.demo-shell[data-step="1"] .capture-tray-card,
.demo-shell[data-step="2"] .capture-tray-card,
.demo-shell[data-step="3"] .capture-tray-card {
  opacity: 1;
  transform: translate(0) scale(1);
}

.demo-shell[data-step="1"] .snip-arrow,
.demo-shell[data-step="2"] .snip-arrow,
.demo-shell[data-step="3"] .snip-arrow {
  stroke-dashoffset: 0;
}

.demo-shell[data-step="2"] .thought-card,
.demo-shell[data-step="3"] .thought-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-shell[data-step="2"] .connection-line,
.demo-shell[data-step="3"] .connection-line {
  opacity: 1;
}

.demo-shell[data-step="2"] .connection-line path,
.demo-shell[data-step="3"] .connection-line path {
  stroke-dashoffset: 0;
}

.demo-shell[data-step="1"] .demo-cursor { top: 33%; left: 77%; }
.demo-shell[data-step="2"] .demo-cursor { top: 78%; left: 76%; }
.demo-shell[data-step="3"] .demo-cursor { top: 61%; left: 68%; }

.demo-shell[data-step="1"] .demo-cursor span,
.demo-shell[data-step="2"] .demo-cursor span,
.demo-shell[data-step="3"] .demo-cursor span {
  opacity: 0.35;
  animation: cursor-click 600ms 700ms ease both;
}

.demo-shell[data-step="3"] .source-window,
.demo-shell[data-step="3"] .capture-tray-card,
.demo-shell[data-step="3"] .thought-card,
.demo-shell[data-step="3"] .connection-line {
  opacity: 0.16;
  transform: scale(0.94);
}

.demo-shell[data-step="3"] .today-card {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@keyframes cursor-click {
  0%, 100% { transform: scale(0.4); opacity: 0; }
  35% { transform: scale(1.3); opacity: 0.4; }
}

/* Faithful, code-native miniatures of the shipping SwiftUI interface. */
.demo-window {
  position: relative;
  display: block;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg-elevated);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.app-scene {
  position: absolute;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  background: var(--bg-elevated);
  inset: 0;
  transform: translateX(12px) scale(0.995);
  transition: visibility 0s linear 360ms, opacity 260ms ease, transform 460ms cubic-bezier(.2, .8, .2, 1);
}

.demo-shell[data-step="0"] .scene-capture,
.demo-shell[data-step="1"] .scene-annotate,
.demo-shell[data-step="2"] .scene-board,
.demo-shell[data-step="3"] .scene-today {
  visibility: visible;
  z-index: 2;
  opacity: 1;
  transform: translateX(0) scale(1);
  transition-delay: 0s;
}

.capture-desktop {
  position: relative;
  height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 25%, color-mix(in srgb, var(--surface-strong) 58%, transparent), transparent 26%),
    linear-gradient(145deg, var(--surface-subtle), var(--bg-elevated) 52%, var(--surface-strong));
}

.capture-menubar {
  position: relative;
  z-index: 2;
  display: grid;
  height: 32px;
  padding-inline: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text-soft);
  font-size: 9px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  backdrop-filter: blur(20px);
}

.capture-menubar strong { color: var(--text); font-size: 10px; text-align: center; }
.capture-menubar span:last-child { justify-self: end; font-weight: 650; }

.capture-source-card {
  position: absolute;
  top: 95px;
  left: 50%;
  width: min(610px, 67%);
  min-height: 350px;
  padding: 45px 48px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
}

.capture-source-kicker {
  display: block;
  margin-bottom: 15px;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.capture-source-card > strong,
.annotated-capture > strong {
  display: block;
  max-width: 390px;
  font-size: 25px;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.capture-source-card > p,
.annotated-capture > p {
  max-width: 400px;
  margin: 12px 0 25px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.capture-source-image,
.card-art {
  position: relative;
  overflow: hidden;
  background: var(--surface-subtle);
}

.capture-source-image {
  height: 128px;
  border-radius: 8px;
}

.capture-source-image i,
.card-art i,
.tray-snip i {
  position: absolute;
  top: 21%;
  right: 17%;
  width: 20px;
  height: 20px;
  border: 1px solid var(--text-faint);
  border-radius: 50%;
}

.capture-source-image b,
.card-art b,
.tray-snip b {
  position: absolute;
  bottom: -42%;
  left: -8%;
  width: 72%;
  height: 92%;
  border: 1px solid var(--text-faint);
  border-radius: 52% 52% 0 0;
  transform: rotate(10deg);
}

.capture-source-image b:last-child,
.card-art b:last-of-type,
.tray-snip b:last-of-type {
  right: -9%;
  left: auto;
  transform: rotate(-11deg);
}

.region-mask { display: none; }

.region-selection {
  position: absolute;
  z-index: 4;
  top: 176px;
  left: 38%;
  width: 37%;
  height: 212px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1000px rgba(10, 10, 10, 0.52);
  animation: none;
}

.demo-shell[data-step="0"] .region-selection {
  animation: region-settle 700ms cubic-bezier(.2, .8, .2, 1) both;
}

.region-selection i {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(0, 0, 0, 0.65);
  border-radius: 1px;
  background: #fff;
}

.region-selection i:nth-child(1) { top: -4px; left: -4px; }
.region-selection i:nth-child(2) { top: -4px; right: -4px; }
.region-selection i:nth-child(3) { right: -4px; bottom: -4px; }
.region-selection i:nth-child(4) { bottom: -4px; left: -4px; }

.region-selection > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(18, 18, 18, 0.88);
  color: #fff;
  font-size: 8px;
  font-weight: 620;
}

.capture-instruction {
  position: absolute;
  z-index: 5;
  bottom: 22px;
  left: 50%;
  display: flex;
  min-width: 220px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(20, 20, 20, 0.84);
  color: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
  align-items: center;
  gap: 11px;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.capture-instruction div { display: flex; flex-direction: column; }
.capture-instruction strong { font-size: 11px; }
.capture-instruction small { color: rgba(255, 255, 255, 0.62); font-size: 8px; }

.viewfinder-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-block-width: 0;
  border-radius: 2px;
}

.viewfinder-icon::before,
.viewfinder-icon::after {
  position: absolute;
  left: 2px;
  width: 9px;
  height: 3px;
  border: 1.5px solid currentColor;
  content: "";
}
.viewfinder-icon::before { top: 0; border-bottom: 0; }
.viewfinder-icon::after { bottom: 0; border-top: 0; }

@keyframes region-settle {
  from { opacity: 0.5; transform: translate(-24px, -18px) scale(0.72); }
  to { opacity: 1; transform: translate(0) scale(1); }
}

.scene-annotate {
  display: grid;
  grid-template-rows: 58px 1fr 62px;
}

.annotation-toolbar {
  display: flex;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  gap: 9px;
}

.annotation-tools {
  display: flex;
  padding: 3px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--text) 4.5%, transparent);
  align-items: center;
  gap: 2px;
}

.annotation-tools span {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  place-items: center;
}

.annotation-tools .is-active { background: color-mix(in srgb, var(--text) 12%, transparent); }
.native-divider { width: 1px; height: 24px; background: var(--line); }
.annotation-toolbar > small { color: var(--text-soft); font-size: 10px; white-space: nowrap; }

.annotation-swatches { display: flex; align-items: center; gap: 8px; }
.annotation-swatches i { width: 16px; height: 16px; border: 1px solid rgba(100,100,100,.28); border-radius: 50%; }
.annotation-swatches .coral { background: #f54a45; }
.annotation-swatches .yellow { background: rgba(255, 199, 31, .65); }
.annotation-swatches .white { background: #fff; }
.annotation-swatches .black { background: #0d0d0d; }
.annotation-swatches .custom { background: conic-gradient(#ed5753, #eed765, #72b48b, #6b8ed6, #b66cc9, #ed5753); }
.annotation-swatches .is-selected { outline: 2px solid var(--text); outline-offset: 2px; }
.lineweight, .undo-controls { color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.width-slider { position: relative; width: 68px; height: 3px; border-radius: 9px; background: var(--surface-strong); }
.width-slider i { position: absolute; top: 50%; left: 28%; width: 9px; height: 9px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); transform: translate(-50%, -50%); }
.toolbar-spacer { flex: 1; }

.annotation-stage {
  display: grid;
  min-height: 0;
  padding: 36px;
  background: var(--bg-elevated);
  place-items: center;
}

.annotated-capture {
  position: relative;
  width: min(670px, 82%);
  height: 368px;
  overflow: hidden;
  padding: 38px 42px;
  background: var(--surface);
  box-shadow: 0 13px 42px rgba(0, 0, 0, .13);
}

.annotated-capture .capture-source-image { position: absolute; right: 42px; bottom: 38px; left: 42px; height: 132px; }
.annotation-arrow { position: absolute; right: 105px; bottom: 55px; width: 180px; fill: none; stroke: #f54a45; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.annotation-arrow path { stroke-dasharray: 230; }
.demo-shell[data-step="1"] .annotation-arrow path { animation: draw-annotation 900ms 300ms ease both; }
.annotation-text { position: absolute; right: 115px; bottom: 165px; color: #f54a45; font-size: 15px; font-weight: 700; }
@keyframes draw-annotation { from { stroke-dashoffset: 230; } to { stroke-dashoffset: 0; } }

.capture-review-bar {
  display: flex;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  align-items: center;
  gap: 10px;
}
.capture-review-bar > span:first-child { color: var(--text-soft); }
.context-placeholder { flex: 1; color: var(--text-faint); font-size: 11px; }
.capture-review-bar button { padding: 7px 12px; border-radius: 7px; background: var(--surface-subtle); color: var(--text); font-size: 10px; }
.capture-review-bar .native-primary { background: var(--button); color: var(--button-text); font-weight: 650; }

.native-titlebar {
  display: flex;
  height: 46px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
}

.native-title-actions { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 11px; }
.native-title-actions > span { display: grid; width: 27px; height: 27px; border-radius: 6px; place-items: center; }
.native-title-actions strong { display: flex; height: 28px; padding-inline: 10px; border-radius: 7px; background: var(--button); color: var(--button-text); align-items: center; gap: 7px; font-size: 9px; }
.native-title-actions .viewfinder-icon { width: 12px; height: 12px; }

.native-app-body { display: grid; height: 514px; grid-template-columns: 174px minmax(0, 1fr); }
.native-sidebar { display: flex; min-width: 0; padding: 20px 12px 14px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-subtle) 67%, transparent); flex-direction: column; gap: 3px; }
.native-sidebar > b { margin: 0 8px 16px; font-size: 14px; letter-spacing: -0.025em; }
.native-sidebar > span { display: flex; min-height: 31px; padding: 0 9px; border-radius: 6px; color: var(--text-soft); font-size: 10px; font-weight: 560; align-items: center; gap: 8px; }
.native-sidebar > span.is-active { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.native-sidebar i { width: 14px; color: var(--text-faint); font-style: normal; text-align: center; }
.native-sidebar em { margin-left: auto; padding: 1px 5px; border-radius: 8px; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-faint); font-size: 8px; font-style: normal; }
.native-sidebar hr { width: 100%; margin: 9px 0; border: 0; border-top: 1px solid var(--line); }

.board-detail,
.today-detail { min-width: 0; background: var(--bg-elevated); }

.board-heading { height: 94px; padding: 17px 26px 14px; }
.board-heading > div { display: flex; align-items: center; gap: 10px; }
.board-heading > div strong { font-size: 20px; letter-spacing: -0.035em; }
.board-heading > div span { color: var(--text-faint); font-size: 10px; }
.board-heading p { margin: 9px 0 0; font-size: 14px; font-weight: 620; }
.board-heading p i { margin-right: 7px; color: var(--text-soft); font-style: normal; }

.native-capture-tray { height: 146px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tray-heading { display: flex; height: 28px; padding-inline: 26px; align-items: center; justify-content: space-between; }
.tray-heading b { font-size: 10px; }
.tray-heading span { display: grid; width: 22px; height: 22px; border-radius: 6px; color: var(--text-soft); background: color-mix(in srgb, var(--text) 5%, transparent); place-items: center; }
.tray-items { display: flex; padding: 5px 26px; gap: 10px; }
.tray-snip { position: relative; width: 142px; height: 88px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.source-art-two { background-color: color-mix(in srgb, var(--surface-subtle) 82%, var(--surface)); }
.source-art-two::after { position: absolute; top: 20%; left: 13%; width: 48%; height: 7px; border-radius: 5px; background: var(--text-faint); box-shadow: 0 15px 0 var(--surface-strong), 0 30px 0 var(--surface-strong); content: ""; opacity: .52; }
.source-art-three { background-color: color-mix(in srgb, var(--surface-strong) 58%, var(--surface)); }
.source-art-three::after { position: absolute; inset: 18% 14%; border: 1px solid var(--text-faint); border-radius: 6px; content: ""; opacity: .55; }

.board-canvas-grid {
  position: relative;
  height: 274px;
  overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg-elevated);
  background-size: 28px 28px;
}

.native-card { position: absolute; z-index: 2; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.native-card.is-selected { border: 2px solid var(--text); }
.native-card header { display: flex; height: 30px; padding: 0 10px; color: var(--text-soft); font-size: 8px; align-items: center; justify-content: space-between; }
.native-card time { color: var(--text-faint); }
.native-card > p { margin: 0; padding: 9px 11px; font-size: 10px; line-height: 1.35; }
.snip-card { top: 28px; left: 8%; width: 214px; height: 194px; }
.snip-card .card-art { height: 116px; border-block: 1px solid var(--line); }
.snip-card .card-art svg { position: absolute; inset: 18px 25px; width: 68%; fill: none; stroke: var(--text); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.thought-card-native { top: 60px; left: 55%; width: 218px; min-height: 148px; }
.thought-card-native p strong { font-size: 11px; }
.native-connection { position: absolute; z-index: 1; top: 3px; left: 10%; width: 57%; height: 220px; overflow: visible; fill: none; stroke: var(--text-faint); stroke-width: 1.2; }
.native-connection path { stroke-dasharray: 600; }
.demo-shell[data-step="2"] .native-connection path { animation: native-connect 800ms 250ms ease both; }
@keyframes native-connect { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }

.selection-palette { position: absolute; z-index: 4; bottom: 12px; left: 50%; display: flex; padding: 5px; border: 1px solid var(--line-strong); border-radius: 10px; background: color-mix(in srgb, var(--surface) 86%, transparent); box-shadow: 0 7px 25px rgba(0,0,0,.14); align-items: center; gap: 2px; transform: translateX(-50%); backdrop-filter: blur(16px); }
.selection-palette span { display: grid; width: 26px; height: 25px; border-radius: 6px; color: var(--text-soft); font-size: 9px; place-items: center; }
.selection-palette i { width: 1px; height: 18px; margin-inline: 3px; background: var(--line); }

.today-detail { overflow: auto; padding: 25px 30px 34px; }
.today-detail > section { max-width: 760px; margin-bottom: 24px; }
.today-detail section > header { display: flex; margin-bottom: 9px; flex-direction: column; gap: 2px; }
.today-detail section > header b { font-size: 11px; }
.today-detail section > header small { color: var(--text-soft); font-size: 8px; }
.continue-card { position: relative; display: flex; min-height: 108px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-subtle); flex-direction: column; justify-content: center; gap: 8px; }
.continue-card > span { font-size: 9px; font-weight: 650; }
.continue-card strong { font-size: 16px; letter-spacing: -0.025em; }
.continue-card small { color: var(--text-faint); font-size: 8px; }
.continue-card i { position: absolute; right: 17px; color: var(--text-soft); font-style: normal; }
.needs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 230px)); gap: 10px; }
.compact-snip { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.compact-snip .card-art { height: 70px; border-bottom: 1px solid var(--line); }
.compact-snip > span, .compact-snip > strong, .compact-snip > small { display: block; margin-inline: 10px; }
.compact-snip > span { margin-top: 8px; color: var(--text-soft); font-size: 7px; }
.compact-snip > strong { margin-top: 5px; font-size: 9px; }
.compact-snip > small { margin-block: 5px 10px; color: var(--text-faint); font-size: 7px; }
.rediscover-card { position: relative; max-width: 520px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
.rediscover-card > span { display: inline-block; margin-bottom: 7px; padding: 2px 5px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text-soft); font-size: 7px; }
.rediscover-card > strong { display: block; padding-right: 24px; font-size: 10px; }
.rediscover-card > small { display: inline-block; margin-top: 8px; color: var(--text-faint); font-size: 7px; }
.rediscover-card > time { position: absolute; right: 12px; bottom: 12px; color: var(--text-faint); font-size: 7px; }

.demo-shell[data-step="2"] .scene-board .native-capture-tray,
.demo-shell[data-step="2"] .scene-board .native-card,
.demo-shell[data-step="3"] .scene-today .today-detail > section { animation: native-land 500ms cubic-bezier(.2, .8, .2, 1) both; }
.demo-shell[data-step="2"] .scene-board .native-card { animation-delay: 180ms; }
.demo-shell[data-step="3"] .scene-today .today-detail > section:nth-child(2) { animation-delay: 100ms; }
.demo-shell[data-step="3"] .scene-today .today-detail > section:nth-child(3) { animation-delay: 180ms; }
@keyframes native-land { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

.demo-steps {
  display: grid;
  border-top: 1px solid var(--line);
  background: var(--surface);
  grid-template-columns: repeat(4, 1fr);
}

.demo-steps button {
  position: relative;
  display: grid;
  min-height: 94px;
  padding: 18px 20px 18px 54px;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  text-align: left;
  grid-template-rows: auto auto;
  transition: background 180ms ease, color 180ms ease;
}

.demo-steps button:last-child {
  border-right: 0;
}

.demo-steps button:hover {
  background: var(--surface-subtle);
}

.demo-steps button[aria-pressed="true"] {
  background: var(--surface-subtle);
  color: var(--text);
}

.demo-steps button > span {
  position: absolute;
  top: 21px;
  left: 20px;
  display: grid;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  place-items: center;
}

.demo-steps button[aria-pressed="true"] > span {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.demo-steps strong {
  font-size: 12px;
  letter-spacing: -0.01em;
}

.demo-steps small {
  color: var(--text-faint);
  font-size: 9px;
}

/* Value cards */
.value-section {
  padding-block: 130px;
}

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

.value-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.value-card-wide {
  display: grid;
  min-height: 540px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.75fr) minmax(380px, 1.25fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
}

.value-copy {
  max-width: 420px;
}

.value-card p {
  margin: 0;
  color: var(--text-soft);
}

.feature-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  place-items: center;
}

kbd {
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82em;
  font-weight: 650;
}

.illustration-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f5f5f2;
}

.illustration-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-visual {
  height: 430px;
}

.connection-mini {
  position: relative;
  width: 100%;
  height: 130px;
  margin: 10px 0 35px;
}

.connection-mini span {
  position: absolute;
  top: 24px;
  width: 108px;
  height: 74px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-subtle);
  box-shadow: var(--shadow-sm);
}

.connection-mini span:first-child { left: 8%; transform: rotate(-4deg); }
.connection-mini span:last-child { right: 8%; top: 44px; transform: rotate(4deg); }

.connection-mini i {
  position: absolute;
  top: 62px;
  left: 29%;
  width: 43%;
  height: 42px;
  border-top: 1px solid var(--text-faint);
  border-radius: 50%;
  transform: rotate(8deg);
}

.today-mini {
  display: flex;
  min-height: 130px;
  margin: 10px 0 35px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-subtle);
  flex-direction: column;
  justify-content: center;
}

.today-mini small {
  margin-bottom: 14px;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.14em;
}

.today-mini strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.today-mini span {
  color: var(--text-soft);
  font-size: 10px;
}

/* Product feature visuals mirror the corresponding native SwiftUI screens. */
.native-feature-window {
  display: grid;
  height: 430px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  grid-template-rows: 36px 45px 1fr 48px;
}

.feature-titlebar {
  position: relative;
  display: flex;
  padding-inline: 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  align-items: center;
}
.feature-titlebar .window-dots { transform: scale(.72); transform-origin: left center; }
.feature-titlebar > b { position: absolute; left: 50%; color: var(--text-soft); font-size: 8px; transform: translateX(-50%); }

.feature-annotation-tools {
  display: flex;
  min-width: 0;
  padding-inline: 10px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 3px;
}
.feature-annotation-tools > span { display: grid; width: 27px; height: 27px; border-radius: 6px; font-size: 9px; place-items: center; }
.feature-annotation-tools > span.is-active { background: color-mix(in srgb, var(--text) 11%, transparent); }
.feature-annotation-tools > i { width: 1px; height: 20px; margin-inline: 6px; background: var(--line); }
.feature-annotation-tools > small { margin-right: 4px; color: var(--text-soft); font-size: 8px; }
.feature-annotation-tools > b { width: 12px; height: 12px; margin-inline: 3px; border: 1px solid rgba(110,110,110,.25); border-radius: 50%; }
.coral-dot { background: #f54a45; outline: 1.5px solid var(--text); outline-offset: 2px; }
.yellow-dot { background: rgba(255,199,31,.65); }
.white-dot { background: #fff; }
.black-dot { background: #0d0d0d; }

.feature-capture-stage { display: grid; min-height: 0; padding: 22px 32px; background: var(--bg-elevated); place-items: center; }
.feature-capture-paper { position: relative; width: 92%; height: 100%; overflow: hidden; padding: 23px 26px; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.feature-capture-paper > span { display: block; margin-bottom: 8px; color: var(--text-faint); font-size: 6px; font-weight: 750; letter-spacing: .14em; }
.feature-capture-paper > strong { display: block; font-size: 14px; letter-spacing: -.03em; }
.feature-capture-paper > p { margin: 6px 0 0; color: var(--text-soft); font-size: 8px; }
.feature-paper-art { position: absolute; right: 25px; bottom: 20px; left: 25px; height: 78px; overflow: hidden; border-radius: 5px; background: var(--surface-subtle); }
.feature-paper-art::before { position: absolute; top: 18%; right: 17%; width: 13px; height: 13px; border: 1px solid var(--text-faint); border-radius: 50%; content: ""; }
.feature-paper-art::after { position: absolute; bottom: -48%; left: -4%; width: 70%; height: 95%; border: 1px solid var(--text-faint); border-radius: 50%; box-shadow: 135px -3px 0 -1px var(--surface-subtle), 135px -3px 0 0 var(--text-faint); content: ""; transform: rotate(8deg); }
.feature-capture-paper svg { position: absolute; z-index: 2; right: 40px; bottom: 25px; width: 36%; fill: none; stroke: #f54a45; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }

.feature-context-bar { display: flex; padding: 9px 11px; border-top: 1px solid var(--line); background: var(--surface); align-items: center; gap: 7px; }
.feature-context-bar > span { flex: 1; color: var(--text-faint); font-size: 8px; }
.feature-context-bar button { padding: 6px 9px; border-radius: 6px; background: var(--surface-subtle); color: var(--text); font-size: 8px; }
.feature-context-bar .native-primary { background: var(--button); color: var(--button-text); }

.board-feature-mini {
  height: 154px;
  margin: 3px 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.board-feature-mini > header { display: flex; height: 38px; padding-inline: 12px; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; }
.board-feature-mini > header span { font-size: 9px; font-weight: 650; }
.board-feature-mini > header b { color: var(--text-soft); font-size: 7px; }
.mini-grid { position: relative; height: 116px; overflow: hidden; background: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px), var(--bg-elevated); background-size: 19px 19px; }
.mini-grid > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--text-faint); stroke-width: 1; }
.mini-grid article { position: absolute; z-index: 2; top: 16px; width: 116px; height: 78px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); }
.mini-grid article > small { display: block; padding: 6px 7px; color: var(--text-soft); font-size: 6px; }
.mini-snip { left: 7%; }
.mini-snip .feature-paper-art { position: relative; right: auto; bottom: auto; left: auto; height: 52px; border-radius: 0; }
.mini-thought { right: 7%; padding: 0 8px; }
.mini-thought strong { display: block; font-size: 8px; }
.mini-thought p { margin: 4px 0; color: var(--text-soft); font-size: 7px; }
.mini-grid > aside { position: absolute; z-index: 4; bottom: 6px; left: 50%; display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: color-mix(in srgb, var(--surface) 85%, transparent); box-shadow: 0 5px 14px rgba(0,0,0,.12); transform: translateX(-50%); backdrop-filter: blur(12px); }
.mini-grid > aside span { display: grid; width: 20px; height: 18px; color: var(--text-soft); font-size: 6px; place-items: center; }

.today-feature-mini { min-height: 154px; margin: 3px 0 28px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elevated); }
.today-feature-mini > header { display: flex; margin: 0 0 6px; flex-direction: column; }
.today-feature-mini > header b { font-size: 8px; }
.today-feature-mini > header small { color: var(--text-soft); font-size: 6px; }
.today-feature-mini > article { position: relative; display: flex; min-height: 64px; margin-bottom: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); flex-direction: column; gap: 3px; }
.today-feature-mini > article span { font-size: 6px; }
.today-feature-mini > article strong { font-size: 9px; }
.today-feature-mini > article small { color: var(--text-faint); font-size: 6px; }
.today-feature-mini > article i { position: absolute; right: 10px; top: 50%; font-style: normal; transform: translateY(-50%); }
.today-feature-mini > div { position: relative; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.today-feature-mini > div span { display: inline-block; margin-right: 6px; padding: 1px 3px; border: 1px solid var(--line); border-radius: 3px; color: var(--text-soft); font-size: 5px; }
.today-feature-mini > div strong { font-size: 7px; }
.today-feature-mini > div small { position: absolute; right: 7px; color: var(--text-faint); font-size: 5px; }

.intelligence-window {
  display: flex;
  aspect-ratio: 1.08;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  gap: 18px;
}
.intelligence-window > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.intelligence-window > header strong { font-size: 15px; }
.intelligence-window > header span { padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--text-soft); font-size: 8px; }
.intelligence-window > label { display: flex; color: var(--text-soft); font-size: 9px; align-items: center; gap: 9px; }
.intelligence-window > label b { flex: 1; padding: 8px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 9px; }
.intelligence-window > article { flex: 1; padding: 15px; border: 1px dashed var(--text-soft); border-radius: 11px; background: var(--surface); }
.intelligence-window > article > header { display: flex; align-items: center; justify-content: space-between; }
.intelligence-window > article > header span { padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 7px; }
.intelligence-window > article > header small { color: var(--text-faint); font-size: 6px; }
.intelligence-window > article p { margin: 22px 0 0; color: var(--text-soft); font-size: 11px; line-height: 1.55; }
.intelligence-window > article p strong { color: var(--text); }
.intelligence-window > footer { display: flex; color: var(--text-soft); font-size: 8px; align-items: center; gap: 10px; }
.intelligence-window > footer small { flex: 1; }
.intelligence-window > footer span, .intelligence-window > footer b { padding: 6px 8px; border-radius: 6px; background: var(--surface-subtle); font-size: 7px; white-space: nowrap; }
.intelligence-window > footer b { background: var(--button); color: var(--button-text); }

/* Principles */
.principles-section {
  padding-block: 140px;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.principles-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.principles-visual {
  aspect-ratio: 1.08;
  box-shadow: var(--shadow-sm);
}

.principles-copy h2 {
  font-size: clamp(2.7rem, 5vw, 5.1rem);
}

.principles-lede {
  margin: 0 0 34px;
  color: var(--text-soft);
  font-size: 18px;
}

.principle-list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.principle-list li {
  display: grid;
  padding-block: 19px;
  border-top: 1px solid var(--line);
  grid-template-columns: 42px 1fr;
}

.principle-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.principle-list > li > span {
  padding-top: 2px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
}

.principle-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.principle-list p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 650;
  transition: border-color 160ms ease;
}

.text-link:hover {
  border-color: var(--text);
}

/* Mac section */
.mac-section {
  padding-block: 140px;
}

.mac-card {
  display: grid;
  min-height: 610px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  grid-template-columns: minmax(320px, 0.8fr) minmax(460px, 1.2fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.mac-copy {
  position: relative;
  z-index: 2;
}

.mac-copy h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.7rem);
}

.mac-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
}

.shortcut-row {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 12px;
}

.shortcut-row > div {
  display: flex;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  gap: 4px;
}

.shortcut-row kbd {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 10px;
  place-items: center;
}

.shortcut-row span {
  margin-left: 6px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 650;
}

.mac-window-visual {
  min-width: 610px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg) translateX(5%);
}

.mac-titlebar {
  position: relative;
  display: flex;
  height: 42px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 6px;
}

.mac-titlebar > span {
  width: 7px;
  height: 7px;
}

.mac-titlebar strong {
  position: absolute;
  left: 50%;
  color: var(--text-soft);
  font-size: 9px;
  transform: translateX(-50%);
}

.mac-window-body {
  display: grid;
  height: 350px;
  grid-template-columns: 122px 1fr;
}

.mac-window-body aside {
  display: flex;
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface-subtle);
  flex-direction: column;
  gap: 13px;
}

.mac-window-body aside i {
  width: 76%;
  height: 7px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.mac-window-body .mac-window-content {
  padding: 34px;
}

.mac-window-body .mac-window-content > small {
  display: block;
  margin: 0 0 13px;
  color: var(--text-faint);
  font-size: 7px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.mac-focus,
.mac-rediscover {
  display: flex;
  margin-bottom: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: space-between;
}

.mac-focus span {
  font-size: 15px;
  font-weight: 650;
}

.mac-rediscover b {
  font-size: 12px;
}

.mac-rediscover span {
  color: var(--text-faint);
  font-size: 8px;
}

.mac-titlebar > div {
  display: flex;
  margin-left: auto;
  color: var(--text-soft);
  align-items: center;
  gap: 7px;
}
.mac-titlebar > div > i { display: grid; width: 24px; height: 24px; font-size: 8px; font-style: normal; place-items: center; }
.mac-titlebar > div > b { display: flex; height: 25px; padding-inline: 9px; border-radius: 6px; background: var(--button); color: var(--button-text); font-size: 7px; align-items: center; gap: 5px; }
.mac-titlebar .viewfinder-icon { width: 10px; height: 10px; }
.mac-window-body { height: 420px; grid-template-columns: 135px 1fr; }
.mac-window-body aside { padding: 18px 10px; gap: 2px; }
.mac-window-body aside > b { margin: 0 7px 12px; font-size: 11px; }
.mac-window-body aside > span { display: flex; min-height: 26px; padding: 0 7px; border-radius: 5px; color: var(--text-soft); font-size: 8px; align-items: center; }
.mac-window-body aside > span.is-active { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.mac-window-body aside > span i { width: auto; height: auto; margin-left: auto; border-radius: 7px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text-faint); font-size: 6px; font-style: normal; }
.mac-window-body aside hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.mac-window-body .mac-window-content { overflow: hidden; padding: 24px 27px; }
.mac-window-content > header { display: flex; margin: 0 0 8px; flex-direction: column; }
.mac-window-content > header b { font-size: 9px; }
.mac-window-content > header small { color: var(--text-soft); font-size: 6px; }
.mac-focus { min-height: 83px; margin-bottom: 16px; padding: 13px; }
.mac-focus > div { display: flex; flex-direction: column; gap: 5px; }
.mac-focus div small { color: var(--text-soft); font-size: 6px; }
.mac-focus div span { font-size: 12px; }
.mac-focus div em { color: var(--text-faint); font-size: 6px; font-style: normal; }
.mac-needs { display: grid; margin-bottom: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mac-needs article { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.mac-needs .feature-paper-art { position: relative; right: auto; bottom: auto; left: auto; height: 50px; border-radius: 0; }
.mac-needs .feature-paper-art.alternate { background: var(--surface-strong); }
.mac-needs article small, .mac-needs article b { display: block; margin-inline: 7px; }
.mac-needs article small { margin-top: 5px; color: var(--text-soft); font-size: 5px; }
.mac-needs article b { margin-block: 3px 7px; font-size: 7px; }
.mac-rediscover { min-height: auto; margin: 0; padding: 10px; }
.mac-rediscover b { max-width: 86%; font-size: 8px; }

.gallery-feature-toolbar {
  display: flex;
  height: 44px;
  padding-inline: 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  align-items: center;
  gap: 8px;
}
.gallery-feature-toolbar > span { display: grid; width: 20px; height: 20px; border-radius: 5px; font-size: 10px; place-items: center; }
.gallery-feature-toolbar > i { width: 1px; height: 17px; background: var(--line); }
.gallery-feature-toolbar > small { min-width: 34px; font-size: 6px; }
.gallery-feature-toolbar > b { flex: 1; color: var(--text); font-size: 8px; text-align: center; }
.gallery-feature-toolbar > div { display: flex; padding: 3px 5px; border: 1px solid var(--line); border-radius: 7px; background: color-mix(in srgb, var(--surface) 82%, transparent); align-items: center; gap: 5px; }
.gallery-feature-toolbar > div span { font-size: 8px; }
.gallery-feature-toolbar > div em { min-width: 28px; color: var(--text-soft); font-size: 6px; font-style: normal; text-align: center; }

.gallery-feature-body { display: grid; height: 382px; grid-template-columns: minmax(0, 1fr) 170px; }
.gallery-feature-stage { display: grid; min-width: 0; padding: 28px; background: var(--bg-elevated); place-items: center; }
.gallery-paper { position: relative; width: 92%; height: 284px; overflow: hidden; padding: 28px; background: var(--surface); box-shadow: 0 12px 34px rgba(0,0,0,.14); }
.gallery-paper > span { display: block; margin-bottom: 9px; color: var(--text-faint); font-size: 6px; font-weight: 750; letter-spacing: .14em; }
.gallery-paper > strong { display: block; font-size: 15px; letter-spacing: -.03em; }
.gallery-paper > p { margin: 7px 0; color: var(--text-soft); font-size: 7px; }
.gallery-paper .feature-paper-art { right: 28px; bottom: 27px; left: 28px; height: 104px; }
.gallery-paper > svg { position: absolute; z-index: 2; right: 39px; bottom: 31px; width: 42%; fill: none; stroke: #f54a45; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.gallery-feature-body > aside { padding: 17px; border-left: 1px solid var(--line); background: var(--surface); }
.gallery-feature-body > aside > strong { display: block; font-size: 9px; }
.gallery-feature-body > aside > small { display: block; margin-top: 4px; color: var(--text-soft); font-size: 6px; }
.gallery-feature-body > aside section { margin-top: 20px; }
.gallery-feature-body > aside section > b, .gallery-feature-body > aside > b { display: block; color: var(--text-soft); font-size: 7px; }
.gallery-feature-body > aside section p { margin: 7px 0 0; font-size: 7px; line-height: 1.45; }
.gallery-feature-body dl { display: grid; margin: 8px 0 19px; color: var(--text-soft); font-size: 6px; grid-template-columns: 1fr auto; row-gap: 7px; }
.gallery-feature-body dt, .gallery-feature-body dd { margin: 0; }
.gallery-feature-body dd { color: var(--text); text-align: right; }


/* FAQ */
.faq-section {
  padding-block: 120px 150px;
}

.faq-list {
  max-width: 880px;
  margin-inline: auto;
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  display: flex;
  min-height: 78px;
  padding: 20px 4px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--text-faint);
  font-size: 23px;
  font-weight: 350;
  transition: transform 200ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 720px;
  margin: -3px 0 26px;
  color: var(--text-soft);
  font-size: 15px;
}

/* Final CTA and footer */
.final-cta {
  padding-bottom: 120px;
}

.final-cta-card {
  display: flex;
  min-height: 650px;
  padding: 64px 24px;
  border-radius: var(--radius-lg);
  background: var(--text);
  color: var(--bg);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.final-cta-card .brand-mark {
  margin-bottom: 30px;
}

.final-cta-card .eyebrow {
  color: color-mix(in srgb, var(--bg) 62%, transparent);
}

.final-cta-card h2 {
  margin-bottom: 10px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.final-cta-card > p:not(.eyebrow):not(.checkout-status) {
  max-width: 660px;
  margin: 0 0 28px;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  font-size: 18px;
}

.price-lockup {
  display: flex;
  margin: 5px 0 20px;
  align-items: flex-end;
  gap: 12px;
}

.price-lockup strong {
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  font-weight: 680;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.price-lockup span {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
}

.license-facts {
  display: flex;
  margin: 0 0 28px;
  padding: 0;
  color: color-mix(in srgb, var(--bg) 78%, transparent);
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 20px;
  justify-content: center;
  list-style: none;
}

.license-facts li::before {
  margin-right: 7px;
  content: "✓";
}

.final-cta-card .button-primary {
  background: var(--bg);
  color: var(--text);
  box-shadow: none;
}

.final-cta-card small {
  margin-top: 15px;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  font-size: 10px;
}

.final-cta-card .checkout-status {
  max-width: 560px;
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--bg) 82%, transparent);
  font-size: 12px;
}

.final-cta-card .checkout-status:empty {
  margin-top: 0;
}

/* Purchase completion */
.purchase-success-page {
  background: var(--bg);
}

.purchase-success {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  padding: 72px 24px 100px;
  place-items: center;
}

.purchase-success-card {
  width: min(760px, 100%);
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.purchase-check {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-subtle);
  font-size: 20px;
  font-weight: 700;
  place-items: center;
}

.purchase-success-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 680;
}

.purchase-lede {
  max-width: 530px;
  margin: 0 auto 34px;
  color: var(--text-soft);
  font-size: 17px;
}

.license-delivery,
.license-missing {
  margin: 0 0 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  text-align: left;
}

.license-delivery label,
.license-missing strong {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
}

.license-key-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.license-key-row code {
  display: flex;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  flex: 1;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  user-select: all;
}

.license-key-row .button {
  min-height: 46px;
  white-space: nowrap;
}

.copy-status {
  min-height: 17px;
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 11px;
}

.license-missing p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.activation-steps {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  text-align: left;
}

.activation-steps li {
  display: flex;
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  gap: 12px;
}

.activation-steps li > span {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  place-items: center;
}

.activation-steps p {
  margin: 1px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.activation-steps strong {
  color: var(--text);
  font-size: 13px;
}

.purchase-actions {
  display: flex;
  margin-top: 30px;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.quiet-link {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.quiet-link:hover {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  padding-block: 68px;
  grid-template-columns: 1fr auto;
  gap: 80px;
}

.footer-brand p {
  max-width: 360px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 140px);
  gap: 28px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 10px;
  justify-content: space-between;
}

/* Legal, utility and error pages */
.legal-page {
  background: var(--bg);
}

.legal-main {
  width: min(760px, calc(100vw - 48px));
  margin-inline: auto;
  padding-block: 110px 140px;
}

.legal-hero {
  padding-block: 120px 68px;
  border-bottom: 1px solid var(--line-strong);
}

.legal-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 660;
}

.legal-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
}

.legal-intro {
  max-width: 700px;
}

.effective-date {
  margin-top: 22px !important;
  color: var(--text-faint) !important;
  font-size: 11px !important;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-meta {
  display: block;
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 11px;
}

.legal-content {
  padding-top: 48px;
}

.legal-layout {
  display: grid;
  padding-bottom: 140px;
  grid-template-columns: 190px minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(48px, 8vw, 110px);
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  height: max-content;
  margin-top: 52px;
}

.legal-toc .toc-title {
  margin: 0 0 15px;
  color: var(--text);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-section;
}

.legal-toc li {
  counter-increment: legal-section;
}

.legal-toc a {
  display: block;
  padding-block: 5px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.35;
  transition: color 150ms ease;
}

.legal-toc a:hover {
  color: var(--text);
}

.legal-section {
  scroll-margin-top: calc(var(--header-height) + 30px);
}

.legal-content h2 {
  margin: 52px 0 14px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 620;
}

.legal-callout {
  margin-block: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.legal-callout p {
  margin: 0;
}

.legal-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.error-page {
  display: flex;
  width: var(--page);
  min-height: 100vh;
  margin-inline: auto;
  padding-block: 30px 80px;
  flex-direction: column;
}

.error-card {
  display: flex;
  max-width: 720px;
  margin: auto;
  align-items: flex-start;
  flex-direction: column;
}

.error-card > span {
  margin-bottom: 18px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.error-card h1 {
  margin-bottom: 18px;
  font-size: clamp(3.5rem, 9vw, 8rem);
}

.error-card p {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 18px;
}

/* Deliberate, single-run reveal motion. */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 750ms cubic-bezier(.2, .8, .2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 36px, 860px);
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: 700px;
    padding-top: 120px;
  }

  .demo-window {
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .demo-sidebar {
    padding-inline: 10px;
  }

  .demo-window {
    min-height: 500px;
  }

  .demo-workspace {
    height: 418px;
  }

  .source-window {
    left: 5%;
    width: 45%;
    height: 290px;
  }

  .capture-tray-card,
  .thought-card {
    right: 5%;
    width: 39%;
  }

  .value-card-wide,
  .principles-grid,
  .mac-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .value-card-wide {
    min-height: auto;
  }

  .feature-visual {
    height: auto;
    aspect-ratio: 1.5;
  }

  .principles-grid {
    max-width: 760px;
  }

  .principles-visual {
    max-height: 620px;
  }

  .mac-card {
    gap: 70px;
  }

  .mac-copy {
    max-width: 680px;
  }

  .mac-window-visual {
    min-width: 620px;
    transform: rotate(1.5deg) translateX(2%);
  }
}

@media (max-width: 720px) {
  :root {
    --page: calc(100% - 28px);
    --header-height: 66px;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 25px;
    height: 22px;
  }

  .nav-download {
    display: none;
  }

  .hero {
    min-height: 650px;
    padding-block: 92px 70px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
    line-height: 0.98;
  }

  .hero h1 span {
    margin-top: 7px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .flow-section,
  .value-section,
  .mac-section {
    padding-block: 90px;
  }

  .principles-section {
    padding-block: 90px;
  }

  .faq-section {
    padding-block: 85px 100px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  h2 {
    font-size: clamp(2.25rem, 11vw, 3.8rem);
  }

  .demo-shell {
    border-radius: 20px;
  }

  .demo-toolbar {
    grid-template-columns: auto 1fr auto;
  }

  .demo-toolbar p {
    justify-self: center;
  }

  .demo-replay {
    width: 32px;
    height: 32px;
    padding: 8px;
    overflow: hidden;
    justify-content: center;
    gap: 0;
    font-size: 0;
    white-space: nowrap;
  }

  .demo-replay svg {
    min-width: 14px;
  }

  .demo-window {
    min-height: 440px;
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    display: none;
  }

  .demo-canvas-header {
    height: 70px;
    padding-inline: 14px;
  }

  .demo-workspace {
    height: 370px;
  }

  .source-window {
    top: 35px;
    left: 4%;
    width: 55%;
    height: 250px;
  }

  .source-content {
    padding: 18px;
  }

  .source-image {
    height: 88px;
  }

  .selection-region {
    right: 11px;
    bottom: 48px;
    height: 105px;
  }

  .capture-tray-card {
    top: 38px;
    right: 4%;
    width: 34%;
    padding: 9px;
  }

  .snip-thumbnail {
    height: 80px;
  }

  .thought-card {
    right: 4%;
    bottom: 38px;
    width: 43%;
    min-height: 125px;
    padding: 13px;
  }

  .connection-line {
    right: 9%;
    bottom: 25px;
    height: 160px;
  }

  .today-card {
    width: 88%;
  }

  .demo-steps {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    scrollbar-width: none;
  }

  .demo-steps::-webkit-scrollbar {
    display: none;
  }

  .demo-steps button {
    min-height: 82px;
    padding: 14px 14px 14px 45px;
  }

  .demo-steps button > span {
    top: 17px;
    left: 13px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-card-wide {
    grid-column: auto;
  }

  .value-card {
    min-height: auto;
  }

  .feature-visual {
    min-height: 240px;
  }

  .principles-grid {
    gap: 55px;
  }

  .mac-card {
    min-height: auto;
    padding: 32px 25px;
    border-radius: 22px;
  }

  .mac-window-visual {
    min-width: 540px;
    transform: rotate(1deg) translateX(-1%);
  }

  .final-cta {
    width: 100%;
    padding-bottom: 0;
  }

  .final-cta-card {
    min-height: 540px;
    border-radius: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-main {
    width: calc(100vw - 32px);
    padding-block: 70px 100px;
  }

  .legal-hero {
    padding-block: 82px 50px;
  }

  .legal-layout {
    padding-bottom: 100px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-toc {
    position: static;
    margin: 30px 0 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }

  .legal-toc ol {
    columns: 2;
    column-gap: 22px;
  }
}

@media (max-width: 480px) {
  .demo-toolbar .window-dots {
    display: none;
  }

  .demo-toolbar {
    grid-template-columns: 1fr auto;
  }

  .demo-toolbar p {
    justify-self: start;
  }

  .source-window {
    width: 62%;
  }

  .capture-tray-card {
    width: 37%;
  }

  .thought-card {
    width: 52%;
  }

  .snip-meta span,
  .thought-card p {
    display: none;
  }

  .today-content strong {
    font-size: 11px;
  }

  .mac-window-visual {
    min-width: 500px;
  }

  .shortcut-row {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .legal-toc ol {
    columns: 1;
  }
}

@media (max-width: 980px) {
  .demo-window { min-height: 560px; }
  .native-app-body { grid-template-columns: 145px minmax(0, 1fr); }
  .native-sidebar { padding-inline: 9px; }
  .tray-snip { width: 125px; }
  .annotated-capture { width: 88%; }
  .intelligence-window { max-width: 680px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .demo-window,
  .capture-desktop { min-height: 440px; height: 440px; }

  .capture-source-card { top: 67px; width: 80%; min-height: 295px; padding: 31px 29px; }
  .capture-source-card > strong { font-size: 18px; }
  .capture-source-card > p { margin-block: 8px 17px; font-size: 9px; }
  .capture-source-image { height: 96px; }
  .region-selection { top: 131px; left: 32%; width: 51%; height: 182px; }
  .capture-instruction { bottom: 12px; min-width: 194px; padding: 9px 11px; }

  .scene-annotate { grid-template-rows: 51px 1fr 54px; }
  .annotation-toolbar { overflow: hidden; padding: 7px 8px; gap: 6px; }
  .annotation-tools span { width: 25px; height: 25px; font-size: 10px; }
  .annotation-toolbar .width-slider { display: none; }
  .annotation-stage { padding: 19px; }
  .annotated-capture { width: 92%; height: 282px; padding: 25px 28px; }
  .annotated-capture > strong { font-size: 18px; }
  .annotated-capture > p { margin-top: 7px; font-size: 9px; }
  .annotated-capture .capture-source-image { right: 28px; bottom: 25px; left: 28px; height: 96px; }
  .annotation-arrow { right: 52px; bottom: 34px; width: 135px; }
  .annotation-text { right: 63px; bottom: 126px; font-size: 10px; }
  .capture-review-bar { padding: 10px; gap: 6px; }
  .capture-review-bar button { padding-inline: 8px; font-size: 8px; }
  .context-placeholder { font-size: 8px; }

  .native-titlebar { height: 40px; }
  .native-app-body { height: 400px; grid-template-columns: minmax(0, 1fr); }
  .native-sidebar { display: none; }
  .native-title-actions strong { height: 25px; }
  .board-heading { height: 72px; padding: 12px 16px 9px; }
  .board-heading > div strong { font-size: 16px; }
  .board-heading p { margin-top: 6px; font-size: 11px; }
  .native-capture-tray { height: 112px; }
  .tray-heading { height: 25px; padding-inline: 16px; }
  .tray-items { padding: 3px 16px; gap: 7px; }
  .tray-snip { width: calc((100% - 14px) / 3); height: 73px; }
  .board-canvas-grid { height: 216px; background-size: 23px 23px; }
  .snip-card { top: 17px; left: 5%; width: 150px; height: 165px; }
  .snip-card .card-art { height: 94px; }
  .native-card > p { padding: 6px 8px; font-size: 8px; }
  .thought-card-native { top: 36px; left: 54%; width: 142px; min-height: 123px; }
  .thought-card-native p strong { font-size: 9px; }
  .native-connection { left: 4%; width: 67%; height: 185px; }
  .selection-palette { bottom: 7px; }
  .selection-palette span { width: 22px; height: 21px; }

  .today-detail { padding: 17px 18px 25px; }
  .today-detail > section { margin-bottom: 15px; }
  .continue-card { min-height: 82px; padding: 12px; gap: 5px; }
  .continue-card strong { font-size: 13px; }
  .compact-snip .card-art { height: 55px; }
  .compact-snip > strong { font-size: 8px; }
  .rediscover-card { padding: 10px; }

  .native-feature-window { height: 350px; grid-template-rows: 32px 40px 1fr 44px; }
  .feature-capture-stage { padding: 16px; }
  .feature-capture-paper { padding: 18px; }
  .feature-annotation-tools > span { width: 23px; }
  .feature-context-bar > span { max-width: 55%; overflow: hidden; white-space: nowrap; }
  .intelligence-window { min-height: 420px; aspect-ratio: auto; }
}

@media (max-width: 480px) {
  .annotation-tools span:nth-child(n+6),
  .annotation-toolbar > small,
  .annotation-swatches .custom,
  .annotation-swatches .white { display: none; }
  .annotation-swatches { gap: 6px; }
  .annotation-toolbar .lineweight { display: none; }
  .capture-review-bar > span:first-child { display: none; }
  .tray-snip:nth-child(3) { display: none; }
  .tray-snip { width: calc((100% - 7px) / 2); }
  .thought-card-native { left: 53%; }
  .native-card header { padding-inline: 7px; }
  .needs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .feature-annotation-tools > span:nth-child(n+6),
  .feature-annotation-tools > b:nth-of-type(n+3) { display: none; }
  .feature-capture-paper { width: 100%; }
  .feature-context-bar > span { max-width: 42%; }
  .board-feature-mini { height: 142px; }
  .mini-thought { right: 4%; }
  .mini-snip { left: 4%; }
  .intelligence-window { padding: 18px; gap: 13px; }
  .intelligence-window > header strong { font-size: 12px; }
  .intelligence-window > article p { margin-top: 15px; font-size: 10px; }
  .intelligence-window > footer small { display: none; }
  .intelligence-window > footer { justify-content: flex-end; }
}

@media (max-width: 720px) {
  .final-cta-card {
    min-height: 620px;
    padding-inline: 22px;
  }

  .license-facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .purchase-success {
    padding: 28px 14px 70px;
  }

  .purchase-success-card {
    padding: 34px 18px;
    border-radius: 22px;
  }

  .license-key-row {
    flex-direction: column;
  }

  .activation-steps {
    grid-template-columns: 1fr;
  }

  .activation-steps li {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(20, 20, 20, 0.32);
    --line-strong: rgba(20, 20, 20, 0.55);
  }

  :root[data-theme="dark"] {
    --line: rgba(255, 255, 255, 0.35);
    --line-strong: rgba(255, 255, 255, 0.58);
  }
}
