/*
  Veyact public site — shared base layer (loaded first on every public route).
  Visual specification (applies across routines-preview, dealproof, cinematic):
  - Editorial, architectural: white canvas, hairline rules, generous space.
  - Ink #0d1218; muted text stays at strong contrast (#46545f on white).
  - Runrail blue #1757d6 (text) / #2f7dff (graphics on dark).
  - DealProof petrol #066a73 (text) / #2bb3b1 (graphics on dark).
  - Product interfaces sit on deep night panels (#0c141d) so the synthetic
    samples read as instruments, not decoration. Source papers stay white.
  - Type: system stack, tight display tracking, tabular figures for money/dates.
  - Radii: panels 14px, controls 8px, primary actions pill. Motion: opacity
    and small translations only, always disabled under reduced-motion.
*/
:root {
  --ink: #0d1218;
  --ink-2: #24303d;
  --muted: #46545f;
  --faint: #5d6b78;
  --line: #d9dfe6;
  --line-soft: #e7ebef;
  --mist: #f2f5f7;
  --blue: #1757d6;
  --blue-bright: #2f7dff;
  --petrol: #066a73;
  --petrol-bright: #2bb3b1;
  --night: #0c141d;
  --night-2: #12202e;
  --night-line: #2b3d4f;
  --night-text: #e8eff5;
  --night-muted: #a9bcca;
  --warn-bg: #fdf3e0;
  --warn-ink: #7a4a00;
  --r-panel: 14px;
  --r-ui: 8px;
  --shadow-panel: 0 24px 60px rgba(13, 26, 41, .16), 0 4px 14px rgba(13, 26, 41, .08);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: 4px; }
