/* Allin Sales Brain, set in the Dörröppnaren design system, light mode.
   Tokens mirror the system's tokens.json: one accent, warm grays, DM Sans, no shadows. */

:root {
  --orange: #ff7b00;
  --orange-dark: #c7481a;
  --ink: #14171b;
  --gray70: #4a4a46;
  --line: #dbd9d3;
  --bg-soft: #edece8;
  --bg-tint: #f2f1ed;
  --white: #ffffff;

  --surface: var(--white);
  --surface-deep: var(--bg-tint);
  --panel: var(--bg-soft);
  --text: var(--ink);
  --text-secondary: var(--gray70);
  --rule: var(--line);
  --accent: var(--orange);
  --accent-pressed: var(--orange-dark);
  --accent-text: var(--orange-dark);
  --on-accent: var(--ink);
  --on-accent-pressed: var(--white);
  --focus: var(--orange-dark);

  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --space1: 4px; --space2: 8px; --space3: 12px; --space4: 16px; --space6: 24px;
  --space8: 32px; --space12: 48px; --space16: 64px; --space24: 96px; --space32: 128px;

  --radius-sm: 4px;
  --radius-pill: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p, h1, h2, h3, ol, ul, figure { margin: 0; }
b { font-weight: 700; }
a { color: var(--text); transition: color 160ms var(--ease); }
a:hover { color: var(--accent-text); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
button, input { font: inherit; }

.skip { position: absolute; left: var(--space4); top: -80px; background: var(--ink); color: var(--white); padding: var(--space3) var(--space6); z-index: 20; }
.skip:focus { top: var(--space4); color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space6); }
@media (max-width: 600px) { .wrap { padding: 0 var(--space4); } }
.stack { display: flex; flex-direction: column; gap: var(--space12); }

/* Type */
.eyebrow, .eyebrow-sm { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); line-height: 1.4; }
.eyebrow { font-size: 13px; }
.eyebrow-sm { font-size: 12px; }
.eyebrow-plain { color: var(--text-secondary); }
.display { font-size: clamp(56px, 8vw, 104px); font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; }
.display-sm { font-size: clamp(48px, 6vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.heading-lg { font-size: clamp(36px, 4vw, 48px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.heading { font-size: 32px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.lead { font-size: 20px; line-height: 1.6; color: var(--text-secondary); max-width: 40ch; }
.muted { color: var(--text-secondary); }
.small { font-size: 14px; line-height: 1.5; }
.caption { font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.4; }
.accent { color: var(--accent-text); }
.text-link { font-weight: 500; text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--space3) 28px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); }
.btn-primary:active { background: var(--accent-pressed); color: var(--on-accent-pressed); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text-secondary); }
.btn-secondary:hover { color: var(--text); border-color: var(--text); }

.pills { display: flex; flex-wrap: wrap; gap: var(--space2); }
.pill {
  min-height: 44px; padding: 0 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--text-secondary); background: var(--surface); color: var(--text);
  font-size: 16px; font-weight: 500; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.pill:hover { border-color: var(--text); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg-tint); }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--rule); }
.header-in { min-height: 80px; padding-top: var(--space4); padding-bottom: var(--space4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space4) var(--space8); }
.wordmark { display: inline-flex; align-items: flex-end; gap: var(--space1); color: var(--text); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-decoration: none; }
.wordmark:hover { color: var(--text); }
.wordmark-dot { display: block; width: 7px; height: 7px; background: var(--accent); margin-bottom: 4px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space2) var(--space8); font-weight: 500; }
.nav > a:not(.btn) { text-decoration: none; }
@media (max-width: 600px) {
  .header { position: static; }
  .nav { gap: var(--space2) var(--space6); }
  .nav .btn { width: 100%; }
}

/* Sections */
.section { padding: var(--space24) 0; border-top: 1px solid var(--rule); }
@media (max-width: 600px) { .section { padding: var(--space16) 0; } }
.section-head { display: flex; flex-direction: column; gap: var(--space2); }
.section-head-ruled { padding-bottom: var(--space8); border-bottom: 1px solid var(--rule); }

