/* RUNX INC — design system.
   Blue / light-blue, per the brand note in the company DNA. Light theme only:
   this is read on a phone in daylight more often than anywhere else. */

:root {
  --ink:        #0f172a;
  --ink-2:      #334155;
  --ink-soft:   #64748b;
  --line:       #e2e8f0;
  --line-soft:  #eef2f7;
  --bg:         #ffffff;
  --bg-soft:    #f6f9fc;
  --bg-navy:    #0d1b33;
  --bg-navy-2:  #14264a;
  --blue:       #1656d3;
  --blue-dark:  #0f3fa0;
  --blue-soft:  #e8f0fe;
  --blue-light: #4d8bf0;
  --wrap:       1140px;
  --gap:        1.5rem;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .06);
  --font:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 var(--font);
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.015em; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--bg-navy); color: #cbd5e1; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section__head { max-width: 62ch; margin-bottom: 2.5rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue);
}
.section--navy .eyebrow { color: var(--blue-light); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
.section__head p { margin: .5rem 0 0; font-size: 1.05rem; color: var(--ink-soft); }
.section--navy .section__head p { color: #94a3b8; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / .1); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header.is-stuck { box-shadow: 0 2px 16px rgb(15 23 42 / .08); }
.site-header__in { display: flex; align-items: center; gap: var(--gap); min-height: 70px; }
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--blue); }
.nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; }
.nav__link { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--blue); }
.nav__cta { margin-left: .4rem; }
.nav-toggle { display: none; }

/* ---- hero ---- */
.hero { position: relative; color: #fff; background: var(--bg-navy); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgb(13 27 51 / .95) 0%, rgb(13 27 51 / .82) 45%, rgb(13 27 51 / .55) 100%);
}
.hero__in { position: relative; padding: 5.5rem 0 5rem; max-width: 46rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin-bottom: 1rem; }
.hero__lead { font-size: 1.15rem; color: #cbd5e1; margin: 0; max-width: 40rem; }
.hero__eyebrow { color: var(--blue-light); }

/* ---- metric tiles ---- */
.metrics { background: var(--blue); }
.metrics__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.metric { padding: 2rem 1.5rem; color: #fff; border-left: 1px solid rgb(255 255 255 / .18); }
.metric:first-child { border-left: 0; }
.metric b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.metric span { display: block; margin-top: .3rem; font-size: .93rem; color: rgb(255 255 255 / .82); }

/* ---- cards ---- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card__tag {
  display: inline-block; margin-bottom: .7rem; padding: .25rem .7rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft); border-radius: 999px;
}
.card__pay { margin: 0 0 .8rem; font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.card ul { margin: 0 0 1.1rem; padding-left: 1.15rem; color: var(--ink-soft); }
.card li { margin-bottom: .3rem; }
.card__link { font-weight: 600; text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* numbered reason cards */
.reason { display: flex; gap: 1rem; }
.reason__n {
  flex: 0 0 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--blue-soft); color: var(--blue);
}
.reason h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.reason p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---- split (text + image) ---- */
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split__body h2 { margin-bottom: 1rem; }

/* ---- spec / pay table ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: .95rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
th { font-weight: 700; color: var(--ink); background: var(--bg-soft); font-size: .88rem; letter-spacing: .03em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td b { color: var(--ink); }

/* ---- coverage ---- */
.states { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.states li {
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); color: #fff;
}

/* ---- FAQ ---- */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 1.15rem 2.5rem 1.15rem 0; cursor: pointer; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.03rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin: -.3rem 0 1.3rem; color: var(--ink-soft); max-width: 62ch; }

/* ---- CTA band ---- */
.cta-band { background: var(--blue); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / .88); max-width: 46ch; margin: .5rem auto 0; }
.cta-band .btn-row { justify-content: center; }

/* ---- forms ---- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .req { color: #b91c1c; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
/* Bot trap. Hidden the visually-hidden way rather than parked off-screen at
   -9999px: still in the DOM for a bot to fill, but it takes no space and
   cannot be mistaken for a layout overflow. */
.hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* consent — deliberately not styled to disappear. A reviewer has to be able
   to see that the boxes start unchecked and that the form submits without them. */
.consent { margin: 1.5rem 0 1rem; padding: 1.25rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.consent > b { display: block; margin-bottom: .85rem; color: var(--ink); font-size: .95rem; }
.consent__box { display: flex; gap: .7rem; margin-bottom: .95rem; align-items: flex-start; }
.consent__box:last-of-type { margin-bottom: 0; }
.consent__box input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--blue); }
.consent__box label { font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.consent__note { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }
.consent__note a { color: var(--blue); }

.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; font-size: .95rem; display: none; }
.form-status.is-error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-status.is-ok { display: block; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ---- contact ---- */
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.contact-card b { display: block; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.contact-card a { font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { margin: 0; color: var(--ink-2); }

/* ---- page hero (interior pages) ---- */
.page-hero { padding: 3.25rem 0 2.5rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-hero h1 { margin: 0 0 .4rem; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-hero__meta, .page-hero__lead { margin: 0; color: var(--ink-soft); }
.page-hero__lead { font-size: 1.08rem; max-width: 58ch; }

/* ---- legal documents ---- */
.legal { padding: 2.5rem 0 1rem; }
.legal__body { max-width: 74ch; }
.legal__body h2 { margin: 2.5rem 0 .75rem; font-size: 1.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal__body h2:first-of-type { border-top: 0; padding-top: 0; }
.legal__body h3 { margin: 1.75rem 0 .5rem; font-size: 1rem; }
.legal__body p { margin: 0 0 1rem; }
.legal__body ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.legal__body li { margin-bottom: .4rem; }
.legal__callout {
  margin: 1.25rem 0; padding: .85rem 1.1rem; background: var(--blue-soft);
  border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0;
}
.legal__address {
  margin: 1rem 0 1.5rem; padding: 1.1rem 1.25rem; font-style: normal; line-height: 1.7;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}

/* ---- footer ---- */
.site-footer { background: var(--bg-navy); color: #94a3b8; margin-top: 0; }
.site-footer__in { display: grid; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.site-footer__brand b { display: block; color: #fff; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.site-footer p { margin: .35rem 0; }
.site-footer a { color: #cbd5e1; text-decoration: none; display: block; margin-bottom: .4rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal, .site-footer__contact { display: block; }
.site-footer__title { display: block; color: #fff; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .8rem; font-weight: 700; }
.site-footer__copy {
  margin: 0; padding: 1.25rem var(--gap); border-top: 1px solid rgb(255 255 255 / .1);
  text-align: center; font-size: .87rem; color: #64748b;
}

/* reveal-on-scroll, opt-in from js/main.js */
.js-motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 24px; height: 2px; background: var(--ink); content: ""; position: relative; border-radius: 2px;
  }
  .nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 5px; }
  .nav {
    position: absolute; inset: 70px 0 auto; flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gap) 1.25rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav__cta { margin: .9rem 0 0; }
  .metric { border-left: 0; border-top: 1px solid rgb(255 255 255 / .18); }
  .metric:first-child { border-top: 0; }
  .section { padding: 3.25rem 0; }
  .hero__in { padding: 3.75rem 0 3.5rem; }
  .form-card { padding: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:hover { transform: none; }
}

/* The application form is the CRM's, embedded. The card is only a frame for
   it — no padding, because the form brings its own. */
.form-card--embed { padding: 0; overflow: hidden; }
.form-card--embed iframe { display: block; width: 100%; min-height: 913px; border: 0; }
