/* Inter (c) The Inter Project Authors, SIL Open Font License 1.1: /licenses/inter.txt */
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal.34b9c504ca.woff2) format('woff2-variations');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal.3100e775e8.woff2) format('woff2-variations');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Vela's website. Colours, materials and states follow the app (src/renderer/src/styles/tokens.css,
   docs/UI-STANDARD.md): graphite neutrals, Harbor Blue only as light on one stage per page, neutral controls with a
   neutral focus halo. The type scale is the app's, sized up for reading on the web. Light and dark follow the
   system; a stage is dark in both. */

:root {
  color-scheme: light dark;
  --font: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Cascadia Mono', 'Cascadia Code', ui-monospace, 'SF Mono', Consolas, monospace;

  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #ebebee;
  --text: #1d1d1f;
  --text-2: #515154;
  --text-3: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.1);
  --fill-1: rgba(0, 0, 0, 0.035);
  --fill-2: rgba(0, 0, 0, 0.06);
  --fill-3: rgba(0, 0, 0, 0.1);
  --header-bg: rgba(255, 255, 255, 0.78);
  --shot-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.06), 0 28px 56px -16px rgba(0, 0, 0, 0.32);
  --red-text: #c4262e;
  --green: #1f8a4c;

  /* Buttons (docs/UI-STANDARD.md → Materials): the lit primary is near-black on a light page, the app's lit button
     on a dark one; raised and text buttons stay neutral. */
  --btn-primary: #1d1d1f;
  --btn-primary-hover: #333336;
  --btn-primary-text: #ffffff;
  --btn-primary-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.18);
  --btn-raised: rgba(0, 0, 0, 0.045);
  --btn-raised-hover: rgba(0, 0, 0, 0.08);
  --btn-raised-active: rgba(0, 0, 0, 0.11);
  --btn-raised-edge: inset 0 0 0 1px rgba(0, 0, 0, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  --well: rgba(0, 0, 0, 0.04);
  --well-edge: inset 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  --keycap-edge: inset 0 0 0 1px rgba(0, 0, 0, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.08);

  --focus-halo: 0 0 0 2px color-mix(in srgb, var(--text) 60%, transparent), 0 0 0 5px color-mix(in srgb, var(--text) 13%, transparent);
  --focus-ring: 0 0 0 1px color-mix(in srgb, var(--text) 55%, transparent), 0 0 0 4px color-mix(in srgb, var(--text) 9%, transparent);

  --harbor-950: #050a24;
  --harbor-900: #0b1650;
  --harbor-700: #1b34c9;
  --harbor-600: #2a4bff;
  --harbor-500: #4c6fff;
  --harbor-200: #aebeff;
  --harbor-100: #dce4ff;
  --stage-bg: #07080a;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-full: 999px;
  --dur-1: 80ms;
  --dur-2: 120ms;
  --dur-3: 160ms;
  --dur-stage: 650ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: 20px;
  --max: 1120px;
  --measure: 700px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11;
    --bg-2: #18181b;
    --bg-3: #222226;
    --text: #f5f5f7;
    --text-2: #aeaeb2;
    --text-3: #8e8e93;
    --hairline: rgba(255, 255, 255, 0.1);
    --fill-1: rgba(255, 255, 255, 0.04);
    --fill-2: rgba(255, 255, 255, 0.07);
    --fill-3: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(15, 15, 17, 0.76);
    --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 60px -16px rgba(0, 0, 0, 0.7);
    --red-text: #ff7a7f;
    --green: #59d499;
    --btn-primary: #e6e6e6;
    --btn-primary-hover: #f2f2f2;
    --btn-primary-text: #2f3031;
    --btn-primary-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 255, 255, 0.12), inset 0 1px 0.4px #fff, inset 0 -1px 0.4px rgba(0, 0, 0, 0.2);
    --btn-raised: rgba(255, 255, 255, 0.08);
    --btn-raised-hover: rgba(255, 255, 255, 0.13);
    --btn-raised-active: rgba(255, 255, 255, 0.06);
    --btn-raised-edge: 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    --well: rgba(0, 0, 0, 0.28);
    --well-edge: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    --keycap-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
}

