/* PDF: Private Document Fortress — product site
   Design tokens mirror the app's WelcomeScreen and AppearancePreferences. */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* registered so accent switches animate smoothly */
@property --a1 { syntax: "<color>"; inherits: true; initial-value: #75AEFF; }
@property --a2 { syntax: "<color>"; inherits: true; initial-value: #5CDED6; }

:root {
  --a1: #75AEFF; /* accent primary (dark)  — set by script.js */
  --a2: #5CDED6; /* accent secondary (dark) */
  --radius-card: 18px;
  --radius-button: 14px;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  transition: --a1 0.7s ease, --a2 0.7s ease;
}

html[data-appearance="dark"] {
  color-scheme: dark;
  --canvas: #050508;
  --ink: rgb(232, 245, 255);
  --muted: rgb(150, 176, 196);
  --card-bg: rgba(255, 255, 255, 0.04);
  --grid-line: rgba(232, 245, 255, 0.045);
  --button-label: rgb(14, 14, 14);
  --nav-bg: rgba(5, 5, 8, 0.6);
  --hairline: rgba(232, 245, 255, 0.09);
}

html[data-appearance="light"] {
  color-scheme: light;
  --canvas: #F8F9FB;
  --ink: rgb(20, 38, 59);
  --muted: rgb(87, 110, 130);
  --card-bg: rgba(255, 255, 255, 0.72);
  --grid-line: rgba(20, 38, 59, 0.035);
  --button-label: #ffffff;
  --nav-bg: rgba(248, 249, 251, 0.6);
  --hairline: rgba(20, 38, 59, 0.09);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--a1); color: var(--button-label); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 6px;
  border: 2px solid var(--canvas);
}
::-webkit-scrollbar-thumb:hover { background: var(--a1); }

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

.gradient-text {
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a1));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--a1);
  display: flex;
  align-items: center;
  gap: 7px;
}
.mono-label::before {
  content: "";
  width: 23px;
  height: 2px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
}
.mono-label .idx { color: var(--muted); }

.section {
  max-width: 1560px;
  margin: 0 auto;
  padding: 96px 48px;
  position: relative;
}
@media (max-width: 640px) { .section { padding: 72px 24px; } }

.section h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 16px 0 14px;
}
.section .lede {
  color: var(--muted);
  max-width: 560px;
  font-size: 15px;
  line-height: 1.75;
}
.section-intro { position: relative; }
.section-intro:not(.section-intro-split) .lede { margin-top: 18px; }
.section-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 64px;
  align-items: end;
}
.section-intro-split .lede {
  max-width: 520px;
  margin-bottom: 4px;
}

/* ---------- backdrop: aurora blobs + grid + scanlines ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--canvas);
  overflow: hidden;
}
.backdrop .aurora {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.backdrop .aurora.one {
  top: -24vmax; right: -14vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--a1) 26%, transparent), transparent 65%);
  animation: drift-one 26s ease-in-out infinite alternate;
}
.backdrop .aurora.two {
  bottom: -26vmax; left: -16vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--a2) 20%, transparent), transparent 65%);
  animation: drift-two 32s ease-in-out infinite alternate;
}
html[data-appearance="light"] .backdrop .aurora { opacity: 0.55; }
@keyframes drift-one {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vmax, 5vmax) scale(1.12); }
  100% { transform: translate(4vmax, 9vmax) scale(0.94); }
}
@keyframes drift-two {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(7vmax, -4vmax) scale(1.1); }
  100% { transform: translate(-3vmax, -8vmax) scale(0.95); }
}
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--grid-line) 0.5px, transparent 0.5px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
html[data-appearance="dark"] .backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 3px);
}

/* ---------- right-edge navigation ---------- */
body.has-site-navigation { padding-right: 84px; }
.nav { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); z-index: 50; }
.nav-inner { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.nav-links { display: flex; flex-direction: column; gap: 8px; position: relative; }
.nav-links::before { content: ""; position: absolute; right: 21px; top: 0; bottom: 0; width: 1px; background: var(--hairline); }
.nav-links a { height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; position: relative; color: var(--muted); }
.nav-icon { width: 44px; height: 44px; padding: 12px; flex-shrink: 0; border: 1px solid var(--hairline); border-radius: 50%; background: var(--canvas); transition: color .25s, border-color .25s, box-shadow .25s, transform .25s; }
.nav-label { font-size: 11px; font-weight: 500; letter-spacing: .3px; padding: 7px 12px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--canvas); opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.nav:hover .nav-label, .nav:focus-within .nav-label, .nav-links a[aria-current="location"] .nav-label { opacity: 1; transform: translateX(0); }
.nav-links a:hover .nav-icon, .nav-links a:focus-visible .nav-icon { color: var(--ink); border-color: var(--a1); transform: scale(1.1); }
.nav-links a[aria-current="location"] .nav-icon { color: var(--a1); border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 8%, transparent), 0 0 24px color-mix(in srgb, var(--a1) 12%, transparent); }
.nav-links a[aria-current="location"] .nav-label { color: var(--a1); }
.nav-links a:last-child .nav-icon { border-radius: 13px; color: var(--button-label); background: linear-gradient(135deg, var(--a1), var(--a2)); border-color: transparent; }
.nav-appearance { position: relative; }
.nav-appearance summary { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; list-style: none; color: var(--muted); border-radius: 50%; background: var(--canvas); border: 1px solid var(--hairline); }
.nav-appearance summary::-webkit-details-marker { display: none; }
.nav-appearance summary svg { width: 18px; height: 18px; }
.nav-tools { position: absolute; right: 58px; bottom: 0; display: flex; align-items: center; gap: 20px; padding: 16px 20px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--canvas); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.nav .accents { display: grid; grid-template-columns: repeat(4, 12px); gap: 12px; }
.nav .accent-dot { width: 12px; height: 12px; }
.nav-menu, .nav-scrim { display: none; }
.nav a:focus-visible, .nav button:focus-visible, .nav summary:focus-visible, .nav-menu:focus-visible { outline: 2px solid var(--a1); outline-offset: 5px; }

