/* =============================================================
   Downgate Labs — site design system
   Product-forward, neutral base, one accent per app.
   ============================================================= */

:root {
  /* Neutrals */
  --ink: #0e1116;
  --ink-soft: #39424f;
  --muted: #5a6472;
  --paper: #fbfbfc;
  --paper-deep: #f2f3f5;
  --white: #ffffff;
  --line: rgba(14, 17, 22, 0.11);
  --line-strong: rgba(14, 17, 22, 0.18);

  /* App accents, taken from each app icon. All >= 5:1 on white. */
  --lapser: #0e7490;
  --hsa: #0f7a46;
  --prevyu: #2563eb;
  --teal: #0e7490; /* legacy alias consumed by privacy.css */

  /* Elevation */
  --shadow-soft: 0 1px 2px rgba(14, 17, 22, 0.04), 0 8px 24px rgba(14, 17, 22, 0.06);
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.05), 0 18px 44px rgba(14, 17, 22, 0.1);

  /* Radii — tight and consistent */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Images keep their intrinsic proportions. The height:auto here is what stops
   the width/height HTML attributes from forcing a literal pixel height on
   every screenshot. */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

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

/* Grid children default to min-width:auto, which lets an image's intrinsic
   width (1290px, 2160px…) force the track wider than the viewport. Every grid
   that holds a screenshot needs this. */
.hero-grid > *,
.hero-devices > *,
.app-list > *,
.app-block > *,
.app-shots > *,
.product-hero-grid > *,
.product-showcase > *,
.section-heading > *,
.story-grid > *,
.faq-layout > *,
.video-block > * {
  min-width: 0;
}

.skip-link {
  position: absolute;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-200%);
  border-radius: var(--radius-sm);
  color: white;
  background: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout primitives ---------- */

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

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

.section-tight {
  padding-block: clamp(44px, 5vw, 72px);
}

.section-heading {
  display: grid;
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.033em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  font-size: 1.16rem;
  letter-spacing: -0.018em;
}

p {
  margin-top: 0;
}

.lede {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.3vw, 1.16rem);
  line-height: 1.62;
}

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

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 26px;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button-primary {
  color: white;
  background: var(--ink);
}

.button-primary:hover {
  background: #262c36;
}

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

.button-secondary:hover {
  background: var(--paper-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
}

.text-link span {
  transition: transform 150ms ease;
}

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

.text-link:hover span {
  transform: translateX(3px);
}

/* ---------- Store buttons ---------- */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 0 18px 0 15px;
  gap: 11px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  color: white;
  text-decoration: none;
  background: var(--ink);
  transition: background 150ms ease;
}

.store-btn:hover {
  background: #262c36;
}

.store-btn svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.store-btn-text {
  display: grid;
  gap: 1px;
  text-align: left;
}

.store-btn-text small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.store-btn-text strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

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

.store-btn-ghost:hover {
  background: var(--paper-deep);
}

.store-btn-ghost .store-btn-text small {
  color: var(--muted);
}

/* ---------- Platform / meta pills ---------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 7px;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.755rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pill-accent {
  border-color: color-mix(in srgb, var(--product, var(--ink)) 24%, transparent);
  color: var(--product, var(--ink));
  background: color-mix(in srgb, var(--product, var(--ink)) 7%, var(--white));
}

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

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

.site-header.scrolled,
.site-header.menu-open {
  border-color: var(--line);
}

.nav-inner {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.99rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%230e1116'/%3E%3Crect x='7.06' y='16.56' width='3.94' height='8.94' rx='1.97' fill='%23fff'/%3E%3Crect x='14.06' y='11.56' width='3.94' height='13.94' rx='1.97' fill='%23fff'/%3E%3Crect x='21.06' y='6.56' width='3.94' height='18.94' rx='1.97' fill='%230e7490'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.885rem;
  font-weight: 550;
}

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

.nav-links .nav-cta {
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  color: white;
  background: var(--ink);
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  color: white;
  background: #262c36;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 150ms ease;
}

.menu-open .nav-toggle span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-open .nav-toggle span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* =============================================================
   Homepage
   ============================================================= */

