/* ===== RetailNode website =====
 * The platform's look: the same tokens, type and shapes as the Cockpit and the
 * store console (retailnode-cockpit app/globals.css, retailnode-store
 * globals.css). Brand #ff4500 on slate, Outfit with JetBrains Mono for figures,
 * 10px radii, white cards on a slate-50 ground, and the slate-950 panel with
 * brand glow that the platform's sign-in screens open on. Light only, like the
 * Cockpit. Change a value here only together with the platform's.
 */
:root {
  --brand: #ff4500;
  --brand-hover: #ff5722;
  --brand-deep: #e63e00;
  --brand-ink: #ffffff;
  --brand-tint: #fff0eb;
  --brand-glow: rgba(255, 69, 0, 0.25);
  --accent-orange: #ff8a4d;
  --accent-teal: #0d9488;

  --ink: #0f172a;
  --ink-muted: #64748b;
  --ink-faint: #94a3b8;
  --background: #f8fafc;
  --surface: #ffffff;
  --muted: #f1f5f9;
  --border: #e2e8f0;

  /* The dark panel (slate-950) and what sits on it. */
  --night: #020617;
  --night-raised: #0f172a;
  --night-ink: #ffffff;
  --night-muted: #cbd5e1;
  --night-faint: #64748b;
  --night-line: rgba(255, 255, 255, 0.1);

  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 0.625rem;
  --radius-lg: 0.875rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 80px -24px rgba(2, 6, 23, 0.55);

  --header-h: 4rem;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* The uppercase label the platform puts over headings (sign-in, lockup). */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ===== Brand lockup (mark + wordmark) ===== */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.lockup__mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}

.lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.lockup__word {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ===== Buttons (the platform's .btn) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1.1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn--lg {
  height: 3rem;
  padding: 0 1.4rem;
  font-size: 1rem;
}

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

.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 8px 24px -10px var(--brand-glow);
}

.btn--primary:hover {
  background: var(--brand-hover);
}

.btn--outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  background: var(--muted);
  border-color: #cbd5e1;
}

.btn--ghost {
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--muted);
}

/* On the dark panel. */
.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--night-ink);
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline-light:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  width: min(100% - 2.5rem, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__menu {
  flex: 1;
}

.nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: 8px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__caret {
  flex-shrink: 0;
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 12.5rem;
  padding: 0.45rem 0.35rem 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav__item--dropdown:hover > .nav__sub,
.nav__item--dropdown:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__sublink {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.nav__sublink:hover {
  background: var(--muted);
}

.nav__link:hover {
  color: var(--ink);
  background: var(--muted);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__toggle,
.nav__close {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--ink);
}

.nav__toggle:hover,
.nav__close:hover {
  background: var(--muted);
}

.nav__menu-actions {
  display: none;
}

/* ===== Hero: the platform's sign-in panel ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.hero__orb--1 {
  width: 26rem;
  height: 26rem;
  left: -8rem;
  top: 10%;
  background: var(--brand-glow);
}

.hero__orb--2 {
  width: 30rem;
  height: 30rem;
  right: -6rem;
  top: 30%;
  background: rgba(249, 115, 22, 0.15);
}

/* A faint grid, like graph paper under a sales chart. */
.hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}

/* Copy on the left, a mosaic of photo tiles on the right. */
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 3.5rem;
  text-align: left;
}

.hero__copy {
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__brand {
  margin-bottom: 1.25rem;
  color: #fb923c;
}

.hero__title {
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  color: var(--brand);
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 40rem;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--night-muted);
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

.hero__facts {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--night-faint);
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__facts svg {
  color: var(--accent-orange);
}

/* Five photo tiles in two staggered columns: the left column starts one row
   lower, so the edges never line up. Each tile is a figure holding a
   placeholder and, over it, the photo (hero-N.jpg). Suggested photo sizes:
   tiles 1 and 4 and 5 landscape (about 4:3 to 3:2), tiles 2 and 3 portrait
   (about 3:4). Upload at 2x, e.g. 960 px wide. */
.hero__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 4.75rem;
  gap: 0.75rem;
}

.hero__tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, var(--night-raised) 0%, #1e293b 100%);
  box-shadow: var(--shadow-lg);
}