/* accent picker — the app's eight ThemeAccent swatches */
.accents { display: flex; gap: 6px; }
.accent-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  background: linear-gradient(135deg, var(--dot1), var(--dot2));
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.accent-dot:hover { opacity: 1; transform: scale(1.3); }
.accent-dot.active {
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--canvas), 0 0 0 3.5px var(--a1), 0 0 12px color-mix(in srgb, var(--a1) 60%, transparent);
}

.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  background: var(--card-bg);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.theme-toggle:hover {
  border-color: var(--a1);
  transform: rotate(18deg);
  box-shadow: 0 0 16px color-mix(in srgb, var(--a1) 25%, transparent);
}
.theme-toggle svg { width: 15px; height: 15px; }
html[data-appearance="dark"] .icon-moon { display: none; }
html[data-appearance="light"] .icon-sun { display: none; }

@media (max-width: 900px), (max-height: 620px) {
  body.has-site-navigation { padding-right: 0; }
  .nav { top: 12px; bottom: 12px; right: 12px; width: min(320px, calc(100vw - 24px)); transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .3s ease, visibility .3s; border: 1px solid var(--hairline); border-radius: 20px; background: var(--canvas); overflow-y: auto; }
  .nav-inner { min-height: 100%; padding: 24px; gap: 24px; align-items: stretch; }
  .nav-links { gap: 4px; }
  .nav-links::before { display: none; }
  .nav-links a { flex-direction: row-reverse; justify-content: flex-end; gap: 12px; }
  .nav-label { opacity: 1; transform: none; padding: 0; border: 0; font-size: 14px; }
  .nav-icon { width: 40px; height: 40px; padding: 10px; }
  .nav-appearance { margin-top: auto; }
  .nav-tools { position: static; margin-top: 12px; box-shadow: none; justify-content: space-between; }
  .nav-menu { display: flex; align-items: center; gap: 10px; position: fixed; top: 28px; right: 28px; z-index: 60; padding: 12px 16px; border: 1px solid var(--hairline); border-radius: 24px; background: var(--canvas); color: var(--ink); font: 11px var(--font-mono); cursor: pointer; }
  .nav-menu i { width: 14px; height: 8px; border-block: 1px solid currentColor; transform: skewX(-20deg); }
  .nav-open .nav-menu i { transform: rotate(-45deg); }
  .nav-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); }
  body.nav-open { overflow: hidden; }
  .nav-open .nav { transform: translateX(0); visibility: visible; }
  .nav-open .nav-scrim { display: block; }
  main { padding-top: 72px; }
  main.legal-main { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav-icon, .nav-label { transition: none; } }

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

.hero {
  max-width: 1560px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  column-gap: 48px;
  position: relative;
  overflow: clip;
}
@media (max-width: 640px) { .hero { padding: 28px 24px; } }

/* fortress backdrop — scaled-down echo of the WelcomeScreen artwork:
   sized to sit inside the hero, faded in from the leading edge */
.hero-fortress {
  position: absolute;
  left: 74%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(clamp(480px, 56%, 840px), 88vh);
  aspect-ratio: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2) 20%, #000 46%);
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2) 20%, #000 46%);
}
.hero-fortress > div {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--a1), var(--a2), var(--a1));
  background-size: 240% 240%;
  animation: fortress-shimmer 9s ease-in-out infinite, fortress-grow 2.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  /* mask-image set in fortress-stencil.css (inlined data URL) */
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter:
    drop-shadow(-6px 0 13px color-mix(in srgb, var(--a1) 22%, transparent))
    drop-shadow(6px 0 15px color-mix(in srgb, var(--a2) 18%, transparent));
  will-change: transform, background-position;
}
@keyframes fortress-shimmer {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}
@keyframes fortress-grow {
  from { transform: scale(0.62); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
html[data-appearance="dark"] .hero-fortress > div { opacity: 0.8; }
html[data-appearance="light"] .hero-fortress > div { opacity: 0.65; }
@media (max-width: 939px) {
  .hero { grid-template-columns: 1fr; }
  .hero-fortress > div { opacity: 0.18 !important; }
}

/* HUD corner annotations */
.hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: var(--muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hud .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 8px var(--a1); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hud.tr { top: 24px; right: 48px; }
.hud.bl { bottom: 24px; left: 48px; }
.hud.br { bottom: 24px; right: 48px; }
@media (max-width: 939px) { .hud { display: none; } }

.hero-copy { max-width: 640px; position: relative; grid-column: 1; grid-row: 1; }
.hero h1 {
  font-size: clamp(40px, 5.8vw, 84px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 20px 0 0;
}
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; white-space: nowrap; }
.line-mask .line {
  display: block;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.line-mask:nth-child(2) .line { animation-delay: 0.12s; }
@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

.terminal {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--a1);
  margin-top: 22px;
  min-height: 1.6em;
  letter-spacing: 0.4px;
}
.terminal .prompt { color: var(--muted); }
.terminal .caret {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--a1);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.05s steps(2) infinite;
  box-shadow: 0 0 8px color-mix(in srgb, var(--a1) 60%, transparent);
}
@keyframes blink { 50% { opacity: 0; } }

.hero .sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 480px;
  margin-top: 18px;
  white-space: pre-line;
}

.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-button);
  border: none;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a1));
  background-size: 200% 100%;
  color: var(--button-label);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--a1) 30%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.2s ease-out, box-shadow 0.3s, background-position 0.6s;
}
.button-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow:
    0 14px 40px color-mix(in srgb, var(--a1) 45%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset;
}
.button-primary:active { transform: scale(0.97); }
.button-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}
.button-primary:hover::after { left: 120%; }
.button-primary svg { width: 16px; height: 16px; }

