/* betterthink.sh — indigo night, lavender ink, one electric violet */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #16112b;
  --bg-2: #1d1738;
  --panel: #211a3f;
  --panel-2: #2c2452;
  --ink: #ece8ff;
  --ash: #bdb6dc;
  --dim: #8c85ad;
  --line: rgba(236, 232, 255, 0.12);
  --line-2: rgba(236, 232, 255, 0.24);
  --acc: #9e87ff;
  --acc-hi: #b8a7ff;
  --on-acc: #140e2a;
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }

.display { font-weight: 470; font-size: clamp(2.5rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
.display em { font-style: normal; color: var(--acc); }
h2 { font-weight: 480; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; }
.lede { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.5; color: var(--ash); font-weight: 420; }
.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 0.8125rem; font-weight: 500; color: var(--ash); letter-spacing: 0.012em;
}
.pill {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; border: 1px solid transparent; transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.pill-acc { background: var(--acc); color: var(--on-acc); }
.pill-acc:hover { background: var(--acc-hi); }
.pill-ghost { border-color: var(--line-2); }
.pill-ghost:hover { border-color: var(--ink); }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background-color 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(22, 17, 43, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.top-in { width: min(100% - 2 * var(--gut), 1320px); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.glyph { width: 24px; height: 24px; color: var(--ink); flex: none; }
.wordmark { font-weight: 540; font-size: 1.25rem; letter-spacing: 0.005em; }
.topnav { display: flex; gap: 4px; margin-inline: auto; }
.topnav a { padding: 8px 16px; border-radius: 999px; font-size: 0.9375rem; font-weight: 450; color: var(--ash); transition: color 0.2s, background-color 0.2s; }
.topnav a:hover { color: var(--ink); background: rgba(236, 232, 255, 0.07); }
.soon { font-size: 0.875rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); }
.soon:hover { border-color: var(--ink); }
@media (max-width: 860px) {
  .topnav { display: none; }
  .soon { margin-left: auto; }
  .top-in { height: 64px; }
}

/* the story: a field of decisions behind the hero and the beats */
.story { position: relative; }
.scene { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; pointer-events: none; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-veil { position: absolute; inset: 0; background: radial-gradient(62% 50% at 50% 46%, rgba(22, 17, 43, 0.9), rgba(22, 17, 43, 0.55) 55%, rgba(22, 17, 43, 0.1) 85%), linear-gradient(180deg, rgba(22, 17, 43, 0.4), transparent 30%, transparent 80%, var(--bg)); }
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 120px var(--gut) 72px; text-align: center; }
.hero-copy { max-width: 1080px; display: flex; flex-direction: column; align-items: center; }
.eyebrow { color: var(--ash); font-size: 0.9375rem; font-weight: 460; margin-bottom: 22px; letter-spacing: 0.01em; }
.hero .lede { max-width: 36em; margin-top: 24px; color: #d6d0f2; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.coming { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.coming-label { font-size: 0.875rem; color: var(--dim); margin-right: 4px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.logos li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(236, 232, 255, 0.08); font-size: 0.875rem; color: var(--ink); }
.logos svg { width: 15px; height: 15px; }

.beats { position: relative; }
.beat { min-height: 92vh; display: flex; align-items: center; justify-content: center; padding: 0 var(--gut); }
.beat-in { max-width: 34rem; text-align: center; background: rgba(22, 17, 43, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; }
.beat-kind { font-size: 0.8125rem; color: var(--acc); font-weight: 560; letter-spacing: 0.06em; text-transform: uppercase; }
.beat-txt { margin-top: 10px; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.18; font-weight: 460; text-wrap: balance; }
.beat-conf { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--ash); font-variant-numeric: tabular-nums; }
.ring { --c: 90; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--acc) calc(var(--c) * 1%), rgba(236, 232, 255, 0.16) 0); -webkit-mask: radial-gradient(circle, transparent 6px, #000 6.5px); mask: radial-gradient(circle, transparent 6px, #000 6.5px); }
.beat-conf.low { color: var(--ink); }
.beat-conf.low .ring { background: conic-gradient(var(--ink) calc(var(--c) * 1%), rgba(236, 232, 255, 0.16) 0); }

/* see it decide */
.work { padding-block: clamp(96px, 12vw, 160px); background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg)); }
.work-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.work-text .tag { margin-bottom: 22px; }
.work-text .lede { margin-top: 18px; }
.demo { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 2.4vw, 28px); }
.demo-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 22px; background: rgba(236, 232, 255, 0.06); max-width: 100%; }
.demo-tabs .tab { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--ash); cursor: pointer; }
.demo-tabs .tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.demo-body { margin-top: 22px; min-height: 300px; }
.demo-q { font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.demo-opts { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-opts li { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; transition: border-color 0.35s, background-color 0.35s, opacity 0.35s; }
.demo-opts li b { display: block; font-weight: 520; }
.demo-opts li span { font-size: 0.875rem; color: var(--ash); }
.demo-opts li.pick { border-color: var(--acc); background: rgba(158, 135, 255, 0.12); }
.demo-opts li.dim { opacity: 0.5; }
.demo-opts li.maybe { border-style: dashed; }
.demo-verdict { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.cring { width: 44px; height: 44px; transform: rotate(-90deg); flex: none; }
.cring circle { fill: none; stroke-width: 4; }
.cr-bg { stroke: rgba(236, 232, 255, 0.14); }
.cr-fg { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 0.9s var(--ease), stroke 0.3s; }
.demo.asks .cr-fg { stroke: var(--ink); }
.v-state { font-weight: 560; }
.v-conf { font-size: 0.875rem; color: var(--ash); font-variant-numeric: tabular-nums; }
.demo-why { margin-top: 12px; color: var(--ash); font-size: 0.9375rem; }
.demo-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-actions .chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 0.875rem; border: 1px solid var(--line-2); color: var(--ash); }
.demo-actions .chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--acc); }
.demo-actions button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 0.875rem; font-weight: 500; }
.demo-actions button.main { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.demo-line { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.9375rem; color: var(--ash); }
.demo-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-line input { width: 100%; accent-color: var(--acc); }
@media (max-width: 900px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .demo-opts { grid-template-columns: 1fr; } .demo-body { min-height: 360px; } }

/* capabilities */
.index { padding-block: clamp(96px, 12vw, 160px); }
.sec-head { max-width: 46rem; }
.sec-head .tag { margin-bottom: 22px; }
.sec-head .lede { margin-top: 18px; }
.index-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; margin-top: 56px; align-items: start; }
.toc { position: sticky; top: 104px; }
.toc ol { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 8px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--dim); font-size: 0.9375rem; transition: color 0.2s, border-color 0.2s; }
.toc a.on, .toc a:hover { color: var(--ink); border-left-color: var(--acc); }
.panels { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--panel); border-radius: var(--r); padding: clamp(24px, 3.4vw, 40px); scroll-margin-top: 96px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.panel-head h3 { font-size: 1.5rem; font-weight: 500; }
.panel-head p { color: var(--ash); font-size: 0.9375rem; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row h4 { font-weight: 520; font-size: 1rem; }
.row p { color: var(--ash); font-size: 0.9375rem; }
@media (max-width: 900px) { .index-grid { grid-template-columns: 1fr; } .toc { display: none; } }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; gap: 6px; } }

