/* ==========================================================================
   Rootwork landing page  —  served at dataweb.ai/rootwork
   Mobile-first, responsive, dependency-free stylesheet.
   Palette, type, and spacing follow the Rootwork Brand Identity Guide.

   NOTE: The dataweb.ai homepage owns css/styles.css in this same directory.
   These two sheets deliberately share selector names (.btn, .card, .container,
   footer) with different values — never load both on the same page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-cream:     #F9F6F2; /* primary background surface, cards */
  --color-linen:     #E8DFD0; /* logo mark, borders, dividers, soft bands */
  --color-parchment: #D4C5B0; /* secondary borders, inactive states */
  --color-sand:      #C4A882; /* tertiary accents, hover, icon fills */
  --color-warm-root: #A8927A; /* accents, icons, decorative strokes */
  --color-deep-bark: #6B5B47; /* body copy, labels, secondary headings */
  --color-rich-earth:#3D3028; /* primary text, headlines, high-contrast UI */
  --color-white:     #ffffff;

  /* Roles */
  --bg:        var(--color-cream);
  --bg-around: var(--color-linen);
  --text:      var(--color-deep-bark);
  --heading:   var(--color-rich-earth);
  --accent:    var(--color-warm-root);
  --border:    var(--color-linen);
  --border-strong: var(--color-parchment);

  /* Type */
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  /* CHANGED: full-bleed. Content now runs to the left/right edges of the
     viewport instead of sitting in a centered 1080px column.
     To re-introduce a reading-width cap later, change --maxw back to a px
     value (e.g. 1280px) and --maxw-narrow to e.g. 820px. */
  --maxw: 100%;
  --maxw-narrow: 100%;
  --maxw-form: 560px;      /* kept capped — forms stay readable */
  --gutter: 18px;          /* CHANGED: was 22px; set to 0 for zero side padding */
  --radius: 12px;
  --radius-lg: 16px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }

/* Smooth scroll + top padding so #register / #faq links from the header
   don't land flush against the viewport edge. */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--text);
  /* CHANGED: page surface is now cream edge-to-edge; the old linen "around"
     color is no longer visible since nothing is inset. */
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--text); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  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;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  background: var(--color-rich-earth);
  color: var(--color-cream);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--color-cream); }