.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  padding: 3px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.hero-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}

/* secondary action cards (WelcomeScreen mergeAction/modelsAction) */
.hero-cards {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  max-width: 720px;
  position: relative;
  grid-column: 1 / -1;
}
@media (max-width: 720px) { .hero-cards { flex-direction: column; } }

.action-card {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  min-height: 90px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: transform 0.2s ease-out, box-shadow 0.3s;
}
.action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 30%, transparent), color-mix(in srgb, var(--a2) 10%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--a1) 14%, transparent);
}
.action-card:active { transform: scale(0.98); }

.icon-tile {
  flex-shrink: 0;
  width: 42px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--a1) 8%, transparent);
  color: var(--a1);
  transition: box-shadow 0.3s;
}
.action-card:hover .icon-tile,
.feature-card:hover .icon-tile {
  box-shadow: 0 0 18px color-mix(in srgb, var(--a1) 30%, transparent);
}
.icon-tile svg { width: 19px; height: 19px; }

.action-card .card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.action-card .card-text strong { font-size: 14px; font-weight: 600; }
.action-card .card-text span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.action-card .arrow {
  margin-left: auto;
  color: var(--muted);
  flex-shrink: 0;
  width: 12px; height: 12px;
  transition: transform 0.25s ease, color 0.2s;
}
.action-card:hover .arrow { transform: translate(2px, -2px); color: var(--a1); }

/* hero entrance */
.hero-copy .mono-label, .hero .sub, .hero .cta-row, .hero .hero-hint, .hero-cards .action-card {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero .sub { animation-delay: 0.25s; }
.hero .cta-row { animation-delay: 0.35s; }
.hero .hero-hint { animation-delay: 0.45s; }
.hero-cards .action-card:nth-child(1) { animation-delay: 0.55s; }
.hero-cards .action-card:nth-child(2) { animation-delay: 0.65s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- trust strip ---------- */

.trust-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.trust-inner svg { width: 14px; height: 14px; color: var(--a1); }
.trust-inner .mono-right {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
}

/* ---------- feature grid with spotlight hover ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 56px;
  counter-reset: feat;
}
.spot { position: relative; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--a1) 12%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }

.feature-card {
  padding: 24px 22px 22px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease-out, border-color 0.25s, box-shadow 0.3s;
}
.feature-card::before {
  counter-increment: feat;
  content: "0" counter(feat);
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: color-mix(in srgb, var(--a1) 65%, transparent);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--a1) 40%, transparent);
  box-shadow: 0 16px 44px color-mix(in srgb, var(--a1) 12%, transparent);
}
.feature-card h3 { font-size: 15px; font-weight: 600; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- shared feature lists ---------- */

.check-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.check-list svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--a1); margin-top: 4px; }
.check-list strong { color: var(--ink); font-weight: 600; }

/* Custōs chat mock */
.chat-mock {
  border-radius: 22px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.25),
    0 0 70px color-mix(in srgb, var(--a1) 8%, transparent);
  animation: chat-float 9s ease-in-out infinite;
}
@keyframes chat-float {
  0%, 100% { transform: translateY(0) rotate(0.001deg); }
  50% { transform: translateY(-8px) rotate(0.001deg); }
}
.chat-mock .chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.chat-head .win-dots { display: flex; gap: 5px; margin-right: 4px; }
.chat-head .win-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}
.chat-head .win-dots i:first-child { background: color-mix(in srgb, var(--a1) 70%, transparent); }
.chat-head svg { width: 14px; height: 14px; color: var(--a1); }
.chat-head .mono-right { margin-left: auto; font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; font-weight: 500; }

.chat-user {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  font-size: 13px;
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--a1) 18%, transparent),
    color-mix(in srgb, var(--a2) 18%, transparent));
  border: 1px solid color-mix(in srgb, var(--a1) 26%, transparent);
}
.chat-answer { font-size: 13px; color: var(--muted); line-height: 1.7; }
.chat-answer strong { color: var(--ink); font-weight: 600; }
.chat-chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chat-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--a1);
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--a1) 34%, transparent);
  background: color-mix(in srgb, var(--a1) 8%, transparent);
  cursor: default;
  transition: box-shadow 0.2s, transform 0.2s;
}
.chat-chip:hover {
  box-shadow: 0 0 12px color-mix(in srgb, var(--a1) 35%, transparent);
  transform: translateY(-1px);
}
.chat-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.chat-composer .caret {
  width: 1.5px;
  height: 14px;
  background: var(--a1);
  animation: blink 1.1s steps(2) infinite;
}
.chat-composer .send { margin-left: auto; color: var(--a1); width: 15px; height: 15px; flex-shrink: 0; }
.chat-foot { font-size: 10px; color: var(--muted); text-align: center; font-family: var(--font-mono); letter-spacing: 0.5px; }

/* shared mock bits: fake text lines */
.pline {
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ink) 13%, transparent);
}
.pline.mid { width: 76%; }
.pline.short { width: 52%; }
.pline.hi { background: color-mix(in srgb, var(--a1) 42%, transparent); }

/* double view: two panes with a draggable divider */
.panes-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
.pane {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pane-name {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.pane-divider { border-radius: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); position: relative; }
.pane-divider::after {
  content: "";
  position: absolute;
  left: 1.5px; right: 1.5px;
  top: 38%; bottom: 38%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--a1), var(--a2));
}

