/* ============================================================
   Logic Runner — site styles
   Hand-authored CSS. No build step, no framework, no web fonts.
   Sections in order: tokens, reset, typography, buttons,
   layout, header, hero, cards, principles, process, about,
   faq, contact, simple pages, footer, responsive.
   ============================================================ */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Ink & neutrals */
  --ink:        #0E1620;
  --ink-2:      #18242F;
  --ink-3:      #24333F;
  --slate:      #4E5F6E;
  --slate-2:    #6B7C8A;
  --line:       #E1E7EC;
  --line-dark:  #2C3A46;
  --mist:       #F4F7F9;
  --paper:      #FFFFFF;

  /* Accent */
  --accent:     #E2761B;
  --accent-2:   #C7620F;
  --accent-soft:#FDF1E4;
  --accent-on-dark: #F3A15E;
  --go:         #1E9B6B;
  --go-on-dark: #5FD0A0;

  /* Text on dark sections */
  --dark-text:   #C6D1DB;
  --dark-muted:  #94A5B3;

  /* Type — system fonts only, so the site makes no third-party requests */
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Space & shape */
  --wrap:   1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(14,22,32,.06), 0 2px 6px rgba(14,22,32,.05);
  --shadow-md: 0 4px 12px rgba(14,22,32,.07), 0 12px 32px rgba(14,22,32,.08);
  --shadow-lg: 0 12px 28px rgba(14,22,32,.10), 0 32px 64px rgba(14,22,32,.12);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -.021em;
  line-height: 1.14;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.17rem; font-weight: 600; line-height: 1.3; }
p  { margin: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .9rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .13s ease, background-color .16s ease, box-shadow .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: .65; cursor: progress; transform: none; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: var(--slate-2); background: rgba(14,22,32,.03); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-block { width: 100%; padding: 1rem 1.5rem; }

/* ── Layout ───────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-sub { color: var(--slate); font-size: 1.09rem; margin-top: 1.1rem; }
.section-mist { background: var(--mist); border-block: 1px solid var(--line); }

.section-dark { background: var(--ink); color: var(--dark-text); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--accent-on-dark); }
.section-dark .section-sub { color: var(--dark-muted); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.check-list { list-style: none; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.7rem; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: -1px;
  color: var(--go); font-weight: 700;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em;
  color: var(--ink);
}
.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a {
  color: var(--slate); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 11px; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { top: 20px; }
.nav-toggle-bars::before { content: ""; top: -6px; left: 0; }
.nav-toggle-bars::after  { content: ""; top:  6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 88px;
  background:
    radial-gradient(1100px 460px at 78% -8%, var(--accent-soft) 0%, rgba(253,241,228,0) 62%),
    linear-gradient(180deg, #FBFCFD 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.lede { font-size: 1.17rem; color: var(--slate); margin-top: 1.4rem; max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.hero-note { margin-top: 1.3rem; font-size: .93rem; color: var(--slate-2); }

/* Hero card — what a design proposal covers */
.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px 12px;
}
.hc-kicker {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2);
}
.hc-title { font-size: 1.2rem; margin-top: .35rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hc-list { list-style: none; counter-reset: hc; }
.hc-list li {
  counter-increment: hc;
  display: grid; grid-template-columns: 26px 1fr; column-gap: .7rem;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  line-height: 1.4;
}
.hc-list li:last-child { border-bottom: 0; }
.hc-list li::before {
  content: counter(hc);
  grid-row: span 2;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
  font-size: .75rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(226,118,27,.3);
}
.hc-list b { font-size: .93rem; color: var(--ink); font-weight: 600; }
.hc-list span { font-size: .86rem; color: var(--slate-2); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card p { color: var(--slate); font-size: .97rem; margin-top: .65rem; }

/* ── Principles ───────────────────────────────────────────── */
.principle {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.principle-num {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  color: var(--accent-on-dark); background: rgba(226,118,27,.12);
  padding: .2rem .55rem; border-radius: 6px; margin-bottom: .9rem;
}
.principle h3 { font-size: 1.3rem; }
.principle-list { list-style: none; margin-top: 1.1rem; display: grid; gap: .65rem; }
.principle-list li {
  position: relative; padding-left: 1.5rem;
  color: var(--dark-muted); font-size: .97rem; line-height: 1.5;
}
.principle-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--go-on-dark); font-weight: 700;
}

/* ── Process ──────────────────────────────────────────────── */
.steps { list-style: none; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step-tag {
  display: block; font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .7rem;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--slate); font-size: .96rem; margin-top: .6rem; }
.step p strong { color: var(--ink); font-weight: 600; }
.step-optional { background: var(--mist); border-style: dashed; }
.step-optional .step-tag { color: var(--slate-2); }

/* ── About ────────────────────────────────────────────────── */
.about-inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 64px; align-items: start; }
.about-copy p { color: var(--slate); font-size: 1.05rem; margin-top: 1.1rem; max-width: 60ch; }
.about-copy h2 { max-width: 18em; }

