/* ==========================================================================
   WinScraper Pro — site styles
   Mobile first. Every colour is a token so the dark theme is a token swap and
   nothing else. Written by hand; no framework, no build step, no web fonts.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */

:root {
  color-scheme: light;

  --bg:        #ffffff;
  --bg-soft:   #f5f8fd;
  --surface:   #ffffff;
  --raised:    #ffffff;
  --line:      #e2e8f4;
  --line-soft: #eef2f9;
  --text:      #0d1220;
  --muted:     #5b6579;
  --faint:     #8b94a6;

  --brand:      #3b6ff6;
  --brand-ink:  #2b56d4;
  --brand-soft: #eaf0ff;
  --violet:     #7c5cff;
  --grad: linear-gradient(115deg, #3b6ff6 0%, #7c5cff 100%);

  --ok: #16a34a;

  --shadow-sm: 0 1px 2px rgba(13, 18, 32, .06), 0 1px 3px rgba(13, 18, 32, .04);
  --shadow:    0 4px 12px rgba(13, 18, 32, .07), 0 1px 3px rgba(13, 18, 32, .05);
  --shadow-lg: 0 24px 60px -18px rgba(13, 18, 32, .28), 0 8px 20px rgba(13, 18, 32, .08);
  --ring: 0 0 0 3px rgba(59, 111, 246, .35);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --wrap: 1180px;
  --gap: clamp(1rem, .6rem + 1.6vw, 1.75rem);
  --sec-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system,
          BlinkMacSystemFont, Inter, Roboto, system-ui, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

/* The toggle wins in both directions, so both blocks are explicit. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}

:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #090c13;
    --bg-soft:   #0e131e;
    --surface:   #111828;
    --raised:    #161e30;
    --line:      #232c40;
    --line-soft: #1a2233;
    --text:      #e8ecf5;
    --muted:     #9aa4b8;
    --faint:     #737f95;

    --brand:      #5b87ff;
    --brand-ink:  #7fa2ff;
    --brand-soft: #16213c;
    --violet:     #9b7dff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow:    0 6px 18px rgba(0, 0, 0, .45);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 10px 24px rgba(0, 0, 0, .4);
    --ring: 0 0 0 3px rgba(91, 135, 255, .4);
  }
}

:root[data-theme="dark"] {
  --bg:        #090c13;
  --bg-soft:   #0e131e;
  --surface:   #111828;
  --raised:    #161e30;
  --line:      #232c40;
  --line-soft: #1a2233;
  --text:      #e8ecf5;
  --muted:     #9aa4b8;
  --faint:     #737f95;

  --brand:      #5b87ff;
  --brand-ink:  #7fa2ff;
  --brand-soft: #16213c;
  --violet:     #9b7dff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow:    0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 10px 24px rgba(0, 0, 0, .4);
  --ring: 0 0 0 3px rgba(91, 135, 255, .4);
}

/* ----------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;

  /* clip, not hidden: overflow-x:hidden turns the element into a scroll
     container, which takes scrolling away from the viewport and breaks
     anchors, scroll-padding and the sticky header. clip only clips. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 1.15rem + 2.1vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 100; padding: .7rem 1.2rem; border-radius: 0 0 var(--r) var(--r);
  background: var(--brand); color: #fff; font-weight: 600; transition: top .15s;
}
.skip:focus { top: 0; text-decoration: none; }

/* ---------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, .6rem + 2vw, 2.25rem);
}
.wrap-narrow { max-width: 820px; }

.sec { padding-block: var(--sec-y); }
.sec-alt { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }

.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.25rem); }
.sec-head .lead { margin-bottom: 0; }
.sec-more { margin-top: 2.25rem; }

.kicker {
  margin: 0 0 .65rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-ink);
}

.lead {
  font-size: clamp(1.02rem, .97rem + .3vw, 1.2rem);
  color: var(--muted);
  text-wrap: pretty;
}

.center-block { text-align: center; }
.center-block .lead { margin-inline: auto; }
.fineprint { margin-top: 1rem; font-size: .85rem; color: var(--faint); }

/* --------------------------------------------------------------- buttons -- */

.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg);
  font: inherit; font-weight: 600; font-size: .95rem;
  line-height: 1.2; text-align: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease,
              background-color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(59, 111, 246, .65);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(59, 111, 246, .75); }

.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--line); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }

.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-row.center { justify-content: center; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--brand); }
.ico { width: 18px; height: 18px; fill: currentColor; }

