/* RelentIQ website. Tokens from the RelentIQ design system (29 Nov 2026 draft). */
:root {
  --ember: #F05A28;
  --ember-strong: #C2410C;
  --on-brand: #FFFFFF;
  --ink: #0B1324;
  --muted: #475467;
  --surface: #FFFFFF;
  --surface-alt: #F6F5F1;
  --tint: #FFE9DE;
  --signal: #0F766E;
  --line: #E4E2DA;

  --space-2: 8px;
  --space-4: 16px;
  --space-8: 32px;
  --space-16: 64px;

  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ember-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ember-strong); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-4); }
.site-header .logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--ember-strong); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-lg);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--ember-strong); color: var(--on-brand); }
.btn-primary:hover { background: #A8380A; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--surface-alt); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Type */
.eyebrow { margin: 0 0 var(--space-4); color: var(--ember-strong); font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--ink); }
.display { font-size: 64px; line-height: 1.0; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.accent { color: var(--ember-strong); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: var(--space-4) 0 0; }
.muted { color: var(--muted); }

/* Sections */
section { padding: var(--space-16) 0; }
.band-alt { background: var(--surface-alt); }
.section-head { max-width: 720px; margin-bottom: var(--space-8); }

/* Hero */
.hero { padding: 96px 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-8); }
.hero .fine { margin-top: var(--space-4); font-size: 14px; color: var(--muted); }

/* Conversation card (hero visual) */
.convo { background: var(--ember); border-radius: var(--radius-lg); padding: var(--space-8); }
.convo-card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 12px; }
.convo-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.convo-meta strong { color: var(--ink); font-size: 15px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.msg-ava { background: var(--surface-alt); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-lead { background: var(--ink); color: var(--surface); justify-self: end; border-bottom-right-radius: 4px; }
.msg-label { font-size: 12px; color: var(--muted); }
.msg-label.right { justify-self: end; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; }
.pill-signal { background: #E6F4F2; color: var(--signal); }
.pill-signal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); }
.band-alt .card { background: var(--surface); }
.card p { margin: 10px 0 0; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 24px; height: 24px; stroke: var(--ember-strong); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--ember-strong); margin-bottom: 10px; }
.steps p { margin: 8px 0 0; color: var(--muted); }

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/14px no-repeat; }

/* CTA panel */
.cta { background: var(--ink); color: var(--surface); border-radius: var(--radius-lg); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.cta h2 { color: var(--surface); }
.cta p { color: #C9CFDA; margin: 12px 0 0; max-width: 560px; }
.cta .btn-primary { background: #FF7A45; color: var(--ink); }
.cta .btn-primary:hover { background: #FF8F63; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ember-strong); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); }
.site-footer img { height: 28px; width: auto; margin-bottom: 12px; }
.site-footer h4 { margin: 0 0 12px; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--ember-strong); text-decoration: underline; }
.site-footer .legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.legal .updated { color: var(--muted); margin: 12px 0 32px; }
.legal h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .summary { background: var(--tint); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 8px; }
.legal .summary p { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }

/* Industries menu (header) */
.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; }
.menu-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.menu-panel {
  position: absolute; top: calc(100% + 14px); left: -24px; width: 340px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(11, 19, 36, .12); display: none; z-index: 20;
}
.menu-panel::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.menu:hover .menu-panel, .menu:focus-within .menu-panel { display: grid; gap: 2px; }
.menu-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.menu-panel a strong { color: var(--ink); font-size: 15px; }
.menu-panel a span { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.4; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--surface-alt); }
.menu-panel a:hover strong { color: var(--ember-strong); }

/* Work tracker (hero visual) */
.tracker { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tracker li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.tracker li div { display: grid; gap: 2px; min-width: 0; }
.tracker strong { font-size: 14.5px; line-height: 1.35; }
.tracker span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tag { font-style: normal; flex: 0 0 auto; padding: 5px 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tag-good { background: #E6F4F2; color: var(--signal); }
.tag-info { background: #EAF0FB; color: #1D4ED8; }
.tag-warn { background: var(--tint); color: var(--ember-strong); }

/* Industry cards */
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--ember); box-shadow: 0 14px 30px rgba(11, 19, 36, .08); transform: translateY(-2px); }
.card-link .more { display: inline-block; margin-top: 16px; color: var(--ember-strong); font-weight: 600; }

/* Demo form */
.demo { padding: 80px 0; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #CFCCC2; border-radius: 10px;
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--surface);
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(194, 65, 12, .25); border-color: var(--ember-strong); }
.form .btn { width: 100%; }
.form .fine { margin: 0; font-size: 13px; color: var(--muted); }
.form-error { margin: 0; color: #B42318; font-size: 14px; font-weight: 600; }
.site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

/* Phones */
@media (max-width: 900px) {
  .hero { padding: 56px 0; }
  .hero .wrap, .grid-3, .grid-2, .site-footer .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .display { font-size: 40px; }
  h2 { font-size: 30px; }
  .nav a:not(.btn), .nav .menu { display: none; }
  .demo { padding: 48px 0; }
  .demo .display { font-size: 38px !important; }
  .cta { padding: 32px; }
  .legal h1 { font-size: 34px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