/* A stage: near-black with Harbor light, dark in both themes. It redefines the dark tokens for what sits on it. */
.hero,
.plan-pro,
.claim-card {
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.7);
  --text-3: rgba(255, 255, 255, 0.54);
  --hairline: rgba(255, 255, 255, 0.12);
  --fill-2: rgba(255, 255, 255, 0.08);
  --btn-raised: rgba(255, 255, 255, 0.1);
  --btn-raised-hover: rgba(255, 255, 255, 0.15);
  --btn-raised-active: rgba(255, 255, 255, 0.08);
  --btn-raised-edge: 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  --well: rgba(0, 0, 0, 0.35);
  --well-edge: inset 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --keycap-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  --red-text: #ff7a7f;
  --focus-halo: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 0 5px rgba(255, 255, 255, 0.13);
  color-scheme: dark;
  color: var(--text);
}

/* ---------------------------------------------------------------------------------------------------------------
   Base */

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: inherit;
}

b,
strong {
  font-weight: 600;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-halo);
  border-radius: var(--r-sm);
}

::selection {
  background: color-mix(in srgb, var(--harbor-500) 28%, transparent);
}

main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow {
  max-width: calc(var(--measure) + var(--gutter) * 2);
}

.center {
  text-align: center;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: var(--btn-primary);
  color: var(--btn-primary-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.skip:focus-visible {
  top: 12px;
}

/* ---------------------------------------------------------------------------------------------------------------
   Header and footer. One hairline, between the fixed header and the page. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand .sail {
  flex: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-1);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

.site-footer {
  margin-top: 96px;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: 48px 32px;
}

.footer-brand p {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
}

.footer-brand .brand {
  color: var(--text);
  font-size: 16px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.footer-nav h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--text-2);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-base {
  padding-block: 20px 32px;
  color: var(--text-3);
  font-size: 13px;
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr 2fr;
  }

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

@media (max-width: 479px) {
  .header-inner {
    gap: 12px;
  }

  .site-nav ul {
    gap: 0;
  }

  .site-nav a {
    padding: 6px 8px;
  }

  .site-nav .nav-wide {
    display: none;
  }
}

/* ---------------------------------------------------------------------------------------------------------------
   Controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--btn-raised);
  box-shadow: var(--btn-raised-edge);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-1), box-shadow var(--dur-1);
}

.btn:hover {
  background: var(--btn-raised-hover);
}

.btn:active {
  background: var(--btn-raised-active);
}

.btn:focus-visible {
  box-shadow: var(--btn-raised-edge), var(--focus-halo);
}

.btn-small {
  height: 32px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-large {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-primary {
  background: var(--btn-primary);
  box-shadow: var(--btn-primary-shadow);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-primary:active {
  background: var(--btn-primary);
  filter: brightness(0.96);
}

.btn-primary:focus-visible {
  box-shadow: var(--btn-primary-shadow), var(--focus-halo);
}

/* The lit button (Materials → Primary): the one call to action on a stage. */
.btn-lit {
  background: #e6e6e6;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 255, 255, 0.19), inset 0 1px 0.4px #fff, inset 0 -1px 0.4px rgba(0, 0, 0, 0.2);
  color: #2f3031;
}

.btn-lit:hover {
  background: #f2f2f2;
}

.btn-lit:active {
  background: #dcdcdc;
}

.btn-lit:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.7), 0 0 0 7px rgba(255, 255, 255, 0.15);
}

.btn[aria-busy='true'] {
  cursor: progress;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-xs);
}

