/* Ryber landing page — layout and component CSS. The design system's own Card/Badge/
   Button live as JS web components (_ds_bundle.js) in the mockup authoring tool, not
   as reusable plain-CSS classes - this file implements the small set of visual
   patterns this one page actually uses, directly, per the handoff's own scope note
   not to adopt the full 27-component library speculatively. Tokens (colors,
   typography, spacing, radius, elevation) are the single source of truth for every
   value below - no hardcoded hex/px that duplicates what a token already names. */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: var(--type-body);
  color: var(--text-body);
  background: var(--surface-page);
}

h1, h2, h3, p {
  margin: 0;
}

a {
  color: var(--text-link);
}
a:hover {
  color: var(--text-link-hover);
}

/* Focus ring: deliberately NOT redefined here. tokens/base.css already establishes
   the real mechanism (a:focus-visible,button:focus-visible,...{outline:none;
   box-shadow:var(--focus-ring);border-radius:var(--radius-sm)}) - a real gap found
   live: an earlier version of this file defined its own outline-based
   :focus-visible rule, which base.css's more specific per-element selectors silently
   overrode entirely (confirmed via getComputedStyle: outline-style computed to
   "none", box-shadow correctly showed the real 3px ring). Removed rather than left
   as dead, misleading code - the token layer already owns this, consistently with
   every other surface in this project. */

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: 500;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

/* ---- Scroll reveal (mockup: IntersectionObserver-driven, scripts/reveal.js) ----
   .reveal/[data-reveal-group] marks a section that fades/rises in once scrolled into
   view; [data-reveal-item] marks its children for a staggered version of the same
   effect (transition-delay set inline by reveal.js). prefers-reduced-motion drops
   straight to the settled state - no motion, no delay - matching this file's own
   accessibility-first stance elsewhere (see the focus-ring note above). */
.reveal,
[data-reveal-item] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms cubic-bezier(0.2, 0, 0, 1), transform 240ms cubic-bezier(0.2, 0, 0, 1);
}
.reveal.is-in,
[data-reveal-item].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  [data-reveal-item],
  .reveal.is-in,
  [data-reveal-item].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--blue-950);
  border-bottom: 1px solid var(--border-on-nav);
}
.nav__inner {
  max-width: var(--width-content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-16);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-on-nav);
  text-decoration: none;
}
/* The mark (mockup 1b, and the design system's own ryber-mark.svg): three 18x6 bars in a
   24-unit viewBox, the middle one offset 6 to form the apex. The apex is the agent's
   stroke and takes teal - --teal-400 on the navy nav and footer (this page's only two
   grounds for it), --teal-600 on a light ground per the design-system duo assets. Replaced
   the 5-bar mark on 2026-09-20; the product app made the same move on 2026-08-29. */
.mark {
  display: block;
  flex: none;
}
.mark__apex {
  fill: var(--teal-400);
}
.nav__wordmark {
  font: var(--weight-semibold) var(--size-xl)/1 var(--font-sans);
  letter-spacing: var(--tracking-tighter);
}
.nav__wordmark--footer {
  font-size: 17px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}
.nav__links a {
  font: var(--type-label);
  color: var(--text-on-nav-label);
  text-decoration: none;
}
.nav__links a:hover {
  color: var(--text-on-nav);
}
.nav__test-link {
  color: var(--blue-300) !important;
}
.nav__status {
  flex: none;
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  font: var(--type-label-sm);
  white-space: nowrap;
}
.badge__icon {
  font-size: 14px;
}
.badge--agent {
  color: var(--status-agent-fg);
  background: var(--status-agent-bg);
}
.badge--pending {
  color: var(--status-pending-fg);
  background: var(--status-pending-bg);
}
.badge--success {
  color: var(--status-posted-fg);
  background: var(--status-posted-bg);
}
.badge--neutral {
  color: var(--text-muted);
  background: var(--surface-sunken);
}
.badge--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* ---- Button ---- */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--size-control-lg);
  padding: 0 var(--space-4);
  border-radius: var(--radius-control);
  font: var(--type-label);
}
.btn--lg {
  min-block-size: var(--size-control-lg);
  padding: 0 var(--space-5);
  font: var(--type-title);
}
.btn--primary {
  background: var(--action-primary);
  color: var(--text-inverse);
}
.btn--primary:hover {
  background: var(--action-primary-hover);
}
.btn--secondary {
  background: var(--surface-card);
  color: var(--text-body);
  border: 1px solid var(--border-default);
}
.btn--secondary:hover {
  background: var(--surface-hover);
}

