/* ==========================================================================
   DaVinciMotionLabs — marketing site
   Design tokens
   ========================================================================== */

:root {
  /* Brand palette: blue / black / white */
  --color-blue: #1e40af;
  --color-blue-hover: #1d3ea0;
  --color-blue-soft: #e0e7ff;
  --color-blue-ink: #0b1f5c;

  --color-ink: #0a0a0a;
  --color-ink-soft: rgba(10, 10, 10, 0.72);
  --color-ink-muted: rgba(10, 10, 10, 0.56);
  --color-ink-faint: rgba(10, 10, 10, 0.38);

  --color-paper: #ffffff;
  --color-paper-alt: #f6f8fb;
  --color-line: rgba(10, 10, 10, 0.08);
  --color-line-strong: rgba(10, 10, 10, 0.14);

  --color-dark-bg: #0a0a0a;
  --color-dark-surface: #111114;
  --color-dark-line: rgba(255, 255, 255, 0.1);
  --color-dark-text-muted: rgba(255, 255, 255, 0.62);
  --color-dark-text-faint: rgba(255, 255, 255, 0.4);

  /* Accent used as TEXT (links, kickers). Separate from --color-blue, which
     is a fill: in dark mode the fill stays deep but text needs a lighter blue
     to stay legible on black. */
  --color-accent-text: #1e40af;

  /* Surfaces */
  --color-surface: #ffffff;          /* cards, inputs, price cards */
  --nav-material: rgba(255, 255, 255, 0.72);
  --menu-material: rgba(255, 255, 255, 0.98); /* sits over text: must stay legible even where blur isn't rendered */
  --media-gradient: linear-gradient(135deg, var(--color-blue-soft), #f0f4ff);

  color-scheme: light dark;

  /* Typography: the platform system font (SF Pro on Apple devices) ships
     optical sizing and per-size tracking tables, so it's the default. */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Motion: a critically damped feel (fast start, no overshoot). Nothing on
     this site is gesture-driven, so CSS transitions are fine; they reverse
     from the current value when interrupted (e.g. toggling the menu twice). */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-ink: #f5f5f7;
    --color-ink-soft: rgba(245, 245, 247, 0.74);
    --color-ink-muted: rgba(245, 245, 247, 0.58);
    --color-ink-faint: rgba(245, 245, 247, 0.4);

    --color-paper: #000000;
    --color-paper-alt: #0c0c0f;
    --color-line: rgba(255, 255, 255, 0.1);
    --color-line-strong: rgba(255, 255, 255, 0.18);
    --color-blue-soft: rgba(110, 168, 255, 0.14);

    --color-accent-text: #7aa7ff;
    --color-surface: #111114;
    --nav-material: rgba(22, 22, 24, 0.72);
    --menu-material: rgba(22, 22, 24, 0.98);
    --media-gradient: linear-gradient(135deg, rgba(110, 168, 255, 0.16), rgba(110, 168, 255, 0.04));
  }
}

/* ==========================================================================
   Reset + base
   ========================================================================== */

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

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;  /* 17px: Apple's body size; rem so it scales with the user's setting */
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent-text);
  text-decoration: none;
  transition: color 0.15s var(--ease-out), opacity 0.15s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* no double-tap-zoom delay on taps */
}

a:hover {
  color: var(--color-accent-text);
  opacity: 0.8;
}

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

/* Hierarchy from weight + size + leading as a set. Tracking and leading are
   size-specific: the bigger the text, the tighter both get. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  color: inherit;
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.04; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.022em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -0.012em; font-weight: 600; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.005em; font-weight: 600; }

p {
  margin: 0 0 1em;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  color: var(--color-ink-soft);
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;  /* small text: slightly positive tracking */
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 0.75rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 3rem;
}

