/* ==============================
   Randio Landing Page
   Brand: Tailwind Emerald (matches admin dashboard)
   ============================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-50:  #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-300: #6ee7b7;
  --brand-400: #34d399;
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-800: #065f46;
  --brand-900: #064e3b;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #fff;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --transition: 150ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--brand-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Utility --- */
.text-brand { color: var(--brand-600); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  padding: 0.625rem 1.25rem;
  white-space: nowrap;
}
.btn-sm  { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg  { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--brand-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-700); }

.btn-outline {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--gray-50); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.75);
}
.btn-ghost:hover { color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--brand-700);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: var(--brand-50); }

/* --- Header --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 78, 59, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}

.logo-icon {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-menu {
  display: none;
  padding: 0.5rem 1.5rem 1rem;
  background: var(--brand-900);
}
.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu.open { display: block; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  /* Tighter vertical rhythm now that the mockup is larger and fills the row. */
  padding: 8rem 0 3.5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-100) 0%, var(--brand-50) 50%, #f0fdf4 100%);
  z-index: -1;
}
.hero-split {
  display: grid;
  /* Hero uses a wider track than the default 1200px container so the device
     mockup (3-col catalog, legible cards) can render large. The text column is
     fixed-ish; the visual column takes the rest. */
  grid-template-columns: minmax(340px, 0.8fr) 1.5fr;
  gap: 2.5rem;
  align-items: center;
}
/* Widen just the hero's container so the bigger mockup fits without bleeding
   past the section edge. */
.hero .container {
  max-width: 1360px;
}
.hero-text {
  max-width: 560px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.platform-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.platform-badges-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.platform-badges-list {
  display: flex;
  gap: 0.5rem;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}
.shopify-icon {
  flex-shrink: 0;
}
.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero catalog screenshot (desktop + mobile overlay) */
.hero-visual {
  display: flex;
  justify-content: center;
  /* Let the mockup bleed past the column toward the screen edge so it can be
     ~1.5x larger than the container column would allow. */
  overflow: visible;
}
.hero-catalog-img {
  width: 100%;
  height: auto;
  /* Fills the wide visual column (in the widened 1360px hero container) so the
     3-col catalog cards + ribbons are legible. Shadow + device frames are baked
     into the transparent PNG — no CSS card box. */
  max-width: 820px;
}

@media (max-width: 900px) {
  .hero { padding: 10rem 0 4rem; }
  .hero-split { grid-template-columns: 1fr; gap: 3rem; }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; max-width: 560px; }
  .hero-actions { justify-content: center; }
  .platform-badges { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
}

/* --- Sections --- */
.section {
  padding: 7rem 0;
}
.section-alt {
  background: var(--brand-100);
}
/* Features sit on white so the section reads as distinct from the brand-50
   page background (which the two were previously too close to). */
.section-features {
  background: var(--white);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-header p {
  margin-top: 1rem;
  font-size: 1.1875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Features --- */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch; /* all cards in a row share the tallest height */
}
.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  height: 100%; /* fill the stretched grid cell → equal-height cards */
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.feature-item:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
@media (max-width: 768px) {
  .features-list { grid-template-columns: 1fr; }
}
.feature-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  border-radius: var(--radius-md);
}
.feature-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
/* Description carries the "how" — kept in full, but visually subordinate to the
   headline so the eye scans titles first instead of hitting 6 equal blocks. */
.feature-text p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* --- Steps (flow with connectors) --- */
.steps-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}
.steps-flow .step {
  flex: 1;
  text-align: center;
  max-width: 320px;
}
.step-connector {
  display: flex;
  align-items: center;
  padding-top: 0.75rem;
  flex-shrink: 0;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--brand-600);
  color: var(--white);
  font-weight: 700;
  font-size: 1.375rem;
  box-shadow: var(--shadow-md);
}
.step-content {
  margin-top: 1.25rem;
}
.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
.step-content p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .steps-flow { flex-direction: column; align-items: center; gap: 0.5rem; }
  .step-connector { transform: rotate(90deg); padding-top: 0; }
  .steps-flow .step { max-width: 100%; }
}