/* ---------------------------------------------------------------- header -- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-head { background: var(--bg); }
}

.head-inner {
  display: flex; align-items: center; gap: .75rem;
  min-height: 64px;
}

.logo {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 30px;
  color: var(--text); font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em;
  margin-inline-end: auto;
}
.logo:hover { text-decoration: none; }
.logo b { font-weight: 400; color: var(--muted); }
.logo-mark { flex: none; border-radius: 8px; }

.head-tools { display: flex; align-items: center; gap: .5rem; }
.head-buy { display: none; }

.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer;
}
.bars { display: block; width: 17px; }
.bars i {
  display: block; height: 2px; margin: 3.5px 0; border-radius: 2px;
  background: var(--text); transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* With scripting the panel is a drop-down the button opens. Without it, the
   .js class is never set, the button is pointless and hidden, and the links
   sit in the header where they have always worked. */
.nav-panel {
  position: absolute; inset-inline: 0; top: 100%;
  padding: .6rem clamp(1.15rem, .6rem + 2vw, 2.25rem) 1.1rem;
  background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.js .nav-panel { display: none; }
.js .nav-panel.is-open { display: block; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .nav-panel { position: static; padding: 0; border: 0; box-shadow: none; }
html:not(.js) .nav-links { display: flex; flex-wrap: wrap; }

.nav-links { display: grid; gap: .15rem; }
.nav-links a {
  display: block; padding: .7rem .5rem; border-radius: 10px;
  color: var(--text); font-weight: 600;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; color: var(--brand-ink); }

.menu { position: relative; }
.menu > summary {
  display: inline-flex; align-items: center; gap: .35rem;
  height: 38px; padding: 0 .6rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: .84rem;
}
.menu > summary:hover { color: var(--text); border-color: var(--brand); }
.lang-code { letter-spacing: .04em; }

.menu-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + .4rem);
  min-width: 11rem; padding: .35rem; z-index: 60;
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.menu-panel a {
  display: block; padding: .5rem .7rem; border-radius: 9px;
  color: var(--text); font-size: .92rem;
}
.menu-panel a:hover { background: var(--bg-soft); text-decoration: none; }
.menu-panel a[aria-current] { color: var(--brand-ink); font-weight: 700; }
.menu-panel a[aria-current]::after { content: " ✓"; }

.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* ------------------------------------------------------------------ hero -- */

.hero { position: relative; padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) 0; overflow: hidden; }