/* markdown: editable source beside a live reader */
.md-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.md-src, .md-prev {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.md-pane-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.9px;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 2%, transparent);
}
.md-pane-bar > span:last-child { color: var(--a1); }
.md-live { display: inline-flex; align-items: center; gap: 5px; }
.md-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--a1); }
.md-source {
  width: 100%;
  flex: 1;
  min-width: 0;
  min-height: 300px;
  padding: 18px 20px 22px;
  border: 0;
  border-radius: 0;
  overflow: auto;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 2;
}
.md-type-caret { display: none; }
.md-live-demo .md-type-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--a1);
  animation: blink 1.1s steps(2) infinite;
}
.md-rendered {
  flex: 1;
  min-width: 0;
  padding: 18px 20px 22px;
  overflow: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.md-rendered > :first-child { margin-top: 0; }
.md-rendered h1,
.md-rendered h2,
.md-rendered h3,
.md-rendered h4,
.md-rendered h5,
.md-rendered h6 {
  margin: 20px 0 10px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.md-rendered h1 { font-size: 26px; }
.md-rendered h2 { font-size: 18px; }
.md-rendered h3 { font-size: 14px; }
.md-rendered h4,
.md-rendered h5,
.md-rendered h6 { font-size: 12px; }
.md-rendered p { margin: 0 0 12px; }
.md-rendered strong { color: var(--ink); font-weight: 650; }
.md-rendered em { color: var(--ink); }
.md-rendered ul,
.md-rendered ol { margin: 0 0 14px; padding-left: 20px; }
.md-rendered li { margin: 4px 0; }
.md-rendered .task-list { padding-left: 0; list-style: none; }
.md-rendered .task-list li { display: flex; align-items: flex-start; gap: 8px; }
.md-task {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--a1) 55%, var(--hairline));
  border-radius: 3px;
  color: var(--button-label);
  font-size: 9px;
  line-height: 1;
}
.md-task.checked { border-color: var(--a1); background: var(--a1); }
.md-rendered blockquote {
  margin: 14px 0;
  padding: 10px 12px;
  border-left: 2px solid var(--a1);
  border-radius: 0 6px 6px 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--a1) 7%, transparent);
}
.md-rendered blockquote p:last-child { margin-bottom: 0; }
.md-rendered code {
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--a1);
  background: color-mix(in srgb, var(--a1) 8%, transparent);
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.md-rendered pre {
  margin: 0 0 14px;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.md-rendered pre code { padding: 0; color: var(--ink); background: none; font-size: 10px; line-height: 1.6; }
.md-rendered a { color: var(--a1); text-decoration: underline; text-underline-offset: 2px; }
.md-rendered hr { margin: 18px 0; border: 0; border-top: 1px solid var(--hairline); }
@media (max-width: 480px) { .md-body { grid-template-columns: 1fr; } }

/* Word conversion mode cards */
.mode-cards { display: flex; flex-direction: column; gap: 16px; }
.mode-card {
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  display: flex;
  gap: 16px;
  transition: border-color 0.25s, transform 0.25s ease-out, box-shadow 0.3s;
}
.mode-card:hover {
  border-color: color-mix(in srgb, var(--a1) 40%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--a1) 10%, transparent);
}
.mode-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.mode-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.mode-card .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--a1);
  border: 1px solid color-mix(in srgb, var(--a1) 34%, transparent);
  background: color-mix(in srgb, var(--a1) 8%, transparent);
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 10px;
}

/* ---------- privacy ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.privacy-item {
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease-out, border-color 0.25s;
}
.privacy-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--a1) 40%, transparent);
}
.privacy-item svg { width: 18px; height: 18px; color: var(--a1); }
.privacy-item strong { font-size: 14px; font-weight: 600; }
.privacy-item span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------- download: rotating beam border ---------- */

@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.download-card {
  margin-top: 56px;
  border-radius: 26px;
  padding: 1.5px;
  position: relative;
  background: conic-gradient(from var(--beam),
    transparent 0deg,
    color-mix(in srgb, var(--a1) 85%, transparent) 40deg,
    color-mix(in srgb, var(--a2) 85%, transparent) 80deg,
    transparent 130deg,
    var(--hairline) 130deg,
    var(--hairline) 360deg);
  animation: beam-spin 7s linear infinite;
}
@keyframes beam-spin { to { --beam: 360deg; } }
.download-inner {
  border-radius: 24.5px;
  background: var(--canvas);
  padding: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) { .download-inner { grid-template-columns: 1fr; padding: 32px; gap: 28px; } }
.download-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at 100% 0%, color-mix(in srgb, var(--a1) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.download-icon {
  width: 148px; height: 148px;
  border-radius: 34px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--hairline);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.download-inner:hover .download-icon { transform: scale(1.05) rotate(-2deg); }
html[data-appearance="light"] .download-icon.dark-icon { display: none; }
html[data-appearance="dark"] .download-icon.light-icon { display: none; }

.download-info h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.download-info .version { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.download-reqs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.download-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; max-width: 460px; line-height: 1.7; }
.download-info .button-primary { margin-top: 22px; }

.source-block {
  margin-top: 28px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  position: relative;
  max-width: 560px;
}
.source-block code .prompt { color: var(--a1); user-select: none; }
.source-block .copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.source-block .copy-btn:hover { color: var(--a1); border-color: var(--a1); }

/* ---------- section-specific compositions ---------- */

.free-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}
.free-section .section-intro { max-width: 460px; }
.free-section .privacy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 0;
}
.free-section .privacy-item {
  padding: 22px 0 24px;
  border: 0;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
}
.free-section .privacy-item::after { display: none; }
.free-section .privacy-item:hover { transform: none; border-color: var(--hairline); }
.free-section .privacy-item svg { margin-bottom: 4px; }