.hero__tile--1 { grid-column: 2; grid-row: 1 / span 2; }
.hero__tile--2 { grid-column: 1; grid-row: 2 / span 3; }
.hero__tile--3 { grid-column: 2; grid-row: 3 / span 3; }
.hero__tile--4 { grid-column: 1; grid-row: 5 / span 2; }
.hero__tile--5 { grid-column: 2; grid-row: 6 / span 2; }

.hero__tile-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-faint);
}

.hero__tile-placeholder svg {
  color: var(--accent-orange);
  opacity: 0.8;
}

.hero__tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reveal motion: visible at rest, a short rise on load. */
.reveal {
  animation: rise 0.7s var(--ease) both;
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.26s; }

@keyframes rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: none;
  }
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

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

.section__header {
  max-width: 44rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section__header .eyebrow {
  margin-bottom: 0.9rem;
}

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section__lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

/* A card: white, one hairline, the platform's radius. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* The platform's icon tile (the Cockpit's active nav item). */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand);
  flex-shrink: 0;
}

/* Why: the same centered header and icon cards as the rest of the page. */
.why .section__lead + .section__lead {
  margin-top: 1rem;
}

.why__summary {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--brand);
}

.why__list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .why__list {
    grid-template-columns: repeat(6, 1fr);
  }

  .why-card {
    grid-column: span 2;
  }

  /* The last row holds two cards; start it one column in so the row is centered. */
  .why-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

.why-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.why-card .icon-tile {
  margin-bottom: 0.9rem;
}

.why-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Cockpit: copy and a compact capability list beside a framed screenshot. */
.cockpit {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.cockpit__layout {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 960px) {
  .cockpit__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: stretch;
  }

  /* The frame keeps its 16:10 screen and sits level with the copy. Stretching it to the
     copy's height would leave the slides floating in a tall, narrow grey area. */
  .cockpit__shot {
    display: flex;
    flex-direction: column;
    align-self: center;
  }

  .cockpit__copy {
    align-self: center;
  }
}

/* Every width keeps the 16:10 frame. */
@media (max-width: 959px) {
  .cockpit__shot .shot__screen {
    aspect-ratio: 16 / 10;
  }
}

.cockpit__copy .section__title {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  margin-bottom: 0.6rem;
}

.cockpit__copy .section__lead {
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

.cockpit__path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.cockpit__chip {
  display: inline-flex;
  flex-direction: column;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.cockpit__chip span {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.cockpit__chip--primary {
  border-color: #fdba9c;
  background: var(--brand-tint);
}

.cockpit__chip--primary span {
  color: var(--brand);
}

/* A small arrow between chips. */
.cockpit__chip {
  position: relative;
}

.cockpit__chip + .cockpit__chip {
  margin-left: 1.1rem;
}

.cockpit__chip + .cockpit__chip::before {
  content: "\203A";
  position: absolute;
  left: -0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-weight: 600;
}

/* On a phone the three steps share one row, without arrows. */
@media (max-width: 520px) {
  .cockpit__path {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .cockpit__chip {
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
  }

  .cockpit__chip + .cockpit__chip {
    margin-left: 0;
  }

  .cockpit__chip + .cockpit__chip::before {
    display: none;
  }
}

.cockpit__list {
  display: grid;
  gap: 0.75rem 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .cockpit__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cockpit__list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.cockpit__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--brand-tint);
  color: var(--brand);
}

.cockpit__list h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cockpit__list p {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.cockpit__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

@media (max-width: 640px) {
  .cockpit__actions .btn {
    flex: 1 1 100%;
  }
}

/* Desktop: a larger copy column, to match the taller display area beside it. */
@media (min-width: 960px) {
  .cockpit__copy .section__title {
    font-size: clamp(2.1rem, 3vw, 2.5rem);
    margin-bottom: 0.9rem;
  }

  .cockpit__copy .section__lead {
    font-size: 1.125rem;
    max-width: 36rem;
    margin-bottom: 1.5rem;
  }

  .cockpit__path {
    gap: 0.6rem;
    margin-bottom: 1.75rem;
  }

  .cockpit__chip {
    padding: 0.55rem 1rem;
    font-size: 1.0625rem;
    border-radius: calc(var(--radius) + 2px);
  }

  .cockpit__chip span {
    font-size: 0.8125rem;
  }

  .cockpit__chip + .cockpit__chip {
    margin-left: 1.4rem;
  }

  .cockpit__chip + .cockpit__chip::before {
    left: -1.05rem;
    font-size: 1.125rem;
  }

  .cockpit__list {
    gap: 1.25rem 1.75rem;
  }

  .cockpit__list li {
    gap: 0.8rem;
  }

  .cockpit__ico {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
  }

  .cockpit__ico svg {
    width: 22px;
    height: 22px;
  }

  .cockpit__list h3 {
    font-size: 1.1875rem;
  }

  .cockpit__list p {
    font-size: 0.9375rem;
    margin-top: 0.1rem;
  }

  .cockpit__actions {
    margin-top: 2.25rem;
    gap: 0.85rem;
  }

  .cockpit__actions .btn {
    height: 3rem;
    padding: 0 1.5rem;
    font-size: 1rem;
  }
}

/* The browser frame that holds a screenshot (Cockpit and each industry tab). */
.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.shot__bar span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--border);
}

.shot__bar em {
  margin-left: 0.6rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font: 0.6875rem/1.4 "JetBrains Mono", monospace;
  font-style: normal;
  color: var(--ink-muted);
}

.shot__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, #f8fafc 0%, #eef2f7 100%);
}

.shot__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.shot__placeholder svg {
  color: var(--brand);
  opacity: 0.8;
}

.shot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* Industries: the platform's segmented tabs and a module list. */
.industry-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem;
  padding: 0.3rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.3rem);
}