.hero {
  padding: clamp(52px, 6vw, 92px) 0 clamp(44px, 5vw, 72px);
}

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

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 22px;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-meta strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* Three real screenshots at their own proportions — nothing cropped. */
.hero-devices {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}

.hero-device {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.hero-device:nth-child(1) {
  transform: translateY(18px);
}

.hero-device:nth-child(3) {
  transform: translateY(30px);
}

.hero-device .device {
  width: 100%;
  transition: transform 200ms ease;
}

.hero-device:hover .device {
  transform: translateY(-5px);
}

.hero-device-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.755rem;
  font-weight: 600;
}

.hero-device-label img {
  width: 17px;
  height: 17px;
  border-radius: 4px;
}

.hero-device-label:hover {
  color: var(--ink);
}

/* Shared phone frame. Height follows the screenshot, so no image is ever
   stretched or cut off. */
.device {
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #0b0e12;
  box-shadow: var(--shadow);
}

.device img {
  width: 100%;
  border-radius: 15px;
}

/* HSA Hoard and Prevyu ship store graphics that already contain a device
   mockup. Drop the site's phone frame for those so we don't render a phone
   inside a phone. */
.device.is-flat,
.app-block.hsa .device,
.app-block.prevyu .device,
.product-page.hsa .showcase-phone,
.product-page.prevyu .showcase-phone {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.device.is-flat img,
.app-block.hsa .device img,
.app-block.prevyu .device img,
.product-page.hsa .showcase-phone img,
.product-page.prevyu .showcase-phone img {
  border-radius: 0;
}

.product-page.hsa .screenshot-card button,
.product-page.prevyu .screenshot-card button {
  padding: 0;
}

.product-page.hsa .screenshot-card img,
.product-page.prevyu .screenshot-card img {
  border-radius: 19px;
}

/* ---------- Proof strip ---------- */

.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--white);
}

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