.text-link .glyph {
  transition: transform var(--dur-2) var(--ease-out);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.text-link:hover .glyph {
  transform: translateX(2px);
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  padding: 0 20px;
  border-radius: 11px;
  box-shadow: var(--keycap-edge);
  color: var(--text);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 500;
}

/* The announcement pill (Materials → Announcement pill): 28px, a hairline tinted with the brand colour. */
.announce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-full);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--harbor-200) 30%, transparent);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-1), background-color var(--dur-1);
}

.announce:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.announce:focus-visible {
  border-radius: var(--r-full);
}

/* Technical caption (Materials): mono, quiet, under its control. */
.tech-caption {
  margin-top: 14px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-top-color: var(--text);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------------------------------------------------------
   Sections and type */

.section {
  padding-block: clamp(56px, 9vw, 112px) 0;
}

.section-title {
  font-size: clamp(24px, 1.2rem + 1.2vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-title.large {
  font-size: clamp(32px, 1.4rem + 2.4vw, 48px);
  letter-spacing: -0.03em;
}

.section-lead {
  margin-top: 12px;
  color: var(--text-2);
  text-wrap: balance;
}

/* Two-tone copy (UI standard → Type): a short lead in the text colour, the rest in the third tier, one line. */
.two-tone {
  font-size: clamp(24px, 1.1rem + 1.6vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.two-tone strong {
  color: var(--text);
}

.two-tone span {
  color: var(--text-3);
}

.two-tone.medium {
  font-size: clamp(20px, 1rem + 0.7vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.two-tone.small {
  font-size: 19px;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.two-tone.small span {
  font-weight: 500;
}

.page-head {
  padding-top: clamp(48px, 8vw, 88px);
}

.page-head h1,
.prose h1 {
  font-size: clamp(34px, 1.4rem + 2.6vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lead {
  margin-top: 14px;
  color: var(--text-2);
  font-size: clamp(17px, 1rem + 0.3vw, 19px);
  line-height: 1.5;
}

.lead a {
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------------------------------------------------------
   Home: the hero is a stage (Materials → Stage), its light swept in once */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(64px, 10vw, 120px);
  text-align: center;
}

.stage-light {
  position: absolute;
  inset: 0 0 clamp(120px, 22vw, 300px) 0;
  z-index: -1;
  overflow: hidden;
  background: var(--stage-bg);
}

.stage-light > span {
  position: absolute;
  pointer-events: none;
}

/* The ray: a wide diagonal of Harbor light, deep at its edges and hot at its core. */
.ray {
  left: 50%;
  top: -30%;
  width: 520px;
  height: 160%;
  /* Soft stops instead of a blur filter: the same light, and nothing to composite on slow PCs. */
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--harbor-700) 14%, transparent) 18%, color-mix(in srgb, var(--harbor-700) 42%, transparent) 32%, color-mix(in srgb, var(--harbor-600) 70%, transparent) 44%, color-mix(in srgb, var(--harbor-200) 42%, var(--harbor-600) 58%) 50%, color-mix(in srgb, var(--harbor-600) 70%, transparent) 56%, color-mix(in srgb, var(--harbor-700) 42%, transparent) 68%, color-mix(in srgb, var(--harbor-700) 14%, transparent) 82%, transparent);
  opacity: 0.5;
  transform: translateX(10%) rotate(32deg);
  transform-origin: 50% 50%;
  animation: ray-in var(--dur-stage) var(--ease-spring) both;
}

/* The bloom behind the focal object, the launcher. */
.bloom {
  left: 50%;
  bottom: -18%;
  width: min(1100px, 120vw);
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--harbor-600) 45%, transparent), color-mix(in srgb, var(--harbor-700) 18%, transparent) 55%, transparent);
  animation: bloom-in 900ms var(--ease-out) both;
}

.streak {
  height: 1px;
  width: 900px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--harbor-200) 70%, transparent) 50%, transparent);
  opacity: 0.5;
  transform-origin: 0 0;
}

.streak-1 {
  left: 106%;
  top: -10%;
  transform: rotate(124deg);
}

.streak-2 {
  left: 112%;
  top: -4%;
  opacity: 0.32;
  transform: rotate(124deg);
}

/* Fine grain at 7%, so the light doesn't band. */
.grain {
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 759px) {
  /* On a phone the light comes from the top right and the streaks stay out of the copy. */
  .ray {
    left: 30%;
    top: -50%;
  }

  .streak {
    display: none;
  }
}

/* Transform only: if a background tab never runs the sweep, the light is still there. */
@keyframes ray-in {
  from {
    transform: translateX(60%) rotate(32deg);
  }
}

@keyframes bloom-in {
  from {
    transform: translateX(-50%) scale(0.85);
  }
}

@media (prefers-color-scheme: dark) {
  /* The stage settles into the page instead of ending on an edge. */
  .stage-light::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
  }
}

