/* Rutledge AI — company site.
 *
 * One stylesheet, no scripts. Soft white paper, ink, and the app's blue as
 * the one accent. The earlier sand look is saved as git tag `oak-look`.
 * Instrument Serif for display, Inter for reading. Both are self-hosted,
 * so the site calls no third party and sets no cookies.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-italic.woff2') format('woff2');
}

:root {
  --paper: #f5f6f8;
  --paper-deep: #eceef2;
  --card: #ffffff;
  --ink: #111318;
  --body: #3a3d44;
  --muted: #656b76;
  --line: rgba(22, 23, 26, 0.14);
  --line-soft: rgba(22, 23, 26, 0.07);
  --accent: #0045c6;

  --night: #0f1114;
  --night-raised: #191b20;
  --on-night: #eef1f6;
  --on-night-muted: #9aa1ad;
  --night-line: rgba(238, 241, 246, 0.14);
  --accent-light: #7fb0ff;

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 18px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 em,
h2 em,
h3 em {
  color: var(--accent);
  font-style: italic;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ── Small type ─────────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lede {
  color: var(--body);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 246, 248, 0.86);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-ai {
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
}

/* The logo: the AVAI mark and wordmark with "by rutledgeai" beneath. One file
 * for the sand header, one for the dark footer. */
.brand-logo {
  display: block;
  width: auto;
  height: 52px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.9375rem;
}
.nav a {
  color: var(--body);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}
.nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.5em;
}