/* --- Pricing --- */
/* --- Slider-based plan map --- */
.pricing-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
}
.price-period {
  color: var(--gray-500);
  font-size: 1rem;
  font-weight: 400;
}

/* No card chrome — the plan map lives directly in the section so it uses the
   full width and stays short enough to fit one screen. */
.pricing-slider-card {
  max-width: 1040px;
  margin: 0 auto;
}
/* Plan title */
.pricing-plan-header {
  margin-bottom: 0.5rem;
}
/* Price (left) + slider (right) side-by-side below the cards — uses horizontal
   space so the section stays short. */
.pricing-control-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2.25rem;
  margin-bottom: 1.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--brand-100);
}
.pricing-plan-block { flex: 0 0 auto; min-width: 13rem; }
.pricing-control-row .pricing-range-wrap { flex: 1; margin: 0; }
.pricing-yearly-aside {
  display: block;
  font-size: 0.8125rem;
  color: var(--brand-700);
  font-weight: 500;
  margin-top: 0.25rem;
}
.pricing-yearly-aside[hidden] { display: none; }
.pricing-slider-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}
.pricing-slider-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.pricing-yearly-strike {
  margin-left: -0.125rem;
  font-size: 0.875rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.pricing-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
/* Single-card plan: $99 headline with the two usage components as small
   divided rows beneath it. */
.pricing-plan-card .pricing-usage-item {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--brand-200);
}
.pricing-plan-card .pricing-resource-desc { margin-top: 0.25rem; }
/* Breathing room between the plan card and the CTA. */
.pricing-slider-card .btn-block { margin-top: 1.75rem; }
/* Enterprise — deliberately blocked/TBA: muted card, no interaction. */
.pricing-enterprise-card {
  margin-top: 1.25rem;
  border-radius: var(--radius-lg, 0.75rem);
  border: 1px dashed var(--gray-300, #d1d5db);
  background: var(--gray-50, #f9fafb);
  padding: 1rem 1.25rem;
  opacity: 0.75;
}
.pricing-enterprise-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}
.pricing-tba-badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.45rem;
  border-radius: 999px;
  background: var(--gray-200, #e5e7eb);
  color: var(--gray-600, #4b5563);
}
.pricing-resource {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg, 0.75rem);
  border: 2px solid var(--brand-200);
  background: var(--brand-50);
  padding: 1.25rem 1.25rem 1.375rem;
}
.pricing-resource::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-500);
}
.pricing-resource-storefront { border-color: var(--brand-300); }
.pricing-resource-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.pricing-resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: var(--brand-50);
  color: var(--brand-600);
}
.pricing-resource-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-700);
}
.pricing-resource-value {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--gray-900, #111827);
}
.pricing-resource-unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-500);
}
.pricing-resource-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.pricing-range-wrap {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}
.pricing-range-label {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: 0.875rem;
}
.pricing-range {
  width: 100%;
  height: 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--brand-100), var(--brand-300));
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}
/* Track — explicit for Firefox */
.pricing-range::-moz-range-track {
  height: 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--brand-100), var(--brand-300));
}
/* Thumb — large, brand-filled, ringed */
.pricing-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand-600);
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
  cursor: grab;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.pricing-range:active::-webkit-slider-thumb { cursor: grabbing; box-shadow: 0 0 0 6px var(--brand-100); }
.pricing-range::-moz-range-thumb {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand-600);
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
  cursor: grab;
}
.pricing-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--brand-200); }
.pricing-range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-top: 0.75rem;
}
.pricing-included-note {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
}

/* Custom / enterprise state — when the slider hits the "Need more?" stop,
   the price + resource values take a brand accent so it reads as distinct. */