.split { display: flex; flex-wrap: wrap; gap: var(--space12) var(--space16); align-items: flex-start; }
.split-end { align-items: flex-end; }
.split-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: var(--space6); }
.split-main { flex: 999 1 520px; min-width: 0; }

.card { background: var(--panel); border-radius: var(--radius-sm); padding: var(--space6); }
.card-lg { padding: var(--space8); display: flex; flex-direction: column; gap: var(--space4); }
@media (max-width: 600px) { .card-lg { padding: var(--space6); } }

/* Hero */
.hero { padding: var(--space24) 0; }
.hero-in { display: flex; flex-wrap: wrap; gap: var(--space16); align-items: stretch; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--space8); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space4); }

/* Record */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space8); }
.stat { display: flex; flex-direction: column; gap: var(--space2); }
.stat-figure { font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--space8); }
.fact { border-top: 1px solid var(--rule); padding: var(--space6) 0; display: flex; flex-direction: column; gap: var(--space2); }

/* Compare */
.answer-body { display: flex; flex-direction: column; gap: 20px; }
.answer-body[hidden] { display: none; }
.answer-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space2); padding-bottom: var(--space4); border-bottom: 1px solid var(--rule); }
.answer-who { font-weight: 700; }
.answer-say { font-size: 24px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }

/* Features */
.rows { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.row { border-top: 1px solid var(--rule); padding: var(--space8) 0; display: flex; flex-wrap: wrap; gap: var(--space2) var(--space8); align-items: baseline; }
.row-num { flex: 0 0 48px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-text); }
.row .heading { flex: 1 1 420px; }
.row p { flex: 1 1 360px; }
@media (max-width: 600px) { .row .heading { font-size: 26px; } }

/* How it works */
.frag { display: flex; flex-direction: column; gap: var(--space4); }
.frag[hidden] { display: none; }
.kv, .grid-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.kv tr + tr, .grid-table tbody tr + tr { border-top: 1px solid var(--rule); }
.kv th, .grid-table tbody th { text-align: left; font-weight: 500; color: var(--text-secondary); }
.kv th { padding: var(--space3) var(--space4) var(--space3) 0; }
.kv td { padding: var(--space3) 0; }
.table-scroll { overflow-x: auto; }
.grid-table { min-width: 420px; }
.grid-table thead tr { background: var(--surface); }
.grid-table thead th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; padding: 10px var(--space3); }
.grid-table tbody th, .grid-table td { padding: var(--space3); }
.questions { padding-left: 20px; display: flex; flex-direction: column; gap: var(--space3); }
.checks { list-style: none; padding: 0; }
.checks li { display: flex; gap: var(--space4); padding: var(--space3) 0; }
.checks li + li { border-top: 1px solid var(--rule); }
.checks li > :first-child { flex: 0 0 56px; font-size: 12px; letter-spacing: 0.02em; }
.sms { background: var(--surface); border-radius: var(--radius-sm); padding: var(--space4) 20px; font-size: 14px; line-height: 1.5; }

/* About */
.story { display: flex; flex-direction: column; gap: var(--space6); font-size: 20px; line-height: 1.6; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space8); }
.plan { border-radius: var(--radius-sm); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space8); }
.plan-outline { background: var(--surface); border: 1px solid var(--rule); }
.plan-top { display: flex; flex-direction: column; gap: var(--space3); }
.plan-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space4); padding-top: var(--space6); border-top: 1px solid var(--rule); }
.plan-foot .small { margin-top: var(--space1); }
@media (max-width: 600px) { .plan { padding: var(--space6); } }

/* FAQ */
.faq { border-bottom: 1px solid var(--rule); }
.qa { border-top: 1px solid var(--rule); padding: var(--space8) 0; display: flex; flex-wrap: wrap; gap: var(--space3) var(--space16); }
.q { flex: 1 1 340px; font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.qa p { flex: 999 1 520px; }

/* CTA */
.cta-form { display: flex; flex-direction: column; gap: var(--space2); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space3); }
.field { flex: 1 1 260px; min-width: 0; height: 52px; border: 1px solid var(--text-secondary); border-radius: 0; padding: 0 var(--space4); font-size: 16px; color: var(--text); background: var(--surface); }
.cta-row .btn { min-height: 52px; }