.industry-tab {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.industry-tab:hover {
  color: var(--ink);
}

.industry-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
}

.industry-panel {
  max-width: 66rem;
  margin: 0 auto;
  padding: 2rem;
}

/* Modules on the left, a screenshot of that industry's console on the right. */
.industry-panel.is-active {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .industry-panel.is-active {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
  }
}

.industry-panel__shot {
  box-shadow: var(--shadow-md);
}

.industry-panel.is-active {
  animation: fade-in 0.35s var(--ease);
}

@keyframes fade-in {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.industry-panel__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.industry-panel h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.industry-panel__sub {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.industry-panel ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1.5rem;
}

@media (min-width: 640px) {
  .industry-panel ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

.industry-panel li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.industry-panel__more {
  margin-top: 1.75rem;
}

.industry-panel li::before,
.check-list li::before,
.package li::before {
  content: "";
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--brand-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4500' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.7rem no-repeat;
}

/* Mobile App */
.mobile-app__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .mobile-app__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.mobile-app__copy .eyebrow {
  margin-bottom: 0.9rem;
}

.mobile-app__tagline {
  margin-top: 0.6rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--brand);
}

.check-list {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
}

/* The Android download and the web app, which opens in a phone browser too. */
.mobile-app__stores {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0.75rem;
}

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  height: 3.5rem;
  padding: 0 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--night-ink);
  text-align: left;
  font-family: inherit;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn small {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.75;
}

.store-btn strong {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-btn--web {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 8px 24px -10px var(--brand-glow);
}

.store-btn--web:hover {
  background: var(--brand-hover);
}

.mobile-app__demo {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.mobile-app__demo a {
  color: var(--brand);
  font-weight: 600;
}

.mobile-app__demo a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .store-btn {
    flex: 1 1 100%;
  }
}

.mobile-app__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mobile-app__device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

/* The brand glow behind the phone, as on the sign-in panel. */
.mobile-app__device::before {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  top: 12%;
  border-radius: 50%;
  background: rgba(255, 69, 0, 0.14);
  filter: blur(60px);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(100%, 17.5rem);
}

.phone__bezel {
  padding: 0.6rem;
  border-radius: 2.4rem;
  background: var(--night-raised);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone__screen {
  overflow: hidden;
  border-radius: 1.9rem;
  aspect-ratio: 460 / 1024;
  background: var(--surface);
}

.phone-carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.phone-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s var(--ease);
}

.phone-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

.phone-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-carousel__controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-carousel__btn,
.shot-carousel__btn {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: background-color 0.2s var(--ease);
}

.phone-carousel__btn:hover,
.shot-carousel__btn:hover {
  background: var(--muted);
}

.phone-carousel__dots,
.shot-carousel__dots {
  display: flex;
  gap: 0.4rem;
}

.phone-carousel__dot,
.shot-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.phone-carousel__dot.is-active,
.shot-carousel__dot.is-active {
  width: 1.4rem;
  background: var(--brand);
}

/* The Cockpit frame's carousel. The buttons and dots are shared with the phone's. */
.shot-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.shot-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s var(--ease);
}

.shot-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

