/* Prolly website */
:root {
  --acc: #2563EB;
  --acc-ink: #1D4ED8;
  --acc-soft: #E8EFFD;
  --bg: #FBFBF9;
  --bg-2: #F3F2EE;
  --card: #FFFFFF;
  --ink: #16171B;
  --ink-2: #4B4C53;
  --ink-3: #75767D;
  --line: #E4E3DE;
  --line-2: #D6D5D0;
  --v-bg: #E6EEFD;
  --v-ink: #1E47B8;
  --shadow: 0 30px 80px rgba(20, 22, 40, 0.14), 0 6px 20px rgba(20, 22, 40, 0.07), 0 0 0 1px rgba(20, 22, 40, 0.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --acc: #4F8BFF; --acc-ink: #8AB4FF; --acc-soft: #18233B;
    --bg: #0E0F12; --bg-2: #15161A; --card: #17181C;
    --ink: #EEEFF2; --ink-2: #B3B6BE; --ink-3: #8A8D96;
    --line: #26282E; --line-2: #33353C;
    --v-bg: #1B2A4A; --v-ink: #A9C6FF;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --acc: #4F8BFF; --acc-ink: #8AB4FF; --acc-soft: #18233B;
  --bg: #0E0F12; --bg-2: #15161A; --card: #17181C;
  --ink: #EEEFF2; --ink-2: #B3B6BE; --ink-3: #8A8D96;
  --line: #26282E; --line-2: #33353C;
  --v-bg: #1B2A4A; --v-ink: #A9C6FF;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--acc-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.v { font-family: var(--mono); font-size: 0.88em; font-weight: 500; color: var(--v-ink); background: var(--v-bg); border-radius: 6px; padding: 0.06em 0.32em; white-space: nowrap; }
kbd { font-family: var(--mono); font-size: 0.82em; font-weight: 500; color: var(--ink); background: var(--card); border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 6px; padding: 0.08em 0.42em; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 11px;
  font: 600 15.5px/1 var(--font); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--acc); border-color: transparent; color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--acc) 35%, transparent); }
.btn.primary:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--acc) 40%, transparent); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.btn svg { flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -64px 0 auto; height: 620px; z-index: -1;
  background: radial-gradient(800px 380px at 50% 0%, color-mix(in srgb, var(--acc) 15%, transparent), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--acc-ink);
  background: var(--acc-soft); border-radius: 999px; padding: 6px 14px; }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--acc); }
