/* acurl.dev. Design tokens follow tragent.io. */
:root {
  --canvas: #f6f4fa;
  --panel: #fdfcff;
  --surface: #f0ecf7;
  --stage: #f2eef9;
  --ink: #1f1534;
  --gray: #4f4566;
  --gray-2: #5f5577;
  --gray-3: #b1a8c4;
  --line: #e3ddee;
  --line-2: #ece7f4;
  --dot: #d4cbe3;
  --brand: #6a2bc4;
  --brand-deep: #5721a8;
  --brand-soft: #efe6fb;
  --brand-tint: #d9c6f5;
  --on-brand: #fdfcff;
  --pass: #0f7a46; --pass-soft: #e6f4ec;
  --fail: #a8383b; --fail-soft: #fbeeee;
  --warn: #935600; --warn-soft: #fdf1dc;
  --info: #0b62b8; --info-soft: #e6f0fb;
  --term: #1f1534; --term-text: #e9e3f3; --term-dim: #9389a8;
  --radius-btn: 6px; --radius-card: 16px; --radius-chip: 4px; --radius-hero: 20px;
  --shadow-card: 0 1px 2px #1f153408;
  --shadow-window: 0 1px 3px #1f15340f, 0 28px 64px -30px #1f153442;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
code, pre, kbd { font-family: var(--mono); font-variant-ligatures: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--panel); padding: 6px 10px; z-index: 50; }

/* announcement + nav */
.announce { background: var(--ink); color: var(--term-text); font-size: 13px; text-align: center; padding: 8px 16px; }
.announce .new { background: var(--brand); color: var(--on-brand); border-radius: var(--radius-chip); padding: 1px 6px; font-size: 11px; margin-right: 8px; }
.announce a { color: var(--term-text); }
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.nav .brand { justify-self: start; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 20px; letter-spacing: -0.035em; color: var(--ink); text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.nav nav { display: flex; gap: 28px; font-size: 15px; justify-self: center; }
.nav nav a { color: var(--ink); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--brand); }
.nav .right { justify-self: end; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.by { color: var(--gray-2); text-decoration: none; }
.by b { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.by b span { color: var(--brand); }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-btn); font: 500 15px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-deep); }
.btn-line { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--brand-tint); }