.pricing-slider-card.is-custom .price-amount {
  font-size: 2rem;
  color: var(--brand-700);
}
.pricing-slider-card.is-custom .pricing-resource-value {
  color: var(--brand-700);
}
/* --- Pricing Toggle --- */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.pricing-toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--transition);
}
.pricing-toggle-label.active {
  color: var(--gray-800);
  font-weight: 600;
}
.pricing-save-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}
.pricing-toggle-switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background: var(--gray-200);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}
.pricing-toggle-switch.active {
  background: var(--brand-500);
}
.pricing-toggle-knob {
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.pricing-toggle-switch.active .pricing-toggle-knob {
  transform: translateX(1.25rem);
}

@media (max-width: 640px) {
  .pricing-resource-grid { grid-template-columns: 1fr; }
  .pricing-control-row { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .pricing-plan-block { min-width: 0; }
}

/* --- CTA --- */
.cta-section {
  padding: 7rem 0;
  background: var(--brand-600);
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
}
.cta-inner p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--brand-100);
}
.cta-inner .btn {
  margin-top: 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--brand-900);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 2.5rem 0;
  color: var(--white);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
  text-align: right;
}

.footer .logo { color: var(--white); }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-copy { text-align: center; }
}

/* --- Article Pages --- */
/* Short pages (the thanks pages): too little content to reach the bottom, so
   the footer used to sit mid-screen. Fill the viewport and pin it down. */
body.page-fill {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body.page-fill .article-hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 8rem;
}
body.page-fill .footer {
  margin-top: auto;
}

.article-hero {
  padding: 8rem 0 1.5rem;
  background: linear-gradient(135deg, var(--brand-100) 0%, var(--brand-50) 50%, #f0fdf4 100%);
}
.article-hero .container {
  max-width: 840px;
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}
.article-breadcrumb a {
  color: var(--brand-600);
  font-weight: 500;
  transition: color var(--transition);
}
.article-breadcrumb a:hover { color: var(--brand-700); }
.article-breadcrumb .sep { color: var(--gray-300); }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}
.article-byline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--gray-600);
}
.article-byline .byline-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.article-byline .byline-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}
.article-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}
.article-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}
.article-plan-badge.plan-pro {
  background: #ede9fe;
  color: #6d28d9;
}
.article-plan-badge.plan-advanced {
  background: #fef3c7;
  color: #b45309;
}
.article-plan-notice {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.6;
}
.article-plan-notice.plan-pro {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
}
.article-plan-notice.plan-advanced {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.article-plan-notice a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-plan-notice.plan-pro a { color: #6d28d9; }
.article-plan-notice.plan-advanced a { color: #b45309; }
/* Article hero image */
.article-hero-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
}

.article-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.article-hero .article-subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Article body */
.article-body {
  padding: 2rem 0 4rem;
}
.article-body .container {
  max-width: 840px;
}
.article-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.article-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-prose h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.article-prose p {
  margin-bottom: 1.5rem;
}
.article-prose ul, .article-prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-prose li {
  margin-bottom: 0.5rem;
}
.article-prose strong {
  color: var(--gray-900);
  font-weight: 600;
}
.article-prose blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--brand-50);
  border-left: 4px solid var(--brand-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--gray-700);
  font-size: 1rem;
}
.article-prose blockquote p:last-child {
  margin-bottom: 0;
}
.article-prose .callout {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.article-prose .callout-title {
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}
.article-prose .callout p:last-child {
  margin-bottom: 0;
}

/* Related articles */
.article-related {
  padding: 4rem 0;
  background: var(--brand-100);
}
.article-related .container {
  max-width: 760px;
}
.article-related h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.related-card-img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--brand-100);
}
.related-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.related-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
}
.related-card p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.55;
}

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

/* Articles index */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.articles-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.articles-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.articles-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}
.articles-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.articles-card-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.articles-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}
.articles-card-body p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}
.articles-card-body .read-more {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-600);
}

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

.articles-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto 2.5rem;
}
.articles-filter-tab {
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.articles-filter-tab:hover {
  border-color: var(--brand-400);
  color: var(--brand-700);
}
.articles-filter-tab.active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: var(--white);
}

/* ==============================
   Contact Form
   ============================== */

/* Form + its note share one card, full article-column width. */
.form-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.form-card-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--brand-100);
  font-size: 0.9375rem;
}

.form-card-note p:last-child {
  margin-bottom: 0;
}

.form-card-note a {
  color: var(--brand-700);
  font-weight: 600;
}