.area-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px 26px 28px;
}
.area-card h3 { font-size: 1.25rem; }
.area-card p { color: var(--slate); margin-top: .7rem; font-size: .98rem; }
.area-card p strong { color: var(--ink); }
.area-card .check-list { margin-top: 1.3rem; font-size: .96rem; color: var(--ink-2); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--accent-2); }
.faq details p { color: var(--slate); padding: 0 40px 22px 0; margin-top: -4px; max-width: 66ch; }

/* ── Contact ──────────────────────────────────────────────── */
.section-cta { background: var(--ink); color: var(--dark-text); }
.section-cta h2 { color: #fff; }
.section-cta .eyebrow { color: var(--accent-on-dark); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.cta-copy p { color: var(--dark-muted); margin-top: 1.2rem; font-size: 1.06rem; max-width: 40ch; }
.cta-copy .check-list { margin-top: 1.9rem; }
.cta-copy .check-list li { color: #B6C3CE; font-size: .98rem; }
.cta-copy .check-list li::before { color: var(--go-on-dark); }
.cta-alt { margin-top: 2rem; font-size: .95rem; }
.cta-alt a { color: var(--accent-on-dark); }

.cta-form, .form-success {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 28px;
}
.field { margin-bottom: 17px; }
.field label {
  display: block; font-size: .87rem; font-weight: 500; color: #A9B8C4; margin-bottom: .4rem;
}
.field-opt { color: #7A8B98; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-size: .97rem;
  padding: .72rem .85rem;
  color: #fff; background: var(--ink);
  border: 1.5px solid var(--line-dark); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field select { cursor: pointer; }
.field select option { background: var(--ink); color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #63757F; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(226,118,27,.18);
}
.field [aria-invalid="true"] { border-color: #E5706B; }
.form-fine { font-size: .82rem; color: #7A8B98; margin-top: .95rem; text-align: center; }
.form-fine a { color: #A9B8C4; }
.form-status { font-size: .92rem; margin-top: .8rem; text-align: center; color: var(--accent-on-dark); min-height: 1.2em; }
.form-status.ok { color: var(--go-on-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success panel replaces the form after a JS submit. State lives on
   .form-panel as a class, not the hidden attribute, so display rules win. */
.form-success { display: none; }
.form-success h3 { color: #fff; font-size: 1.25rem; }
.form-success p { color: var(--dark-muted); margin-top: .8rem; }
.form-success a { color: var(--accent-on-dark); }
.form-panel.is-sent .cta-form { display: none; }
.form-panel.is-sent .form-success { display: block; }

/* ── Simple pages (privacy, thanks, errors, 404) ──────────── */
.page { padding: 80px 0 96px; min-height: 60vh; }
.page h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.page .lede { max-width: 40em; }
.page-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.prose { margin-top: 2.2rem; max-width: 66ch; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose p, .prose ul { color: var(--slate); margin-top: .8rem; }
.prose ul { padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose-meta { color: var(--slate-2); font-size: .92rem; margin-top: .6rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #8FA0AE; padding: 52px 0 30px; border-top: 1px solid var(--line-dark); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between;
  padding-bottom: 28px; border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.45; }
.footer-brand b { color: #fff; font-family: var(--font-display); font-size: 1rem; }
.footer-brand span { font-size: .88rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: #8FA0AE; text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-top: 22px; font-size: .85rem;
}
.footer-links a { color: #8FA0AE; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { max-width: 520px; }
  .about-inner, .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 70px 0; }
  .hero { padding: 60px 0 64px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Without JS the nav simply wraps under the brand; main.js adds .js
     to <html>, which switches to the collapsible menu. */
  .header-inner { height: auto; min-height: 70px; flex-wrap: wrap; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: .3rem 1.2rem; padding-bottom: 12px; }
  .site-nav a.btn { display: none; }

  .js .header-inner { height: 70px; flex-wrap: nowrap; }
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none; width: auto;
    position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 16px 20px;
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .js .site-nav a.btn { display: inline-flex; margin-top: 14px; border-bottom: 0; justify-content: center; }

  .btn { white-space: normal; text-align: center; }
  .cta-form, .form-success { padding: 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