.sentinel-section { max-width: 1460px; }
.sentinel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 38px;
}
.sentinel-layout .chat-mock {
  min-height: 440px;
  justify-content: flex-start;
  padding: 28px;
  animation: none;
  background:
    radial-gradient(480px circle at 15% 10%, color-mix(in srgb, var(--a1) 10%, transparent), transparent 70%),
    var(--card-bg);
}
.sentinel-chat .chat-head { flex-shrink: 0; }
.sentinel-chat .chat-conversation {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}
.sentinel-chat .chat-thinking {
  display: none;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.thinking-dots { display: flex; align-items: center; gap: 4px; }
.thinking-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--a1);
  animation: thinking-dot 1.1s ease-in-out infinite;
}
.thinking-dots i:nth-child(2) { animation-delay: 0.14s; }
.thinking-dots i:nth-child(3) { animation-delay: 0.28s; }
@keyframes thinking-dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.sentinel-chat .chat-user,
.sentinel-chat .chat-answer { transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s; }
.sentinel-chat.chat-live .chat-user,
.sentinel-chat.chat-live .chat-answer { visibility: hidden; opacity: 0; }
.sentinel-chat.chat-live .chat-user { transform: translateY(10px) scale(0.98); }
.sentinel-chat.chat-live .chat-answer { transform: translateY(10px); }
.sentinel-chat.chat-live .chat-thinking { display: flex; visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0.25s; }
.sentinel-chat.chat-live .chat-user.visible,
.sentinel-chat.chat-live .chat-answer.visible,
.sentinel-chat.chat-live .chat-thinking.visible { visibility: visible; opacity: 1; transform: none; }
.sentinel-chat.chat-live .chat-answer .chat-chips { opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s; }
.sentinel-chat.chat-live .chat-answer.show-citations .chat-chips { opacity: 1; transform: none; }
.sentinel-chat #chatPromptText { min-width: 0; }
.sentinel-chat .chat-composer { transition: border-color 0.25s; }
.sentinel-chat .chat-composer.typing { border-color: color-mix(in srgb, var(--a1) 45%, transparent); }
.sentinel-chat .chat-composer .send { transition: transform 0.25s, color 0.25s; }
.sentinel-chat .chat-composer.sending .send { transform: translate(3px, -3px); color: var(--a2); }
@media (prefers-reduced-motion: reduce) {
  .thinking-dots i { animation: none; }
}
.sentinel-list {
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid var(--hairline);
  justify-content: center;
  gap: 0;
}
.sentinel-list li { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.sentinel-list li:last-child { border-bottom: 0; }

.double-section { padding-top: 80px; padding-bottom: 80px; }
.panes-mock {
  margin-top: 36px;
  padding: 26px;
  border-radius: 16px;
  animation: none;
  box-shadow: none;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.panes-mock .panes-body { min-height: 380px; }
.panes-mock .pane {
  padding: clamp(18px, 2.5vw, 32px);
  gap: 16px;
  overflow: hidden;
  background: var(--card-bg);
}
.document-page {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", serif;
}
.doc-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.1px;
  color: var(--muted);
}
.doc-header span:last-child { color: var(--a1); }
.document-page h3 {
  margin-top: 22px;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.doc-parties {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3px;
  color: var(--muted);
}
.doc-clause {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.doc-clause p { font-size: 13px; line-height: 1.75; }
.doc-number {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--a1);
}
.doc-secondary {
  margin-top: 18px;
  margin-bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.doc-change {
  padding: 1px 2px;
  border-radius: 2px;
  color: inherit;
  background: color-mix(in srgb, var(--a1) 12%, transparent);
  box-shadow: inset 0 -1px color-mix(in srgb, var(--a1) 50%, transparent);
}
.doc-change.revised {
  background: color-mix(in srgb, var(--a1) 22%, transparent);
  box-shadow: inset 0 -1px var(--a1);
}
.doc-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.doc-status span { color: var(--a1); font-weight: 700; }
.double-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.double-list li {
  padding: 20px 22px;
  border-left: 1px solid var(--hairline);
  font-size: 13px;
}
.double-list li:first-child { border-left: 0; padding-left: 0; }
.double-list li:last-child { padding-right: 0; }

.clipboard-section { padding-top: 90px; padding-bottom: 90px; }
.clipboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
  gap: clamp(36px, 4.5vw, 68px);
  align-items: center;
}
.clipboard-copy h2 { font-size: clamp(34px, 3.5vw, 50px); }
.clipboard-steps { gap: 0; margin-top: 28px; }
.clipboard-steps li {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
}
.clipboard-steps li:last-child { border-bottom: 1px solid var(--hairline); }
.clipboard-demo {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  animation: none;
  box-shadow: none;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.clip-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.clip-art-accent { fill: var(--a1); }
.clip-art-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.8px;
  fill: #52665f;
}
.clip-art-value { font-family: var(--font-mono); font-size: 10px; font-weight: 700; fill: var(--a1); }
.clip-art-small { font-family: var(--font-mono); font-size: 7px; fill: #687a73; }
.clip-art-title {
  font-family: var(--font-body);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 3px;
  fill: #203f38;
}
.clip-art-subtitle,
.clip-art-note,
.clip-art-coord { font-family: var(--font-mono); fill: #35574e; }
.clip-art-subtitle { font-size: 10px; letter-spacing: 1px; }
.clip-art-note { font-size: 9px; letter-spacing: 0.8px; }
.clip-art-coord { font-size: 8px; letter-spacing: 0.6px; }
.clip-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px;
}
.clip-canvas {
  position: relative;
  min-width: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #dce5df;
}
.clip-source-image { display: block; width: 100%; height: 100%; }
.clip-selection {
  position: absolute;
  z-index: 4;
  opacity: 0;
  border: 1.5px dashed var(--a1);
  border-radius: 3px;
  background: color-mix(in srgb, var(--a1) 12%, transparent);
  box-shadow: 0 0 0 1000px rgba(3, 10, 12, 0.28);
  pointer-events: none;
}
.clip-selection.visible { opacity: 1; }
.clip-selection.complete { border-style: solid; background: color-mix(in srgb, var(--a1) 5%, transparent); }
.clip-selection i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--a1);
}
.clip-selection i:nth-child(1) { left: -3px; top: -3px; }
.clip-selection i:nth-child(2) { right: -3px; top: -3px; }
.clip-selection i:nth-child(3) { left: -3px; bottom: -3px; }
.clip-selection i:nth-child(4) { right: -3px; bottom: -3px; }
.clip-pasted {
  position: absolute;
  left: 60%;
  top: 55%;
  z-index: 3;
  width: 34%;
  height: 32%;
  padding: 3px;
  border: 2px solid var(--a1);
  border-radius: 5px;
  opacity: 1;
  transform: none;
  background: #f7f3ea;
  box-shadow: 0 8px 22px rgba(26, 48, 42, 0.25);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.clip-pasted svg { display: block; width: 100%; height: 100%; }
.clip-pasted span {
  position: absolute;
  left: 0;
  bottom: -16px;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: #203f38;
}
.clip-live .clip-pasted { opacity: 0; transform: scale(0.94); }
.clip-live .clip-pasted.is-placed { opacity: 1; transform: none; }
.clip-tray {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--card-bg);
}
.clip-tray-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
}
.clip-tray-title span {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  color: var(--a1);
}
.clip-tray-items { display: flex; flex-direction: column; gap: 8px; }
.clip-item {
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  opacity: 1;
  transform: none;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
}
.clip-live .clip-item { opacity: 0; transform: translateY(8px); }
.clip-live .clip-item.is-saved { opacity: 1; transform: none; }
.clip-live .clip-item.is-dragging { opacity: 0.35; border-color: var(--a1); }
.clip-item-preview {
  aspect-ratio: 12 / 7;
  overflow: hidden;
  border-radius: 4px;
  background: #f7f3ea;
}
.clip-item-preview svg { display: block; width: 100%; height: 100%; }
.clip-item-meta { display: flex; flex-direction: column; gap: 2px; padding: 6px 2px 2px; }
.clip-item-meta strong { overflow: hidden; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.clip-item-meta span { font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.7px; color: var(--muted); }
.clip-drag-ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  width: 104px;
  aspect-ratio: 12 / 7;
  padding: 3px;
  border: 1.5px solid var(--a1);
  border-radius: 6px;
  opacity: 0;
  background: #f7f3ea;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.clip-drag-ghost.visible { opacity: 0.94; }
.clip-drag-ghost svg { display: block; width: 100%; height: 100%; }
.clip-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9;
  width: 20px;
  height: 20px;
  opacity: 0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
.clip-cursor.visible { opacity: 1; }
.clip-cursor svg { display: block; width: 100%; height: 100%; transform-origin: top left; transition: transform 0.15s; }
.clip-cursor.down svg { transform: scale(0.82); }
.clip-cursor path { fill: #ffffff; stroke: #172a26; stroke-width: 1.2; stroke-linejoin: round; }
.clip-demo-foot { display: flex; justify-content: space-between; gap: 12px; text-align: left; }
.clip-demo-foot > span:first-child { color: var(--a1); }
.clip-demo-foot > span:last-child { margin-left: auto; flex-shrink: 0; }

.markdown-intro { max-width: none; }
.markdown-intro h2 { font-size: clamp(34px, 3.7vw, 52px); }
.markdown-intro .lede { max-width: 820px; }
.markdown-layout { margin-top: 38px; }
.markdown-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  counter-reset: feat;
}
.markdown-feature-card { grid-column: span 2; min-height: 220px; }
.markdown-feature-card:nth-child(n + 4) { grid-column: span 3; min-height: 0; }
.markdown-feature-card h3 { font-size: 16px; line-height: 1.35; }
.md-mock {
  padding: 18px;
  border-radius: 12px;
  animation: none;
  box-shadow: none;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.md-mock .md-body {
  height: 420px;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
}
.md-mock .md-src,
.md-mock .md-prev {
  padding: 0;
  border: 0;
  border-radius: 0;
}
.md-mock .md-src { border-right: 1px solid var(--hairline); background: var(--card-bg); }
.md-mock .chat-foot { padding: 0 4px; text-align: left; }
.md-foot { display: flex; justify-content: space-between; gap: 12px; }
.md-foot span:first-child { color: var(--a1); }
.md-foot span:last-child { text-align: right; }

.features-section .feature-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 38px;
}
.features-section .feature-card { grid-column: span 2; min-height: 210px; }
.features-section .feature-card:first-child {
  grid-column: span 4;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 9%, transparent), var(--card-bg));
}
.features-section .feature-card:first-child h3 { font-size: 20px; }
.features-section .feature-card:first-child p { max-width: 680px; }
.features-section .feature-card.word-feature-card { grid-column: 1 / -1; min-height: 0; padding: 28px; }
.word-feature-card > h3 { font-size: 20px; }
.word-feature-card > p { max-width: 900px; }
.word-feature-card .mode-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.word-feature-card .mode-card { min-height: 0; padding: 24px; border-radius: 14px; }
.word-feature-card .mode-card h3 { max-width: 400px; margin: 8px 0 12px; font-size: 18px; line-height: 1.25; }
.word-feature-card .mode-card p { max-width: 560px; }
.word-feature-card .word-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 14px;
}
.word-feature-card .word-notes li { padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 13px; }