/* Contain, not cover: the whole screen stays readable at any frame width. */
.shot-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.shot-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Packages */
.packages__grid {
  display: grid;
  gap: 1.25rem;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 960px) {
  .packages__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.packages__demo {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.package {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.package--featured {
  background: var(--night);
  color: var(--night-ink);
  border-color: var(--night);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.package--featured::before {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -6rem;
  top: -6rem;
  border-radius: 50%;
  background: var(--brand-glow);
  filter: blur(60px);
  pointer-events: none;
}

.package > * {
  position: relative;
}

.package__top {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.package--featured .package__top {
  border-bottom-color: var(--night-line);
}

.package__badge {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--muted);
  color: var(--ink-muted);
}

.package__badge--pro {
  background: var(--brand);
  color: var(--brand-ink);
}

.package__tier {
  margin-top: 1rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.package__price {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.package__price small {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.package--featured .package__price small {
  color: var(--night-muted);
}

.package__pitch,
.package__note {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.package--featured .package__pitch,
.package--featured .package__note {
  color: var(--night-muted);
}

.package__includes {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.package--featured .package__includes {
  color: var(--night-muted);
}

.package ul {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.package li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
}

.package--featured li::before {
  background-color: rgba(255, 69, 0, 0.2);
}

.package__note {
  margin: 0 0 1.25rem;
}

.package__btn {
  margin-top: auto;
}

/* Mission */
.mission__inner {
  max-width: 48rem;
  text-align: center;
}

.mission .eyebrow {
  margin-bottom: 1rem;
}

.mission__text {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* CTA: the dark panel again, closing the page as it opened. */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}

.cta::before {
  width: 24rem;
  height: 24rem;
  left: -6rem;
  bottom: -10rem;
  background: var(--brand-glow);
}

.cta::after {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  top: -10rem;
  background: rgba(249, 115, 22, 0.15);
}

.cta__inner {
  position: relative;
  max-width: 46rem;
  text-align: center;
}

.cta .section__lead {
  color: var(--night-muted);
}

.cta__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

.footer__brand p {
  margin-top: 1rem;
  max-width: 18rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.footer__contact h3,
.footer__legal h3,
.footer__social h3 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer__contact p,
.footer__social p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.footer__contact a {
  color: var(--ink);
  font-weight: 500;
}

.footer__legal-list,
.social-links {
  display: grid;
  gap: 0.45rem;
}

.social-links {
  margin-top: 0.75rem;
}

.footer__legal-list a,
.social-links a {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}

.footer__legal-list a:hover,
.social-links a:hover,
.footer__contact a:hover {
  color: var(--brand);
}

.footer__bottom {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.footer__bottom-legal {
  display: flex;
  gap: 1.25rem;
}

.footer__bottom-legal a:hover {
  color: var(--ink);
}

/* ===== Narrow screens ===== */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero__copy {
    max-width: 40rem;
  }

  .hero__mosaic {
    width: min(100%, 34rem);
    margin-inline: auto;
  }

  .nav {
    gap: 1rem;
  }

  .nav__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav__actions {
    display: none;
  }

  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(20rem, 86vw);
    height: 100dvh;
    padding: 4.5rem 1.25rem 1.5rem;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
    display: flex;
    flex-direction: column;
  }

  .nav__menu.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s var(--ease);
  }

  .nav__list {
    flex-direction: column;
    gap: 0.15rem;
  }

  .nav__link {
    display: flex;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    color: var(--ink);
  }

  .nav__caret {
    margin-left: auto;
  }

  .nav__menu.is-open .nav__sub {
    position: static;
    min-width: 0;
    margin: 0 0 0.15rem;
    padding: 0 0 0.15rem 0.85rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

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

  .nav__close {
    display: inline-flex;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }

  .nav__menu-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  }

  .hero__mosaic {
    grid-auto-rows: 4.25rem;
    gap: 0.5rem;
  }

  .hero__tile--1 { grid-column: 1; grid-row: 1 / span 2; }
  .hero__tile--2 { grid-column: 2; grid-row: 1 / span 2; }
  .hero__tile--3 { grid-column: 1 / -1; grid-row: 3 / span 3; }
  .hero__tile--4 { grid-column: 1; grid-row: 6 / span 2; }
  .hero__tile--5 { grid-column: 2; grid-row: 6 / span 2; }

  .hero__lead {
    font-size: 1.0625rem;
  }

  .hero__actions .btn,
  .cta__actions .btn,
  .mobile-app__actions .btn {
    width: 100%;
  }

  .industry-tabs {
    width: 100%;
  }

  .industry-tab {
    flex: 1 1 auto;
  }

  .industry-panel,
  .package {
    padding: 1.5rem;
  }
}

/* ===== Industry page (funeral parlour) ===== */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 1rem;
}

.page-hero__inner {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.page-back {
  display: inline-flex;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.page-back:hover {
  color: var(--ink);
}

.page-hero h1 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.page-hero__lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

.page-hero + .section {
  padding-top: 3rem;
}

.compare-wrap {
  overflow-x: auto;
  padding: 0;
}

.compare {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare th,
.compare td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.compare th {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--muted);
}

.compare th:first-child,
.compare td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 13rem;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 1px 0 0 var(--border);
}

.compare th:first-child {
  background: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9375rem;
}

.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare__yes,
.compare__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
}

.compare__yes {
  border-radius: 50%;
  background: var(--brand-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4500' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.7rem no-repeat;
}

.compare__no {
  color: var(--ink-faint);
  font-size: 1rem;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Forms (the platform's .input / .field / .label / .hint) ===== */
.form {
  display: grid;
  gap: 1.1rem;
}

.form__row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

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

.label__optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.textarea {
  height: auto;
  padding: 0.65rem 0.85rem;
  line-height: 1.5;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-faint);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: #dc2626;
}

.hint {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.notice {
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}

.notice--danger {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__fineprint {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: center;
}

.form__fineprint a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Schedule a demo ===== */
.demo {
  padding-top: calc(var(--header-h) + 3.5rem);
}

.demo__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .demo__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 4rem;
  }

  .demo__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.demo__intro .eyebrow {
  display: block;
  margin-top: 1.25rem;
}

.demo__title {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.demo__lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

.demo__intro .check-list {
  margin-top: 1.75rem;
}

.demo__contact {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.demo__contact a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo__card {
  position: relative;
  padding: 2rem;
}

.demo__done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.demo__done-title {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.demo__done-when {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--brand);
}

.demo__done-text,
.demo__done-fallback {
  color: var(--ink-muted);
}

.demo__done-fallback a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo__done .btn {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .demo__card {
    padding: 1.5rem;
  }
}

/* ===== Resources (articles and videos) ===== */
.nav__link[aria-current="page"] {
  color: var(--ink);
}

/* The type filter: the same segmented control as the industry tabs. */
.resource-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 3rem;
  padding: 0.3rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.3rem);
}

.resource-chip {
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.resource-chip:hover {
  color: var(--ink);
}

.resource-chip.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
}

.resource-group + .resource-group {
  margin-top: 4rem;
}

.resource-group__header {
  max-width: 44rem;
  margin-bottom: 1.5rem;
}

.resource-group__header .eyebrow {
  margin-bottom: 0.6rem;
}

.resource-group__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.resource-group__lead {
  margin-top: 0.5rem;
  color: var(--ink-muted);
}

.resource-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1000px) {
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Each item stretches its card, so a row's cards are the same height. */
.resource-item {
  display: flex;
}

.resource-item[hidden],
.resource-group[hidden] {
  display: none;
}

.resource {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  overflow: hidden;
  color: inherit;
}

.resource .icon-tile {
  margin-bottom: 0.9rem;
}

.resource__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.resource__status {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
}

.resource__title {
  margin-top: 0.15rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.resource__summary {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.resource__cta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand);
}

.resource--link {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.resource--link:hover {
  border-color: #fdba9c;
  box-shadow: var(--shadow-md);
}

/* A video: the thumbnail runs to the card's edges. */
.resource--video {
  padding: 0;
  gap: 0;
}

.resource__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--night-raised) 0%, #1e293b 100%);
  border-bottom: 1px solid var(--border);
}

.resource__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding-left: 2px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 8px 24px -8px var(--brand-glow);
}

.resource--soon .resource__play {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.resource__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.resource-help {
  margin-top: 4rem;
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.resource-help__title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.resource-help__lead {
  max-width: 34rem;
  margin: 0.6rem auto 0;
  color: var(--ink-muted);
}

.resource-help__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .resource-filter {
    width: 100%;
  }

  .resource-chip {
    flex: 1 1 auto;
  }

  .resource-help__actions .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
