/* Public marketing homepage (home.html). Standalone: does not load the app's style.css. */
:root {
  --navy: #06101f;
  --navy-2: #0b1d38;
  --ink: #0b1220;
  --muted: #53627a;
  --line: #dde6f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --blue: #0a6fd6;
  --blue-dark: #0859ad;
  --blue-soft: #e6f1ff;
  --ok: #067647;
  --ok-soft: #e3f6ec;
  --warn: #9a5b00;
  --warn-soft: #fff4dc;
  --crit: #b42318;
  --crit-soft: #fdecea;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }

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

/* Buttons */
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
}
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); }
.button-ghost { background: #fff; border-color: #c9d6e5; color: var(--ink); }
.button-ghost:hover { border-color: var(--blue); color: var(--blue); }
.button-large { font-size: 17px; min-height: 52px; padding: 12px 24px; }
.button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #7fb4f5; outline-offset: 2px; }
.button[disabled] { opacity: .6; cursor: wait; }
.link-button { color: #dbe7f7; font-weight: 600; text-decoration: none; }
.link-button:hover { color: #fff; }
.header-login-prompt { color: #9fb2cc; font-size: 14px; white-space: nowrap; }
.header-login-short { display: none; }
.hero .fine-print a { color: #8fc1ff; }
.hero .fine-print a:hover { color: #fff; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-row { align-items: center; display: flex; gap: 24px; justify-content: space-between; min-height: 68px; }
.brand img { display: block; height: 54px; width: auto; }
.header-nav { display: flex; gap: 22px; }
.header-nav a { color: #b8c7dc; font-size: 15px; font-weight: 600; text-decoration: none; }
.header-nav a:hover { color: #fff; }
.header-actions { align-items: center; display: flex; gap: 16px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #12356a 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 72px 0 84px; }
.hero-grid { align-items: center; display: grid; gap: 48px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .1em; margin-bottom: 12px; text-transform: uppercase; }
.hero .eyebrow { color: #7fb4f5; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.lede { color: #c9d6ea; font-size: 19px; margin-top: 18px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .button-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.hero .button-ghost:hover { border-color: #fff; }
.fine-print { color: var(--muted); font-size: 13px; margin-top: 14px; }
.hero .fine-print { color: #93a6c2; }

.hero-panel { justify-self: end; width: min(440px, 100%); }
.mock-card { background: #fff; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.35); color: var(--ink); padding: 18px; }
.mock-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 10px; }
.mock-title { font-weight: 800; }
.mock-row { align-items: flex-start; border-top: 1px solid var(--line); display: flex; gap: 12px; padding: 12px 2px; }
.mock-row strong { display: block; font-size: 15px; }
.mock-row small { color: var(--muted); font-size: 13px; }
.mock-caption { color: #93a6c2; font-size: 12px; margin-top: 10px; text-align: center; }
.dot { border-radius: 50%; flex: none; height: 10px; margin-top: 7px; width: 10px; }
.dot-crit { background: var(--crit); }
.dot-warn { background: #d98a00; }
.dot-ok { background: #12a36d; }
.dot-info { background: var(--blue); }

/* Pills */
.pill { border-radius: 999px; display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; white-space: nowrap; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-crit { background: var(--crit-soft); color: var(--crit); }
.pill-info { background: var(--blue-soft); color: var(--blue-dark); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-lede { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 42em; }
.split { align-items: center; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split .button { margin-top: 24px; }
.tms-actions { justify-self: end; }

/* DOT check */
.section-check { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.check-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); margin-top: 28px; padding: 22px; }
.check-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.check-input-row { display: flex; gap: 10px; }
.check-input-row input { border: 1px solid #c9d6e5; border-radius: 10px; flex: 1; font: inherit; font-size: 18px; min-height: 52px; min-width: 0; padding: 10px 14px; }
.check-message { color: var(--muted); font-size: 14px; margin-top: 10px; min-height: 1.4em; }
.check-message.is-error { color: var(--crit); }
.check-result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 18px; padding: 22px; }
.result-head { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.result-head h3 { font-size: 22px; }
.result-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.result-items { display: grid; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.result-item { align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 12px; padding: 12px 14px; }
.result-item .dot { margin-top: 8px; }
.result-item strong { display: block; }
.result-item span { color: var(--muted); font-size: 14px; }
.result-item.is-crit { background: var(--crit-soft); border-color: #f5c2bd; }
.result-item.is-warn { background: var(--warn-soft); border-color: #f3dca4; }
.result-cta { align-items: center; background: var(--blue-soft); border-radius: 12px; display: flex; gap: 16px; justify-content: space-between; margin-top: 18px; padding: 16px 18px; }
.result-cta p { color: #294466; font-size: 14px; }

/* Features */
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; display: grid; gap: 2px; padding: 16px 18px 16px 62px; position: relative; }
.steps li::before { align-items: center; background: var(--blue); border-radius: 50%; color: #fff; content: counter(step); display: flex; font-weight: 800; height: 30px; justify-content: center; left: 18px; position: absolute; top: 16px; width: 30px; }
.steps span { color: var(--muted); font-size: 14px; }

/* Pricing */
.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; }
.price-card-featured { border: 2px solid var(--blue); box-shadow: 0 16px 40px rgba(10, 111, 214, .14); }
.price-card .pill { align-self: flex-start; }
.price-card h3 { font-size: 20px; }
.price { color: var(--muted); }
.price span { color: var(--ink); font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price-limit { font-weight: 600; margin-bottom: 8px; }
.price-card .button { margin-top: auto; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq:first-of-type { margin-top: 24px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-weight: 800; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: 10px; }

.final-cta h2 { margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--navy); color: #93a6c2; padding: 28px 0; }
.footer-row { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #c9d6ea; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* TMS page (tms.html) */
.check-list { color: var(--muted); display: grid; font-size: 15px; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.check-list li { padding-left: 24px; position: relative; }
.check-list li::before { color: var(--ok); content: "✓"; font-weight: 800; left: 0; position: absolute; }
.audience h3 { font-size: 20px; }

.type-switch { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; padding: 4px; }
.type-option { background: transparent; border: 0; border-radius: 9px; color: var(--muted); cursor: pointer; font: inherit; font-weight: 700; min-height: 44px; padding: 8px 16px; }
.type-option[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); color: var(--ink); }
.type-option:focus-visible { outline: 3px solid #7fb4f5; outline-offset: 2px; }

.demo-split { align-items: start; }
.demo-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); display: grid; gap: 14px; padding: 24px; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { border: 1px solid #c9d6e5; border-radius: 10px; font: inherit; min-height: 46px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid #7fb4f5; outline-offset: 1px; }
.hp-field { height: 1px; left: -9999px; overflow: hidden; position: absolute; width: 1px; }
.demo-form .button { justify-self: start; }
.hero-alt-link { color: #c9d6ea; font-size: 15px; margin-top: 18px; }
.hero-alt-link a { color: #fff; font-weight: 700; }

/* Responsive */
@media (max-width: 960px) {
  .header-nav { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-panel { justify-self: stretch; }
  .tms-actions { justify-self: start; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .header-login-prompt { display: none; }
  .header-login-short { display: inline-block; color: #fff; font-size: 15px; }
  .header-actions { gap: 12px; }
  .header-actions .button { font-size: 15px; min-height: 42px; padding: 8px 14px; }
  .brand img { height: 44px; }
  .hero { padding: 48px 0 56px; }
  .lede { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .section { padding: 56px 0; }
  .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .check-input-row { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .demo-form .button, .type-switch { width: 100%; }
  .type-option { flex: 1 1 auto; }
  .result-head, .result-cta { flex-direction: column; align-items: stretch; }
  .result-cta .button { width: 100%; }
}

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