/* The landing page of abstr.ax: the Abstractive brand of the docs, a deep indigo hero and contact band,
   cream content bands. Colors are tokens; the dark theme redefines only the tokens. */
:root {
  --bg: #f1eee3;
  --bg-alt: #e9e4d4;
  --surface: #ffffff;
  --fg: #1f0666;
  --muted: #5b4f86;
  --line: #ddd6c4;
  --accent: #e637f1;
  --marker: #3aefaa;
  --ink: #1f0666;
  --ink-fg: #f1eee3;
  --ink-muted: #c9c2e3;
  --ink-line: #3a2a7c;
  --code-bg: rgba(31, 6, 102, .07);
  /* The brand fonts (Adobe Fonts) with the fallbacks of the brand guide. */
  --display: "roc-grotesk-condensed", Impact, "Arial Narrow", sans-serif;
  --font: "degular-text", Arial, system-ui, sans-serif;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140443;
    --bg-alt: #19064f;
    --surface: #1f0666;
    --fg: #f1eee3;
    --muted: #c9c2e3;
    --line: #3a2a7c;
    --ink: #0d0230;
    --ink-line: #2c1a6b;
    --code-bg: rgba(241, 238, 227, .1);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.6 var(--font); }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.15; }
p { margin: 0; }
code { font: .9em/1.5 var(--mono); background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
.bi { flex: none; vertical-align: -.15em; }
.wrap {
  max-width: 72rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; z-index: 10; background: var(--surface); padding: .5rem 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.top { background: var(--ink); color: var(--ink-fg); border-bottom: 1px solid var(--ink-line); }
.top-row { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; flex-wrap: wrap; }
/* The lockup "abstr.ax by Abstractive": the dot is the triangle of the "i" of the logo. */
.brand { display: inline-flex; align-items: baseline; gap: .9rem; text-decoration: none; flex-wrap: wrap; }
.wordmark { font: 700 2rem/1 var(--display); letter-spacing: .005em; }
/* The dot sits on the baseline like a full stop, close to the letters around it. */
.wordmark .dot { width: .26em; height: .26em; margin: 0 .01em 0 .02em; vertical-align: -.03em; }
.by { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--ink-muted); }
.by .abstractive-logo { height: 13px; width: auto; color: var(--ink-fg); }
.nav { display: flex; gap: 1.25rem; margin-left: auto; font-size: .95rem; }
.nav a, .langs a { text-decoration: none; color: var(--ink-muted); }
.nav a:hover, .langs a:hover { color: var(--ink-fg); }
.langs { display: flex; gap: .6rem; font: 700 .95rem/1 var(--display); letter-spacing: .04em; }
.langs a[aria-current="true"] { color: var(--ink-fg); border-bottom: 2px solid var(--marker); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.15rem; border-radius: var(--radius); font: 700 1.15rem/1.2 var(--display); letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; }
.btn-accent { background: var(--accent); color: #1f0666; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--ink-muted); color: var(--ink-fg); }
.btn-ghost:hover { border-color: var(--ink-fg); }
.btn-primary { background: var(--fg); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero */
.hero { background: var(--ink); color: var(--ink-fg); padding-block: 4rem 4.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.eyebrow { font: 700 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--marker); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-muted); margin-top: 1.25rem; max-width: 36rem; }
.made-by { margin-top: 1.5rem; font-size: .875rem; color: var(--ink-muted); }

/* The demo exchange in the hero */
.demo { margin: 0; background: #f1eee3; color: #1f0666; border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .75rem; box-shadow: 0 24px 48px rgba(0, 0, 0, .35); min-width: 0; }
.demo-label { font: 700 .85rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #5b4f86; }
.bubble { border-radius: var(--radius); padding: .75rem .9rem; font-size: .95rem; }
.bubble.user { background: #1f0666; color: #f1eee3; justify-self: end; max-width: 85%; border-bottom-right-radius: 4px; }
.bubble.bot { background: #ffffff; border: 1px solid #ddd6c4; display: grid; gap: .6rem; border-bottom-left-radius: 4px; }
.tool { font-size: .8rem; color: #5b4f86; }
.tool code { background: rgba(58, 239, 170, .25); }
.sum { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.sum th { text-align: left; font-weight: 500; padding: .15rem 0; }
.sum td { text-align: right; padding: .15rem 0; white-space: nowrap; }
.sum .total th, .sum .total td { font-weight: 750; border-top: 1px solid #ddd6c4; padding-top: .35rem; }
.approve { border: 1px dashed #e637f1; border-radius: var(--radius); padding: .75rem .9rem; display: grid; gap: .6rem; font-size: .9rem; }
.approve-buttons { display: flex; gap: .5rem; }
.fake { padding: .3rem .8rem; border-radius: var(--radius); font: 700 .95rem/1.2 var(--display); }
.fake.allow { background: #1f0666; color: #f1eee3; }
.fake.deny { border: 1px solid #ddd6c4; }

/* Content bands */
.band { padding-block: 4rem; }
.band.alt { background: var(--bg-alt); }
.band h2 { margin-bottom: 2rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.step { display: grid; gap: .6rem; align-content: start; }
.step-no { font: 700 3rem/1 var(--display); color: var(--accent); }
.step p, .feature p { color: var(--muted); }
.address { margin-top: 2rem; }
.address code { font-size: 1.05rem; padding: .5rem .8rem; display: inline-block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .6rem; align-content: start; }
.feature-icon { color: var(--accent); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.split h2 { margin-bottom: 1rem; }
.lead-dark { font-size: 1.1rem; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; font-weight: 700; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks .bi { color: var(--accent); margin-top: .2rem; }
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: .35rem .9rem; font: 700 1.1rem/1.3 var(--display); }
.muted { color: var(--muted); }

/* Contact and footer */
.contact { background: var(--ink); color: var(--ink-fg); padding-block: 3.5rem; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: center; }
.contact h2 { margin-bottom: .6rem; }
.contact p { color: var(--ink-muted); max-width: 34rem; }
.contact-actions { display: grid; gap: .6rem; justify-items: start; }
.contact-actions a { text-decoration: none; }
.contact-actions p a { color: var(--ink-fg); }
.foot { padding-block: 2rem; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.foot-brand .abstractive-logo { height: 16px; width: auto; color: var(--fg); }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

@media (max-width: 56rem) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 3rem; }
  .nav { display: none; }
  .langs { margin-left: auto; }
}
@media (min-width: 40rem) and (max-width: 56rem) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