/* ---- Card ---- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--elevation-card);
  padding: var(--pad-card);
}
.card--elevated {
  box-shadow: var(--shadow-lg);
}
.card--flush {
  padding: 0;
}
.card--flush .card__header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}
.card--flush .card__body {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}
.card--flush .card__actions {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-inset);
}
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__title {
  font: var(--type-title);
  color: var(--text-heading);
}
.card__subtitle {
  font: var(--type-caption);
  color: var(--text-muted);
}
.card p {
  font: var(--type-body-sm);
  color: var(--text-body);
}
.card h3.card__title {
  margin-bottom: var(--space-2);
}
.card__note {
  margin-top: var(--space-2);
  font: var(--type-body-sm);
  color: var(--text-body);
}

.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}
.figure {
  font: var(--type-figure);
  color: var(--text-heading);
  white-space: nowrap;
}
.figure--amount {
  font-variant-numeric: var(--numeric-tabular);
}
.figure--muted {
  color: var(--text-muted);
}

.agent-panel {
  background: var(--surface-agent);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}
.agent-panel__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.agent-panel__note {
  font: var(--type-body-sm);
  color: var(--teal-700);
}
.agent-panel__timestamp {
  color: var(--teal-700);
}

/* ---- Hero ---- */
.hero {
  background: var(--blue-950);
}
.hero__grid {
  max-width: var(--width-content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-24) var(--space-16) var(--space-20);
}
/* "The AI-native engine for your entire business." - single line, all white, no coloured
   span (mockup 1b, 2026-09-20; the earlier "Run your business with Ryber" headline and its
   name-origin caption are gone). 62px in the mockup has
   no exact token match (closest is --size-7xl at 56px) - using the token rather than
   a one-off literal, consistent with this file's own no-hardcoded-values header
   comment; the 390px mobile preview's 38px headline DOES match --size-5xl exactly,
   used at this file's own 900px breakpoint below. */
.hero__title {
  font: var(--weight-semibold) var(--size-7xl)/1.08 var(--font-sans);
  letter-spacing: var(--tracking-tighter);
  color: var(--neutral-0);
  margin: 0;
  text-wrap: balance;
}
.hero__lede {
  margin-top: var(--space-8);
  max-width: 46ch;
  font: var(--weight-regular) var(--size-2xl)/1.5 var(--font-sans);
  color: var(--text-on-nav-label);
  text-wrap: pretty;
}
/* "Being built now. Launching soon." - carries the border-top rule since the name-origin
   line above it was deleted (mockup 1b, 2026-09-20). */
.hero__tagline {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-on-nav);
  max-width: 46ch;
  font: var(--weight-regular) var(--size-md)/1.6 var(--font-mono);
  color: var(--blue-300);
}

/* ---- Browser window frame around the hero mockups (mockup 1b) ---- */
.browser-frame {
  background: var(--surface-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
/* White 40px title bar, three 8px --neutral-300 dots on the left, no URL text. */
.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: var(--space-15);
  min-block-size: 40px;
  padding: var(--space-25) 14px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-default);
}
.browser-frame__dot {
  display: block;
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--neutral-300);
}
.browser-frame__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

/* ---- Generic section layout ---- */
.section-inner {
  max-width: var(--width-content-max);
  margin: 0 auto;
  padding: var(--space-20) var(--space-16);
}
.section-inner h2 {
  font: var(--type-display-sm);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}
.section-lede {
  font: var(--type-body-lg);
  color: var(--text-muted);
  max-width: 64ch;
  margin-bottom: var(--space-10);
}

