/* ============================================
   Landing Page Styles
   Tokens mirror the app's design system (see project-files/design-system.html):
   - Brand: #2563eb, hover #1d4ed8, tint #eef4ff
   - Ink: #0f172a   Body: #475569   Muted: #94a3b8
   - Hairline: #e6eaf0   Surface 2: #f4f6fa   Canvas: #f8fafc
   - Type: IBM Plex Sans / IBM Plex Mono, Montserrat for the wordmark
   - Radius: 6px on small controls, 8px on buttons, fields and cards
   ============================================ */

/* Page reset for landing */
.landing-page {
  background: #fff;
  color: #0f172a;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-page > main {
  flex: 1;
}

.landing-page a {
  text-decoration: none;
}


/* ---- Navigation ---- */

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 0;
  display: flex;
  align-items: center;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-bottom: 1px solid transparent;
}

.landing-nav--scrolled {
  border-bottom-color: #e6eaf0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.landing-nav__inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav__brand {
  display: flex;
  align-items: center;
}

/* ---- Inline brand text (used in body copy) ---- */

.landing-wordmark__run {
  color: #0f172a;
  font-weight: 800;
}

.landing-wordmark__sheet {
  color: #2563eb;
  font-weight: 500;
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-nav__link {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.landing-nav__link:hover {
  color: #0f172a;
  background: #f8fafc;
}

.landing-nav__cta {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  margin-left: 4px;
}

.landing-nav__cta:hover {
  background: #1d4ed8;
}

/* ---- Mobile Nav ---- */

.landing-nav__hamburger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  color: #475569;
  transition: background 0.15s;
}

.landing-nav__hamburger:hover {
  background: #f4f6fa;
}

.landing-nav__hamburger svg {
  width: 22px;
  height: 22px;
}

.landing-nav__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e6eaf0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 8px 24px 16px;
}

.landing-nav__mobile-menu--open {
  display: block;
}

.landing-nav__mobile-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  text-decoration: none;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  border-bottom: 1px solid #f4f6fa;
  transition: color 0.15s;
}

.landing-nav__mobile-link:last-child {
  border-bottom: none;
}

.landing-nav__mobile-link:hover {
  color: #2563eb;
}

.landing-nav__mobile-link--active {
  color: #2563eb;
}

.landing-nav__mobile-cta {
  display: block;
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  margin-top: 8px;
  transition: background 0.15s;
}

.landing-nav__mobile-cta:hover {
  background: #1d4ed8;
}

@media (max-width: 768px) {
  .landing-nav__hamburger {
    display: flex;
    align-items: center;
  }
}

/* ---- Section Label (reused) ---- */

.landing-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 32px;
}

/* ---- Hero ---- */

.landing-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.landing-hero__headline {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 20px;
}

.landing-hero__headline-accent {
  color: #475569;
  font-weight: 700;
}

.landing-hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 32px;
  max-width: 520px;
}