/* ── Buttons and links ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.btn:hover {
  background: #2a2b2f;
  transform: translateY(-1px);
}
.nav .btn,
.nav .btn:hover {
  min-height: 40px;
  padding: 0 20px;
  color: var(--paper);
  font-size: 0.875rem;
}

.btn-light {
  border-color: var(--on-night);
  background: var(--on-night);
  color: var(--night);
}
.btn-light:hover {
  background: #fff;
}

.arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.arrow::after {
  content: '\2192';
  color: var(--accent);
  transition: transform 0.25s ease;
}
.arrow:hover::after {
  transform: translateX(4px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(48px, 8vw, 112px) clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  line-height: 1.01;
}

.hero .lede {
  max-width: 34em;
  margin-top: 28px;
}

.hero .actions {
  margin-top: 40px;
}

.figure {
  margin: 0;
}
.figure figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* A tablet, drawn with a border and a shadow. */
.device {
  padding: clamp(7px, 1vw, 13px);
  border-radius: clamp(18px, 2.6vw, 34px);
  background: linear-gradient(145deg, #2b2c30, #101113);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 44px 80px -36px rgba(14, 30, 70, 0.42),
    0 14px 30px -14px rgba(14, 30, 70, 0.26);
}
.device img {
  display: block;
  width: 100%;
  border-radius: clamp(11px, 1.7vw, 22px);
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding-block: var(--section);
}

/* Two paper sections in a row share one gap, not two. */
.section:not(.night) + .section:not(.night) {
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.section-head .num {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(36px, 5vw, 64px);
}

.h2 {
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  line-height: 1.06;
}

.stack > * + * {
  margin-top: 1.15em;
}

.h2 + .lede {
  margin-top: 22px;
}

/* Three statements under a hairline each. */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin: clamp(56px, 8vw, 104px) 0 0;
  padding: 0;
  list-style: none;
}
.principles li {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.principles .num {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1;
}
.principles h3 {
  margin: 18px 0 12px;
  font-size: 1.75rem;
  line-height: 1.12;
}
.principles p {
  font-size: 1rem;
}

/* ── The dark band ──────────────────────────────────────────────────────── */

.night {
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(39, 112, 255, 0.16), transparent 62%),
    radial-gradient(900px 480px at -10% 110%, rgba(39, 112, 255, 0.07), transparent 60%),
    var(--night);
  color: var(--on-night-muted);
}
.night h1,
.night h2,
.night h3,
.night .section-head .num,
.night .arrow {
  color: var(--on-night);
}
.night h1 em,
.night h2 em,
.night .eyebrow,
.night .arrow::after {
  color: var(--accent-light);
}
.night .section-head {
  border-color: var(--night-line);
}
.night .lede {
  color: var(--on-night-muted);
}
.night .pill {
  border-color: var(--night-line);
  color: var(--on-night);
}
.night .pill::before {
  background: var(--accent-light);
}
.night :focus-visible {
  outline-color: var(--accent-light);
}
.night ::selection {
  background: var(--on-night);
  color: var(--night);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(40px, 6vw, 72px);
}

.product-mark {
  display: flex;
  align-items: center;
  gap: 22px;
}
.app-icon {
  display: block;
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}
.product-name {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.product-tag {
  margin-top: 26px;
  color: var(--on-night);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
}
.product .lede {
  margin-top: 18px;
  max-width: 32em;
}
.product .pill {
  margin-top: 28px;
}
.product .arrow {
  margin-top: 36px;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
}
.meta dt {
  color: var(--on-night-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.meta dd {
  margin: 8px 0 0;
  color: var(--on-night);
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* Two tablets, one behind the other. */
.pair {
  position: relative;
}
.pair .device {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 44px 80px -30px rgba(0, 0, 0, 0.8);
}
.pair .device:first-child {
  width: 78%;
}
.pair .device:last-child {
  position: relative;
  width: 78%;
  margin: -34% 0 0 auto;
}

/* ── Contact ────────────────────────────────────────────────────────────── */

.mail {
  display: inline-block;
  margin-top: 30px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  line-height: 1.2;
  text-decoration-line: underline;
  overflow-wrap: anywhere;
}

.details {
  margin: 0;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.details > div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.details > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.details > div:last-child {
  padding-bottom: 0;
}
.details dt {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.9;
  text-transform: uppercase;
}
.details dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ── Product page ───────────────────────────────────────────────────────── */

.page-hero {
  padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 80px);
}
.page-hero h1 {
  max-width: 14em;
  margin-top: 22px;
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  line-height: 1.01;
}
.page-hero .lede {
  max-width: 36em;
  margin-top: 28px;
}
.page-hero .pill,
.page-hero .actions {
  margin-top: 32px;
}
.page-hero .product-mark {
  margin-bottom: 36px;
}
.page-hero .app-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 12px 20px rgba(20, 60, 160, 0.28));
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
}
.steps h3 {
  margin: 16px 0 12px;
  font-size: 1.75rem;
  line-height: 1.12;
}
.steps p {
  font-size: 1rem;
}

.how-steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.how-steps li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 64px) 0;
  counter-increment: step;
}
.how-steps li::before {
  content: none;
}
.how-steps .step-text::before {
  content: counter(step, decimal-leading-zero);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
}
.how-steps h3 {
  margin: 12px 0 14px;
}
.how-steps p + p {
  margin-top: 12px;
}
.app-window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(17, 19, 24, 0.04),
    0 24px 60px -18px rgba(0, 40, 120, 0.22);
}
.app-window img {
  display: block;
  width: 100%;
  height: auto;
}

/* The finished interface, shown on a wall touch panel. */
.touch-panel {
  position: relative;
  padding: clamp(12px, 1.6vw, 22px);
  border: 0;
  border-radius: clamp(20px, 2.6vw, 34px);
  background: linear-gradient(145deg, #2d2e33, #0f1012);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 44px 80px -36px rgba(14, 30, 70, 0.45),
    0 14px 30px -14px rgba(14, 30, 70, 0.28);
}
.touch-panel::before {
  content: '';
  position: absolute;
  top: calc(clamp(12px, 1.6vw, 22px) / 2 - 2.5px);
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3a3c42;
  translate: -50% 0;
}
.touch-panel .screen {
  overflow: hidden;
  border-radius: clamp(8px, 1vw, 14px);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  border-top: 1px solid var(--night-line);
  list-style: none;
}
.features li {
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--night-line);
}
.features li:not(:nth-child(3n + 1)) {
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 1px solid var(--night-line);
}
.features h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  line-height: 1.15;
}
.features p {
  font-size: 0.9688rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}