.faq-section { max-width: 1280px; }
.faq-list { margin-top: 38px; border-top: 1px solid var(--hairline); }
.faq-item { position: relative; border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--a1);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.25s, border-color 0.2s, background 0.2s;
}
.faq-item summary:hover { color: var(--a1); }
.faq-item summary:focus-visible { outline: 2px solid var(--a1); outline-offset: 4px; border-radius: 4px; }
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  border-color: color-mix(in srgb, var(--a1) 45%, transparent);
  background: color-mix(in srgb, var(--a1) 8%, transparent);
}
.faq-answer {
  max-width: 860px;
  padding: 0 52px 24px 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.download-section { padding-top: 72px; padding-bottom: 88px; }
.download-section .download-card { margin-top: 32px; }
.download-section .download-inner { padding: 36px 40px; gap: 32px; }
.download-section .download-icon { width: 112px; height: 112px; border-radius: 26px; }

@media (max-width: 1100px) {
  .free-section { grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr); gap: 44px; }
  .sentinel-layout { grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr); gap: 24px; }
  .sentinel-list { padding-left: 22px; }
  .markdown-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .markdown-feature-card,
  .markdown-feature-card:nth-child(n + 4) { grid-column: span 1; min-height: 0; }
  .markdown-feature-card:last-child { grid-column: span 2; }
  .double-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .double-list li:nth-child(3) { border-left: 0; }
  .double-list li:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .features-section .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-section .feature-card { grid-column: span 1; }
  .features-section .feature-card:first-child { grid-column: span 2; }
}

