/* ==========================================================================
   AeroLog — marketing stylesheet
   Shared by index, pricing, support and the legal pages.
   Design language: Apple HIG on the web — system type, translucent chrome,
   critically damped motion, light/dark parity.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  color-scheme: light dark;

  /* Brand — sampled from the app's accent */
  --blue: #0071e3;
  --blue-press: #0058b0;
  --blue-tint: rgba(0, 113, 227, 0.1);

  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-sunken: #f5f5f7;

  /* Ink */
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;

  /* Lines & materials */
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.06);
  --chrome: rgba(255, 255, 255, 0.72);
  --chrome-heavy: rgba(255, 255, 255, 0.94);

  /* Elevation — small surfaces stay tight, large ones read thicker */
  --lift-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --lift-2: 0 2px 6px rgba(0, 0, 0, 0.06), 0 18px 44px rgba(0, 0, 0, 0.1);
  --lift-3: 0 4px 12px rgba(0, 0, 0, 0.08), 0 40px 90px rgba(0, 0, 0, 0.18);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 980px;

  --maxw: 1040px;
  --gutter: 22px;
  --nav-h: 52px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Response — the skill's spring defaults, expressed as easing */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in: cubic-bezier(1, 0, 0.68, 0.28);
  --resp: 0.4s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #2997ff;
    --blue-press: #1a7fe0;
    --blue-tint: rgba(41, 151, 255, 0.14);

    --bg: #000000;
    --bg-alt: #0a0a0b;
    --surface: #131315;
    --surface-sunken: #1c1c1e;

    --ink: #f5f5f7;
    --ink-soft: #a1a1a6;
    --ink-faint: #86868b;

    --line: rgba(255, 255, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.08);
    --chrome: rgba(20, 20, 22, 0.72);
    --chrome-heavy: rgba(20, 20, 22, 0.95);

    --lift-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    --lift-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 18px 44px rgba(0, 0, 0, 0.45);
    --lift-3: 0 4px 12px rgba(0, 0, 0, 0.6), 0 40px 90px rgba(0, 0, 0, 0.6);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


/* ---- Type -------------------------------------------------------------- */
/* Tracking is size-specific: large type tightens, body sits near zero. */
.display {
  font-size: clamp(2.5rem, 6.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 0;
}

.headline {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
  margin: 0;
}


.lead {
  font-size: clamp(1.125rem, 1.9vw, 1.3125rem);
  line-height: 1.42;
  letter-spacing: -0.004em;
  color: var(--ink-soft);
  margin: 0;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: 0.004em;
  color: var(--ink-faint);
}

/* ==========================================================================
   Chrome — translucent nav, content scrolls underneath
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow var(--resp) var(--ease-out);
}

/* Scroll edge effect: a soft shadow appears only once content slides under. */
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px -16px rgba(0, 0, 0, 0.4);
}

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

/* The toggle sits before the nav in the DOM so `:checked ~ .main-nav` can
   reach it; `order` puts everything back where it belongs on screen. */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin-right: auto;
  order: 1;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 22px;
  height: 22px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  order: 2;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.004em;
  transition: color 0.15s var(--ease-out);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.nav-cta {
  order: 3;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  padding: 5px 13px;
  border-radius: var(--r-pill);
  transition: background 0.15s var(--ease-out), transform 0.1s var(--ease-out);
}

.nav-cta:hover {
  text-decoration: none;
  background: var(--blue-press);
}

.nav-cta:active {
  transform: scale(0.97);
}

/* Mobile nav — checkbox toggle, works without JS */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  order: 4;
  width: 34px;
  height: 34px;
  margin-right: -8px;
  cursor: pointer;
  position: relative;
}

/* The checkbox is invisible but still tabbable — show its focus on the label */
.nav-toggle:focus-visible ~ .nav-toggle-label {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 8px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  position: absolute;
  left: 9px;
  width: 16px;
  height: 1px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--resp) var(--ease-out), opacity 0.15s linear;
}

.nav-toggle-label span {
  top: 17px;
}

.nav-toggle-label span::before {
  content: "";
  left: 0;
  transform: translateY(-4px);
}

