/*
 * movehoy.com: the application's design tokens (packages/ui/src/tokens.css),
 * light and dark, with the official brand green, cream and lime on brand bands.
 * Violet is reserved for example data, as in the application.
 */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6f7f2;
  --paper-deep: #eaecdf;
  --surface: #ffffff;
  --surface-2: #eff1e9;
  --line: #d8dccb;
  --input: #879081;
  --ink: #1a211e;
  --ink-soft: #5a655f;
  --brand: #1b4b43;
  --brand-text: #1b4b43;
  --lime: #c8f04a;
  --lime-subtle: #eaf3d9;
  --warning-text: #7a5c12;
  --warning-subtle: #f0e4c4;
  --danger-text: #9e3a24;
  --danger-subtle: #f3dcd3;
  --simulated: #7c6fe0;
  --simulated-text: #5646c8;
  --simulated-subtle: #efedfc;
  --simulated-surface: #faf9ff;
  --logo-ink: #0b2a1f;
  --logo-mark: #738f19;
  --logo-hole: var(--paper);
  --accent-text: #1b4b43;

  /* Official brand colours (docs/brand), the same in both themes. */
  --brand-green: #0b2a1f;
  --brand-green-2: #173a2c;
  --cream: #f3f2ec;
  --cream-soft: #c4d2cb;

  --shadow: 0 1px 2px rgb(11 42 31 / 6%), 0 12px 32px -12px rgb(11 42 31 / 18%);
  --shadow-lg: 0 2px 4px rgb(11 42 31 / 6%), 0 32px 64px -24px rgb(11 42 31 / 30%);
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Newsreader', Georgia, 'Times New Roman', serif;
  --gutter: 16px;
  --header-h: 64px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1513;
    --paper-deep: #111c19;
    --surface: #131e1b;
    --surface-2: #18251f;
    --line: #26352f;
    --input: #5e7068;
    --ink: #e7ece5;
    --ink-soft: #a7b3ac;
    --brand: #7cc4b4;
    --brand-text: #8fd0c1;
    --lime-subtle: #1d2a12;
    --warning-text: #e2b85a;
    --warning-subtle: #2a2211;
    --danger-text: #f08a7a;
    --danger-subtle: #2e1715;
    --simulated: #9a90ee;
    --simulated-text: #b7aff5;
    --simulated-subtle: #211e3f;
    --simulated-surface: #17152b;
    --logo-ink: #f3f2ec;
    --logo-mark: #c8f04a;
    --accent-text: #c8f04a;
    --brand-green: #08110f;
    --brand-green-2: #12201c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 32px 64px -24px rgb(0 0 0 / 70%);

    color-scheme: dark;
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand-text);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

img,
svg {
  display: block;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand-green);
  color: var(--cream);
  font-weight: 600;
}

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

main:focus {
  outline: none;
}

/* ---------- Logo ---------- */

.logo {
  height: 26px;
  width: auto;
  aspect-ratio: 8852 / 1920;
}

.logo-ink {
  fill: var(--logo-ink);
}

.logo-arc {
  stroke: var(--logo-mark);
}

.logo-stop {
  fill: var(--logo-mark);
}

.logo-hole {
  fill: var(--logo-hole);
}

.brand-link {
  display: inline-flex;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.6em 1.15em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 160ms ease;
}

.btn:hover .icon {
  transform: translateX(2px);
}

.btn-lg {
  min-height: 50px;
  padding: 0.75em 1.4em;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand-green);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--brand-green-2);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: var(--lime);
    color: #0b2a1f;
  }

  .btn-primary:hover {
    background: #d6f572;
  }
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--input);
}

.btn-lime {
  background: var(--lime);
  color: #0b2a1f;
}

.btn-lime:hover {
  background: #d6f572;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.primary-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav ul {
  display: flex;
  gap: 4px;
}

.primary-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.primary-nav a:not(.btn):hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-demo {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--line);
}

.lang-switch:hover {
  color: var(--ink);
  border-color: var(--input);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-button .icon-close,
.menu-button[aria-expanded='true'] .icon-open {
  display: none;
}

.menu-button[aria-expanded='true'] .icon-close {
  display: block;
}

@media (max-width: 1023px) {
  .menu-button {
    display: inline-flex;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .primary-nav {
    display: none;
  }

  .primary-nav[data-open] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .primary-nav[data-open] ul {
    flex-direction: column;
  }

  .primary-nav[data-open] a:not(.btn) {
    min-height: 48px;
    font-size: 1.0625rem;
  }

  .primary-nav[data-open] .nav-demo {
    display: inline-flex;
  }
}

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

  .logo {
    height: 22px;
  }
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--logo-mark);
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.65;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lime-subtle);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (prefers-color-scheme: light) {
  .badge {
    color: #2f4a0b;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
    55% 60% at 88% 8%,
    color-mix(in srgb, var(--lime) 20%, transparent),
    transparent 72%
  );
}