@media (max-width: 640px) {
  .form-card { padding: 1.25rem; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

/* Native chevron hugs the right border; draw our own, inset like the text. */
.form-group select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236b7280' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group [aria-invalid="true"] {
  border-color: #dc2626;
}

.form-group [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.contact-form .form-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  color: #b91c1c;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-form .form-error[hidden] {
  display: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  justify-content: center;
}

.contact-form .form-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.form-optional {
  font-weight: 400;
  color: var(--gray-400);
}

/* Pre-launch status chip. Sits above the h1 on the hero bands, which are all
   the brand-100 gradient — hence the white fill rather than a brand tint. */
.status-pill {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3125rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* On the solid brand-600 CTA band a white chip is too loud — invert it. */
.cta-section .status-pill {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

/* ==============================
   Example Cards (Good/Bad)
   ============================== */

.example-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.example-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-200);
}

.example-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.example-card li {
  font-size: 0.9375rem;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.example-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem !important;
}

.example-good {
  background: var(--brand-50);
  border-color: var(--brand-300);
}

.example-good .example-label {
  color: var(--brand-700);
}

.example-bad {
  background: #fef2f2;
  border-color: #fca5a5;
}

.example-bad .example-label {
  color: #b91c1c;
}

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

/* Live fleet counter under the hero copy (js/live-stats.js reveals it). */
.hero-stat {
  margin: -8px 0 24px;
  font-size: 0.95rem;
  opacity: 0.85;
}
.hero-stat strong {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .hero-stat { text-align: center; }
}

/* Feature icons: inline SVG rather than emoji — emoji rendered differently on
   every platform, could not take the brand colour, and showed as flat black
   glyphs anywhere the colour-emoji font was missing. */
.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--brand-600);
  stroke-width: 2.2;
}

/* Full-width screenshot inside a section. Height is set per-image in the
   markup so the box is reserved before the image loads (no layout shift). */
.section-shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg, 16px);
}

/* ── Annotated figures (help pages + articles) ───────────────────────────
   One screenshot, cut up by CSS. Generated by apps/main/app/core/content/figures.ts:
   the page sits in its own card with every numbered marker on it; a row of
   numbered tabs picks ONE step, whose crop (a window onto the SAME image via
   background-size/position) and text show below — so the labelled overview
   stays in view (Paul, 2026-10-15). Tabs are radio inputs and markers are
   labels for them: no script. Where :has() is missing every step shows,
   stacked. One rule per step number below — figures.ts caps steps at 8. */