/* hero */
.hero { padding: 72px 0 48px; background: radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 22px 22px; border-bottom: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray); }
.chip code { font-size: 12px; background: var(--surface); border-radius: var(--radius-chip); padding: 1px 6px; color: var(--ink); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 500; margin: 0 0 16px; max-width: 760px; }
.hero h1 .soft { color: var(--gray); }
.hero .sub { font-size: 18px; color: var(--gray); max-width: 620px; margin: 0 0 28px; }
.install { max-width: 640px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); overflow: hidden; }
.tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); background: var(--stage); overflow-x: auto; }
.tabs button { border: 0; background: none; font: 14px var(--sans); color: var(--gray-2); padding: 7px 12px 9px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); font-weight: 500; }
.cmdline { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font: 15px var(--mono); }
.cmdline .ps { color: var(--gray-3); user-select: none; }
.cmdline code { flex: 1; overflow-x: auto; white-space: nowrap; }
.copy { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-chip); font: 13px var(--sans); color: var(--gray-2); padding: 3px 9px; cursor: pointer; }
.copy:hover { color: var(--brand); border-color: var(--brand-tint); }
.hero .ctas { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.fine { color: var(--gray-2); font-size: 14px; margin-top: 14px; }

/* terminal window */
.demo { padding: 56px 0 24px; }
.window { background: var(--term); border-radius: var(--radius-hero); box-shadow: var(--shadow-window); overflow: hidden; }
.window .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #ffffff14; color: var(--term-dim); font: 13px var(--mono); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ffffff26; display: inline-block; }
.window .bar span { margin-left: 10px; }
.term { margin: 0; padding: 22px 26px 26px; color: var(--term-text); font: 13.5px/1.65 var(--mono); overflow-x: auto; }
.term .p { color: #b48cf0; } .term .d { color: var(--term-dim); } .term .h { color: #fdfcff; font-weight: 500; }
.term .ok { color: #6fdba4; } .term .bad { color: #f39a9c; } .term .warn { color: #f5c26b; } .term .cl { color: #c9a8f5; } .term .info { color: #8fbff5; }
.term .row { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .term.play .row { opacity: 0; animation: in .28s ease-out forwards; animation-delay: calc(var(--i) * 70ms + 300ms); }
  @keyframes in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}

/* sections */
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--panel); }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 14px; max-width: 760px; }
.section .intro { color: var(--gray); font-size: 18px; max-width: 680px; margin: 0 0 40px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.verdicts { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.verdicts td { padding: 14px 20px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: 15px; }
.verdicts tr:last-child td { border-bottom: 0; }
.verdicts td:first-child { width: 190px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 13px var(--mono); padding: 1px 8px; border-radius: var(--radius-chip); white-space: nowrap; }
.pill.allowed { background: var(--pass-soft); color: var(--pass); }
.pill.blocked, .pill.error { background: var(--fail-soft); color: var(--fail); }
.pill.challenged, .pill.rate-limited { background: var(--warn-soft); color: var(--warn); }
.pill.cloaked { background: var(--brand-soft); color: var(--brand); }
.pill.robots { background: var(--info-soft); color: var(--info); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.features div { padding: 26px 26px 28px 0; border-bottom: 1px solid var(--line); }
.features div:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.features h3 { font-size: 17px; font-weight: 500; margin: 0 0 6px; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--gray); font-size: 15px; }
.features code { font-size: 13px; background: var(--surface); padding: 1px 5px; border-radius: var(--radius-chip); }

.code { background: var(--term); color: var(--term-text); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.code .tabs { background: #ffffff0a; border-bottom: 1px solid #ffffff14; padding: 6px 8px 0; }
.code .tabs button { color: var(--term-dim); }
.code .tabs button[aria-selected="true"] { color: #fdfcff; border-bottom-color: #b48cf0; }
.code pre { margin: 0; padding: 18px 20px; font: 13px/1.65 var(--mono); overflow: auto; max-height: 460px; }
.code .k { color: #c9a8f5; } .code .s { color: #8fdcb4; } .code .n { color: #f5c26b; } .code .c { color: var(--term-dim); }
[role="tabpanel"][hidden] { display: none; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 500 14px var(--mono); display: grid; place-items: center; }
.steps h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 500; }
.steps p { margin: 0; color: var(--gray); font-size: 15px; }

.cmds { width: 100%; border-collapse: collapse; }
.cmds td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmds td:first-child { width: 280px; padding-right: 20px; }
.cmds a { font: 14px var(--mono); text-decoration: none; }
.cmds td:last-child { color: var(--gray); }

.cta { text-align: left; }
footer.site { padding: 48px 0 56px; font-size: 14px; color: var(--gray-2); }
footer.site .wrap { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site nav a { color: var(--gray); text-decoration: none; }
footer.site nav a:hover { color: var(--brand); }

/* docs layout */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 80px; }
.side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; padding-right: 8px; }
.side h4 { font-size: 12px; font-weight: 500; color: var(--gray-2); margin: 22px 0 6px; }
.side h4:first-child { margin-top: 0; }
.side a { display: block; color: var(--ink); text-decoration: none; padding: 4px 10px; border-radius: var(--radius-btn); }
.side a:hover { background: var(--surface); }
.side a.active { background: var(--brand-soft); color: var(--brand-deep); }
.side a code { font-size: 13px; }
.content { min-width: 0; max-width: 820px; }
.content h1 { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; margin: 0 0 10px; line-height: 1.1; }
.content > p.lead, .content .lead { color: var(--gray); font-size: 17px; }
.content h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; margin: 64px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); padding-top: 32px; }
.content h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; margin: 32px 0 8px; }
.content h3 a { color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 18px; }
.content h3 a:hover { color: var(--brand); }
.content p, .content li { color: var(--gray); }
.content code { font-size: 13.5px; background: var(--surface); padding: 1px 5px; border-radius: var(--radius-chip); color: var(--ink); }
.content pre { background: var(--term); color: var(--term-text); border-radius: 10px; padding: 14px 18px; overflow-x: auto; font-size: 13px; line-height: 1.65; }
.content pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.content pre.usage { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.content .label { font-size: 13px; font-weight: 500; color: var(--gray-2); margin: 16px 0 6px; }
.content .cmd { padding: 4px 0 18px; border-bottom: 1px dashed var(--line); }
.table-wrap { overflow-x: auto; }
.content table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.content th { text-align: left; font-weight: 500; color: var(--gray-2); background: var(--stage); padding: 9px 14px; border-bottom: 1px solid var(--line); }
.content td { padding: 9px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--gray); }
.content td code { white-space: nowrap; }
.content td i { font-style: normal; color: var(--gray-2); }
.callout { background: var(--brand-soft); border-radius: 10px; padding: 14px 18px; color: var(--ink); font-size: 15px; }

@media (max-width: 920px) {
  .grid2, .docs { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .features div, .features div:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
  .side { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .nav nav { display: none; }
  .nav .wrap { grid-template-columns: 1fr auto; }
  .cmds td:first-child { width: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .by { display: none; }
}

.wrap.narrow > * { max-width: 920px; }
.section h2 + .verdicts, .section h2 + .code, .section h2 + .cmds { margin-top: 24px; }
.more { margin: 18px 0 0; font-size: 15px; }

/* Landing page: one centered column. */
.home .hero { text-align: center; padding: 96px 0 64px; }
.home .hero h1 { margin: 0 auto 18px; max-width: 820px; text-wrap: balance; }
.home .hero .sub { margin: 0 auto 32px; text-wrap: balance; }
.home .install { margin: 0 auto; text-align: left; }
.home .install .tabs { justify-content: center; }
.home .hero .ctas { justify-content: center; }
.home .demo { padding-top: 64px; }
.home .window { max-width: 1000px; margin: 0 auto; }
.home .wrap.narrow > * { margin-left: auto; margin-right: auto; }
.home .section h2 { text-align: center; }
.home .section .more { text-align: center; }
.home .section { padding: 72px 0; }

/* Never let long commands widen the page on small screens. */
.install { width: 100%; }
.cmdline code { min-width: 0; }
.window, .code, .verdicts, .cmds { max-width: 100%; }
@media (max-width: 560px) {
  .nav .right .by { display: none; }
  .home .hero { padding: 56px 0 40px; }
  .install .tabs { justify-content: flex-start; }
  .verdicts td:first-child { width: auto; }
  .cmds td:first-child { width: 45%; }
}
