@font-face { font-family: "Bricolage"; src: url("/assets/fonts/Bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ae's own interface colours */
:root {
  --bg: #1d1d1d;
  --surface: #232323;
  --surface-2: #2c2c2c;
  --line: #353535;
  --text: #ececec;
  --mid: #a8a8a8;
  --dim: #777;
  --accent: #2d8ceb;
  --accent-soft: #6fb5ff;
  --good: #9fd18a;
  --label-red: #e06666;
  --label-yellow: #f2c94c;
  --label-aqua: #6fcfcf;
  --label-pink: #e89ac7;
  --label-green: #9fd18a;
  --label-lavender: #a9a9ca;
  --display: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --body: "Bricolage", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 999px; font-size: 13px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: 62px; flex-wrap: wrap; }
.mark {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: -.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
/* easy-ease keyframe */
.mark i { width: 11px; height: 13px; background: var(--accent); display: block; clip-path: polygon(0 0, 100% 0, 58% 50%, 100% 100%, 0 100%, 42% 50%); }
.top nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a {
  font-size: 14px;
  color: var(--mid);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.top nav a:hover { color: var(--text); background: var(--surface-2); }
.top nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (max-width: 560px) { .top nav a { padding: 6px 9px; } }
@media (max-width: 380px) { .top nav { gap: 2px; } .top nav a { padding: 6px 7px; } }

/* home hero */
.hero { padding-block: clamp(34px, 5vw, 64px) clamp(26px, 3.5vw, 44px); }
.hero h1 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 18px 0 20px;
  max-width: 17ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--label-yellow); }
.hero p { margin: 0; max-width: 56ch; color: var(--mid); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mid);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--surface);
}
.pill.free { color: var(--good); border-color: rgba(159, 209, 138, .3); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, transform .3s var(--ease);
}
.card:hover { border-color: #3a3f4d; transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-family: var(--display); font-weight: 750; font-size: 1.5rem; letter-spacing: -.02em; margin: 0; }
.card p { margin: 0; color: var(--mid); font-size: 15px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--dim); font-family: var(--mono); }
.card-foot .go { color: var(--accent-soft); }

section { padding-block: clamp(30px, 3.5vw, 44px); }
section + section { border-top: 1px solid var(--line); }
h2.section-title {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 12px 0 14px;
}
.lede { color: var(--mid); max-width: 62ch; margin: 0 0 22px; }

/* how it installs */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  padding: 16px 18px 16px 44px;
  font-size: 15px;
  color: var(--mid);
}
.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-soft);
  position: absolute;
  left: 18px;
  top: 19px;
}
/* guide steps */
.steps-flow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.steps-flow li { padding-block: 13px; }
.steps-flow li::before { top: 16px; }
.hero p.lede { margin: 0 0 16px; max-width: 68ch; }
.hero p.lede:last-child { margin-bottom: 0; }

.steps strong { display: block; color: var(--text); font-weight: 400; font-size: 16px; margin-bottom: 4px; }
code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
}

/* product page */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--dim); padding-top: 28px; }
.crumbs a { color: var(--mid); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: 28px clamp(32px, 3.5vw, 44px); }
.product h1 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 10px 0 16px;
}
.product .hook { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--mid); margin: 0 0 24px; max-width: 46ch; }
.shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.buy-second { margin: 4px 0 8px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { background: #8d80ff; transform: translateY(-1px); }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--mid); }
.feature-list li::before { content: "→"; color: var(--accent-soft); font-family: var(--mono); font-size: 13px; }
.feature-list b { color: var(--text); font-weight: 400; }

.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-weight: 400; width: 11rem; }
.specs td { color: var(--mid); }

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details summary {
  cursor: pointer;
  list-style: none;
  font-size: 16.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--mono); color: var(--accent-soft); }
details[open] summary::after { content: "−"; }
details p { color: var(--mid); margin: 12px 0 0; max-width: 68ch; font-size: 15.5px; }

.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.more a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  background: var(--surface);
  transition: border-color .2s;
}
.more a:hover { border-color: #3a3f4d; }
.more b { display: block; font-family: var(--display); font-weight: 750; font-size: 1.15rem; margin-bottom: 4px; }
.more span { color: var(--dim); font-size: 14px; }

footer.site {
  border-top: 1px solid var(--line);
  padding-block: 36px calc(44px + env(safe-area-inset-bottom, 0px));
  color: var(--dim);
  font-size: 14px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline; }
footer.site a { color: var(--mid); }
footer.site a:hover { color: var(--text); }

@media (max-width: 860px) {
  /* phones */
  .product { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 16px 32px; }
  .product .shot { order: -1; }
  .product h1 { margin: 8px 0 12px; }
  .product .hook { margin-bottom: 18px; }
  section { padding-block: 30px; }
  .hero { padding-block: 34px 26px; }
  .hero h1 { margin: 12px 0 16px; }
  .hero-meta { margin-top: 20px; gap: 8px; }
  h2.section-title { margin: 8px 0 10px; }
  .lede { margin-bottom: 22px; }
  .grid { gap: 14px; }
  .steps { gap: 12px; }
  .steps li { padding: 14px 16px 14px 40px; }
  .steps li::before { left: 16px; top: 17px; }
  .feature-list { gap: 12px; }
  details { padding: 13px 0; }
  .crumbs { padding-top: 18px; }
  .buy { margin-bottom: 14px; }
  footer.site { padding-block: 26px calc(32px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* commissions + bug forms */
.mailform { display: grid; gap: 20px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; color: var(--text); }
.field label span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-left: 6px; }
.field small { font-size: 13px; color: var(--dim); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mid) 50%), linear-gradient(135deg, var(--mid) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #3a3f4d; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.mailform button.btn { font: inherit; font-size: 15px; border: 0; cursor: pointer; justify-self: start; }
.mailform button.btn.ghost { border: 1px solid var(--line); }
.form-note { margin: 0; font-size: 14px; color: var(--dim); max-width: 56ch; }
.sent { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 18px; display: grid; gap: 14px; }
.sent p { margin: 0; color: var(--mid); font-size: 15px; }
.sent b { color: var(--text); font-weight: 400; overflow-wrap: anywhere; }
.sent pre { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--mid); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.feature-list a { color: var(--accent-soft); }
/* four steps */
.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1040px) { .steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: minmax(0, 1fr); } }
[id] { scroll-margin-top: 80px; }

/* commissions is the one place someone becomes a client, so it gets its own pill.
   the green dot reads as "taking work" */
.top nav a.hire {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(45, 140, 235, .55);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.top nav a.hire:hover, .top nav a.hire[aria-current="page"] { background: rgba(45, 140, 235, .16); color: var(--text); }
.top nav a.hire::before, .btn-open::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  flex: none;
}
.btn-open { display: inline-flex; align-items: center; gap: 10px; }

/* live demo */
.try-pill { text-decoration: none; }
.try-pill:hover { color: var(--text); border-color: #3a3f4d; }
.demo-slot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; min-height: 220px; padding: 32px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface); }
.demo-full { font-size: 14px; color: var(--mid); }
.demo-full:hover { color: var(--text); }
.demo-frame { display: block; width: 100%; min-height: 640px; border: 0; background: var(--bg); }
.demo-slot.live { display: block; min-height: 0; padding: 0; border: 0; background: none; }