.nav-toggle-label span::after {
  content: "";
  left: 0;
  transform: translateY(4px);
}

.nav-toggle:checked ~ .nav-toggle-label span {
  background: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
  transform: rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
  transform: rotate(-45deg);
}

@media (max-width: 800px) {
  .nav-toggle-label {
    display: block;
  }

  /* Enters and exits along the same path — down from the bar it belongs to. */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 18px;
    background: var(--chrome-heavy);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line-soft);
    transform-origin: top center;
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--resp) var(--ease-in), opacity 0.2s linear,
      visibility 0s linear var(--resp);
  }

  .nav-toggle:checked ~ .main-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform var(--resp) var(--ease-out), opacity 0.2s linear,
      visibility 0s;
  }

  .main-nav a {
    padding: 13px 2px;
    font-size: 1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .site-header .container {
    position: relative;
  }
}

/* ==========================================================================
   Buttons — feedback lands on press, not release
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.002em;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out),
    border-color 0.15s var(--ease-out), transform 0.1s var(--ease-out);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-press);
  color: #fff;
}


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

/* Text link with a chevron that leans in the direction it takes you */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 1.0625rem;
  font-weight: 400;
}

.link-arrow:hover {
  text-decoration: none;
}

.link-arrow::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  transition: transform var(--resp) var(--ease-out);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: clamp(72px, 11vw, 128px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* Follows a .page-head, which already carries the top space */
.section-tight {
  padding-top: 0;
}

.section-head {
  max-width: 34ch;
  margin: 0 0 clamp(40px, 6vw, 64px);
}

.section-head.center {
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: clamp(64px, 10vw, 108px) 0 0;
  text-align: center;
  overflow: hidden;
}

.hero .display {
  max-width: 16ch;
  margin: 0 auto;
}

.hero .lead {
  max-width: 48ch;
  margin: 22px auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 32px;
}

.hero-stage {
  position: relative;
  margin-top: clamp(48px, 7vw, 76px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 4vw, 44px);
  padding-bottom: 4px;
}

/* A soft pool of brand light behind the devices, not a hard gradient band */
.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  width: min(760px, 110%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at center,
    var(--blue-tint) 0%,
    transparent 62%
  );
}

.hero-stage .device {
  width: min(300px, 62vw);
  flex: 0 0 auto;
}

.hero-stage .device-side {
  width: min(232px, 40vw);
  margin-bottom: clamp(20px, 5vw, 44px);
  opacity: 0.96;
}

@media (max-width: 640px) {
  .hero-stage .device-side {
    display: none;
  }
}

/* ==========================================================================
   Device frame — screenshots read as hardware, not floating rectangles
   ========================================================================== */
.device {
  position: relative;
  border-radius: clamp(26px, 9%, 44px);
  padding: 1.6%;
  background: linear-gradient(160deg, #46464b, #1b1b1e 42%, #3a3a3f);
  box-shadow: var(--lift-3);
}

.device::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.device img {
  width: 100%;
  border-radius: calc(clamp(26px, 9%, 44px) - 3px);
  background: #000;
}

/* ==========================================================================
   Showcase — alternating copy / screenshot rows
   ========================================================================== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.showcase + .showcase {
  margin-top: clamp(72px, 10vw, 120px);
}

.showcase.flip .showcase-media {
  order: -1;
}

/* The screenshot sits on a tile and rises past its bottom edge, so a tall
   portrait device reads as a composed surface instead of dead space. */
.showcase-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(32px, 5vw, 46px) 20px 0;
  background: var(--surface-sunken);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.showcase-media .device {
  width: min(252px, 64vw);
  margin-bottom: clamp(-56px, -5vw, -28px);
}

.showcase-copy .lead {
  margin-top: 16px;
}

.showcase-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.showcase-points li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.showcase-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 800px) {
  .showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .showcase.flip .showcase-media {
    order: 0;
  }

  .showcase-points {
    display: inline-block;
    text-align: left;
  }
}

/* ==========================================================================
   Feature grid
   ========================================================================== */