@media (max-width: 900px) {
  .section-intro-split { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section-intro-split .lede { margin-bottom: 0; }
  .clipboard-layout { grid-template-columns: 1fr; gap: 36px; }
  .clipboard-copy { max-width: 640px; }
  .free-section { grid-template-columns: 1fr; gap: 38px; }
  .free-section .section-intro { max-width: 640px; }
  .sentinel-layout { grid-template-columns: 1fr; }
  .sentinel-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
}

@media (max-width: 720px) {
  .download-section .download-inner { padding: 28px; gap: 28px; }
  .download-section .download-icon { width: 96px; height: 96px; border-radius: 22px; }
}

@media (max-width: 640px) {
  .free-section .privacy-grid { grid-template-columns: 1fr; }
  .sentinel-layout .chat-mock { min-height: 0; padding: 18px; }
  .sentinel-list { grid-template-columns: 1fr; }
  .panes-mock { padding: 14px; }
  .panes-mock .panes-body { min-height: 340px; gap: 5px; grid-template-columns: minmax(0, 1fr) 5px minmax(0, 1fr); }
  .panes-mock .pane { padding: 10px; gap: 8px; }
  .panes-mock .pane-name { font-size: 7px; letter-spacing: 0.35px; }
  .doc-header { gap: 6px; padding-bottom: 8px; font-size: 6px; letter-spacing: 0.45px; }
  .document-page h3 { margin-top: 14px; font-size: 14px; }
  .doc-parties { margin-top: 6px; font-size: 7px; line-height: 1.5; }
  .doc-clause { grid-template-columns: 18px minmax(0, 1fr); gap: 4px; margin-top: 16px; }
  .doc-clause p { font-size: 9px; line-height: 1.6; }
  .doc-number { padding-top: 2px; font-size: 7px; }
  .doc-secondary { margin-top: 12px; margin-bottom: 14px; padding-top: 12px; }
  .doc-change { padding: 0 1px; }
  .doc-status { gap: 3px 6px; padding-top: 10px; font-size: 6px; letter-spacing: 0.2px; }
  .double-list { grid-template-columns: 1fr; }
  .double-list li,
  .double-list li:first-child,
  .double-list li:last-child { padding: 16px 0; border-left: 0; }
  .double-list li + li { border-top: 1px solid var(--hairline); }
  .clipboard-demo { padding: 12px; }
  .clip-workspace { grid-template-columns: 1fr; gap: 10px; }
  .clip-tray { padding: 8px; }
  .clip-tray-items { flex-direction: row; }
  .clip-item { flex: 1; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px; align-items: center; }
  .clip-item-preview { aspect-ratio: 1.4; }
  .clip-item-meta { padding: 2px; }
  .clip-pasted span { bottom: -13px; font-size: 5px; }
  .clip-drag-ghost { width: 82px; }
  .clip-cursor { width: 17px; height: 17px; }
  .clip-demo-foot { font-size: 8px; }
  .markdown-feature-grid { grid-template-columns: 1fr; }
  .markdown-feature-card,
  .markdown-feature-card:nth-child(n + 4),
  .markdown-feature-card:last-child { grid-column: span 1; }
  .md-mock .md-body { grid-template-columns: 1fr; height: auto; }
  .md-mock .md-src { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .md-source { min-height: 280px; }
  .md-rendered { min-height: 300px; }
  .md-foot { font-size: 8px; }
  .features-section .feature-grid { grid-template-columns: 1fr; }
  .features-section .feature-card,
  .features-section .feature-card:first-child { grid-column: span 1; min-height: 0; }
  .features-section .feature-card.word-feature-card { padding: 22px; }
  .word-feature-card .mode-cards { grid-template-columns: 1fr; }
  .word-feature-card .mode-card { min-height: 0; padding: 22px; }
  .word-feature-card .word-notes { grid-template-columns: 1fr; gap: 14px; }
}

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

.breadcrumbs { margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: 10px; }
.breadcrumbs a { color: var(--a1); }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.breadcrumbs a:focus-visible { outline: 2px solid var(--a1); outline-offset: 4px; border-radius: 2px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.breadcrumb-separator { color: var(--muted); }

.legal-main { max-width: 820px; margin: 0 auto; padding: 84px 24px 110px; }
.legal-article h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 18px 0 6px;
}
.legal-article h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 42px 0 10px;
}
.legal-article p { font-size: 14.5px; color: var(--muted); line-height: 1.8; margin: 0 0 14px; }
.legal-article a { color: var(--a1); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--a1) 35%, transparent); }
.legal-article a:hover { border-bottom-color: var(--a1); }
.legal-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 2;
  color: var(--muted);
  margin-top: 26px;
}
.legal-note {
  border: 1px solid color-mix(in srgb, var(--a1) 36%, transparent);
  background: color-mix(in srgb, var(--a1) 7%, transparent);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 22px 0 4px;
}
.legal-note strong { color: var(--a1); font-weight: 600; }
.ph {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--a1);
  background: color-mix(in srgb, var(--a1) 9%, transparent);
  border: 1px dashed color-mix(in srgb, var(--a1) 42%, transparent);
  border-radius: 5px;
  padding: 0 5px;
  white-space: nowrap;
}
.legal-links { display: flex; gap: 14px; margin-left: 18px; }
.legal-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.legal-links a:hover { color: var(--a1); }

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