.help-figure {
  display: grid;
  gap: 0.875rem;
  margin: 2rem 0;
}
.help-figure-page {
  position: relative;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(6, 78, 59, 0.08);
}
.help-figure-page img {
  display: block;
  width: 100%;
  height: auto;
}
.help-marker {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--brand-600, #4f46e5);
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.help-marker b {
  position: absolute;
  top: -0.7rem;
  left: -0.7rem;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--brand-600, #4f46e5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4rem;
  text-align: center;
}
.help-figure-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.help-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.help-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 999px;
  background: var(--white, #fff);
  color: var(--gray-700, #374151);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.help-tab:hover {
  border-color: var(--brand-600, #4f46e5);
}
.help-tab-input:focus-visible + .help-tab {
  outline: 2px solid var(--brand-600, #4f46e5);
  outline-offset: 2px;
}
.help-figure-panels {
  display: grid;
  gap: 1rem;
}
.help-figure-panel {
  padding: 1rem;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 12px;
  background: var(--gray-50, #f9fafb);
}
.help-crop {
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 8px;
  background-repeat: no-repeat;
  background-color: var(--white, #fff);
}
.help-figure-panel p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.help-step-n {
  display: inline-block;
  min-width: 1.4rem;
  height: 1.4rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: var(--brand-600, #4f46e5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4rem;
  text-align: center;
}
@supports selector(:has(*)) {
  .help-figure-panel {
    display: none;
  }
  .help-figure:has(.help-tab-input[data-step="1"]:checked) .help-figure-panel[data-step="1"],
  .help-figure:has(.help-tab-input[data-step="2"]:checked) .help-figure-panel[data-step="2"],
  .help-figure:has(.help-tab-input[data-step="3"]:checked) .help-figure-panel[data-step="3"],
  .help-figure:has(.help-tab-input[data-step="4"]:checked) .help-figure-panel[data-step="4"],
  .help-figure:has(.help-tab-input[data-step="5"]:checked) .help-figure-panel[data-step="5"],
  .help-figure:has(.help-tab-input[data-step="6"]:checked) .help-figure-panel[data-step="6"],
  .help-figure:has(.help-tab-input[data-step="7"]:checked) .help-figure-panel[data-step="7"],
  .help-figure:has(.help-tab-input[data-step="8"]:checked) .help-figure-panel[data-step="8"] {
    display: block;
  }
  .help-figure:has(.help-tab-input[data-step="1"]:checked) .help-tab[data-step="1"],
  .help-figure:has(.help-tab-input[data-step="2"]:checked) .help-tab[data-step="2"],
  .help-figure:has(.help-tab-input[data-step="3"]:checked) .help-tab[data-step="3"],
  .help-figure:has(.help-tab-input[data-step="4"]:checked) .help-tab[data-step="4"],
  .help-figure:has(.help-tab-input[data-step="5"]:checked) .help-tab[data-step="5"],
  .help-figure:has(.help-tab-input[data-step="6"]:checked) .help-tab[data-step="6"],
  .help-figure:has(.help-tab-input[data-step="7"]:checked) .help-tab[data-step="7"],
  .help-figure:has(.help-tab-input[data-step="8"]:checked) .help-tab[data-step="8"] {
    background: var(--brand-600, #4f46e5);
    border-color: var(--brand-600, #4f46e5);
    color: #fff;
  }
  .help-figure:has(.help-tab-input:checked) .help-marker {
    opacity: 0.45;
  }
  .help-figure:has(.help-tab-input[data-step="1"]:checked) .help-marker[data-step="1"],
  .help-figure:has(.help-tab-input[data-step="2"]:checked) .help-marker[data-step="2"],
  .help-figure:has(.help-tab-input[data-step="3"]:checked) .help-marker[data-step="3"],
  .help-figure:has(.help-tab-input[data-step="4"]:checked) .help-marker[data-step="4"],
  .help-figure:has(.help-tab-input[data-step="5"]:checked) .help-marker[data-step="5"],
  .help-figure:has(.help-tab-input[data-step="6"]:checked) .help-marker[data-step="6"],
  .help-figure:has(.help-tab-input[data-step="7"]:checked) .help-marker[data-step="7"],
  .help-figure:has(.help-tab-input[data-step="8"]:checked) .help-marker[data-step="8"] {
    opacity: 1;
    border-width: 3px;
  }
}

/* ── "In Randio" — where an article's advice is applied ───────────────────
   Generated by apps/main/app/core/content/inRandio.ts from a `::: in-randio`
   block: what to do, a link into the app's screen, and the help page for it. */
.article-prose .in-randio {
  margin: 2.5rem 0 1rem;
  padding: 1.5rem 1.5rem 0.5rem;
  border: 1px solid var(--brand-200, #a7f3d0);
  border-radius: 12px;
  background: var(--brand-50, #ecfdf5);
}
.article-prose .in-randio h2 {
  margin-top: 0;
}
.article-prose .in-randio ol {
  margin: 0;
  padding-left: 1.25rem;
}
.article-prose .in-randio li {
  margin-bottom: 1rem;
}
.article-prose .in-randio li p {
  margin: 0 0 0.375rem;
}
.article-prose .in-randio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}
.article-prose .in-randio-links a {
  color: var(--brand-700, #047857);
}
.article-prose .in-randio-links a:hover {
  text-decoration: underline;
}
.article-prose .in-randio-open {
  font-weight: 600;
}
.article-prose .in-randio-open::after {
  content: " ↗";
}

/* ── Tables inside article prose (generated from Markdown) ─────────────── */
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}
.article-prose th,
.article-prose td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-200, #e5e7eb);
  text-align: left;
  vertical-align: top;
}
.article-prose th {
  background: var(--gray-50, #f9fafb);
  font-weight: 600;
}
