/* Routewell site styles. No build step: edit and push. */
:root {
  --accent: #1D4FC4;
  --accent-dark: #163C96;
  --ink: #0F1B2D;
  --ink-2: #26324A;
  --muted: #3A4659;
  --muted-2: #4A5568;
  --line: #E3E6EB;
  --line-2: #D5DAE1;
  --ground: #F6F7F9;
  --card: #FFFFFF;
  --night: #0F1B2D;
  --night-text: #C9D2DF;
  --radius: 12px;
  --max: 1160px;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.55;
  font-size: 16px;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.section { padding: 88px 0; }
.section.white { background: var(--card); }
.section.bordered { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }
.muted { color: var(--muted-2); }
.small { font-size: 14px; }
.h2 { font-size: 40px; }
.h2-sm { font-size: 34px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: #C9CFD8; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E9EEF7; color: var(--ink); }
.nav-links .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: var(--card); }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; }
.hero-media { flex: 1 1 420px; min-width: 0; }

.placeholder {
  aspect-ratio: 16 / 10; background: #EEF1F5; border: 1px dashed #A9B2BF; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted-2); text-align: center; padding: 24px;
}
.placeholder strong { font-size: 16px; }
.placeholder span { font-size: 14px; }
.video-frame { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #000; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Cards and grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .q { font-weight: 600; font-size: 17px; }
.card .a { margin-top: 8px; color: var(--muted-2); font-size: 15px; }

.package { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.package.featured { border: 2px solid var(--accent); }
.badge { position: absolute; top: -14px; left: 32px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.package h3 { font-size: 24px; }
.package .for { margin-top: 6px; color: var(--muted-2); font-size: 15px; }
.price { font-family: var(--display); font-size: 44px; font-weight: 700; }
.price-note { display: block; margin-top: 2px; color: var(--muted-2); font-size: 15px; }
.package ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); }
.package .btn { margin-top: auto; width: 100%; }

.strip { background: var(--ground); border-radius: var(--radius); padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.callout { background: #EAF0FC; border: 1px solid #C7D5F3; border-radius: 16px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.callout h3 { font-size: 22px; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps .num { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--accent); }
.steps h3 { font-family: Inter, system-ui, sans-serif; font-size: 19px; letter-spacing: 0; }
.steps p { color: var(--muted-2); font-size: 15px; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.avatar { width: 160px; height: 160px; border-radius: 999px; object-fit: cover; background: #EEF1F5; border: 1px dashed #A9B2BF; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 13px; text-align: center; }
.about-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--ink-2); max-width: 700px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 18px 0; min-height: 44px; list-style-position: outside; }
.faq details p { color: var(--muted-2); padding-bottom: 18px; }

/* Demo page */
.demo { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.demo + .demo { margin-top: 72px; }
.demo .stack-sm ul { margin: 0; padding-left: 20px; color: var(--ink-2); }

/* Prose pages */
.prose { display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--ink-2); }
.prose h2 { font-size: 26px; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Table */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ground); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* CTA band and footer */
.cta { background: var(--night); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 88px; padding-bottom: 88px; }
.cta-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: 40px; }
.cta p { font-size: 18px; color: var(--night-text); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-actions p { font-size: 15px; }
.cta a:not(.btn) { color: #fff; }

.site-footer { background: var(--night); color: #A9B4C4; border-top: 1px solid #22314A; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: #C9D2DF; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero-grid { padding-top: 48px; padding-bottom: 56px; gap: 32px; }
  .hero-copy h1 { font-size: 38px; }
  .h2, .cta h2 { font-size: 30px; }
  .h2-sm { font-size: 26px; }
  .lead { font-size: 17px; }
  .package { padding: 24px; }
  .price { font-size: 38px; }
  .site-nav { gap: 12px; }
  .nav-links { gap: 8px 16px; }
  .cta .wrap { padding-top: 56px; padding-bottom: 56px; }
  .callout { padding: 24px; }
}

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