/* Three headline features get room to explain themselves */
.new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* Eight features — four columns land as two full rows, never a ragged one. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--lift-1);
  padding: 26px 24px 28px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--blue);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 7px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.008em;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.47;
}

.badge-pro {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: var(--r-pill);
  vertical-align: middle;
}

/* ==========================================================================
   Plans — index teaser and the pricing page share these
   ========================================================================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-1);
  padding: 32px 30px 34px;
}

.plan-featured {
  border-color: var(--blue);
  box-shadow: var(--lift-2);
}

.plan-name {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.plan-tag {
  margin: 0 0 24px;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.plan-price .amount {
  font-size: clamp(2.25rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1;
}

.plan-featured .plan-price .amount {
  color: var(--blue);
}

.plan-price .period {
  font-size: 1rem;
  color: var(--ink-soft);
}

.plan-note {
  display: inline-block;
  margin: -8px 0 24px;
  padding: 4px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: var(--r-pill);
}

.plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 26px;
}

.plan-option {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--surface-sunken);
}

.plan-option .amount {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan-option .label {
  display: block;
  margin-top: 1px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  .plan-options {
    grid-template-columns: 1fr;
  }
}

.includes-label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.plan li::before {
  content: "";
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.4l2.6 2.6L12 5.4'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.plan li.soon {
  color: var(--ink-faint);
}

.plan li.soon::before {
  background: var(--surface-sunken)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' d='M8 4.5v7M4.5 8h7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.plan-cta {
  text-align: center;
  margin-top: 40px;
}

.pricing-note {
  max-width: 56ch;
  margin: 36px auto 0;
  text-align: center;
}

/* ==========================================================================
   Closing call to action
   ========================================================================== */
.cta {
  padding: clamp(72px, 10vw, 112px) 0;
  text-align: center;
}

.cta .lead {
  max-width: 44ch;
  margin: 18px auto 0;
}

.cta .hero-actions {
  margin-top: 30px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 40px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .copyright {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   Page header (pricing, support, legal)
   ========================================================================== */
.page-head {
  padding: clamp(56px, 8vw, 84px) 0 clamp(32px, 5vw, 48px);
  text-align: center;
}

.page-head .lead {
  max-width: 44ch;
  margin: 16px auto 0;
}

.page-head.left {
  text-align: left;
}

.page-head.left .lead {
  margin-left: 0;
}

/* ==========================================================================
   Legal & long-form copy
   ========================================================================== */
.legal {
  padding: clamp(56px, 8vw, 84px) 0 clamp(72px, 10vw, 104px);
}

.legal .container {
  max-width: 720px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
  margin: 0 0 10px;
}

.legal .updated {
  margin: 0 0 40px;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.legal h2 {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 44px 0 12px;
}

.legal h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

.legal p,
.legal ul,
.legal ol {
  color: var(--ink-soft);
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.62;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li {
  margin: 7px 0;
}

.legal a {
  word-break: break-word;
}

/* ==========================================================================
   Support form
   ========================================================================== */
.contact-form {
  display: grid;
  gap: 18px;
  margin: 0 0 26px;
}

.contact-form .field {
  display: grid;
  gap: 7px;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-tint);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn {
  justify-self: start;
}

/* ==========================================================================
   Scroll reveal — opacity + a short rise, started by JS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Nothing hides if JS never runs */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Accessibility preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transform: none;
    transition: opacity 0.2s ease;
  }

  .btn:active,
  .nav-cta:active {
    transform: none;
  }

  .link-arrow:hover::after {
    transform: none;
  }

  .main-nav {
    transition: opacity 0.2s ease, visibility 0s !important;
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .main-nav {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #3c3c40;
    --ink-faint: #4a4a4e;
    --line: rgba(0, 0, 0, 0.45);
    --line-soft: rgba(0, 0, 0, 0.3);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --ink-soft: #e4e4e7;
      --ink-faint: #d0d0d4;
      --line: rgba(255, 255, 255, 0.5);
      --line-soft: rgba(255, 255, 255, 0.35);
    }
  }

  .site-header,
  .main-nav {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid var(--line);
  }

  .card,
  .plan {
    border-color: var(--line);
  }
}