button, select, input { font: inherit; }
button, a, summary { touch-action: manipulation; }
button, .rp-button { min-height: 44px; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.028em; font-weight: 580; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.015em; }
p { font-size: 17px; line-height: 1.65; color: var(--muted); }
main > section { padding-left: max(24px, calc((100% - 1220px) / 2)); padding-right: max(24px, calc((100% - 1220px) / 2)); }
::selection { background: #cfe0ff; }

.rp-preview-banner { text-align: center; background: var(--mist); border-bottom: 1px solid var(--line); color: var(--muted); padding: 8px 20px; font-size: 13px; line-height: 1.5; }
.rp-skip { position: absolute; top: -100px; left: 20px; background: #fff; color: var(--ink); padding: 14px 18px; z-index: 60; border-radius: 0 0 var(--r-ui) var(--r-ui); box-shadow: var(--shadow-panel); }
.rp-skip:focus { top: 0; }

/* Legacy header/footer (retired pages) — kept coherent with the shell. */
.rp-header { height: 72px; max-width: 1272px; padding: 0 26px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.rp-brand { font-size: 25px; font-weight: 700; letter-spacing: -.04em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.rp-brand small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.rp-header nav { display: flex; gap: 26px; }
.rp-header nav a { color: var(--ink); text-decoration: none; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.rp-header-actions { display: flex; gap: 22px; align-items: center; }
.rp-mobile-menu { display: none; }
.rp-footer { max-width: 1272px; margin: auto; padding: 64px 26px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.rp-footer h3 { font-size: 14px; margin-bottom: 22px; }
.rp-footer div a { display: block; color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.5; padding: 6px 0; }
.rp-footer-note { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 24px; font-size: 12px; }

.rp-text-link { font-size: 15px; font-weight: 600; text-decoration: none; }
.rp-text-link:hover { text-decoration: underline; }
.rp-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 13px 24px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; line-height: 1.4;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.rp-button:hover { background: var(--ink-2); border-color: var(--ink-2); }
.rp-button:active { transform: translateY(1px); }
.rp-button-secondary { background: #fff; color: var(--ink); border-color: #b9c3cd; }
.rp-button-secondary:hover { background: var(--mist); border-color: var(--ink-2); color: var(--ink); }
.rp-button:disabled { background: #e6eaee; border-color: #e6eaee; color: #687582; cursor: not-allowed; transform: none; }

.rp-hero { padding-top: 72px; padding-bottom: 80px; display: grid; grid-template-columns: 43fr 57fr; gap: 48px; align-items: center; }
.rp-eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--blue); font-weight: 700; margin-bottom: 22px; }
.rp-lead { max-width: 62ch; margin-top: 24px; font-size: 19px; }
.rp-actions { display: flex; align-items: center; gap: 18px 28px; margin-top: 32px; flex-wrap: wrap; }
.rp-caption { font-size: 13px; margin-top: 16px; }
.rp-compat { display: block; font-size: 13px; line-height: 1.6; margin-top: 24px; color: var(--muted); }

/* Runrail sample scene: white source paper beside the suggested entry, on night. */
.rp-scene { border: 1px solid var(--night-line); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); overflow: hidden; background: var(--night); color: var(--night-text); min-width: 0; }
.rp-scene-top { padding: 18px 22px; border-bottom: 1px solid var(--night-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--night-muted); }
.rp-scene-top strong { font-size: 17px; font-weight: 650; letter-spacing: -.02em; color: var(--blue-bright); }
.rp-scene-top strong span { font-size: 12px; font-weight: 400; margin-left: 8px; color: var(--night-muted); }
.rp-document-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; padding: 26px 22px; align-items: start; }
.rp-paper { background: #fff; color: var(--ink-2); padding: 26px 22px; border: 1px solid #d5dde5; border-radius: 6px; min-width: 0; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.rp-paper .rp-paper-name { font-size: 19px; letter-spacing: -.02em; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.rp-paper p { font-size: 12px; margin-bottom: 16px; color: var(--faint); }
.rp-paper .rp-paper-label { font-size: 10px; letter-spacing: .12em; font-weight: 700; color: var(--faint); margin-bottom: 26px; }
.rp-paper dl { margin: 28px 0 0; }
.rp-paper dl div { display: flex; gap: 12px; justify-content: space-between; font-size: 13px; margin: 16px 0; }
.rp-paper dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-paper dt { color: var(--faint); }
.rp-highlight { background: var(--warn-bg); color: var(--warn-ink); padding: 3px 6px; margin: -3px -6px; outline: 1px solid #dfb96e; border-radius: 3px; font-weight: 650; }
.rp-paper dl div:last-child { padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.rp-row-preview { padding: 6px 0; min-width: 0; }
.rp-mini-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; margin-bottom: 18px; color: var(--night-muted); }
.rp-warning { display: inline-block; font-size: 12px; font-weight: 650; color: #ffd48a; background: #3a2c10; border: 1px solid #7a5b1e; padding: 6px 10px; border-radius: 6px; }
.rp-large-number { font-size: 40px; font-weight: 650; color: #fff; margin-top: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.rp-large-number small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--night-muted); }
.rp-row-preview dl { font-size: 14px; line-height: 1.7; margin: 8px 0 0; }
.rp-row-preview dt { color: var(--night-muted); font-size: 12px; margin-top: 16px; }
.rp-row-preview dd { margin: 3px 0 0; color: var(--night-text); }
.rp-source-link { display: block; font-size: 12px; color: #8db9ff; margin-top: 28px; }
.rp-scene-foot { padding: 14px 22px; border-top: 1px solid var(--night-line); font-size: 12px; color: var(--night-muted); }

.rp-section { padding-top: 104px; padding-bottom: 104px; }
.rp-section > h2 + p { margin-top: 24px; }
.rp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin: 48px 0 0; }
.rp-steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.rp-steps span { display: block; font-size: 13px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.rp-steps h3, .rp-steps h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.02em; margin: 18px 0 10px; }
.rp-steps p { font-size: 16px; }
.rp-tinted { background: var(--mist); }
.rp-two-columns { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.rp-two-columns p:not(.rp-eyebrow) { margin: 24px 0; max-width: 44ch; }
.rp-two-columns .rp-paper p { margin: 0 0 16px; }
.rp-two-columns .rp-large-number { margin: 22px 0 0; }
.rp-repeat { display: flex; gap: 42px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; margin-top: 44px; }
.rp-repeat span { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--faint); }
.rp-repeat h3 { margin-top: 14px; }
.rp-control { background: var(--mist); }
.rp-control h2 { max-width: 24ch; }
.rp-control p { max-width: 66ch; margin: 24px 0; }
.rp-control ul { padding-left: 20px; margin: 32px 0; line-height: 2.3; color: var(--ink-2); }

/* Pricing */
.rp-section-heading { max-width: 780px; }
.rp-section-heading p { margin-top: 24px; }
.rp-buyer { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 36px 0 24px; gap: 4px; background: #fff; }
.rp-buyer button { padding: 10px 22px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); min-height: 44px; }
.rp-buyer [aria-pressed="true"] { background: var(--ink); color: #fff; }
.rp-trial { font-size: 15px; padding: 20px 24px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-panel); max-width: 86ch; }
.rp-trial strong { color: var(--ink); }
.rp-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 40px 0 28px; }
.rp-price { padding: 36px; border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; display: flex; flex-direction: column; }
.rp-price[hidden] { display: none; }
.rp-price h2 { font-size: 30px; }
.rp-price .rp-eyebrow { margin-bottom: 14px; color: var(--faint); }
.rp-price-number { font-size: 56px; font-weight: 680; letter-spacing: -.04em; color: var(--ink); margin-top: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rp-price-number span { font-size: 15px; font-weight: 500; letter-spacing: 0; margin-left: 8px; color: var(--muted); }
.rp-tax { font-size: 14px; margin-top: 8px; color: var(--ink-2); }
.rp-availability { font-size: 13px; font-weight: 600; color: var(--warn-ink); background: var(--warn-bg); border: 1px solid #ecd9ac; padding: 10px 12px; margin-top: 24px; border-radius: var(--r-ui); }
.rp-price ul { list-style: none; padding: 0; line-height: 1.6; font-size: 15px; margin: 26px 0 30px; color: var(--ink-2); }
.rp-price li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line-soft); position: relative; }
.rp-price li::before { content: "✓"; position: absolute; left: 2px; color: var(--petrol); font-weight: 700; }
.rp-price .rp-button { margin-top: auto; align-self: flex-start; }
.rp-detail { margin-top: 72px; }
.rp-detail h2 { font-size: 30px; }
.rp-detail p { margin-top: 20px; max-width: 68ch; }
.rp-scroll { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--r-panel); }
.rp-scroll table { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 14px; }
.rp-scroll th, .rp-scroll td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.rp-scroll th { background: var(--mist); font-weight: 650; color: var(--ink-2); }
.rp-scroll tr:last-child td { border-bottom: 0; }
.rp-faq { border-bottom: 1px solid var(--line); padding: 8px 0; }
.rp-faq:first-of-type { margin-top: 30px; }
.rp-faq summary { font-size: 18px; line-height: 1.5; font-weight: 600; cursor: pointer; min-height: 48px; display: list-item; padding: 12px 0; color: var(--ink); }
.rp-faq p { padding: 2px 0 20px; max-width: 68ch; }
.rp-final { background: var(--night); padding-top: 88px; padding-bottom: 88px; color: #fff; }
.rp-final p { color: #b9c9d6; margin: 24px 0 30px; max-width: 58ch; }
.rp-final .rp-button { background: #fff; border-color: #fff; color: var(--ink); }
.rp-final .rp-button:hover { background: var(--mist); }

/* Runrail synthetic demo controls */
.rp-demo-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 48px; align-items: start; }
.rp-demo-controls { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 30px; background: #fff; }
.rp-demo-controls h2 { font-size: 26px; }
.rp-demo-controls label { display: block; font-size: 15px; font-weight: 600; line-height: 1.6; margin: 24px 0 12px; color: var(--ink-2); }
.rp-demo-controls select { min-height: 48px; width: 100%; margin-top: 10px; padding: 11px 12px; border: 1px solid #a7b4c0; border-radius: var(--r-ui); background: #fff; color: var(--ink); font-weight: 400; }
.rp-demo-controls input[type="checkbox"] { width: 20px; height: 20px; vertical-align: -4px; margin-right: 10px; accent-color: var(--blue); }
.rp-demo-controls p { font-size: 15px; margin: 16px 0; }
.rp-demo-controls #rp-date-status { font-weight: 650; color: var(--warn-ink); }
.rp-demo-controls #rp-output { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.rp-demo-controls #rp-output h3 { font-size: 18px; margin-bottom: 10px; }
.rp-demo-controls #rp-output-row { font-variant-numeric: tabular-nums; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-ui); padding: 12px 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.rp-demo-controls [hidden] { display: none !important; }
.rp-reset { display: inline-block; border: 0; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; margin-top: 18px; padding: 10px 4px; font-size: 15px; font-weight: 600; }

/* Documentation and information reading pages */
.rp-docs > p, .rp-docs > ol { max-width: 68ch; margin-top: 22px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.rp-docs h1 { max-width: 20ch; }
.rp-docs h2 { font-size: 30px; margin: 52px 0 6px; }
.rp-docs nav { margin-top: 30px; line-height: 2.1; font-size: 15px; }
.rp-docs li { margin-bottom: 14px; color: var(--muted); line-height: 1.7; }
.rp-docs p + .rp-actions { margin-top: 34px; }

@media (max-width: 1100px) {
  .rp-two-columns { gap: 44px; }
  .rp-document-row { gap: 18px; padding: 22px 18px; }
  .rp-paper { padding: 22px 18px; }
}
@media (max-width: 960px) {
  .rp-hero { grid-template-columns: 1fr; padding-top: 56px; }
  .rp-hero > div:first-child { max-width: 680px; }
  .rp-two-columns { grid-template-columns: 1fr; gap: 40px; }
  .rp-demo-layout { grid-template-columns: 1fr; }
  .rp-steps { grid-template-columns: 1fr; gap: 32px; }
  .rp-price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main > section { padding-left: 20px; padding-right: 20px; }
  .rp-section { padding-top: 64px; padding-bottom: 64px; }
  .rp-hero { padding-top: 44px; padding-bottom: 60px; }
  .rp-lead { font-size: 17px; }
  .rp-document-row { grid-template-columns: 1fr; padding: 20px 16px; gap: 22px; }
  .rp-paper dl div { font-size: 13px; }
  .rp-large-number { font-size: 34px; }
  .rp-repeat { display: grid; gap: 26px; }
  .rp-repeat > span { transform: rotate(90deg); justify-self: start; }
  .rp-price { padding: 28px 22px; }
  .rp-price-number { font-size: 48px; }
  .rp-buyer { display: flex; width: 100%; }
  .rp-buyer button { flex: 1; padding: 10px 8px; font-size: 13px; }
  .rp-trial { padding: 18px; font-size: 14px; }
  .rp-demo-controls { padding: 24px 20px; }
  .rp-final { padding-top: 60px; padding-bottom: 60px; }
  .rp-preview-banner { font-size: 11px; }
  .rp-detail h2, .rp-docs h2 { font-size: 26px; }
  .rp-faq summary { font-size: 17px; }
  .rp-footer { padding: 48px 20px 24px; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .rp-footer > .rp-brand { grid-column: 1 / -1; }
  .rp-header { padding: 0 20px; flex-wrap: wrap; height: auto; min-height: 72px; }
  .rp-header nav { display: none; }
  .rp-mobile-menu { display: block; position: relative; }
  .rp-mobile-menu summary { font-size: 13px; padding: 14px 0; min-height: 44px; cursor: pointer; }
  .rp-mobile-menu nav { position: absolute; right: 0; top: 46px; width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-ui); padding: 14px 16px; display: flex; flex-direction: column; z-index: 30; box-shadow: var(--shadow-panel); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto !important; }
}