.hero-copy {
  max-width: calc(820px + var(--gutter) * 2);
}

.hero-name {
  margin-top: 28px;
  color: var(--text-2);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin-top: 8px;
  font-size: clamp(40px, 1.2rem + 5.2vw, 72px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--text-2);
  font-size: clamp(17px, 1rem + 0.35vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-shot {
  max-width: calc(980px + var(--gutter) * 2);
  margin-top: clamp(48px, 7vw, 72px);
}

.shot {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shot-shadow);
  background: #2d2d2d;
}

.hero .shot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -24px rgba(0, 0, 0, 0.45), 0 0 120px color-mix(in srgb, var(--harbor-600) 12%, transparent);
}

@media (prefers-color-scheme: dark) {
  .hero .shot {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 120px color-mix(in srgb, var(--harbor-600) 14%, transparent);
  }
}

.keys-section {
  padding-top: clamp(72px, 11vw, 136px);
}

.keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--text-3);
  font-size: 22px;
}

.feature .container {
  max-width: calc(980px + var(--gutter) * 2);
}

.feature-copy {
  max-width: 760px;
}

.feature .shot {
  margin-top: clamp(32px, 5vw, 48px);
}

.feature-link {
  margin-top: 16px;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tile {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-xl);
  background: var(--bg-2);
}

.tile .shot {
  margin-top: 24px;
  aspect-ratio: 1500 / 950;
  object-fit: cover;
  border-radius: 8px;
}

.tile .shot-top {
  object-position: top;
  background: #202020;
}

@media (min-width: 800px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.more-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 32px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.more-list li {
  font-size: 16px;
  line-height: 1.5;
}

.more-list span {
  color: var(--text-3);
}

@media (min-width: 640px) {
  .more-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .more-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.more-link {
  margin-top: 28px;
}

.privacy-band p {
  margin-top: 20px;
}

.download-band .app-icon {
  display: inline-block;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.smartscreen {
  max-width: 520px;
  margin: 20px auto 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.5;
}

.smartscreen b {
  color: var(--text-2);
  font-weight: 600;
}

.smartscreen a {
  color: var(--text-2);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------------------------------------------------------
   Pricing */

.note-pill {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--fill-2);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: calc(880px + var(--gutter) * 2);
  margin-top: 48px;
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--bg-2);
}

/* Vela Pro is a lit card (docs/BRAND.md): Harbor 900 at the base, a 600-tinted bloom along the top edge. The page's
   one accent. */
.plan-pro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 60% at 50% -12%, color-mix(in srgb, var(--harbor-600) 42%, transparent), transparent 62%), linear-gradient(to bottom, #0a0c16, color-mix(in srgb, var(--harbor-900) 70%, #07080a));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--harbor-200) 40%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 24px color-mix(in srgb, var(--harbor-600) 12%, transparent);
}

.plan-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan-price {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price .amount {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan-price .per {
  color: var(--text-2);
  font-size: 16px;
}

.plan-sub {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 14px;
}

.plan-prices .price-yearly {
  display: none;
}

.plan-pro:has(input[value='yearly']:checked) .price-yearly {
  display: flex;
}

.plan-pro:has(input[value='yearly']:checked) p.plan-sub.price-yearly {
  display: block;
}

.plan-pro:has(input[value='yearly']:checked) .price-monthly {
  display: none;
}

.billing {
  display: inline-flex;
  align-self: flex-start;
  margin: 16px 0 0;
  padding: 2px;
  border: 0;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.billing label {
  position: relative;
  cursor: pointer;
}

.billing input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.billing span {
  display: block;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--dur-2), color var(--dur-2);
}

.billing input:checked + span {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.3);
  color: var(--text);
}

.billing input:focus-visible + span {
  box-shadow: var(--focus-halo);
}

.plan-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
}

.plan-list li {
  padding-left: 18px;
  position: relative;
}

.plan-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}