.hero-route {
  position: absolute;
  z-index: -1;
  right: -140px;
  top: -120px;
  width: 560px;
  height: 560px;
  opacity: 0.07;
  --logo-mark: var(--brand);
  --logo-hole: var(--paper);
}

.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 3.6vw + 1rem, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand-text);
}

@media (prefers-color-scheme: dark) {
  .hero h1 em {
    color: var(--lime);
  }
}

.hero .lead {
  margin-top: 22px;
  max-width: 36em;
}

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

@media (max-width: 479px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-route {
    opacity: 0.05;
  }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.facts li,
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.facts .icon,
.ticks .icon {
  margin-top: 0.2em;
  width: 1.05em;
  height: 1.05em;
  color: var(--logo-mark);
  stroke-width: 2.4;
}

/* ---------- Product preview (example data, violet frame) ---------- */

.mock {
  margin: 0;
  min-width: 0;
}

.sample-frame {
  position: relative;
  padding: 12px;
  border: 1.5px dashed color-mix(in srgb, var(--simulated) 70%, transparent);
  border-radius: calc(var(--radius-lg) + 8px);
  background: var(--simulated-surface);
}

.sample-badge {
  position: absolute;
  top: -13px;
  left: 20px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--simulated-subtle);
  border: 1px solid color-mix(in srgb, var(--simulated) 45%, transparent);
  color: var(--simulated-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.mock-window {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mock-mark {
  width: 22px;
  height: 22px;
  --logo-hole: var(--surface);
}

.mock-app {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
}

.mock-date {
  margin-inline-start: auto;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mock-kpi {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.mock-kpi-value {
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mock-kpi-label {
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.3;
}

.mock-heading {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-task {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.mock-task:first-child {
  border-top: 0;
}

.mock-task-main {
  display: grid;
  min-width: 0;
}

.mock-task-action {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-task-ref {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-task-due {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.pill {
  justify-self: start;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill-danger {
  background: var(--danger-subtle);
  color: var(--danger-text);
}

.pill-warning {
  background: var(--warning-subtle);
  color: var(--warning-text);
}

.pill-neutral {
  background: var(--surface-2);
  color: var(--ink-soft);
}

.pill-lime {
  background: var(--lime-subtle);
  color: var(--accent-text);
}

@media (prefers-color-scheme: light) {
  .pill-lime {
    color: #2f4a0b;
  }
}

.mock-message {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.mock-message-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 600;
}

.mock-message p {
  color: var(--ink-soft);
}

@media (max-width: 479px) {
  .mock-window {
    padding: 12px;
  }

  .mock-task {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mock-task .pill {
    grid-column: 1 / -1;
  }

  .mock-kpi {
    padding: 8px;
  }

  .mock-kpi-value {
    font-size: 1.125rem;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-alt {
  background: var(--paper-deep);
  --logo-hole: var(--paper-deep);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

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

.section-head h2 {
  font-size: clamp(1.875rem, 2.4vw + 1rem, 3rem);
}

.section-head .lead {
  margin-top: 16px;
}

.reveal {
  min-width: 0;
}

/* Platform */

.pillars {
  display: grid;
  gap: 16px;
}

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

.pillar {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.pillar-index {
  display: block;
  margin-bottom: 18px;
  color: var(--logo-mark);
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
}

.pillar h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.pillar p,
.feature p,
.security-item p,
.role-summary,
.benefit dd,
.step p {
  color: var(--ink-soft);
}

.sources {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
}

.sources-title {
  margin-bottom: 14px;
  font-weight: 600;
}

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

.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9375rem;
}

/* Features */

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition:
    border-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.feature:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--brand-green);
  color: var(--lime);
}

.feature-icon .icon {
  width: 22px;
  height: 22px;
}

.ticks {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.9375rem;
}

.ai-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--brand-green);
  color: var(--cream);
}

.ai-card h3 {
  margin: 10px 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem);
  font-weight: 500;
}

.ai-card p:not(.badge) {
  color: var(--cream-soft);
  max-width: 62em;
}

.ai-card .badge {
  background: color-mix(in srgb, var(--lime) 18%, transparent);
  color: var(--lime);
}

.ai-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lime) 14%, transparent);
  color: var(--lime);
}

@media (max-width: 559px) {
  .ai-card {
    flex-direction: column;
  }
}

/* Brand band (how it works, final call to action) */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--brand-green);
  color: var(--cream);
  --logo-hole: var(--brand-green);
}

.band .eyebrow {
  color: var(--lime);
}

.band .eyebrow::before {
  background: var(--lime);
}

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

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

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--brand-green-2);
  border: 1px solid rgb(243 242 236 / 10%);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--lime);
  color: #0b2a1f;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin-bottom: 8px;
  color: var(--cream);
}

.band .step p {
  color: var(--cream-soft);
}

/* Roles */

.role-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.role {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.role-head h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 500;
}

/* Benefits */

.split {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
  }

  .split .section-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    margin-bottom: 0;
  }
}

.benefits {
  display: grid;
  gap: 0;
  margin: 0;
}

.benefit {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

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

.benefit dt {
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.2;
}

.benefit dd {
  margin: 0;
}

/* Security */

.security-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.security-item {
  padding: 26px 24px;
  background: var(--surface);
}

.security-item h3 {
  margin-bottom: 8px;
}

/* Demo */

.demo-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .demo-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
  }
}

