/*
 * getanswerkit.com. Warm paper, black ink, and a yellow highlighter that marks what an answer cites.
 * Bricolage Grotesque for headings, Instrument Sans for reading, JetBrains Mono for small labels.
 * Fonts are self-hosted (fonts/OFL.txt).
 */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --hl: #ffe14a;
  --ink: #17160f;
  --body: #3a382f;
  --muted: #5e5b50;
  --line: #e4e1d3;
  --paper: #fbfaf5;
  --panel: #f3f1e6;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
  font: 400 17px / 1.55 var(--text);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  overflow-x: hidden;
}
a {
  color: inherit;
}
a:hover {
  text-decoration-thickness: 2px;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
button {
  cursor: pointer;
}
input {
  font: inherit;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* The highlighter: a hand-drawn swipe behind the text, slightly different on alternate marks. */
mark {
  background: linear-gradient(
    177deg,
    transparent 58%,
    var(--hl) 59%,
    var(--hl) 91%,
    transparent 92%
  );
  color: inherit;
  padding: 0 0.16em;
  margin: 0 -0.1em;
  border-radius: 0.3em 0.6em 0.25em 0.7em / 0.6em 0.3em 0.7em 0.35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
mark:nth-of-type(even) {
  background: linear-gradient(
    183deg,
    transparent 56%,
    var(--hl) 57%,
    var(--hl) 90%,
    transparent 91%
  );
  border-radius: 0.7em 0.25em 0.6em 0.3em / 0.3em 0.65em 0.35em 0.6em;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}
.eyebrow {
  margin-bottom: 20px;
  font: 500 13px / 1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
h2 {
  font-size: clamp(34px, 5vw, 52px);
}

/* ---- header ---- */
.top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font: 800 28px / 1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.wordmark mark {
  padding: 0 0.1em;
}
.wordmark.small {
  font-size: 22px;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 500;
}
.top nav a {
  text-decoration: none;
}
.pill {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 999px;
}

/* ---- hero ---- */
.hero {
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: 56px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 960px;
}
.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  margin-top: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.lede {
  max-width: 520px;
  font-size: 20px;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero .signup {
  flex: 1 1 380px;
  max-width: 480px;
}
.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.signup input[type="email"],
.signup input[type="text"]:not(.trap) {
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  min-width: 0;
}
.signup-row input {
  flex: 1 1 220px;
}
.btn-hl,
.btn-ink {
  height: 52px;
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  font: 600 16px var(--text);
  color: var(--ink);
  background: var(--hl);
}
.btn-ink {
  height: 54px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 17px;
}
.btn-hl:hover {
  background: #ffd21f;
}
button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--body);
}
.consent input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--ink);
}
.form-status {
  margin-top: 10px;
  min-height: 1.4em;
  font-weight: 600;
  font-size: 15px;
}
.form-status:empty {
  margin-top: 0;
}
.form-status.error {
  color: #a3261b;
}

/* ---- product preview ---- */
.preview {
  padding-bottom: 24px;
}
.browser {
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--panel);
}
.dots {
  display: flex;
  gap: 6px;
}
.dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.url {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  font: 500 13px / 1.4 var(--mono);
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-body {
  display: flex;
  flex-wrap: wrap;
}
.page {
  flex: 1 1 460px;
  min-width: 0;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px) 48px;
  color: var(--body);
}
.page p + p {
  margin-top: 16px;
}
.kicker {
  margin-bottom: 8px;
  font: 500 12px / 1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page h2 {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.convo {
  flex: 1 1 340px;
  min-width: 0;
  padding: 32px 28px;
  background: var(--panel);
  border-left: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  font-size: 15px;
}
.msg-customer {
  align-self: flex-end;
  max-width: 85%;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
}
.msg-bot {
  align-self: flex-start;
  max-width: 92%;
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 14px 16px;
  border-radius: 16px 16px 16px 4px;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--hl);
  border-radius: 8px;
  font: 500 12px / 1.4 var(--mono);
}
.msg-bot .source {
  display: flex;
  width: fit-content;
  margin-top: 12px;
}
.try {
  margin-top: 28px;
  max-width: 640px;
  font-size: 16px;
  color: var(--body);
}
.try strong {
  color: var(--ink);
}

/* ---- features ---- */
.feature {
  padding-top: 104px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 48px 72px;
  align-items: center;
}
.feature > div:first-child > p:last-child {
  max-width: 480px;
  color: var(--body);
  text-wrap: pretty;
}
.feature h2 {
  margin-bottom: 20px;
}
.flip > div:first-child {
  order: 2;
}
.num {
  margin-bottom: 16px;
  font: 500 13px / 1 var(--mono);
  color: var(--muted);
}
.card {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 28px;
}
.card-label {
  margin-bottom: 4px;
  font: 500 12px / 1.4 var(--mono);
  color: var(--muted);
}
.card-answer {
  margin-bottom: 20px;
  font: 700 22px / 1.25 var(--display);
  letter-spacing: -0.01em;
}
.card-flush {
  padding: 0;
  overflow: hidden;
}
.card-head {
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}
.card dl {
  padding: 8px 24px 20px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0 16px;
  font-size: 15px;
}
.card dt,
.card dd {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.card dt:last-of-type,
.card dd:last-of-type {
  border-bottom: 0;
}
.card dt {
  font: 500 12px / 1.6 var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gaps {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: -14px 0 -10px;
}
.gaps th {
  text-align: left;
  padding: 14px 0;
  font: 500 12px / 1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1.5px solid var(--ink);
}
.gaps td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
}
.gaps tr:last-child td {
  border-bottom: 0;
}
.gaps th:last-child,
.gaps td:last-child {
  text-align: right;
  padding-right: 0;
  font-family: var(--mono);
}

/* ---- steps ---- */
.steps-section {
  padding-top: 120px;
}
.steps-section h2 {
  margin-bottom: 48px;
  max-width: 720px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--ink);
  padding-top: 20px;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  font: 800 56px / 1 var(--display);
  letter-spacing: -0.04em;
}
.steps h3 {
  margin-bottom: 8px;
  font: 700 22px / 1.2 var(--display);
  letter-spacing: -0.01em;
}
.steps p {
  color: var(--body);
  text-wrap: pretty;
}

/* ---- panels ---- */
#in-charge {
  margin-top: 120px;
}
#early-access {
  padding-top: 120px;
}
.panel {
  border-radius: 24px;
  padding: clamp(28px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 40px 64px;
}
.panel-dark {
  background: var(--ink);
  color: var(--paper);
  align-items: end;
}
.panel-dark p {
  color: #d9d6c8;
  text-wrap: pretty;
}
.panel-dark p + p {
  margin-top: 14px;
}
.panel-dark .eyebrow-hl {
  color: var(--hl);
}
.hl-text {
  color: var(--hl);
}
.panel-dark .buttons {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--paper);
  color: var(--paper);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.panel-hl {
  background: var(--hl);
  border: 1.5px solid var(--ink);
  align-items: center;
}
.panel-hl h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}
.panel-hl > div p {
  max-width: 420px;
  text-wrap: pretty;
}
.signup.stacked {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.signup.stacked label:not(.consent) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.signup.stacked .consent {
  margin-top: 0;
}
.panel-hl .consent,
.panel-hl .form-status {
  color: var(--ink);
}

/* ---- footer ---- */
.foot {
  padding-top: 56px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .top nav a:not(.pill) {
    display: none;
  }
  .convo {
    border-left: 0;
    border-top: 1.5px solid var(--ink);
  }
  .flip > div:first-child {
    order: 0;
  }
  .browser {
    box-shadow: 5px 5px 0 var(--ink);
  }
}
