:root {
  --bg: #171717;
  --card: #212121;
  --fg: #f2f2f2;
  --muted: #a3a3a3;
  --border: rgb(255 255 255 / 9%);
  --accent: #ef9f27;
  --accent-ink: #2c2c2a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.nav { border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 64px; }
.nav img { display: block; height: 20px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px; border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 22%); background: transparent;
  color: var(--fg); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { background: rgb(255 255 255 / 6%); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #f4b04a; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: transparent; }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: 44px; line-height: 1.15; font-weight: 600; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 28px; line-height: 1.25; font-weight: 600; margin: 0 0 24px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-block: 72px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.card p { margin: 0; color: var(--muted); }
.card-featured { border-color: var(--accent); }
.step { color: var(--accent); font-weight: 600; margin-right: 6px; }
.uses { margin: 20px 0 0; color: var(--muted); }

.plan-quota { font-size: 15px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.contact p { margin: 0; color: var(--muted); font-size: 15px; max-width: 36em; }

/* Before/after slider: the native range input drives --pos, so touch and keyboard work out of the box. */
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #2a2a2a; user-select: none; }
.ba-layer { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; font-size: 13px; font-weight: 500; }
.ba-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-tag { position: relative; padding: 3px 8px; border-radius: 6px; background: rgb(0 0 0 / 55%); color: #fff; }
.ba-after { justify-content: flex-end; clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: var(--pos); width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; background: #fff; color: #171717; display: flex; align-items: center; justify-content: center;
  pointer-events: none; font-size: 16px; font-weight: 600;
}
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  touch-action: pan-y;
}
.ba:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--border); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 500;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 24px 0 32px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }

/* Legal pages */
.doc { max-width: 760px; padding: 48px 20px 64px; margin: 0 auto; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: #d4d4d4; }
.doc .draft { border: 1px solid var(--accent); border-radius: 10px; padding: 12px 16px; color: var(--fg); font-size: 15px; }
.doc .ph { color: var(--accent); }

@media (max-width: 799px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 48px; }
  h1 { font-size: 34px; }
  .grid3 { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 44px 0; }
}
.ba-figure { margin: 0; }