.plan-list .quiet {
  color: var(--text-2);
}

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

.plan-action .btn {
  width: 100%;
}

.plan-caption {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

.plan-error {
  margin-top: 8px;
  color: var(--red-text);
  font-size: 14px;
  text-align: center;
}

.plan-error:empty {
  display: none;
}

.soon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-size: 16px;
  font-weight: 500;
}

.plan-notes {
  margin-top: 28px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.plan-notes p + p {
  margin-top: 8px;
}

.faq {
  margin-top: clamp(56px, 8vw, 96px);
}

.faq .section-title {
  margin-bottom: 12px;
}

.faq-item {
  box-shadow: 0 1px 0 var(--hairline);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary .glyph {
  flex: none;
  color: var(--text-3);
  transition: transform var(--dur-2) var(--ease-out);
}

.faq-item[open] summary .glyph {
  transform: rotate(180deg);
}

.faq-item summary:focus-visible {
  box-shadow: var(--focus-halo);
}

.faq-item p {
  padding: 0 32px 20px 0;
  color: var(--text-2);
  font-size: 16px;
}

.faq-item a,
.panel a,
.contact-list a,
.claim-line a,
.steps a,
.form-result a {
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------------------------------------------------------
   The success page: the key on a lit card */

.claim-wrap {
  padding-top: clamp(40px, 7vw, 80px);
}

.claim-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 6vw, 56px) clamp(16px, 5vw, 48px);
  border-radius: var(--r-xl);
  background: radial-gradient(110% 70% at 50% -20%, color-mix(in srgb, var(--harbor-600) 40%, transparent), transparent 62%), var(--stage-bg);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--harbor-200) 35%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.claim-mark {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text);
}

.claim-card h1 {
  font-size: clamp(28px, 1.2rem + 1.6vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.028em;
}

.claim-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 16px;
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.license-key {
  display: block;
  max-width: 100%;
  padding: 12px clamp(10px, 3vw, 16px);
  border-radius: var(--r-md);
  background: var(--well);
  box-shadow: var(--well-edge);
  color: var(--text);
  font-family: var(--mono);
  /* The whole key on one line from phone width up (34 characters); it wraps only on the narrowest screens. */
  font-size: clamp(12px, 3.3vw, 17px);
  overflow-wrap: anywhere;
  user-select: all;
}

[data-state='late'] .btn {
  margin-top: 24px;
}

.activate {
  margin-top: 56px;
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: step;
  line-height: 1.5;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fill-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps span {
  color: var(--text-3);
}

/* ---------------------------------------------------------------------------------------------------------------
   Forms and panels */

.resend-form {
  margin-top: 36px;
}

.resend-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

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

.field-row input {
  flex: 1 1 260px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--well);
  box-shadow: var(--well-edge);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  caret-color: var(--text);
}

.field-row input:focus-visible {
  box-shadow: var(--well-edge), var(--focus-ring);
  border-radius: var(--r-md);
}

.field-row input[aria-invalid='true'] {
  box-shadow: var(--well-edge), 0 0 0 1px var(--red-text);
}

.field-row .btn {
  flex: none;
  height: 48px;
}

.form-result {
  min-height: 24px;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15px;
}

.form-result.is-error {
  color: var(--red-text);
}

.panel {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  color: var(--text-2);
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 40px;
}

.contact-list > div {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  box-shadow: 0 -1px 0 var(--hairline);
}

.contact-list dt {
  font-weight: 600;
}

.contact-list dd {
  color: var(--text-2);
}

@media (min-width: 680px) {
  .contact-list > div {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }
}

.not-found .claim-mark {
  color: var(--text-3);
}

.not-found p:last-child {
  margin-top: 28px;
}

/* ---------------------------------------------------------------------------------------------------------------
   Documents: manual, changelog, legal */

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-top: clamp(40px, 7vw, 72px);
}