.features {
  background: var(--surface-page);
  scroll-margin-top: 80px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.flow {
  background: var(--surface-card);
  border-top: 1px solid var(--border-default);
  scroll-margin-top: 80px;
}
.flow-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.flow-step {
  padding-top: var(--space-5);
  border-top: var(--border-width-emphasis) solid var(--border-strong);
}
.flow-step--agent {
  border-top-color: var(--teal-300);
}
.flow-step:nth-child(1) { padding-right: var(--space-7); }
.flow-step:nth-child(2) { padding: var(--space-5) var(--space-7) 0; }
.flow-step:nth-child(3) { padding-left: var(--space-7); }
.flow-step__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.flow-step h3 {
  font: var(--type-heading-sm);
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}
.flow-step p {
  font: var(--type-body-sm);
  color: var(--text-body);
}
/* The closing sentence as a callout: --surface-inset, a hairline, --radius-card, 18/20
   padding, with a mono uppercase "AUDIT TRAIL" label to its left, baseline-aligned. */
.callout {
  margin-top: var(--space-6);
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: 18px var(--space-5);
  background: var(--surface-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
}
.callout__label {
  font: var(--weight-medium) var(--size-2xs)/1.5 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.callout__text {
  font: var(--weight-regular) var(--size-md)/1.55 var(--font-sans);
  color: var(--text-body);
  max-width: 80ch;
}

.dependable {
  background: var(--surface-nav);
  scroll-margin-top: 80px;
}
.dependable h2, .dependable h3 {
  color: var(--text-on-nav);
}
.dependable .section-lede {
  color: var(--text-on-nav-label);
}
.dependable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.dependable-item {
  border-top: 1px solid var(--border-on-nav);
  padding-top: var(--space-5);
}
.dependable-item h3 {
  font: var(--type-heading-sm);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}
.dependable-item p {
  font: var(--type-body-sm);
  color: var(--text-on-nav-label);
}

.audience {
  background: var(--surface-page);
  scroll-margin-top: 80px;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* ---- Footer (mockup 1b): a navy block, 56/64/24 padding - brand + tagline, three
   top-aligned columns, the early-access CTA running in place, a bottom rule. ---- */
.site-footer {
  background: var(--blue-950);
  padding: var(--space-14) 0 var(--space-6);
}
/* The footer's working area is the same box as the nav's and every section's
   (.nav__inner / .section-inner): content max width, centred, the same side padding -
   so its left edge lines up with the headings above it rather than the viewport edge. */
.site-footer__inner {
  max-width: var(--width-content-max);
  margin: 0 auto;
  padding: 0 var(--space-16);
  display: grid;
  gap: 36px;
}
.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-14);
  flex-wrap: wrap;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 32ch;
}
.site-footer__tagline {
  font: var(--weight-regular) var(--size-sm)/1.6 var(--font-sans);
  color: var(--text-on-nav-label);
}
.site-footer__columns {
  display: flex;
  align-items: flex-start;
  gap: var(--space-14);
  flex-wrap: wrap;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-25);
}
.site-footer__heading {
  font: var(--weight-medium) var(--size-2xs)/1 var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-on-nav-muted);
}
.site-footer__col a {
  font: var(--weight-regular) var(--size-sm)/1 var(--font-sans);
  color: var(--text-on-nav-label);
  text-decoration: none;
}
.site-footer__col a:hover {
  color: var(--neutral-0);
}
/* Terms, Privacy and the hello@ mailbox: no page and no monitored mailbox exist yet, so these are not links - a link that goes nowhere
   is a control implying a capability the site does not have. Muted, with the reason in the
   title, until the pages are published. */
.site-footer__pending {
  font: var(--weight-regular) var(--size-sm)/1 var(--font-sans);
  color: var(--text-on-nav-muted);
  cursor: default;
}
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: 18px;
  border-top: 1px solid var(--border-on-nav);
  font: var(--weight-regular) var(--size-xs)/1 var(--font-sans);
  color: var(--text-on-nav-label);
}
.site-footer__domain {
  font-size: var(--size-xs);
  color: var(--blue-300);
}

/* ---- Responsive: single breakpoint, matching the product app's own convention
   (login-page.scss's 900px) for consistency across every ryber.ai surface. ---- */
@media (width <= 900px) {
  .nav__inner {
    padding: var(--space-4) var(--space-5);
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  .nav__links {
    gap: var(--space-4);
    order: 3;
    flex-basis: 100%;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    padding: var(--space-10) var(--space-5) var(--space-12);
    gap: var(--space-8);
  }
  .hero__title {
    font-size: var(--size-5xl);
  }
  .hero__lede {
    margin-top: 22px;
    font-size: var(--size-lg);
    line-height: 1.55;
  }
  .hero__tagline {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    font-size: var(--size-sm);
  }
  .browser-frame__body {
    padding: var(--space-5);
  }
  .section-inner {
    padding: var(--space-12) var(--space-5);
  }
  .feature-grid,
  .flow-grid,
  .dependable-grid,
  .audience-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .flow-step:nth-child(1),
  .flow-step:nth-child(2),
  .flow-step:nth-child(3) {
    padding-left: 0;
    padding-right: 0;
  }
  .site-footer {
    padding: var(--space-7) 0 var(--space-5);
  }
  .site-footer__inner {
    padding: 0 var(--space-5);
    gap: 18px;
  }
  .site-footer__top,
  .site-footer__columns {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-6);
  }
  .site-footer__bottom {
    padding-top: 14px;
    font-size: var(--size-2xs);
  }
}