.landing-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-hero__cta {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.landing-hero__cta:hover {
  background: #1d4ed8;
}

.landing-hero__cta:active {
  transform: scale(0.98);
}

.landing-hero__secondary {
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.landing-hero__secondary:hover {
  color: #2563eb;
}

.landing-hero__trust {
  font-size: 13px;
  color: #94a3b8;
  margin: 16px 0 0;
}

/* ---- Runsheet Mock Visual ---- */

.landing-runsheet-mock {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  font-size: 13px;
}

.landing-runsheet-mock__header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid #e6eaf0;
}

.landing-runsheet-mock__title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.landing-runsheet-mock__show-name {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}

.landing-runsheet-mock__time {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.landing-runsheet-mock__meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.landing-runsheet-mock__segments {
  padding: 4px 0;
}

.landing-runsheet-mock__seg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  transition: background 0.15s;
}

.landing-runsheet-mock__seg:hover {
  background: #f8fafc;
}

.landing-runsheet-mock__seg-label {
  color: #475569;
  font-weight: 500;
}

.landing-runsheet-mock__seg-time {
  color: #94a3b8;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.landing-runsheet-mock__seg--break {
  background: #f4f6fa;
}

.landing-runsheet-mock__seg--break:hover {
  background: #e6eaf0;
}

.landing-runsheet-mock__seg--break .landing-runsheet-mock__seg-label {
  color: #64748b;
  font-weight: 400;
  font-size: 12px;
}

.landing-runsheet-mock__seg--promo {
  background: #fefce8;
}

.landing-runsheet-mock__seg--promo:hover {
  background: #fef9c3;
}

.landing-runsheet-mock__seg--promo .landing-runsheet-mock__seg-label {
  color: #854d0e;
  font-weight: 400;
  font-size: 12px;
}

.landing-runsheet-mock__footer {
  padding: 10px 18px;
  border-top: 1px solid #e6eaf0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

.landing-runsheet-mock__footer-total {
  font-weight: 600;
  color: #2563eb;
}

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

.landing-features {
  background: #f8fafc;
  padding: 80px 0;
}

.landing-features__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

.landing-feature:last-child {
  margin-bottom: 0;
}

.landing-feature--reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.landing-feature--reverse > * {
  direction: ltr;
}

.landing-feature__aside {
  max-width: 420px;
}

.landing-feature--reverse .landing-feature__aside {
  margin-left: auto;
}

.landing-feature__heading {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.landing-feature__body {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

/* Feature aside demos */

.landing-timing-demo {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
}

.landing-timing-demo__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f4f6fa;
}

.landing-timing-demo__row:last-child {
  border-bottom: none;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 2px solid #e6eaf0;
}

.landing-timing-demo__label {
  color: #64748b;
  font-weight: 500;
}

.landing-timing-demo__value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #0f172a;
}

.landing-timing-demo__value--over {
  color: #dc2626;
}

.landing-timing-demo__row--result .landing-timing-demo__label {
  color: #dc2626;
  font-weight: 600;
}

.landing-guest-demo {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
}

.landing-guest-demo__seg-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f4f6fa;
}

.landing-guest-demo__guest {
  padding-left: 12px;
  border-left: 3px solid #2563eb;
}

.landing-guest-demo__name {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.landing-guest-demo__detail {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.landing-print-demo {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}

.landing-print-demo__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e6eaf0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.landing-print-demo__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 20px;
  border-bottom: 1px solid #f4f6fa;
}

.landing-print-demo__row:last-child {
  border-bottom: none;
}

.landing-print-demo__planned {
  font-variant-numeric: tabular-nums;
  color: #475569;
  font-weight: 500;
}

.landing-print-demo__actual {
  border-bottom: 1px dashed #d3dae4;
  min-height: 18px;
}

.landing-steps-mini {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  padding: 12px 14px;
}

.landing-steps-mini__step {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.landing-steps-mini__step--done {
  color: #0f172a;
}

.landing-steps-mini__step--active {
  color: #2563eb;
  font-weight: 600;
}

.landing-steps-mini__num {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  background: #f4f6fa;
  color: #94a3b8;
  flex-shrink: 0;
}

.landing-steps-mini__step--done .landing-steps-mini__num {
  background: #0f172a;
  color: #fff;
}

.landing-steps-mini__step--active .landing-steps-mini__num {
  background: #2563eb;
  color: #fff;
}

.landing-steps-mini__connector {
  width: 14px;
  height: 2px;
  background: #0f172a;
  margin: 0 4px;
  flex-shrink: 0;
}

.landing-steps-mini__connector--inactive {
  background: #e6eaf0;
}

/* -- Live Tracking demo -- */

.landing-live-demo {
  background: #0f172a;
  border-radius: 8px;
  padding: 14px;
  color: #f8fafc;
  font-size: 13px;
}

.landing-live-demo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.landing-live-demo__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 6px;
}

.landing-live-demo__pulse {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: landing-pulse 1.5s ease-in-out infinite;
}

@keyframes landing-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.landing-live-demo__clock {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}

.landing-live-demo__segment {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.landing-live-demo__seg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.landing-live-demo__seg-label {
  font-weight: 600;
  font-size: 14px;
  color: #f8fafc;
}

.landing-live-demo__seg-timer {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #93c5fd;
}

.landing-live-demo__progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.landing-live-demo__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.landing-live-demo__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.landing-live-demo__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px 10px;
}

.landing-live-demo__metric-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.landing-live-demo__metric-value {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}

.landing-live-demo__metric-value--ahead {
  color: #34d399;
}

.landing-live-demo__metric-value--behind {
  color: #f87171;
}

.landing-live-demo__metric-value--backtime {
  color: #fbbf24;
}

/* ---- How It Works ---- */

.landing-how {
  padding: 80px 0;
  background: #fff;
}

.landing-how__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-how__steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.landing-how__step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.landing-how__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}

.landing-how__step-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.landing-how__step-body {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* ---- Privacy / Data ---- */

.landing-privacy {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid #f4f6fa;
}

.landing-privacy__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-privacy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.landing-privacy__card {
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #f4f6fa;
  border-radius: 8px;
}

.landing-privacy__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef4ff;
  margin-bottom: 16px;
}

.landing-privacy__icon svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

.landing-privacy__heading {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.landing-privacy__body {
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

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

.landing-docs {
  padding: 80px 0;
  background: #f8fafc;
}

.landing-docs__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-docs__intro {
  font-size: 15px;
  color: #64748b;
  margin: -20px 0 32px;
}

.landing-docs__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.landing-docs__item {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}

.landing-docs__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.landing-docs__trigger:hover {
  background: #f8fafc;
}

.landing-docs__trigger-text {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.landing-docs__chevron {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.landing-docs__item--open .landing-docs__chevron {
  transform: rotate(180deg);
}

.landing-docs__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.landing-docs__item--open .landing-docs__panel {
  max-height: 1200px;
}

.landing-docs__panel-inner {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

.landing-docs__panel-inner p {
  margin: 0 0 12px;
}

.landing-docs__panel-inner p:last-child {
  margin-bottom: 0;
}

.landing-docs__panel-inner ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.landing-docs__panel-inner li {
  margin-bottom: 6px;
}

.landing-docs__panel-inner h4 {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin: 20px 0 6px;
  letter-spacing: 0.025em;
}

.landing-docs__panel-inner h4:first-of-type {
  margin-top: 8px;
}

.landing-docs__panel-inner pre {
  background: #f4f6fa;
  border: 1px solid #e6eaf0;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #475569;
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 12px;
}

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

.landing-faq {
  padding: 80px 0;
  background: #fff;
}

.landing-faq--muted {
  background: #f8fafc;
}

.landing-faq__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-faq__intro {
  font-size: 15px;
  color: #64748b;
  margin: -20px 0 32px;
}

.landing-faq__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.landing-faq__item {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
}

.landing-faq__item[open] {
  border-color: #cbd5e1;
}

.landing-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}

.landing-faq__q::-webkit-details-marker {
  display: none;
}

.landing-faq__q:hover {
  background: #f8fafc;
}

.landing-faq__q:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  border-radius: 8px;
}

.landing-faq__chevron {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.landing-faq__item[open] .landing-faq__chevron {
  transform: rotate(180deg);
}

.landing-faq__a {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

.landing-faq__a p {
  margin: 0 0 12px;
}

.landing-faq__a p:last-child {
  margin-bottom: 0;
}

.landing-faq__a a {
  color: #2563eb;
  text-decoration: none;
}

.landing-faq__a a:hover {
  text-decoration: underline;
}

/* ---- About ---- */

.landing-about {
  padding: 64px 0;
  background: #fff;
  border-top: 1px solid #f4f6fa;
}

.landing-about__inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-about__body {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 12px;
}

.landing-about__body:last-child {
  margin-bottom: 0;
}

.landing-about__link {
  color: #2563eb;
  text-decoration: none;
}

.landing-about__link:hover {
  text-decoration: underline;
}

/* ---- Final CTA ---- */

.landing-final-cta {
  padding: 80px 0;
  background: #fff;
}

.landing-final-cta__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.landing-final-cta__heading {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 28px;
}

.landing-final-cta__button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.landing-final-cta__button:hover {
  background: #1d4ed8;
}

.landing-final-cta__button:active {
  transform: scale(0.98);
}

/* ---- Legal Page ---- */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 64px;
}

.legal-page__inner {
  display: flex;
  flex-direction: column;
}

.legal-page__title {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.legal-page__updated {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 48px;
}

.legal-page__section {
  margin-bottom: 48px;
}

.legal-page__section--contact {
  padding-top: 24px;
  border-top: 1px solid #e6eaf0;
}

.legal-page__heading {
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.legal-page__subheading {
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 12px;
}

.legal-page__link {
  color: #2563eb;
  text-decoration: none;
}

.legal-page__link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .legal-page {
    padding: 100px 16px 48px;
  }

  .legal-page__title {
    font-size: 26px;
  }

  .legal-page__heading {
    font-size: 20px;
  }
}

/* ---- Footer ---- */

.landing-footer {
  background: #0f172a;
  padding: 32px 0;
}

.landing-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-footer__brand {
  display: flex;
  align-items: center;
}

.landing-footer__tagline {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
  font-style: italic;
  margin: 8px 0 0;
}

.landing-footer__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.landing-footer__heart {
  width: 14px;
  height: 14px;
  color: #ef4444;
}

.landing-footer__link {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.landing-footer__link:hover {
  color: #d3dae4;
}

.landing-footer__sep {
  color: #475569;
}

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

.pricing-hero {
  padding: 80px 0 48px;
  text-align: center;
}

.pricing-hero__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.pricing-hero .landing-section-label {
  margin-bottom: 20px;
}

.pricing-hero__headline {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 16px;
}

.pricing-hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.pricing-card-section {
  padding: 0 0 80px;
}

.pricing-cards {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.pricing-card {
  border: 2px solid #e6eaf0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.pricing-card--pro {
  border-color: #2563eb;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
}

.pricing-card__header {
  padding: 32px 32px 28px;
  text-align: center;
  border-bottom: 1px solid #eef4ff;
}

.pricing-card__badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  background: #eef4ff;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pricing-card__name {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.pricing-card__amount {
  font-size: 48px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-card__period {
  font-size: 15px;
  color: #94a3b8;
  font-weight: 500;
}

.pricing-card__desc {
  font-size: 15px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 24px;
}

.pricing-card__cta {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.pricing-card__cta:hover {
  background: #1d4ed8;
}

.pricing-card__cta:active {
  transform: scale(0.98);
}

.pricing-card__cta--secondary {
  background: #fff;
  color: #475569;
  border: 1.5px solid #d3dae4;
}

.pricing-card__cta--secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.pricing-card__badge--beta {
  color: #059669;
  background: #ecfdf5;
}

.pricing-card__check--pro {
  color: #059669;
}

.pricing-card__features {
  padding: 28px 32px 32px;
}

.pricing-card__features-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 16px;
}

.pricing-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card__list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.pricing-card__check {
  width: 18px;
  height: 18px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Future plans note */

.pricing-future {
  padding: 0 0 80px;
}

.pricing-future__inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px;
}

.pricing-future__card {
  padding: 24px 28px;
  background: #f8fafc;
  border: 1px solid #f4f6fa;
  border-radius: 8px;
}

.pricing-future__heading {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.pricing-future__body {
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

/* Active nav link */

.landing-nav__link--active {
  color: #0f172a;
  background: #f8fafc;
}

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

/* Tablet (768px) */
@media (max-width: 768px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    gap: 40px;
  }

  .landing-hero__headline {
    font-size: 32px;
  }

  .landing-hero__sub {
    font-size: 16px;
  }

  .landing-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-feature--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .landing-feature__aside {
    max-width: 100%;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .landing-privacy__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .landing-feature--reverse .landing-feature__aside {
    margin-left: 0;
  }

  .landing-nav__links {
    display: none;
  }

  .pricing-hero {
    padding: 48px 0 32px;
  }

  .pricing-hero__headline {
    font-size: 28px;
  }


  .landing-footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  .landing-nav__inner {
    padding: 0 16px;
  }

  .landing-hero {
    padding: 36px 16px 32px;
  }

  .landing-hero__headline {
    font-size: 26px;
  }

  .landing-hero__headline-accent {
    font-weight: 700;
  }

  .landing-hero__sub {
    font-size: 15px;
  }

  .landing-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .landing-hero__cta {
    width: 100%;
    max-width: 320px;
    padding: 14px 28px;
    text-align: center;
  }

  .landing-features,
  .landing-how,
  .landing-docs,
  .landing-faq,
  .landing-privacy,
  .landing-about,
  .landing-final-cta {
    padding: 56px 0;
  }

  .landing-features__inner,
  .landing-how__inner,
  .landing-docs__inner,
  .landing-faq__inner,
  .landing-privacy__inner,
  .landing-about__inner {
    padding: 0 16px;
  }

  .landing-feature {
    margin-bottom: 48px;
  }

  .landing-feature__heading {
    font-size: 19px;
  }

  .landing-how__step {
    gap: 16px;
  }

  .landing-how__number {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .landing-final-cta__heading {
    font-size: 22px;
  }

  .landing-final-cta__inner {
    padding: 0 16px;
  }

  .landing-steps-mini {
    padding: 12px 14px;
    gap: 0;
    flex-wrap: wrap;
    row-gap: 8px;
    justify-content: center;
  }

  .landing-steps-mini__connector {
    width: 12px;
    margin: 0 4px;
  }

  .landing-privacy__grid {
    grid-template-columns: 1fr;
  }

  .pricing-hero {
    padding: 36px 0 24px;
  }

  .pricing-hero__inner {
    padding: 0 16px;
  }

  .pricing-hero__headline {
    font-size: 24px;
  }

  .pricing-hero__sub {
    font-size: 15px;
  }

  .pricing-card-section__inner,
  .pricing-future__inner {
    padding: 0 16px;
  }

  .pricing-card-section,
  .pricing-future {
    padding-bottom: 56px;
  }

  .pricing-card__header {
    padding: 24px 20px 20px;
  }

  .pricing-card__features {
    padding: 20px 20px 24px;
  }

  .pricing-card__amount {
    font-size: 40px;
  }

  .landing-footer__inner {
    padding: 0 16px;
  }
}

/* Small phones (375px) */
@media (max-width: 375px) {
  .landing-hero__headline {
    font-size: 22px;
  }

  .landing-hero__sub {
    font-size: 14px;
  }

  .landing-final-cta__heading {
    font-size: 20px;
  }
}

/* ---- Docs Page ---- */

.docs-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.docs-page__title {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.docs-page__subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 48px;
}

/* Docs sub-nav (horizontal strip below hero on docs pages) */

.docs-subnav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e6eaf0;
}

.docs-subnav__link {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.docs-subnav__link:hover {
  color: #0f172a;
  background: #f8fafc;
}

.docs-subnav__link--active {
  color: #2563eb;
  background: #eef4ff;
  font-weight: 600;
}

/* Docs content cards (index page) */

.docs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.docs-card {
  display: block;
  text-decoration: none;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.docs-card:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.docs-card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef4ff;
  margin-bottom: 14px;
}

.docs-card__icon svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

.docs-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.docs-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

/* Changelog */

.changelog {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 8px;
}

.changelog-entry {
  border-left: 2px solid #e6eaf0;
  padding-left: 24px;
}

.changelog-entry__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.changelog-entry__version {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.changelog-entry__date {
  font-size: 14px;
  color: #64748b;
}

.changelog-entry__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-entry__list li {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

/* Docs prose content (sub-pages) */

.docs-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.docs-content h2:first-child {
  margin-top: 0;
}

.docs-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  margin: 32px 0 10px;
}

.docs-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 16px;
}

.docs-content ul, .docs-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.docs-content li {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 8px;
}

/* Inline links in body copy. Without this they fall to the UA defaults, which
   means #0000EE unvisited and #551A8B visited, and `.landing-page a` has already
   stripped the underline, so a visited link ends up muddy purple with nothing to
   distinguish it from the text around it. Visited stays blue, just deeper, so it
   reads as "already opened" without becoming hard to find.

   Scoped to anchors with no class: a classed anchor inside .docs-content is a
   component that styles itself (.docs-nav-bottom__link, .docs-card), and an
   unscoped `.docs-content a` outranks those single-class rules and repaints
   them as body links. */
.docs-content a:not([class]) {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-content a:not([class]):visited {
  color: #1e40af;
}

.docs-content a:not([class]):hover {
  color: #1e40af;
  text-decoration-thickness: 2px;
}

.docs-content strong {
  color: #0f172a;
  font-weight: 600;
}

.docs-content pre {
  background: #f4f6fa;
  border: 1px solid #e6eaf0;
  border-radius: 6px;
  padding: 14px 16px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 16px;
}

.docs-content .docs-tip {
  padding: 16px 20px;
  background: #eef4ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  margin: 0 0 16px;
}

.docs-content .docs-tip p {
  margin: 0;
  color: #1e40af;
  font-size: 14px;
}

.docs-content .docs-tip strong {
  color: #1e40af;
}

/* Standalone CTA under a section of body copy, for pointing at the page that
   covers that section in full. Deliberately quiet: /templates carries one per
   format as the remaining format pages publish, and a button per section would
   read as a wall of buttons down the middle of the page. Classed anchor so the
   `.docs-content a:not([class])` body-link rule leaves it alone. */
.docs-content .docs-inline-cta {
  margin: -4px 0 24px;
  font-size: 14px;
}

.docs-inline-cta__link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.docs-inline-cta__link:hover {
  color: #1e40af;
}

/* inline-block, not a flex item: the label is long enough to wrap on a phone,
   and as a flex item the arrow would end up vertically centred against two
   lines of text instead of trailing the last word. */
.docs-inline-cta__arrow {
  display: inline-block;
  margin-left: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .docs-inline-cta__arrow {
    transition: transform 0.15s ease;
  }

  .docs-inline-cta__link:hover .docs-inline-cta__arrow {
    transform: translateX(3px);
  }
}

/* Docs table */

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.docs-content th {
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  padding: 10px 12px;
  border-bottom: 2px solid #e6eaf0;
  font-size: 13px;
}

.docs-content td {
  padding: 10px 12px;
  border-bottom: 1px solid #f4f6fa;
  color: #475569;
  line-height: 1.5;
}

.docs-content caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.docs-content .docs-tip a {
  color: #1e40af;
  text-decoration: underline;
}

/* Wide tables scroll inside their own box rather than pushing the page sideways. */
.docs-content .docs-table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

.docs-content .docs-table-scroll table {
  margin-bottom: 0;
}

.docs-content .docs-table-scroll:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Docs page bottom nav */

.docs-nav-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e6eaf0;
}

.docs-nav-bottom__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}

.docs-nav-bottom__link:hover {
  background: #f8fafc;
}

.docs-nav-bottom__link--next {
  text-align: right;
  margin-left: auto;
}

.docs-nav-bottom__label {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.docs-nav-bottom__title {
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
}

@media (max-width: 768px) {
  .docs-cards {
    grid-template-columns: 1fr;
  }

  .docs-page {
    padding: 36px 24px 48px;
  }

  .docs-page__title {
    font-size: 26px;
  }

}

@media (max-width: 480px) {
  .docs-page {
    padding: 32px 16px 40px;
  }

  .docs-page__title {
    font-size: 24px;
  }

  .docs-subnav {
    gap: 2px;
  }

  .docs-subnav__link {
    font-size: 12px;
    padding: 5px 8px;
  }

  .docs-content h2 {
    font-size: 19px;
  }

  .docs-nav-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .docs-nav-bottom__link--next {
    text-align: left;
  }

}

/* ---- Focus styles for keyboard nav ---- */

.landing-nav__link:focus-visible,
.landing-nav__cta:focus-visible,
.landing-hero__cta:focus-visible,
.landing-hero__secondary:focus-visible,
.landing-final-cta__button:focus-visible,
.landing-docs__trigger:focus-visible,
.pricing-card__cta:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Subtle entrance animation ---- */

@media (prefers-reduced-motion: no-preference) {
  .landing-hero__content {
    animation: landing-fade-up 0.5s ease both;
  }

  .landing-hero__visual {
    animation: landing-fade-up 0.5s ease 0.15s both;
  }
}

@keyframes landing-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