.section-heading p {
  margin-top: 0.75rem;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-dark {
  background: var(--color-dark-bg);
  color: #ffffff; /* always-dark surface: fixed, not theme-following */
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark .lead,
.section-dark p {
  color: var(--color-dark-text-muted);
}

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

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

/* ==========================================================================
   Announcement strip (top-of-page ticker)
   ========================================================================== */

.announce {
  background: linear-gradient(90deg, var(--color-blue-ink), var(--color-blue) 55%, var(--color-blue-ink));
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 10px 20px;
  position: relative;
  overflow: hidden;
}

.announce a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.15s var(--ease-out);
}

.announce a:hover { border-color: white; }

.announce-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: 1px;
}

/* ==========================================================================
   Nav
   ========================================================================== */

/* A translucent floating layer; content scrolls underneath it. No permanent
   divider: the hairline appears only once content actually sits under the bar
   (.is-scrolled, set by script.js). */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-material);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out);
}

.nav.is-scrolled { border-bottom-color: var(--color-line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.brand:hover { color: var(--color-ink); opacity: 1; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-ink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(30, 64, 175, 0.28);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 11px;
  border: 1px solid rgba(30, 64, 175, 0.18);
  pointer-events: none;
}

.section-dark .brand-mark::after,
.footer .brand-mark::after { border-color: rgba(255, 255, 255, 0.14); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--color-ink); opacity: 1; }
.nav-links a.active { color: var(--color-ink); font-weight: 600; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-line-strong);
  background: transparent;
  border-radius: 980px;
  padding: 7px 14px;
  cursor: pointer;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 100ms ease-out, background-color 0.2s var(--ease-out);
}

.nav-toggle:active { transform: scale(0.96); background: var(--color-paper-alt); }

/* Compact menu: the same material as the bar, dropping down from it and
   leaving the way it came (same path in and out). Only used at <=1100px. */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 16px 24px 24px;
  background: var(--menu-material);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transform-origin: top center;
  transition: opacity 0.22s var(--ease-out), transform 0.3s var(--ease-out),
    visibility 0s linear 0.3s;
}

.nav-mobile ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile a {
  color: var(--color-ink);
  font-weight: 500;
  font-size: 1.0625rem;
}

.nav-mobile .btn { width: 100%; justify-content: center; }
.nav-mobile .btn-primary { color: white; }

/* Collapse to the Menu button before the links run out of room (the
   "For programming companies" label needs ~1100px for a single line). */
@media (max-width: 1100px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 0.875rem; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile { display: block; }
  .nav-mobile.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s var(--ease-out), transform 0.3s var(--ease-out),
      visibility 0s;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* Feedback lives on the press and is instant (scale on :active); hover only
   shifts color. Capsule shape, as on Apple's own CTAs. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out), transform 100ms ease-out;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line-strong);
}

.btn-secondary:hover {
  color: var(--color-ink);
  border-color: var(--color-ink);
  background: var(--color-paper-alt);
}

.hero .btn-secondary,
.section-dark .btn-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.24);
}

.hero .btn-secondary:hover,
.section-dark .btn-secondary:hover {
  color: white;
  border-color: white;
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 15px 28px;
}