/* short fields share a row */
.mailform.wide { max-width: 860px; }
.field-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 700px) { .field-row { grid-auto-flow: row; gap: 20px; } }

/* side by side */
@media (min-width: 861px) {
  .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
  .feature-list.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
}
@media (max-width: 860px) { .split > * + * { margin-top: 34px; } }

/* commissions + bugs hero */
.hero-split aside h2.label { display: block; margin: 0 0 12px; font-weight: 400; }
@media (max-width: 860px) { .hero-split aside { margin-top: 30px; } }
@media (min-width: 861px) {
  .hero-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
  .hero-split h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
}

/* privacy + terms */
.legal { max-width: 70ch; }
.legal h2 { font-family: var(--display); font-weight: 750; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.015em; margin: 34px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--mid); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--accent-soft); }
.legal a { color: var(--text); }

/* product promo video */
video.promo { display: block; width: 100%; max-width: 560px; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #000; }

/* try it buttons */
.btn.try-btn { background: rgba(45, 140, 235, .14); border: 1px solid var(--accent); color: var(--text); }
.btn.try-btn:hover { background: rgba(45, 140, 235, .26); }
.watch { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: center; }
.watch-side .lede { max-width: 36ch; }
@media (max-width: 860px) { .watch { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* endless scroll */
html { overflow-anchor: none; }
.flow-page + .flow-page { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 28px; }
.flow-next { margin-bottom: 4px; }
.flow-more { height: 1px; }
.flow-bar { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: flex; gap: 8px; pointer-events: none; }
.flow-btn { font: 500 13px/1 var(--mono); color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 99px; padding: 10px 14px; cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease, border-color .2s; pointer-events: none; }
.flow-btn.on { opacity: 1; transform: none; pointer-events: auto; }
.flow-btn:hover { border-color: var(--accent); }
.flow-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .flow-btn { transition: none; } }
.has-flow footer.site { padding-bottom: 76px; }

/* home hero: the timeline */
.comp { position: relative; margin-top: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font: 400 12px/1 var(--mono); overflow: hidden; }
.comp-head, .layer { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.comp-head { color: var(--dim); border-bottom: 1px solid var(--line); background: var(--bg); }
.comp-head .lname { padding: 9px 12px; border-right: 1px solid var(--line); }
.ruler { display: flex; justify-content: space-between; padding: 9px 12px; }
.layer { text-decoration: none; color: var(--mid); border-bottom: 1px solid var(--line); transition: background .15s; }
.layer:last-of-type { border-bottom: 0; }
.layer:hover { background: var(--surface-2); color: var(--text); }
.lname { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-right: 1px solid var(--line); }
.lname b { font-weight: 400; color: var(--dim); width: 1ch; }
.lname i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.track { position: relative; height: 38px; }
.bar { position: absolute; top: 8px; height: 22px; border-radius: 3px; background: var(--c); color: #1b1b1b; padding: 0 9px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; transition: filter .15s; }
.layer:hover .bar { filter: brightness(1.12); }
.kf { position: absolute; top: 13px; width: 10px; height: 12px; margin-left: -5px; background: var(--text); clip-path: polygon(0 0, 100% 0, 58% 50%, 100% 100%, 0 100%, 42% 50%); }
.cti { position: absolute; top: 0; bottom: 0; left: calc(170px + (100% - 170px) * .38); width: 1px; background: var(--accent); pointer-events: none; }
.cti::before { content: ""; position: absolute; top: 0; left: -6px; border: 6px solid transparent; border-top: 9px solid var(--accent); }
@media (max-width: 560px) {
  .comp-head, .layer { grid-template-columns: 96px minmax(0, 1fr); }
  .cti { left: calc(96px + (100% - 96px) * .38); }
  .lname b { display: none; }
  .bar { left: 4% !important; width: 92% !important; }
  .kf { display: none; }
}
.comp-head .narrow { display: none; }
@media (max-width: 560px) {
  .comp-head .wide { display: none; }
  .comp-head .narrow { display: inline; }
  .cti { left: calc(96px + (100% - 96px) * .97); }
}