.gallery .device {
  padding: clamp(5px, 0.6vw, 8px);
  border-radius: clamp(14px, 1.6vw, 22px);
}
.gallery .device img {
  border-radius: clamp(9px, 1.1vw, 15px);
}
.gallery figcaption {
  display: grid;
  gap: 6px;
}
.look-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.2;
}
.look-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.look-palettes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.palettes {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sw {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.14);
}
.palette-count {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sw-sand-0 { background: conic-gradient(#DDD7CB 0 50%, #33322E 0 78%, #B98B5E 0); }
.sw-sand-1 { background: conic-gradient(#D5DACD 0 50%, #333D30 0 78%, #A6914F 0); }
.sw-sand-2 { background: conic-gradient(#E4D2C4 0 50%, #442E26 0 78%, #C46E50 0); }
.sw-sand-3 { background: conic-gradient(#D4D9DE 0 50%, #2A3442 0 78%, #7B98B6 0); }
.sw-sand-4 { background: conic-gradient(#1E1C19 0 50%, #E2D8C6 0 78%, #D4AD7C 0); }
.sw-sand-5 { background: conic-gradient(#12161C 0 50%, #C9A06A 0 78%, #D98F5C 0); }
.sw-linden-0 { background: conic-gradient(#ECE7DF 0 50%, #393933 0 78%, #7D8B72 0); }
.sw-linden-1 { background: conic-gradient(#E6E6E2 0 50%, #2E3550 0 78%, #6F84A3 0); }
.sw-linden-2 { background: conic-gradient(#E9DDCF 0 50%, #4A3426 0 78%, #9A7B4F 0); }
.sw-linden-3 { background: conic-gradient(#ECE3DF 0 50%, #4F2228 0 78%, #A35F62 0); }
.sw-linden-4 { background: conic-gradient(#1C1C19 0 50%, #E6E0D3 0 78%, #A9B89C 0); }
.sw-linden-5 { background: conic-gradient(#141A16 0 50%, #C8D4B4 0 78%, #D0B06A 0); }
.sw-skyline-0 { background: conic-gradient(#FBE7E1 0 50%, #FF5F87 0 78%, #7C5CFF 0); }
.sw-skyline-1 { background: conic-gradient(#FFF2D6 0 50%, #FF6A4A 0 78%, #F5A21F 0); }
.sw-skyline-2 { background: conic-gradient(#E4EEFF 0 50%, #3D8BFF 0 78%, #5B6CFF 0); }
.sw-skyline-3 { background: conic-gradient(#15131F 0 50%, #FF5F87 0 78%, #7C5CFF 0); }
.sw-dashboard-0 { background: conic-gradient(#111317 0 50%, #1C1E23 0 78%, #7FB4FF 0); }
.sw-dashboard-1 { background: conic-gradient(#ECEEF1 0 50%, #FFFFFF 0 78%, #3F7EE8 0); }
.sw-meridian-0 { background: conic-gradient(#F5F5F5 0 50%, #1D2949 0 78%, #2F5BEA 0); }
.sw-meridian-1 { background: conic-gradient(#18203C 0 50%, #1D2949 0 78%, #7A9BFF 0); }
.sw-meridian-2 { background: conic-gradient(#EBEBEB 0 50%, #5B5FC7 0 78%, #FFFFFF 0); }
.sw-meridian-3 { background: conic-gradient(#1F1F1F 0 50%, #4F52B2 0 78%, #7F85F5 0); }

.closing {
  text-align: center;
}
.closing .eyebrow {
  margin-bottom: 20px;
}
.closing .h2 {
  max-width: 16em;
  margin-inline: auto;
}
.closing .lede {
  max-width: 34em;
  margin: 24px auto 0;
}
.closing .actions {
  justify-content: center;
  margin-top: 36px;
}

/* ── Reading pages: support, privacy, terms ─────────────────────────────── */

.doc {
  padding-block: clamp(56px, 8vw, 104px) var(--section);
}
.doc-head {
  max-width: 760px;
}
.doc-head h1 {
  margin-top: 20px;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.02;
}
.doc-head .lede {
  margin-top: 24px;
}
.doc-head .updated {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

.prose {
  max-width: 720px;
  margin-top: clamp(40px, 6vw, 72px);
}
.prose h2 {
  margin: 2.2em 0 0.55em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
  font-size: 1.875rem;
  line-height: 1.15;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 1.6em 0 0.4em;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 1em;
}
.prose ul {
  margin: 0;
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose li::marker {
  color: var(--accent);
}
.prose address {
  font-style: normal;
}

.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}
.doc-grid .prose {
  max-width: none;
}
.doc-grid .details {
  margin-top: clamp(40px, 6vw, 72px);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: clamp(56px, 7vw, 88px) 36px;
  background: var(--night);
  color: var(--on-night-muted);
  font-size: 0.9375rem;
}
.site-footer .brand {
  color: var(--on-night);
}
.site-footer .brand-ai {
  color: var(--accent-light);
}
.site-footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--on-night);
}
.site-footer :focus-visible {
  outline-color: var(--accent-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
.footer-grid p {
  max-width: 22em;
  margin-top: 18px;
}
.footer-grid h2 {
  margin-bottom: 16px;
  color: var(--on-night-muted);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-grid li + li {
  margin-top: 10px;
}
.footer-grid li a {
  color: var(--on-night);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  font-size: 0.8125rem;
}

/* ── Details still to be confirmed ──────────────────────────────────────────
 * Anything marked data-todo is a placeholder waiting for the real value.
 * It is highlighted so it cannot go live by accident. Replace the text and
 * remove the attribute, and the highlight goes with it. */

[data-todo] {
  border-radius: 3px;
  background: rgba(255, 204, 0, 0.32);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.32);
}

/* ── Motion ─────────────────────────────────────────────────────────────
 * All motion is CSS, so the content security policy can stay script free.
 * Scroll reveals use scroll driven animations. Browsers without them, and
 * anyone who asks for reduced motion, simply see the page at rest. */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .rise-2 {
    animation-delay: 0.08s;
  }
  .rise-3 {
    animation-delay: 0.16s;
  }
  .rise-4 {
    animation-delay: 0.26s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  /* The home headline arrives one line at a time, coming into focus. */
  .hero-lines.rise {
    animation: none;
  }
  .hero-lines span {
    animation: line 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-lines em span:first-child {
    animation-delay: 0.14s;
  }
  .hero-lines em span:last-child {
    animation-delay: 0.28s;
  }
  @keyframes line {
    from {
      opacity: 0;
      filter: blur(8px);
      translate: 0 0.35em;
    }
    to {
      opacity: 1;
      filter: none;
      translate: 0 0;
    }
  }

  /* The hero tablet tips up into place, then floats gently. */
  .page-hero .figure.rise {
    animation-name: tablet;
    animation-duration: 1.3s;
  }
  @keyframes tablet {
    from {
      opacity: 0;
      transform: perspective(1600px) translateY(40px) rotateX(14deg) scale(0.96);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .page-hero .device {
    animation: float 8s ease-in-out 1.4s infinite;
  }
  @keyframes float {
    50% {
      translate: 0 -10px;
    }
  }

  /* The status dot breathes, so "arriving soon" feels live. */
  .pill::before {
    animation: pulse 2.4s ease-out infinite;
  }
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(39, 112, 255, 0.45);
    }
    70%,
    100% {
      box-shadow: 0 0 0 8px rgba(39, 112, 255, 0);
    }
  }

  /* Hover */
  .gallery .device,
  .plan,
  .app-window {
    transition:
      translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
      box-shadow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
      border-color 0.3s ease;
  }
  .gallery .figure:hover .device,
  .plan:hover {
    translate: 0 -6px;
  }
  .plan:hover {
    border-color: rgba(39, 112, 255, 0.35);
    box-shadow: 0 24px 48px -24px rgba(0, 40, 120, 0.25);
  }
  .app-window img {
    transition: scale 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .app-window:hover img {
    scale: 1.015;
  }

  @supports (animation-timeline: view()) {
    /* The header gains a soft shadow once the page moves. */
    .site-header {
      animation: header-lift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 160px;
    }
    @keyframes header-lift {
      to {
        box-shadow: 0 10px 30px -18px rgba(0, 30, 90, 0.28);
      }
    }

    /* The hero tablet eases back as you scroll past it. */
    .page-hero .device img {
      animation: settle linear both;
      animation-timeline: scroll(root);
      animation-range: 0 700px;
    }
    @keyframes settle {
      to {
        opacity: 0.75;
        scale: 0.97;
      }
    }

    /* Everything else rises into view as it scrolls in. */
    .section-head,
    .split > *,
    .features li,
    .steps:not(.how-steps) li,
    .more,
    .next-links,
    .how-steps .step-text,
    .gallery .figure,
    .plan,
    .plan-notes > div,
    .closing .wrap > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    @keyframes reveal {
      from {
        opacity: 0;
        translate: 0 36px;
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }
    .split > :nth-child(2),
    .features li:nth-child(3n + 2),
    .steps:not(.how-steps) li:nth-child(3n + 2),
    .gallery .figure:nth-child(3n + 2),
    .plan:nth-child(2),
    .plan-notes > div:nth-child(2) {
      animation-range: entry 15% entry 100%;
    }
    .features li:nth-child(3n),
    .steps:not(.how-steps) li:nth-child(3n),
    .gallery .figure:nth-child(3n),
    .plan:nth-child(3),
    .plan-notes > div:nth-child(3) {
      animation-range: entry 30% entry 100%;
    }

    /* How it works: the words slide in, the app tips up flat,
       and the screenshot inside settles. */
    .how-steps .step-text {
      animation-name: slide;
    }
    @keyframes slide {
      from {
        opacity: 0;
        translate: -40px 0;
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }
    .how-steps li {
      perspective: 1800px;
    }
    .how-steps .app-window {
      transform-origin: 50% 100%;
      animation: window linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    @keyframes window {
      from {
        opacity: 0;
        transform: translateY(80px) rotateX(18deg) scale(0.92);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    .how-steps .app-window img {
      animation: zoom linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
    @keyframes zoom {
      from {
        transform: scale(1.08);
      }
      to {
        transform: none;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* ── Narrow screens ─────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .how-steps li {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .hero-grid,
  .product,
  .split,
  .doc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1,
  .page-hero h1 {
    max-width: 12em;
  }
  .principles,
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features li:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
  .features li:nth-child(2n) {
    padding-left: clamp(20px, 3vw, 36px);
    border-left: 1px solid var(--night-line);
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .doc-grid .details {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .nav {
    order: 3;
    width: calc(100% + 2 * var(--gutter, 20px));
    margin-inline: calc(-1 * var(--gutter, 20px));
    padding: 0 var(--gutter, 20px) 14px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav .btn {
    display: none;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  body {
    font-size: 1rem;
  }
  .site-header .wrap {
    min-height: 64px;
  }
  .brand-name {
    font-size: 1.375rem;
  }
  .brand-logo {
    height: 44px;
  }
  .nav {
    font-size: 0.875rem;
  }
  .nav .btn {
    display: none;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .features li:nth-child(n) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }
  .meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A page heading followed straight by a section shares one gap. */
.doc + .section {
  padding-top: 0;
}
.doc + .section.night {
  padding-top: var(--section);
}
.features-page,
.doc + .section .gallery,
.doc + .section .plans {
  margin-top: 0;
}

/* A link onward from a short home section to its own page. */
.more {
  margin-top: clamp(32px, 4vw, 48px);
}
.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

/* The home headline puts each phrase on its own line, so a line never
   ends part way through "No control system". */
.hero-lines span {
  display: block;
}
.page-hero h1.hero-lines {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

/* ── Licensing ──────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.plan h3 {
  margin: 14px 0 6px;
  font-size: 2.25rem;
  line-height: 1.05;
}
.plan-lead {
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 500;
}
.plan p:not(.eyebrow):not(.plan-lead):not(.plan-credits) {
  font-size: 0.9688rem;
}
.plan-credits {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}
.plan-credits::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.plan p + .plan-credits {
  border-top: 0;
}

.plan-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 56px);
}
.plan-notes > div {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan-notes h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  line-height: 1.15;
}
.plan-notes p {
  font-size: 0.9688rem;
}

@media (max-width: 960px) {
  .plans,
  .plan-notes {
    grid-template-columns: minmax(0, 1fr);
  }
  .plans {
    max-width: 560px;
  }
}