.btn-block { display: flex; width: 100%; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--color-accent-text);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.15s var(--ease-out);
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 96px 0 120px;
  background: var(--color-dark-bg);
  color: #ffffff; /* always-dark surface: fixed, not theme-following */
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 15% 20%, rgba(30, 64, 175, 0.35), transparent 60%),
    radial-gradient(ellipse 600px 500px at 85% 90%, rgba(30, 64, 175, 0.2), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

/* Two-column hero variant: copy left, product preview right.
   Used on the homepage. Other pages fall back to the default
   single-column .hero-inner. */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-split .hero-copy { max-width: 620px; }

.hero-preview {
  position: relative;
  aspect-ratio: 5 / 6;
  max-height: 560px;
  perspective: 1400px;
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-preview { display: none; }
}

/* ---- Preview card: mock workout / dashboard tile ---- */

.preview-card {
  position: absolute;
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(30, 64, 175, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.preview-card-main {
  top: 12%;
  left: 6%;
  right: 22%;
  bottom: 12%;
  transform: rotate(-2deg);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-card-float {
  top: 6%;
  right: 4%;
  width: 42%;
  padding: 16px;
  transform: rotate(4deg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, #14181f, #0d1017);
}

.preview-card-bottom {
  bottom: 4%;
  right: 10%;
  width: 46%;
  padding: 14px 16px;
  transform: rotate(3deg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6ea8ff;
}

.preview-eyebrow .preview-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  display: inline-block;
  margin-right: 6px;
  vertical-align: 1px;
}

.preview-title {
  font-family: var(--font-display);
  color: white;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.preview-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.preview-line.w-70 { width: 70%; }
.preview-line.w-90 { width: 90%; }
.preview-line.w-55 { width: 55%; }
.preview-line.w-40 { width: 40%; }

.preview-block {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-block .preview-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6ea8ff;
}

.preview-block .preview-body {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
}

.preview-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ea8ff, var(--color-blue));
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.preview-msg-name {
  color: white;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.preview-msg-body {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.28);
  color: #cddbff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-weight: 700;
  margin-bottom: 24px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.hero-meta span::before {
  content: "✓";
  margin-right: 8px;
  color: #6ea8ff;
}

/* ==========================================================================
   Cards
   ========================================================================== */

/* Cards here are content, not controls, so they don't move on hover: things
   that look alike must behave alike, and a lifting card promises a click. */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card h3 {
  margin-top: 12px;
  margin-bottom: 8px;
}

.card p {
  color: var(--color-ink-soft);
  margin: 0;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-soft);
  color: var(--color-accent-text);
}

/* ==========================================================================
   Split (two-column with imagery)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-reverse .split-media { order: -1; }

.split-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--media-gradient);
  border: 1px solid var(--color-line);
}

.split-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-text);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse .split-media { order: 0; }
}

/* ==========================================================================
   Bullet lists
   ========================================================================== */

.bullets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--color-ink-soft);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-blue-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231e40af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 8.5l3 3 6-7'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.section-dark .bullets li { color: var(--color-dark-text-muted); }
.section-dark .bullets li::before {
  background-color: rgba(110, 168, 255, 0.15);
}

/* ==========================================================================
   Branded-app showcase (row of "your app" mock icons)
   ========================================================================== */

.app-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .app-icons { grid-template-columns: repeat(2, 1fr); }
}

.app-icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 24px rgba(10, 10, 10, 0.18);
  position: relative;
}

.app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%);
  pointer-events: none;
}

.app-icon-1 { background: linear-gradient(135deg, #1e40af, #0b1f5c); }
.app-icon-2 { background: linear-gradient(135deg, #0f766e, #064e3b); }
.app-icon-3 { background: linear-gradient(135deg, #b45309, #7c2d12); }
.app-icon-4 { background: linear-gradient(135deg, #6d28d9, #3b0764); }

.app-icon-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.005em;
}

.section-dark .app-icon-name { color: white; }

.app-icon-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.section-dark .app-icon-meta { color: var(--color-dark-text-faint); }

/* ==========================================================================
   AI suggestion card (illustrative)
   ========================================================================== */

.ai-card {
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  color: white;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: 460px;
}

.ai-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.15);
  color: #6ea8ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ai-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ea8ff;
  box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.25);
}

.ai-context {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.ai-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 12px;
  color: white;
}

.ai-suggestion {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.ai-suggestion strong {
  display: block;
  color: white;
  font-weight: 600;
  margin-bottom: 4px;
}

.ai-suggestion span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.ai-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.ai-actions button {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  transition: background 0.15s var(--ease-out);
}

.ai-actions button.accept {
  background: var(--color-blue);
  color: white;
  border-color: transparent;
}

.ai-actions button.accept:hover { background: var(--color-blue-hover); }
.ai-actions button:not(.accept):hover { background: rgba(255, 255, 255, 0.06); }

/* Split layout used to pair AI card with copy */
.split-ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .split-ai { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--color-blue);
  box-shadow: 0 12px 40px rgba(30, 64, 175, 0.12);
  position: relative;
}

.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 12px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 4px;
}

.price-amount small {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink-muted);
  margin-left: 4px;
}

.price-desc {
  color: var(--color-ink-soft);
  margin: 12px 0 24px;
  min-height: 3em;
}

.price-card .bullets { margin-top: 0; margin-bottom: 24px; }
.price-card .btn { margin-top: auto; }

/* ==========================================================================
   Testimonial / social proof
   ========================================================================== */

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.quote-attr {
  margin-top: 24px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  text-align: center;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form {
  display: grid;
  gap: 16px;
  max-width: 480px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  color: var(--color-ink);
  transition: border-color 0.15s var(--ease-out),
    box-shadow 0.15s var(--ease-out);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.18);
}

.form-note {
  font-size: 12px;
  color: var(--color-ink-muted);
}

.form-status {
  font-size: 13px;
  font-weight: 500;
}

.form-status.success { color: #17663a; }
.form-status.error { color: #b1281f; }

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-ink));
  color: white;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin: 0 auto 28px;
  position: relative;
}

.cta-banner .btn-primary {
  background: white;
  color: var(--color-blue);
  position: relative;
}

.cta-banner .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-blue-ink);
}