.hero-glow {
  position: absolute; inset-inline: -20%; top: -40%; height: 90vh; z-index: -1;
  background:
    radial-gradient(46% 42% at 22% 42%, rgba(59, 111, 246, .22), transparent 70%),
    radial-gradient(40% 40% at 78% 28%, rgba(124, 92, 255, .18), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-inner { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1.1rem; padding: .35rem .8rem .35rem .55rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--muted);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-copy .lead { margin: 0 0 1.9rem; max-width: 36rem; font-size: clamp(1.05rem, 1rem + .45vw, 1.28rem); }
.hero-note { margin-top: 1.1rem; font-size: .88rem; color: var(--faint); }

/* --------------------------------------------------------- window frames -- */

.frame {
  position: relative;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame img { border-radius: calc(var(--r-lg) - 8px); }
.frame img { width: 100%; display: block; }

.frame-lg { border-radius: var(--r-xl); }

.shot { margin: 0; }
.shot-wide { margin: 0; }

/* ----------------------------------------------------------------- stats -- */

.stats { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.stats-row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--line); overflow: hidden;
}
.stat {
  display: grid; gap: .15rem; align-content: center;
  padding: 1.35rem 1.15rem; background: var(--bg); text-align: center;
}
.stat b {
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 600; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat span { font-size: .84rem; color: var(--muted); line-height: 1.35; }

/* ------------------------------------------------------------- icon wall -- */

.wall { padding-block: 0 clamp(2rem, 1rem + 3vw, 3.5rem); }
.wall-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.1rem, .6rem + 2vw, 2.4rem);
  opacity: .55;
}
.wall-row li { display: grid; place-items: center; }
.bi { width: 22px; height: 22px; fill: currentColor; }
.bi-wall { width: clamp(20px, 2.4vw, 26px); height: clamp(20px, 2.4vw, 26px); color: var(--muted); transition: color .2s, transform .2s; }
.wall-row li:hover .bi-wall { color: var(--text); transform: translateY(-2px); }

/* ----------------------------------------------------------------- cards -- */

.grid-4, .grid-3 { display: grid; gap: var(--gap); }

.card {
  padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

.card-ico {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-ink);
}
.card-ico svg { width: 21px; height: 21px; fill: currentColor; }
.card-ico.sm { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.card-ico.sm svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------- feature rows -- */

.feat-rows { display: grid; gap: clamp(3rem, 1.5rem + 5vw, 5.5rem); }

.feat-row { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
.feat-copy h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -.025em; }
.feat-copy p { color: var(--muted); margin: 0; font-size: 1.02rem; }

.minis { margin-top: clamp(3rem, 1.5rem + 5vw, 5rem); }
.mini {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--line-soft); border-radius: var(--r);
  background: var(--surface);
}
.mini h4 { margin-bottom: .3rem; }
.mini p { margin: 0; color: var(--muted); font-size: .92rem; }
.mini .card-ico { flex: none; }

/* ----------------------------------------------------------------- steps -- */

.steps { counter-reset: step; display: grid; gap: var(--gap); }
.step {
  position: relative; padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.step-n {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: .9rem;
  border-radius: 10px; background: var(--grad); color: #fff;
  font-weight: 800; font-size: .95rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------------------------------------------------------------- robots -- */

.robot-tools {
  display: grid; gap: .9rem;
  margin-bottom: 1.75rem;
}

.search { position: relative; }
.search .ico {
  position: absolute; inset-inline-start: .85rem; top: 50%;
  transform: translateY(-50%); color: var(--faint); pointer-events: none;
}
.search input {
  width: 100%; padding: .8rem 1rem .8rem 2.6rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: .95rem;
}
.search input::placeholder { color: var(--faint); }
.search input:focus-visible { border-color: var(--brand); }

.filters {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.filter {
  padding: .42rem .85rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: color .15s, border-color .15s, background-color .15s;
}
.filter:hover { color: var(--text); border-color: var(--brand); }
.filter.is-on {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

.count { margin: 0 0 1rem; font-size: .87rem; color: var(--faint); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }

.robot-grid { display: grid; gap: var(--gap); }

.robot {
  display: flex; flex-direction: column; gap: .85rem;
  padding: 1.3rem;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
  border-inline-start: 3px solid var(--accent, var(--brand));
  transition: transform .2s ease, box-shadow .2s ease;
}
.robot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.robot[hidden] { display: none; }

.robot-top { display: flex; gap: .8rem; align-items: flex-start; }
.robot-ico {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent);
  color: var(--accent, var(--brand));
}
.bi-card { width: 21px; height: 21px; }
.robot-title { min-width: 0; }
.robot h3 { margin: 0; font-size: 1.02rem; letter-spacing: -.015em; }
.robot-cat { margin: 0; font-size: .8rem; color: var(--faint); }
.robot-desc { margin: 0; flex: 1; font-size: .92rem; color: var(--muted); }

.robot-foot { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .22rem .6rem; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--muted);
  font-size: .76rem; font-weight: 600; white-space: nowrap;
}
.chip-n { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--brand-soft); }
.chip-key { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.rmeta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: .25rem 0 0; }
.rmeta div { display: grid; }
.rmeta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.rmeta dd { margin: 0; font-size: .92rem; font-weight: 600; }
.rcols {
  margin: 0; padding-top: .75rem; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: .78rem; line-height: 1.6; color: var(--faint);
  overflow-wrap: anywhere;
}

.page-robots { padding-top: 1rem; }
/* This page's h1 is a list heading, not a hero line, so it takes the h2 size. */
.page-robots .sec-head h1 { font-size: clamp(1.65rem, 1.15rem + 2.1vw, 2.6rem); letter-spacing: -.03em; }

/* --------------------------------------------------------------- builder -- */

.builder { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: center; }
.builder-copy p { color: var(--muted); }
.builder-copy .lead { color: var(--text); font-weight: 500; }

.ticks { display: grid; gap: .6rem; margin-top: 1.5rem; }
.ticks li {
  position: relative; padding-inline-start: 1.75rem;
  font-size: .95rem; color: var(--text);
}
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .42em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b6ff6'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2Z'/%3E%3C/svg%3E") center / .8rem no-repeat;
}

/* ----------------------------------------------------------------- video -- */

.video {
  position: relative; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #000; overflow: hidden; box-shadow: var(--shadow-lg);
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer;
}
.video-play svg {
  width: 74px; height: 74px; padding: 1.05rem 1rem 1.05rem 1.2rem;
  border-radius: 50%; background: var(--grad); fill: #fff;
  box-shadow: 0 12px 34px -8px rgba(0, 0, 0, .7);
  transition: transform .2s ease;
}
.video-play:hover svg { transform: scale(1.07); }

/* ---------------------------------------------------------------- plans --- */

.plans { display: grid; gap: var(--gap); }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 1.85rem 1.6rem;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.plan-pro {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: var(--shadow-lg);
}
.plan-pro::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit; background: var(--grad); opacity: .16;
}
.ribbon {
  position: absolute; top: -.75rem; inset-inline-start: 1.6rem;
  padding: .28rem .8rem; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .03em;
}
.plan h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.price { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .85rem; flex-wrap: wrap; }
.price b { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; }
.price span { font-size: .88rem; color: var(--faint); }
.plan-body { color: var(--muted); font-size: .93rem; }
.plan .ticks { margin-block: 1.15rem 1.75rem; flex: 1; }
.plan .btn { margin-top: auto; }