/* Footer */
.footer { background: var(--surface-deep); padding: var(--space16) 0 var(--space12); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space8) var(--space16); }
.footer-statement { flex: 2 1 360px; display: flex; flex-direction: column; gap: var(--space4); }
.footer-statement .heading { max-width: 20ch; }
.footer-nav { flex: 1 1 200px; }
.footer-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space2); }
.footer-nav a { text-decoration: none; }
.footer-contact { flex: 1 1 220px; display: flex; flex-direction: column; gap: var(--space2); }
.footer-meta { border-top: 1px solid var(--rule); padding-top: var(--space6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space2) var(--space8); }

/* Method and objection pages */
.page-hero { padding: var(--space16) 0 var(--space24); }
.crumbs a { color: var(--text-secondary); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--text); }
.answer-box { max-width: 760px; background: var(--panel); border-radius: var(--radius-sm); padding: var(--space8); display: flex; flex-direction: column; gap: var(--space3); }
.answer-box-text { font-size: 20px; line-height: 1.6; }

.prose-wrap { display: flex; flex-wrap: wrap; gap: var(--space12) var(--space16); align-items: flex-start; }
.prose { flex: 999 1 560px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: var(--space6); font-size: 18px; line-height: 1.65; }
.prose h2 { font-size: 32px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; margin-top: var(--space8); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; margin-top: var(--space4); }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: var(--space2); }
.prose a { text-underline-offset: 3px; }
.prose .say { background: var(--panel); border-radius: var(--radius-sm); padding: var(--space6); font-size: 20px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
.prose .note { font-size: 16px; color: var(--text-secondary); border-top: 1px solid var(--rule); padding-top: var(--space4); }
.prose .table-scroll { margin: 0; }
.prose table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose thead th { background: var(--panel); text-align: left; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; padding: 10px var(--space3); }
.prose tbody th { text-align: left; font-weight: 700; }
.prose tbody th, .prose tbody td { padding: var(--space3); vertical-align: top; }
.prose tbody tr + tr { border-top: 1px solid var(--rule); }
.prose-aside { flex: 1 1 260px; display: flex; flex-direction: column; gap: var(--space2); padding-top: var(--space4); border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.prose-aside b { color: var(--text); }
@media (min-width: 900px) { .prose-aside { position: sticky; top: 112px; } }
@media (max-width: 600px) { .prose { font-size: 17px; } .prose h2 { font-size: 26px; } .answer-box { padding: var(--space6); } .answer-box-text { font-size: 18px; } }

.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space8); }
.link-card { background: var(--panel); border-radius: var(--radius-sm); padding: var(--space6); display: flex; flex-direction: column; gap: var(--space2); text-decoration: none; border: 1px solid transparent; transition: border-color 160ms var(--ease); }
.link-card:hover { color: var(--text); border-color: var(--text-secondary); }
.link-card-title { font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }

.footer-nav .label { margin-bottom: var(--space2); }

/* Who it's for */
.audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space8); }
.audience-card { display: flex; flex-direction: column; gap: var(--space3); }
.audience-not { padding-top: var(--space6); border-top: 1px solid var(--rule); font-size: 18px; }
.audience-not a { text-underline-offset: 3px; }

/* Price comparison callout above the plans, and the supporting line under the hero buttons */
.price-callout { background: var(--panel); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: var(--space6); max-width: 720px; display: flex; flex-direction: column; gap: var(--space2); }
.price-callout-title { font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--text); }
.hero-note { margin-top: calc(var(--space4) * -1); max-width: 40ch; }
@media (max-width: 600px) { .price-callout { padding: var(--space4); } .price-callout-title { font-size: 17px; } }