/* pricing */
.pricing { padding-block: clamp(96px, 12vw, 160px); }
.billing { display: inline-flex; gap: 4px; padding: 4px; margin: 40px 0 24px; border-radius: 999px; border: 1px solid var(--line); }
.billing button { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ash); font-size: 0.875rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.billing .save { font-size: 0.75rem; color: var(--acc); }
.billing button[aria-checked="true"] .save { color: #5b41d6; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--panel); border-radius: var(--r); overflow: hidden; }
.plan { padding: clamp(24px, 3.2vw, 40px); display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-mid { background: rgba(158, 135, 255, 0.06); }
.plan h3 { font-size: 1rem; font-weight: 500; color: var(--ash); }
.plan-for { margin-top: 10px; color: var(--ash); font-size: 0.9375rem; min-height: 3em; }
.price { margin-top: 18px; font-size: clamp(2.25rem, 3.6vw, 3rem); font-weight: 460; line-height: 1; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 0.38em; color: var(--ash); margin-right: 5px; vertical-align: 0.95em; }
.price .per { font-size: 0.34em; color: var(--ash); }
.bill-note { margin-top: 8px; font-size: 0.8125rem; color: var(--dim); }
.hours { margin-top: 14px; font-size: 0.9375rem; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.plan-lead { margin-top: 18px; font-size: 0.9375rem; color: var(--ash); }
.feats { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.feats li { position: relative; padding-left: 20px; font-size: 0.9375rem; }
.feats li::before { content: ""; position: absolute; left: 1px; top: 0.6em; width: 9px; height: 5px; border-left: 1.5px solid var(--acc); border-bottom: 1.5px solid var(--acc); transform: rotate(-45deg); }
.compare { margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare summary, .qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compare summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.compare summary { padding: 20px 0; font-size: 1.0625rem; font-weight: 520; }
.pm { position: relative; width: 14px; height: 14px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] > summary .pm::after { transform: rotate(0); }
.cmp-scroll { overflow-x: auto; padding-bottom: 24px; }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.cmp th, .cmp td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 400; }
.cmp thead th { font-weight: 520; }
.cmp tbody th { text-align: left; color: var(--ash); padding-left: 0; }
.cmp td { width: 20%; font-variant-numeric: tabular-nums; }
.cmp .yes, .cmp .no { display: inline-block; vertical-align: middle; }
.cmp .yes { width: 12px; height: 7px; border-left: 1.5px solid var(--acc); border-bottom: 1.5px solid var(--acc); transform: rotate(-45deg) translate(1px, -2px); }
.cmp .no { width: 10px; height: 1px; background: var(--dim); }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; margin-top: 48px; }
.note h3 { font-size: 1.0625rem; font-weight: 520; margin-bottom: 8px; }
.note p { color: var(--ash); font-size: 0.9375rem; }
.price-final { margin-top: 32px; font-size: 0.8125rem; color: var(--dim); }
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan-for { min-height: 0; }
  .notes { grid-template-columns: 1fr; }
}

/* questions */
.faq { padding-block: clamp(80px, 10vw, 140px); }
.faq-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { padding: 20px 0; font-size: 1.0625rem; font-weight: 500; }
.qa p { padding: 0 0 22px; color: var(--ash); max-width: 44em; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* footer */
.foot { padding-top: clamp(96px, 12vw, 160px); }
.sign { text-align: center; max-width: 36rem; margin-inline: auto; }
.sign p { margin-top: 14px; color: var(--ash); font-size: 1.0625rem; }
.forks { width: 100%; height: auto; max-height: 140px; margin-top: 48px; display: block; }
.fk { fill: none; stroke: var(--ink); stroke-opacity: 0.32; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fk.dim { stroke-opacity: 0.14; }
.fk.acc { stroke: var(--acc); stroke-opacity: 1; stroke-width: 2; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.foot-cols h3 { font-size: 0.875rem; font-weight: 500; color: var(--dim); margin-bottom: 14px; }
.foot-cols li { font-size: 0.9375rem; color: var(--ash); padding: 3px 0; }
.foot-cols a:hover { color: var(--ink); }
.foot-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.lang { display: flex; gap: 6px; }
.lang a { height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 0.875rem; color: var(--ash); border: 1px solid var(--line); }
.lang a:hover { color: var(--ink); border-color: var(--line-2); }
.lang a[aria-current="page"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.legal { font-size: 0.8125rem; color: var(--dim); max-width: 46em; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols .brand { grid-column: 1 / -1; } }

/* 404 */
.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px var(--gut); position: relative; background: radial-gradient(60% 50% at 50% 60%, #2a2152, var(--bg)); }
.lost .brand { position: absolute; top: 24px; left: var(--gut); }
.lost .num404 { color: var(--acc); letter-spacing: 0.06em; margin-bottom: 18px; }
.lost h1 { font-weight: 480; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; max-width: 16em; text-wrap: balance; }
.lost .es { margin-top: 14px; color: var(--ash); font-size: 1.125rem; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .hero-copy > * { animation: rise 1s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.45s; }
  .js .hero-copy > :nth-child(4) { animation-delay: 0.6s; }
  .js .hero-copy > :nth-child(5) { animation-delay: 0.75s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