.footer { border-top: 1px solid var(--hairline); }
.footer-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-inner svg { width: 13px; height: 13px; color: var(--a1); }
.footer-inner .mono-right { margin-left: auto; font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; }

/* ---------- reveal on scroll (staggered) ---------- */

.reveal { opacity: 0; transform: translateY(26px) scale(0.985); transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .backdrop .aurora,
  .hero-fortress > div,
  .chat-mock,
  .gradient-text,
  .download-card,
  .terminal .caret,
  .chat-composer .caret,
  .hud .dot,
  .line-mask .line,
  .hero-copy .mono-label, .hero .sub, .hero .cta-row, .hero .hero-hint, .hero-cards .action-card { animation: none !important; }
}

/* offline capture mode (?capture=1): hero keeps natural height in tall windows */
.capture-flat .hero { min-height: 0; padding-top: 96px; padding-bottom: 96px; }

/* ---------- contact and download pages ---------- */
.page-header { max-width: 1200px; margin: 0 auto; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--hairline); }
.page-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.page-brand img { flex-shrink: 0; }
.page-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; color: var(--muted); }
.page-links a:hover, .page-links a[aria-current="page"] { color: var(--a1); }
.page-main { max-width: 1040px; margin: 0 auto; padding: 40px 32px 100px; }
.page-intro { max-width: 780px; margin: 64px 0 48px; }
.page-intro h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.08; font-weight: 650; letter-spacing: -.055em; margin: 20px 0 24px; }
.page-lede { font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 650px; }
.page-panel { border: 1px solid var(--hairline); border-radius: 24px; padding: 40px; background: var(--card-bg); }
.page-panel h2 { font-size: 28px; letter-spacing: -.035em; line-height: 1.25; }
.page-panel p:not(.mono-label) { color: var(--muted); line-height: 1.8; }
.contact-panel { position: relative; }
.contact-panel h2 { margin: 16px 0 20px; }
.contact-symbol { position: absolute; right: 40px; top: 28px; font-size: 42px; color: var(--a1); }
.contact-address { display: inline-block; color: var(--a1); font-size: clamp(21px, 4.5vw, 36px); letter-spacing: -.035em; overflow-wrap: anywhere; margin-bottom: 16px; }
.contact-panel .button-primary { margin-top: 28px; }
.page-notes { margin-top: 48px; }
.page-notes h2 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 14px; }
.page-notes h3 { font-size: 17px; margin-bottom: 12px; letter-spacing: -.015em; }
.page-notes p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.page-notes a, .platform-actions > a:not(.button-primary) { color: var(--a1); text-decoration: underline; text-underline-offset: 4px; }
.contact-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.contact-notes > section, .download-note-grid > section { padding-top: 24px; border-top: 1px solid var(--hairline); }
.platform-heading { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.platform-heading h2 { margin-top: 8px; font-size: 34px; }
.release-status { margin-left: auto; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 24px; color: var(--muted); font: 11px var(--font-mono); }
.platform-description { margin-top: 28px; }
.download-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 32px; padding: 28px 0; border-block: 1px solid var(--hairline); }
.download-specs dt { color: var(--muted); font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.download-specs dd { font-size: 13px; }
.platform-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; font-size: 14px; }
.download-note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
.note-number { display: block; color: var(--a1); font: 11px var(--font-mono); margin-bottom: 20px; }
.footer .legal-links { flex-wrap: wrap; gap: 12px 18px; }
.footer-bottom { max-width: 1560px; margin: 0 auto; padding: 0 48px 28px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.page-header a:focus-visible, .page-main a:focus-visible, .footer a:focus-visible { outline: 2px solid var(--a1); outline-offset: 5px; border-radius: 3px; }
@media (max-width: 720px) {
  .page-header { padding: 20px 24px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .page-links { gap: 20px; }
  .page-main { padding: 28px 24px 72px; }
  .page-intro { margin: 40px 0 32px; }
  .page-lede { font-size: 16px; }
  .page-panel { padding: 28px 24px; border-radius: 18px; }
  .contact-symbol { right: 24px; top: 18px; }
  .contact-panel h2 { padding-right: 20px; font-size: 24px; }
  .contact-notes, .download-note-grid { grid-template-columns: 1fr; gap: 28px; }
  .download-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-heading { gap: 16px; }
  .platform-heading img { width: 112px; height: 112px; }
  .platform-heading .mono-label { font-size: 8px; }
  .release-status { margin-left: 0; }
  .footer .legal-links { margin-left: 0; }
  .footer-bottom { padding-inline: 24px; }
}

.macos-label { display: inline-flex; align-items: center; gap: 7px; }
.macos-label svg { flex-shrink: 0; }