/* ------------------------------------------------------------------- faq -- */

.qas { display: grid; gap: .65rem; }
.qa {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
}
.qa[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.qa > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.2rem; cursor: pointer;
  font-weight: 650; font-size: 1rem; list-style: none;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary:hover { color: var(--brand-ink); }
.chev { width: 20px; height: 20px; flex: none; fill: var(--faint); transition: transform .2s ease; }
.qa[open] .chev { transform: rotate(180deg); }
.qa-body { padding: 0 1.2rem 1.2rem; color: var(--muted); }

/* --------------------------------------------------------------- contact -- */

.contact { display: grid; gap: clamp(2rem, 1rem + 3vw, 3rem); }

.contact-list { display: grid; gap: 1.15rem; align-content: start; }
.contact-list li { display: grid; gap: .2rem; }
.clabel { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 700; }
.contact-list a {
  display: inline-block; padding-block: .1rem;
  font-size: 1.02rem; font-weight: 600; color: var(--text);
}
.contact-list a:hover { color: var(--brand-ink); }
.contact-list address { font-style: normal; color: var(--muted); }

.contact-form { display: grid; gap: .9rem; }
.field-row { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field span { font-size: .84rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .7rem .9rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text); font: inherit; font-size: .95rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--brand); }
.contact-form .btn { justify-self: start; }
.contact-form .fineprint { margin-top: 0; }

/* --------------------------------------------------------------- closing -- */

.closing {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--grad); color: #fff;
}
.closing-inner { text-align: center; max-width: 44rem; margin-inline: auto; }
.closing h2 { color: #fff; }
.closing p { margin-bottom: 1.75rem; color: rgba(255, 255, 255, .88); font-size: 1.05rem; }
.closing .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.closing .btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .38); color: #fff; }
.closing .btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; color: #fff; }

/* ---------------------------------------------------------------- footer -- */

.site-foot { background: var(--bg-soft); border-top: 1px solid var(--line); }
.foot-top {
  display: grid; gap: 2.25rem;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 2rem;
}
.foot-brand p { margin: 1rem 0 1.25rem; max-width: 24rem; color: var(--muted); font-size: .92rem; }
.social { display: flex; gap: .5rem; }
.social a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--muted);
}
.social a:hover { color: var(--brand-ink); border-color: var(--brand); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

.foot-col h2 {
  margin-bottom: .85rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--faint);
}
.foot-col ul { display: grid; gap: .35rem; }
/* inline-block with padding, so the hit area clears the 24px minimum that a
   bare inline link of this size falls short of. */
.foot-col a {
  display: inline-block; padding-block: .18rem;
  color: var(--muted); font-size: .92rem; line-height: 1.5;
}
.foot-col a:hover { color: var(--brand-ink); }
.foot-col a[aria-current] { color: var(--text); font-weight: 700; }

.foot-bottom {
  display: grid; gap: .6rem;
  padding-block: 1.4rem 2rem;
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--faint);
}
.foot-bottom p { margin: 0; }
.credit { max-width: 62rem; }

/* ---------------------------------------------------------------- reveal -- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- breakpoints -- */

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .robot-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  html { scroll-padding-top: 6rem; }

  .nav-toggle { display: none; }
  .nav-panel,
  .js .nav-panel {
    display: block; position: static; padding: 0; background: none;
    border: 0; box-shadow: none; margin-inline-end: auto;
  }
  .nav-links { display: flex; gap: .15rem; }
  .nav-links a { padding: .55rem .75rem; font-size: .93rem; font-weight: 600; color: var(--muted); }
  .nav-links a:hover { background: transparent; color: var(--text); }
  .head-buy { display: inline-flex; }
  .logo { margin-inline-end: 1.5rem; }

  .hero-inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.15fr); align-items: center; }
  .hero-shot { margin-inline-end: calc(-1 * clamp(1rem, 4vw, 5rem)); }

  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .robot-grid { grid-template-columns: repeat(3, 1fr); }

  .feat-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); }
  .feat-row.flip .feat-copy { order: 2; }

  .builder { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }

  .robot-tools { grid-template-columns: minmax(15rem, 22rem) 1fr; align-items: center; }
  .filters { justify-content: flex-end; }

  .contact { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 3.5rem; }

  .foot-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
  .foot-bottom { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
  .credit { text-align: end; }
}

@media (min-width: 1120px) {
  .page-robots .robot-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------- print --- */

@media print {
  .site-head, .closing, .video, .robot-tools, .skip { display: none; }
  body { background: #fff; color: #000; }
  .frame, .card, .robot, .plan { box-shadow: none; }
}