.demo-intro .section-head {
  margin-bottom: 32px;
}

.next-title {
  margin-bottom: 14px;
}

.next-steps {
  display: grid;
  gap: 12px;
  counter-reset: next;
}

.next-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  counter-increment: next;
}

.next-steps li::before {
  content: counter(next);
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-green);
  color: var(--lime);
  font-size: 0.8125rem;
  font-weight: 700;
}

.direct {
  margin-top: 28px;
  color: var(--ink-soft);
}

.direct a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.demo-card {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.demo-form h3,
.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 500;
}

.form-required {
  margin: 6px 0 20px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.req {
  color: var(--danger-text);
}

.optional {
  color: var(--ink-soft);
  font-weight: 400;
}

.form-grid {
  display: grid;
  gap: 18px;
}

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

  .field[data-field='message'] {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.field label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.hint {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--input);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.field [aria-invalid='true'] {
  border-color: var(--danger-text);
}

.field-error {
  color: var(--danger-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status,
.form-failure {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warning-subtle);
  color: var(--warning-text);
  font-size: 0.9375rem;
}

.form-failure {
  background: var(--danger-subtle);
  color: var(--danger-text);
}

.form-status a,
.form-failure a {
  color: inherit;
  font-weight: 600;
}

.demo-form .btn {
  margin-top: 22px;
  width: 100%;
}

@media (min-width: 640px) {
  .demo-form .btn {
    width: auto;
  }
}

.form-privacy {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.form-success {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding-block: 24px;
}

.form-success:focus {
  outline: none;
}

.form-success[hidden] {
  display: none;
}

.success-icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 999px;
  background: var(--lime-subtle);
  color: var(--logo-mark);
  stroke-width: 2.4;
}

.form-success p {
  color: var(--ink-soft);
}

/* FAQ */

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

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

.faq-item summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--ink-soft);
}

/* Final call to action */

.final-cta {
  padding-block: clamp(72px, 10vw, 128px);
  text-align: center;
}

.cta-route {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(720px, 120vw);
  height: min(720px, 120vw);
  transform: translate(-50%, -50%);
  opacity: 0.08;
  --logo-mark: var(--lime);
}

.final-cta-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 820px;
}

.final-cta h2 {
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
}

.final-cta p {
  color: var(--cream-soft);
  font-size: 1.125rem;
  max-width: 36em;
}

.final-cta .btn {
  margin-top: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 56px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  --logo-hole: var(--paper-deep);
}

.footer-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }
}

.footer-brand p {
  margin-top: 16px;
  max-width: 28em;
  color: var(--ink-soft);
}

.footer-nav {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}

.footer-nav h2 {
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-nav ul {
  display: grid;
  gap: 4px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--ink);
  text-decoration: none;
}

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

.footer-mail span {
  overflow-wrap: anywhere;
}

.footer-bottom {
  margin-top: 48px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.footer-bottom p {
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- Legal and message pages ---------- */

.legal h1,
.message-page h1 {
  font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
  margin-bottom: 32px;
}

.legal section {
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.legal h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.legal p {
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.legal a {
  overflow-wrap: anywhere;
}

.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--warning-subtle);
  color: var(--warning-text);
  font-weight: 600;
}

.updated {
  margin-top: 24px;
  font-size: 0.875rem;
}

.message-page .container {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.message-page h1 {
  margin-bottom: 8px;
}

.message-page .lead {
  margin-bottom: 24px;
}

.message-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
}

/* ---------- Motion: subtle, screens only, never under reduced motion ---------- */

@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-copy > *,
  .hero .mock {
    animation: enter 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 60ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 120ms;
  }

  .hero-copy > :nth-child(n + 4) {
    animation-delay: 180ms;
  }

  .hero .mock {
    animation-delay: 220ms;
  }

  .hero-route {
    animation: route 1600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

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

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes route {
  from {
    opacity: 0;
    transform: rotate(-30deg) scale(0.94);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@media print {
  .site-header,
  .final-cta,
  .demo-card,
  .hero-route {
    display: none;
  }
}