:focus-visible {
  outline: 2px solid var(--color-rich-earth);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
body > * { background: var(--bg); }

/* CHANGED: removed the shared 1240px cap + auto margins so the header, main
   content, and footer all span the full viewport width. */
.nav, main, .footer { max-width: none; margin-inline: 0; }

/* CHANGED: the drop shadow framed main as a floating column — pointless now
   that it's edge-to-edge. */
main { box-shadow: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }
.container--form { max-width: var(--maxw-form); }

.section { padding-block: 40px; }
.section--flush-top { padding-top: 0; }

/* Shared type helpers */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-deep-bark);
  margin-bottom: 14px;
}
.h2 {
  font-size: 25px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading);
  margin-bottom: 16px;
}
.h2--xl { font-size: 28px; }
.lead { font-size: 16px; line-height: 1.7; color: var(--text); }
.lead + .lead { margin-top: 12px; }
.lead__strong { color: var(--heading); font-weight: 600; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  text-align: center;
  background: var(--color-rich-earth);
  color: var(--color-cream);
  text-decoration: none;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  padding: 15px 26px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.btn:hover { background: #4a3a30; color: var(--color-cream); }
.btn--block { display: block; width: 100%; }

/* Compact button for the header bar */
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }

/* CHANGED: New — light button for use on .band-dark (info session CTAs) */
.btn--light { background: var(--color-cream); color: var(--color-rich-earth); }
.btn--light:hover { background: var(--color-white); color: var(--color-rich-earth); }

/* Disabled state for the submit button while a request is in flight */
.btn[disabled] { opacity: .6; cursor: progress; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.nav { border-bottom: 1px solid var(--border); }
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  /* CHANGED: migrated from the old inline <style> override in rootwork.html */
  padding-block: 8px;
}
.nav__brand { display: inline-flex; }

/* CHANGED: migrated from inline override (~3x the original wordmark size).
   Stepped down on small screens — at 90px tall the 1400x420 mark is ~300px
   wide, which crowded the nav links on phones. */
.nav__brand img { height: 52px; width: auto; }

/* Header nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}
.nav__links a { text-decoration: none; }
.nav__links a:not(.btn):hover { text-decoration: underline; }

/* Hide the two text links on very narrow screens; the Log in button stays */
@media (max-width: 419px) {
  .nav__links a:not(.btn) { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-img { background: var(--color-rich-earth); }
/* CHANGED: hero image fills the full width instead of being capped at --maxw */
.hero-img img { width: 100%; max-width: none; margin-inline: auto; }
.hero-intro { padding-top: 30px; padding-bottom: 6px; }
.hero-intro p { font-size: 17px; color: var(--text); margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   Value propositions
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__icon { color: var(--accent); }
.card h3 { font-size: 18px; font-weight: 700; color: var(--heading); letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--text); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Mission quote
   -------------------------------------------------------------------------- */
.quote { background: var(--color-linen); border-radius: var(--radius-lg); padding: 30px 26px; }
.quote__rule { display: block; width: 40px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 18px; }
.quote p { font-size: 21px; line-height: 1.42; font-weight: 500; color: var(--heading); letter-spacing: -0.01em; }

/* CHANGED: migrated from inline override — roughly half the vertical space
   above/below the mission quote. ID selector beats .section, so no !important. */
#mission-quote { padding-top: 24px; padding-bottom: 24px; }

/* --------------------------------------------------------------------------
   The gap we close
   -------------------------------------------------------------------------- */
.gap-intro { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 24px; }
.gap-flow { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.gap-card {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.gap-card__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.gap-card p { font-size: 15px; line-height: 1.5; color: var(--heading); font-weight: 500; }
.gap-card--root { background: var(--color-rich-earth); border-color: var(--color-rich-earth); }
.gap-card--root .gap-card__label { color: var(--color-sand); }
.gap-card--root p { color: var(--color-cream); font-weight: 600; font-size: 16px; }
.gap-arrow { color: var(--accent); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Bands
   -------------------------------------------------------------------------- */
.band-linen { background: var(--color-linen); }
.band-dark { background: var(--color-rich-earth); }
.band-dark .eyebrow { color: var(--color-sand); }
.band-dark .h2 { color: var(--color-cream); }
.band-dark .lead { color: var(--color-parchment); }
.band-dark .lead__strong { color: var(--color-cream); }
.band-dark .lead--muted { color: var(--color-sand); }

/* --------------------------------------------------------------------------
   "Validation that creates forward momentum" CTA
   -------------------------------------------------------------------------- */
/* CHANGED: migrated from inline override — space above the CTA is ~half the
   space below it (the section's own bottom padding). */
.does-cta { margin-top: 20px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Information sessions (inside .band-dark)
   CHANGED: New block — replaces the old "Join the pilot." closing line.
   -------------------------------------------------------------------------- */
.sessions { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--color-warm-root); }
.sessions__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-cream);
  margin-bottom: 10px;
}
.session-list { display: grid; gap: 12px; margin-top: 20px; }
.session {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(249, 246, 242, .07);
  border: 1px solid var(--color-warm-root);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.session__date { font-size: 16px; font-weight: 700; color: var(--color-cream); line-height: 1.35; }
.session__time { font-size: 14px; color: var(--color-sand); line-height: 1.5; }
.session .btn { flex-shrink: 0; align-self: flex-start; }
.sessions__note { font-size: 14px; color: var(--color-sand); margin-top: 16px; }
.sessions__note a { color: var(--color-cream); text-decoration: underline; }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-rich-earth);
  color: var(--color-cream);
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; font-weight: 700; color: var(--heading); margin-bottom: 5px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text); }
.step p a { color: var(--accent); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Registration form (not used on this page; kept for shared partials)
   -------------------------------------------------------------------------- */
.form-card { background: var(--color-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; }
.form-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--heading); margin-bottom: 6px; }
.form-card__note { font-size: 14px; color: var(--accent); margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--color-cream);
  font: inherit; font-size: 15px;
  color: var(--heading);
}
.field input::placeholder { color: var(--accent); }
.field input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 146, 122, .25); }
.field input[aria-invalid="true"] { border-color: #9a4b3b; background: #fdf6f4; }

.checks { border: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks legend { padding: 0; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--color-rich-earth); }
.check span { font-size: 15px; line-height: 1.45; color: var(--heading); }
.other-field {
  align-self: flex-start;
  width: calc(100% - 31px);
  margin-left: 31px;
  padding: 11px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  background: var(--color-cream);
  font: inherit; font-size: 14px;
  color: var(--heading);
}
.other-field:focus-visible { outline: none; border-style: solid; border-color: var(--accent); }
.other-field:disabled { opacity: .5; cursor: not-allowed; }

.form-status { margin: 16px 0 0; font-size: 14px; line-height: 1.6; }
.form-status--ok { color: #3f6b45; }
.form-status--error { color: #9a4b3b; }

/* --------------------------------------------------------------------------
   FAQ (native <details> accordions)
   -------------------------------------------------------------------------- */
.faq h2 { font-size: 25px; font-weight: 700; letter-spacing: -0.01em; color: var(--heading); margin-bottom: 10px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 0;
  font-size: 16px; font-weight: 600; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq .chev { flex-shrink: 0; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 0 18px; font-size: 15px; line-height: 1.7; color: var(--text); }
.faq .answer a { color: var(--accent); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border-strong); }
.footer .container { padding-block: 32px 36px; }
.footer__logo { height: 44px; width: auto; margin-bottom: 16px; }

/* CHANGED: footer is now a single line — no trailing margin needed. */
.footer__initiative { font-size: 14px; line-height: 1.6; color: var(--accent); margin-bottom: 0; }
.footer__initiative a { color: var(--accent); text-decoration: underline; }

/* CHANGED: .footer__links / .footer__contact markup was removed from
   rootwork.html. Rules retained only in case another page reuses them. */
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; border-top: 1px solid var(--border); padding-top: 18px; }
.footer__links a { font-size: 13px; color: var(--text); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; }

  /* CHANGED: session rows go side-by-side (details left, CTA right) */
  .session {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
  }
  .session .btn { align-self: center; }
}

@media (min-width: 700px) {
  /* CHANGED: full-size wordmark only once there's room for it */
  .nav__brand img { height: 90px; }
}



@media (min-width: 900px) {
  :root { --gutter: 28px; } /* CHANGED: was 32px */
  .section { padding-block: 64px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .h2 { font-size: 30px; }
  .h2--xl { font-size: 34px; }
  .faq h2 { font-size: 30px; }

  .hero-intro { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-top: 40px; padding-bottom: 10px; }
  .hero-intro p { font-size: 19px; margin-bottom: 0; max-width: 640px; }
  .hero-intro .btn { flex-shrink: 0; }

  .quote { padding: 44px 40px; }
  .quote p { font-size: 26px; }

  .gap-flow { flex-direction: row; align-items: stretch; gap: 10px; }
  .gap-card { width: auto; flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .gap-arrow { transform: rotate(-90deg); align-self: center; }

  /* CHANGED: a 100%-width button across a full-bleed desktop viewport looked
     stretched, so the CTA shrinks to its content on wide screens.
     Delete this rule if you want it edge-to-edge. */
  .does-cta.btn--block { display: inline-block; width: auto; }

  .session-list { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}