.doc .prose {
  max-width: var(--measure);
  width: 100%;
  margin-inline: auto;
}

.doc-toc {
  display: none;
}

@media (min-width: 1100px) {
  .doc.has-toc {
    grid-template-columns: 220px minmax(0, var(--measure));
    justify-content: center;
    gap: 64px;
  }

  .doc.has-toc .doc-toc {
    display: block;
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 112px);
    overflow: auto;
    padding: 4px;
    font-size: 13px;
  }

  .doc.has-toc .prose {
    margin-inline: 0;
  }
}

.toc-title {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}

.doc-toc ul {
  display: grid;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.doc-toc a {
  display: block;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: var(--r-sm);
  color: var(--text-3);
  line-height: 1.4;
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--text);
  background: var(--fill-1);
}

.prose {
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.prose > .lead {
  margin-bottom: 8px;
}

.prose h2 {
  margin-top: 2.4em;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 2em;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.prose h4 {
  margin-top: 1.6em;
  font-size: 16px;
  font-weight: 600;
}

.prose p,
.prose ul,
.prose ol,
.prose .table-wrap,
.prose pre,
.prose blockquote {
  margin-top: 1em;
}

.prose h1 + p {
  margin-top: 20px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--text-3);
}

.prose a {
  text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--text);
}

.prose code {
  padding: 0.12em 0.36em;
  border-radius: var(--r-xs);
  background: var(--fill-2);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.prose pre {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--well);
  box-shadow: var(--well-edge);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
  overflow-wrap: normal;
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 16px;
  box-shadow: inset 3px 0 0 var(--fill-3);
  color: var(--text-2);
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  height: 1px;
  background: var(--hairline);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
}

.table-wrap:focus-visible {
  box-shadow: var(--focus-halo);
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--text-2);
  font-weight: 600;
  border-bottom: 1px solid var(--fill-3);
}

.prose td {
  border-bottom: 1px solid var(--hairline);
}

.prose th:first-child,
.prose td:first-child {
  padding-left: 0;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose img {
  height: auto;
  border-radius: var(--r-md);
}

.release {
  padding-top: 8px;
}

.prose > .lead + .release {
  margin-top: 48px;
}

.release + .release {
  margin-top: 56px;
  padding-top: 48px;
  box-shadow: 0 -1px 0 var(--hairline);
}

.prose .release h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.release-label {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--fill-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.prose .release-date {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 14px;
}

.prose .release p > strong:only-child {
  display: block;
  margin-top: 1.6em;
  font-size: 15px;
}

.placeholder {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.placeholder-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--fill-3);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
}

.placeholder p + p {
  margin-top: 10px;
}

/* ---------------------------------------------------------------------------------------------------------------
   System states */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .spinner {
    animation: none;
    border-top-color: color-mix(in srgb, var(--text) 22%, transparent);
  }

  .ray,
  .bloom {
    animation: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .billing span,
  .soon,
  .license-key,
  .field-row input,
  .plan,
  .tile,
  .claim-card {
    border: 1px solid CanvasText;
  }

  .billing input:checked + span {
    background: Highlight;
    color: HighlightText;
  }

  .stage-light {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .doc-toc,
  .skip {
    display: none;
  }
}