.cta-banner .btn-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  position: relative;
}

.cta-banner .btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.cta-banner .btn-row {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-dark-bg);
  color: var(--color-dark-text-muted);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-dark-line);
}

.footer h4 {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  color: var(--color-dark-text-muted);
  font-size: 14px;
}

.footer a:hover {
  color: white;
  opacity: 1;
}

.footer .brand {
  color: white;
  margin-bottom: 12px;
}

.footer-tag {
  font-size: 14px;
  max-width: 320px;
  color: var(--color-dark-text-faint);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-dark-text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 12px; }
.mb-lg { margin-bottom: 32px; }

.eyebrow-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--color-ink-muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .nav-cta .btn-primary { display: none; } /* it's the last item in the menu */
  .brand { letter-spacing: 0.08em; }
}

/* Reduced motion is not "no feedback": keep the opacity/color cross-fades,
   drop movement (smooth scroll, slides, press scaling). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:active, .nav-toggle:active, .org-list a:active { transform: none; }
  .nav-mobile, .nav-mobile.open { transform: none; }
}

/* Reduced transparency: solid surfaces instead of blurred glass. */
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav-mobile {
    background: var(--color-paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Increased contrast: solid chrome with defined edges, stronger text. */
@media (prefers-contrast: more) {
  :root {
    --color-ink-soft: var(--color-ink);
    --color-line: rgba(127, 127, 127, 0.6);
    --color-line-strong: rgba(127, 127, 127, 0.85);
  }
  .nav, .nav-mobile {
    background: var(--color-paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--color-line-strong);
  }
}

/* Dark mode: checkmark bullets need a light stroke on the dark tint. */
@media (prefers-color-scheme: dark) {
  .bullets li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237aa7ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 8.5l3 3 6-7'/></svg>");
  }
  .footer { border-top: 1px solid var(--color-dark-line); }
}

/* ── Sign-in link in the nav + sign-in chooser page (sign-in.html) ── */
.nav-signin {
  color: var(--color-ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-signin:hover { color: var(--color-ink); opacity: 1; }
@media (max-width: 1100px) {
  .nav-signin { display: none; }
}

.signin-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.signin-card .btn { align-self: flex-start; margin-top: auto; }
.org-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.org-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--color-line-strong);
  border-radius: 14px;
  color: var(--color-ink);
  font-weight: 600;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    transform 100ms ease-out;
}
.org-list a:hover { border-color: var(--color-ink-muted); background: var(--color-paper-alt); opacity: 1; }
.org-list a:active { transform: scale(0.985); }
.org-list .org-host { color: var(--color-accent-text); font-weight: 500; font-size: 0.875rem; }
