/* FixIt Triage Bot — landing page styles */

:root {
  /* Brand — marketing surfaces only. Never used for status. See docs/DESIGN.md s15. */
  --accent: #F5921E;          /* button fill; 7.96:1 with --accent-ink */
  --accent-text: #A85405;     /* orange for text/links; 5.34:1 on white */
  --accent-edge: #B35C00;     /* button border, for SC 1.4.11 non-text contrast */
  --accent-ink: #1A1205;
  --accent-hover: #D97C0C;

  /* Page surfaces (light) */
  --bg: #FFFFFF;
  --bg-alt: #F4F6F9;
  --card: #FFFFFF;
  --border: #DCE3EC;
  --text: #16202E;
  --muted: #4F5E73;
  --focus: #A85405;

  /* Dark band — hero and footer */
  --dark-bg: #0E1622;
  --dark-border: #26344A;
  --dark-text: #F2F5F9;
  --dark-muted: #9AA8BC;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1140px;
  --gutter: 20px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Any block that sits on the dark band re-points the surface tokens. */
.on-dark {
  --bg: var(--dark-bg);
  --card: #17222F;
  --border: var(--dark-border);
  --text: var(--dark-text);
  --muted: var(--dark-muted);
  --accent-text: var(--accent);
  --focus: #FFC46B;
  background: var(--dark-bg);
  color: var(--dark-text);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.wrap.narrow { max-width: 780px; }

.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  border: 1px solid var(--accent-edge);
  color: var(--accent-ink);
  padding: .6rem 1rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.wordmark {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.04em;   /* all-caps wordmark needs open tracking */
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.wordmark .accent { color: var(--accent); }

.site-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: .8rem 1.3rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-primary:disabled { opacity: .6; cursor: progress; }

.btn-sm { padding: .45rem .85rem; font-size: .9rem; }

.link-arrow {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent-text); border-color: var(--accent-text); }

/* ---------- hero ---------- */

.hero {
  padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 64px);
  background:
    radial-gradient(900px 400px at 8% -10%, rgba(245, 146, 30, 0.16), transparent 70%),
    var(--dark-bg);
}

/* Side-by-side once there is room; stacked below that. */
.hero .wrap {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; }
  .hero-figure { margin: 0; }
}

.hero-copy { max-width: 720px; }

.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 600;
  color: var(--text);
}

.lede { color: var(--muted); max-width: 62ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 1.6rem 0 1.4rem;
}

.proof-strip {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .8rem 0;
  margin-bottom: 0;
}

.hero-figure {
  margin: clamp(28px, 5vw, 44px) 0 0;
}

.hero-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- sections ---------- */

.section { padding: clamp(44px, 7vw, 82px) 0; }
.section-alt { background: var(--bg-alt); }

.section-lede {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 2rem;
}

/* ---------- cards ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card p { color: var(--muted); margin-bottom: 0; }
.card h3 { color: var(--text); }

.badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  margin-bottom: 12px;
}

/* ---------- who it's for ---------- */

.who-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.who-list li {
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.who-list strong { color: var(--text); }

/* ---------- form ---------- */

.field { margin-bottom: 1rem; }

label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .35rem;
}

.req { color: var(--muted); font-weight: 400; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
}

input::placeholder, textarea::placeholder { color: #6B7A91; }

input:focus, textarea:focus { border-color: var(--accent); }

textarea { resize: vertical; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-actions { margin: 1.2rem 0 .6rem; }
.form-note { color: var(--muted); font-size: .86rem; margin-bottom: 0; }

.form-error {
  background: #FDF1EC;
  border: 1px solid #D55E00;
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  color: #7A2E00;
  margin-top: 1rem;
}
.form-error a { color: #7A2E00; }

.form-success {
  background: var(--bg-alt);
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius);
  padding: 22px;
}
.form-success h3 { margin-top: 0; }
.form-success p { color: var(--muted); margin-bottom: 0; }

/* ---------- FAQ ---------- */

details {
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 800;
  flex: none;
}
details[open] summary::after { content: "\2013"; }

details p {
  color: var(--muted);
  margin: .7rem 0 .2rem;
  max-width: 68ch;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--dark-border);
  padding: 34px 0 48px;
}
.site-footer .wordmark { display: block; margin-bottom: .4rem; }
.site-footer p { font-size: .9rem; margin-bottom: .25rem; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .site-nav { display: none; }
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .cards.steps { grid-template-columns: repeat(3, 1fr); }
  .cards.features { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
