/* Brandfig — "drafting table": dark ink, faint drafting grid, blue construction lines */
:root {
  --ink: #0a0a0c;
  --ink-2: #111114;
  --card: #141418;
  --card-2: #1b1b20;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f1;
  --muted: rgba(244, 244, 241, .64);
  --faint: rgba(244, 244, 241, .4);
  --brand: #133fff;
  --brand-hi: #2c55ff;
  --draft: #6d88ff;          /* construction-line blue */
  --draft-soft: rgba(109, 136, 255, .16);
  --radius: 18px;
  --max: 1180px;
  --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--card-2); color: var(--text); text-decoration: none;
  font: 600 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 8px 30px -8px rgba(19,63,255,.7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover { background: var(--brand-hi); border-color: var(--brand-hi); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Nav: every item shares one 38px row, centred ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.nav.scrolled { background: rgba(10,10,12,.78); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 72px; gap: 32px; }
.nav .brand { display: flex; align-items: center; height: 38px; }
.nav .brand img { height: 22px; width: auto; }
.nav .links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav .links a:not(.btn) {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px;
  font: 500 14px/1 var(--sans); color: var(--muted); text-decoration: none; transition: color .2s, background .2s;
}
.nav .links a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav .links .btn { margin-left: 10px; }
@media (max-width: 720px) { .nav .links a:not(.btn) { display: none; } .nav .wrap { gap: 16px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; isolation: isolate; }
.hero::before { /* drafting grid: only behind the hero, fading out before the content below */
  content: ""; position: absolute; inset: -72px 0 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.hero::after { /* soft brand glow */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -220px; top: -260px;
  background: radial-gradient(closest-side, rgba(19,63,255,.38), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--draft); transform: rotate(45deg); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.04em; margin: 0; }
h1 { font-size: clamp(42px, 5.3vw, 72px); line-height: 1.02; margin: 22px 0 24px; }
.nowrap { white-space: nowrap; }
/* "a few clicks" framed like a text layer selected in Figma */
h1 .select { position: relative; display: inline-block; white-space: nowrap; padding: 0 .08em; margin: 0 -.02em; }
h1 .select::before { content: ""; position: absolute; inset: .06em -.02em -.02em; border: 1.5px solid #0d99ff; pointer-events: none; }
h1 .select .hd { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid #0d99ff; border-radius: 1px; }
h1 .select .hd.tl { left: calc(-.02em - 4px); top: calc(.06em - 4px); }
h1 .select .hd.tr { right: calc(-.02em - 4px); top: calc(.06em - 4px); }
h1 .select .hd.bl { left: calc(-.02em - 4px); bottom: calc(-.02em - 4px); }
h1 .select .hd.br { right: calc(-.02em - 4px); bottom: calc(-.02em - 4px); }
h1 .select .size { position: absolute; left: 50%; bottom: calc(-.02em - 30px); transform: translateX(-50%); padding: 4px 7px; border-radius: 4px; background: #0d99ff; color: #fff; font: 500 11px/1 var(--mono); letter-spacing: 0; white-space: nowrap; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 44ch; margin: 48px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; }
.specs span { display: inline-flex; align-items: center; gap: 8px; }
.specs span::before { content: "+"; color: var(--draft); font-weight: 600; }

/* Stage: output sample with the plugin panel in front, framed like a drawing */
.stage { position: relative; aspect-ratio: 1 / 1; max-width: 580px; margin-left: auto; width: 100%; }
.stage .sample {
  position: absolute; right: 0; top: 0; width: 84%; aspect-ratio: 800 / 724; object-fit: cover; object-position: top; border-radius: 22px;
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
}
.stage .panel {
  position: absolute; left: 0; bottom: 0; width: 42%; border-radius: 14px;
  border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4);
}

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .stage { margin: 0 auto; }
}

/* ---------- Spec band ---------- */
.band { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.band .item { padding: 28px 24px; border-left: 1px solid var(--line); }
.band .item:first-child { border-left: 0; padding-left: 0; }
.band b { display: block; font: 600 16px/1.3 var(--sans); margin-top: 8px; }
.band p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .band .wrap { grid-template-columns: 1fr 1fr; }
  .band .item { padding: 22px 18px; }
  .band .item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .band .item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
section { padding: 120px 0; }
.head { max-width: 720px; margin-bottom: 48px; }
.head.center { margin-inline: auto; text-align: center; }
h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.02; margin: 16px 0 16px; }
.head p { font-size: 18px; color: var(--muted); margin: 0; }

/* ---------- Feature showcase (tabs) ---------- */
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 0; border-radius: 11px;
  background: none; color: var(--muted); font: 500 15px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: color .2s, background .2s;
}
.tabs button svg { width: 18px; height: 18px; flex: none; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs button[aria-selected="true"] svg { color: var(--draft); }

.showcase { margin-top: 28px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(160deg, rgba(19,63,255,.10), rgba(255,255,255,.015) 40%); overflow: hidden; }
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; padding: 56px; }
.feature[hidden] { display: none; }
.feature .mono { color: var(--draft); }
.feature .mono .pro { margin: 0 0 0 8px; }
.feature h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.06; margin: 14px 0 14px; }
.feature > div > p { color: var(--muted); margin: 0 0 24px; font-size: 17px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--text); }
.points li::before { content: ""; width: 8px; height: 8px; margin: 8px 0 0 3px; border: 1.5px solid var(--draft); transform: rotate(45deg); }
.pro { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-right: 8px; border-radius: 6px; vertical-align: 2px; background: rgba(19,63,255,.25); color: #b9c6ff; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; }
.feature .stage { max-width: 520px; }
.feature.enter .stage .sample, .feature.enter .stage .panel, .feature.enter > div:first-child { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
.feature.enter .stage .panel { animation-delay: .08s; }
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; padding: 32px 24px 40px; gap: 36px; }
  .tabs { width: 100%; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.step .num { font: 500 13px/1 var(--mono); color: var(--draft); }
.step h3 { font-size: 22px; letter-spacing: -.02em; margin: 18px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step::after { /* construction tick on the top edge */
  content: ""; position: absolute; top: -1px; left: 28px; width: 40px; height: 2px; background: var(--draft);
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.billing { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin: 0 auto 36px; }
.billing button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 14px/1 var(--sans); cursor: pointer; }
.billing button.on { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.billing .save { padding: 4px 7px; border-radius: 6px; background: rgba(19,63,255,.25); color: #b9c6ff; font: 600 10.5px/1 var(--mono); letter-spacing: .04em; }
.center-row { display: flex; justify-content: center; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); }
.plan.featured { border-color: rgba(19,63,255,.65); background: radial-gradient(120% 70% at 100% 0%, rgba(19,63,255,.22), transparent 60%), var(--card); box-shadow: 0 30px 80px -40px rgba(19,63,255,.6); }
.plan .top { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.plan h3 { font-size: 22px; letter-spacing: -.02em; }
.plan .badge { font: 600 10.5px/1 var(--mono); letter-spacing: .06em; padding: 6px 9px; border-radius: 7px; background: var(--brand); color: #fff; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; font: 600 56px/1 var(--display); letter-spacing: -.05em; }
.price small { font: 500 16px/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.plan .note { margin: 0 0 28px; color: var(--faint); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; margin: 0 0 32px; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; flex: 1; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); font-size: 15px; }
.plan li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--draft-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%236d88ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.plan .btn { width: 100%; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: 28px; } }

/* ---------- FAQ: title column + aligned accordion ---------- */
.faq { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.faq .aside { position: sticky; top: 110px; }
.faq .aside p { color: var(--muted); margin: 0 0 22px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 24px; padding: 24px 0;
  cursor: pointer; list-style: none; font: 600 18px/1.35 var(--sans); letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .25s, background .25s, border-color .25s; }
.faq-list summary .ico::before, .faq-list summary .ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); border-radius: 2px; }
.faq-list summary .ico::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq-list details[open] summary .ico { background: var(--brand); border-color: var(--brand); }
.faq-list details[open] summary .ico::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list summary:hover .ico { border-color: rgba(255,255,255,.35); }
.faq-list .answer { padding: 0 52px 26px 0; color: var(--muted); }
.faq-list .answer p { margin: 0; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 28px; } .faq .aside { position: static; } .faq-list .answer { padding-right: 0; } }

/* ---------- Final call to action ---------- */
.final { padding: 0 0 120px; }
.final .box {
  position: relative; overflow: hidden; padding: 72px 56px; border-radius: 32px; text-align: center;
  background: radial-gradient(90% 120% at 50% 0%, #2a50ff 0%, var(--brand) 45%, #0b2be0 100%);
}
.final .box::before { /* construction grid inside the blue card */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.final h2 { position: relative; margin: 0 auto 18px; max-width: 16ch; }
.final p { position: relative; margin: 0 auto 30px; max-width: 46ch; color: rgba(255,255,255,.85); font-size: 18px; }
.final .cta { position: relative; justify-content: center; }
.final .btn.light { background: #fff; color: #0a1a8a; border-color: #fff; }
.final .btn.ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
@media (max-width: 640px) { .final .box { padding: 52px 24px; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 44px; }
footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
footer .brand img { height: 22px; width: auto; margin-bottom: 14px; }
footer .brand p { margin: 0; color: var(--muted); max-width: 32ch; font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
footer nav a:hover { color: var(--text); }
footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
footer .bottom a { color: var(--muted); text-decoration: none; }
footer .bottom a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 110px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); margin: 16px 0 10px; }
.legal h2 { font-family: var(--sans); font-size: 20px; letter-spacing: -.01em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: 6px; }
.legal .updated { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 0 0 32px; }
.legal a { color: #b9c6ff; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .copy > *:nth-child(2) { animation-delay: .06s; }
.hero .copy > *:nth-child(3) { animation-delay: .12s; }
.hero .copy > *:nth-child(4) { animation-delay: .18s; }
.hero .copy > *:nth-child(5) { animation-delay: .24s; }
.hero .stage > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: .2s; }
.hero .stage .panel { animation-delay: .34s; }
.hero .stage .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--draft); outline-offset: 3px; border-radius: 8px; }