.lede { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* ---------- Demo ---------- */
.demo-wrap { margin-top: 56px; }
.demo-hint { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.demo-hint .pulse { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .demo-hint .pulse { animation: none; } }
.window { position: relative; max-width: 1040px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.chrome { height: 42px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.url { flex: 1; max-width: 460px; margin: 0 auto; height: 26px; border-radius: 8px; background: var(--card); display: flex; align-items: center;
  justify-content: center; font-size: 12.5px; color: var(--ink-3); }
.ext-btn { width: 24px; height: 24px; border-radius: 6px; padding: 0; border: 0; cursor: pointer; background: var(--acc); display: flex; align-items: center; justify-content: center; }
.ext-btn img { width: 24px; height: 24px; border-radius: 6px; }
.page { position: relative; height: clamp(460px, calc(100vh - 140px), 580px); display: flex; overflow: hidden; }
.side { width: 220px; flex: none; background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.side .new { height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); display: flex; align-items: center; padding: 0 12px; margin-bottom: 14px; }
.side .lbl { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px 4px; }
.side .item { color: var(--ink-2); padding: 7px 10px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .item.on { background: var(--line); color: var(--ink); }
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.thread { flex: 1; overflow-y: auto; padding: 28px 24px 12px; display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; }
.msg { max-width: 640px; width: 100%; margin: 0 auto; font-size: 15px; line-height: 1.65; color: var(--ink); }
.msg.me { display: flex; justify-content: flex-end; }
.msg.me div { background: var(--bg-2); border-radius: 16px; padding: 10px 16px; max-width: 85%; white-space: pre-wrap; word-break: break-word; }
.msg.ai { display: flex; gap: 14px; }
.msg.ai .av { width: 28px; height: 28px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--line-2), var(--bg-2)); }
.msg.ai p + p { margin-top: 8px; }
.composer { width: calc(100% - 48px); max-width: 680px; margin: 0 auto 22px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--card);
  box-shadow: 0 2px 10px rgba(20, 20, 30, 0.05); padding: 12px 12px 10px 18px; transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: color-mix(in srgb, var(--acc) 55%, var(--line-2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 12%, transparent); }
.composer textarea { display: block; width: 100%; min-height: 52px; max-height: 180px; resize: none; border: 0; outline: none; background: transparent;
  color: var(--ink); font: 15px/1.55 var(--font); padding: 2px 0 0; }
.composer textarea::placeholder { color: var(--ink-3); }
.tools { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tool { height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line); background: transparent;
  color: var(--ink-2); font: 500 13px var(--font); cursor: pointer; }
.tool:hover { background: var(--bg-2); color: var(--ink); }
.tool .h { width: 18px; height: 18px; border-radius: 5px; background: var(--acc); color: #fff; font: 600 11px var(--mono); display: inline-flex; align-items: center; justify-content: center; }
.send { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.send:disabled { opacity: .3; cursor: default; }
.demo-foot { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.swatches { display: inline-flex; gap: 6px; }
.swatches button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--acc-ink); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Works with ---------- */
.works { padding: 40px 0 8px; text-align: center; }
.works p { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.works ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; font-size: 20px; font-weight: 650; color: var(--ink-2); letter-spacing: -0.01em; }
.works li.more { color: var(--acc-ink); }

/* ---------- Sections ---------- */
section.block { padding: 104px 0 0; }
.head { max-width: 720px; }
.head.center { margin: 0 auto; text-align: center; }
.kicker { font-size: 13.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--acc-ink); }
.head h2 { margin-top: 12px; font-size: clamp(32px, 4.2vw, 46px); font-weight: 750; }
.head p { margin-top: 16px; font-size: 18.5px; color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 24px; }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--acc-soft); color: var(--acc-ink); display: flex; align-items: center; justify-content: center; }
.feature h3 { margin-top: 18px; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.feature p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }

/* Variables explainer */
.vars { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: 48px; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.vcard .bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.vcard .body { padding: 20px 20px 22px; font-size: 16px; line-height: 1.85; color: var(--ink); flex: 1; }
.vcard .tok { font-family: var(--mono); font-size: 14px; color: var(--v-ink); background: var(--v-bg); border-radius: 5px; padding: 2px 5px; }
.vcard .val { color: var(--v-ink); background: var(--v-bg); border-radius: 5px; padding: 2px 5px; font-weight: 500; }
.arrow { align-self: center; width: 44px; height: 44px; border-radius: 50%; background: var(--acc); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px color-mix(in srgb, var(--acc) 35%, transparent); }
.syntax { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.syntax div { border-top: 2px solid var(--line); padding-top: 14px; font-size: 15.5px; color: var(--ink-2); }
.syntax code { display: inline-block; margin-bottom: 6px; font-family: var(--mono); font-size: 14.5px; color: var(--v-ink); background: var(--v-bg); border-radius: 6px; padding: 2px 7px; }

/* Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 24px; padding: 56px; }
.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.privacy li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.privacy li b { display: block; color: var(--ink); font-weight: 650; font-size: 16.5px; }
.privacy li .ck { flex: none; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, #22C55E 15%, transparent); color: #16A34A; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* Shortcuts */
.keys { margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.keys .row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 15.5px; }
.keys .row:first-child { border-top: 0; }
.keys .row > :first-child { font-weight: 600; }
.keys .row > :last-child { color: var(--ink-2); line-height: 2; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 4px 22px; color: var(--ink-2); font-size: 16.5px; }
.faq details p + p { margin-top: -10px; }

/* Final CTA */
.final { margin: 112px 0 0; text-align: center; border-radius: 28px; padding: 72px 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(700px 380px at 85% 120%, rgba(255,255,255,.18), transparent 60%), linear-gradient(140deg, #2B6BF3, #1E4FD6 55%, #1A3FB0); }
.final h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.final p { margin: 16px auto 0; max-width: 540px; font-size: 18.5px; color: rgba(255, 255, 255, .85); }
.final .btn { margin-top: 30px; background: #fff; color: #1D4ED8; border-color: transparent; box-shadow: 0 10px 30px rgba(10, 20, 80, .3); }
.final kbd { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }

/* Footer */
footer { padding: 56px 0 48px; margin-top: 72px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
footer nav a { color: var(--ink-2); }
footer .legal { flex-basis: 100%; font-size: 13px; }

/* ---------- Legal page ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 24px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.doc .meta { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.doc h2 { margin-top: 44px; font-size: 23px; font-weight: 700; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); }
.doc .summary { margin-top: 32px; padding: 22px 24px; border-radius: 14px; background: var(--acc-soft); color: var(--ink); font-size: 17px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; }
.doc code { font-family: var(--mono); font-size: 0.9em; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; gap: 32px; }
  .side { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { padding-top: 48px; }
  .demo-wrap { margin-top: 40px; }
  .wrap.demo-wrap { padding: 0 12px; }
  .page { height: clamp(460px, calc(100svh - 120px), 540px); }
  .thread { padding: 20px 14px 10px; }
  .composer { width: calc(100% - 20px); margin-bottom: 10px; }
  .vars { grid-template-columns: minmax(0, 1fr); }
  .arrow { transform: rotate(90deg); }
  .syntax { grid-template-columns: minmax(0, 1fr); }
  section.block { padding-top: 80px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .keys .row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 18px; }
  .privacy { padding: 32px 22px; border-radius: 18px; }
  .final { border-radius: 20px; padding: 56px 22px; }
  footer nav { margin-left: 0; }
}