.proof-item {
  padding: 22px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.proof-item:first-child {
  padding-left: 0;
}

.proof-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.proof-value {
  margin-bottom: 3px;
  font-size: 0.99rem;
  font-weight: 650;
  letter-spacing: -0.018em;
}

.proof-label {
  color: var(--muted);
  font-size: 0.845rem;
  line-height: 1.5;
}

/* ---------- App blocks ---------- */

.app-list {
  display: grid;
  gap: clamp(20px, 2.5vw, 30px);
}

.app-block {
  --product: var(--ink);

  display: grid;
  align-items: center;
  padding: clamp(28px, 3.5vw, 46px);
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(30px, 4vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.app-block.lapser {
  --product: var(--lapser);
}

.app-block.hsa {
  --product: var(--hsa);
}

.app-block.prevyu {
  --product: var(--prevyu);
}

.app-block:nth-child(even) .app-copy {
  order: 2;
}

.app-head {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 13px;
}

.app-head img {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.app-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.app-cat {
  display: block;
  color: var(--product);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.app-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}

.app-copy > p {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 1.01rem;
}

.app-points {
  display: grid;
  margin: 0 0 22px;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.app-points li {
  position: relative;
  padding-left: 25px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.app-points li::before {
  position: absolute;
  top: 0.52em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: '';
  background: var(--product);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
  gap: 10px 18px;
}

.app-shots {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.app-shots .device:nth-child(2) {
  margin-top: clamp(18px, 3vw, 40px);
}

.app-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Principles ---------- */

.principles {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 34px);
}

.principle-card {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.principle-number {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.principle-card h3 {
  margin-bottom: 9px;
}

.principle-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Contact ---------- */

.contact-band {
  display: grid;
  align-items: center;
  padding: clamp(34px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.contact-band h2 {
  margin-bottom: 12px;
}

.contact-band p {
  margin-bottom: 0;
}

.contact-band .button-row {
  margin-top: 0;
}

.contact-band a:not(.button) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* =============================================================
   Product pages
   ============================================================= */

.product-page {
  --product: var(--lapser);
}

.product-page.hsa {
  --product: var(--hsa);
}

.product-page.prevyu {
  --product: var(--prevyu);
}

.product-page .eyebrow {
  color: var(--product);
}

.product-hero {
  padding: clamp(30px, 4vw, 52px) 0 clamp(52px, 6vw, 84px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 34px;
  gap: 8px;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 500;
}

.breadcrumb a {
  text-decoration: none;
}

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

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

.hero-product-id {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  gap: 14px;
}

.hero-product-id img {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hero-product-id strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hero-product-id span {
  color: var(--product);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-hero h1 {
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.store-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.815rem;
}

/* Two screenshots, natural proportions, side by side. */
.product-showcase {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.showcase-phone {
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #0b0e12;
  box-shadow: var(--shadow);
}

.showcase-phone img {
  width: 100%;
  border-radius: 17px;
}

.showcase-phone:last-child:not(:first-child) {
  margin-top: clamp(22px, 4vw, 52px);
}

/* ---------- Trust bar ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.trust-item {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.925rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.825rem;
}

/* ---------- Story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(36px, 6vw, 88px);
}

.story-aside {
  align-self: start;
}

.story-aside h2 {
  margin-bottom: 18px;
}

.story-body > p {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.6;
}

.story-points {
  display: grid;
  margin-top: 34px;
  gap: 20px;
}

.story-point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
}

.story-point-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--product) 26%, transparent);
  border-radius: 50%;
  color: var(--product);
  background: color-mix(in srgb, var(--product) 8%, var(--white));
  font-size: 0.82rem;
  font-weight: 650;
}

.story-point h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
  font-weight: 650;
}

.story-point p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Features ---------- */

.feature-section {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.feature-card.feature-wide {
  grid-column: span 8;
}

.feature-card.feature-accent {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.feature-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--product);
  background: color-mix(in srgb, var(--product) 10%, var(--white));
  font-size: 0.98rem;
  font-weight: 650;
}

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  font-weight: 650;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.925rem;
}

.feature-accent p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-accent .feature-icon {
  color: white;
  background: rgba(255, 255, 255, 0.13);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  margin-top: 40px;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.step {
  padding-top: 20px;
  border-top: 2px solid var(--product);
}

.step-number {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.step h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  font-weight: 650;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Use cases ---------- */

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.use-case {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.use-case small {
  display: block;
  margin-bottom: 16px;
  color: var(--product);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.use-case h3 {
  margin-bottom: 9px;
  font-size: 1.02rem;
  font-weight: 650;
}

.use-case p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.925rem;
}

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

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

.pricing-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-inline: auto;
}

.pricing-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.pricing-card.featured {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.pricing-label {
  margin-bottom: 18px;
  color: var(--product);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pricing-card.featured .pricing-label {
  color: color-mix(in srgb, var(--product) 45%, white);
}

.pricing-card h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
  font-weight: 650;
}

.pricing-card > p {
  color: var(--muted);
  font-size: 0.925rem;
}

.pricing-card.featured > p,
.pricing-card.featured li {
  color: rgba(255, 255, 255, 0.72);
}

.check-list {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.885rem;
  line-height: 1.5;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--product);
  content: '✓';
  font-size: 0.85rem;
  font-weight: 700;
}

.pricing-card.featured .check-list li::before {
  color: color-mix(in srgb, var(--product) 45%, white);
}

/* ---------- Detail band ---------- */

.detail-band {
  padding: clamp(28px, 3.4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.detail-band h2 {
  max-width: 760px;
  margin-bottom: 14px;
}

.detail-band > p {
  max-width: 820px;
  color: var(--muted);
}

.detail-columns {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 34px;
}

.detail-columns h3 {
  margin-bottom: 7px;
  font-size: 0.99rem;
  font-weight: 650;
}

.detail-columns p {
  margin: 0;
  color: var(--muted);
  font-size: 0.925rem;
}

.source-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.815rem;
}

/* ---------- Video ---------- */

.video-block {
  display: grid;
  align-items: center;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(32px, 5vw, 70px);
}

.video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Gallery ----------
   Fixed frame height with object-fit:contain, so screenshots of differing
   aspect ratios line up without any of them being cropped. */

.gallery-section {
  overflow: hidden;
  color: white;
  border-block: 1px solid var(--line);
  background: var(--ink);
}

.gallery-section .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.gallery-section .section-heading p {
  color: rgba(255, 255, 255, 0.66);
}

.screenshot-track {
  display: flex;
  overflow-x: auto;
  align-items: flex-start;
  padding: 4px max(20px, calc((100vw - var(--max)) / 2)) 26px;
  gap: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.screenshot-card {
  width: min(252px, 68vw);
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

.screenshot-card button {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  cursor: zoom-in;
  background: #0b0e12;
}

.screenshot-card img {
  width: 100%;
  height: 460px;
  border-radius: 15px;
  background: #0b0e12;
  object-fit: contain;
}

.screenshot-card figcaption {
  padding: 13px 6px 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.83rem;
  line-height: 1.45;
}

/* ---------- Product CTA ---------- */

.product-cta {
  padding: clamp(36px, 4.5vw, 62px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.product-cta h2 {
  max-width: 720px;
  margin-bottom: 14px;
}

.legal-note {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.795rem;
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: clamp(36px, 6vw, 88px);
}

.faq-intro h2 {
  margin-bottom: 16px;
}

.faq-intro p {
  font-size: 0.94rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.985rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

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

.faq-list summary::after {
  position: absolute;
  top: 19px;
  right: 4px;
  color: var(--product, var(--muted));
  content: '+';
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  max-width: 660px;
  padding: 0 44px 20px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* =============================================================
   Footer + lightbox
   ============================================================= */

.site-footer {
  padding: 52px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 36px;
  gap: 40px;
}

.footer-note {
  max-width: 340px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.855rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 9px 44px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.855rem;
  font-weight: 500;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  gap: 20px;
  color: var(--muted);
  font-size: 0.79rem;
}

.lightbox {
  position: fixed;
  z-index: 3000;
  display: none;
  inset: 0;
  padding: 26px;
  place-items: center;
  background: rgba(8, 11, 15, 0.92);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(480px, 90vw);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.5rem;
}

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 980px) {
  .hero-grid,
  .product-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .product-hero-grid > div:first-child {
    max-width: 700px;
  }

  .hero-devices,
  .product-showcase {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .app-block,
  .app-block:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .app-block:nth-child(even) .app-copy {
    order: 0;
  }

  .app-shots {
    width: min(100%, 480px);
  }

  .principle-grid,
  .use-case-grid,
  .pricing-grid,
  .pricing-grid-2 {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card.feature-wide {
    grid-column: span 6;
  }

  .video-block {
    grid-template-columns: 1fr;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 12px;
    flex-direction: column;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 10px 11px;
  }

  .nav-links .nav-cta {
    text-align: center;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-device:nth-child(1),
  .hero-device:nth-child(3) {
    transform: none;
  }

  .hero-device-label {
    font-size: 0.71rem;
  }

  .proof-grid,
  .trust-grid,
  .story-grid,
  .faq-layout,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:first-child,
  .proof-item:last-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .trust-item {
    padding: 17px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .feature-card,
  .feature-card.feature-wide {
    grid-column: span 12;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 2.1rem;
  }

  .button-row .button,
  .store-row .store-btn {
    width: 100%;
  }

  .app-block {
    padding: 22px 18px;
  }

  .screenshot-card img {
    height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .hero-device:hover .device,
  .text-link:hover span {
    transform: none;
  }
}
