/* ============================================================
   pyhttp.com: the look ("polar glass")
   Loaded after styles.css, which holds the structure. This file
   sets the colours, the aurora behind the page, glass surfaces,
   the cards and the new sections (hero stage, flows, pricing,
   contact). fx.js drives the motion that needs JavaScript.

   Palette: electric indigo to violet for actions, cyan from the
   logo's blue-green for light and "live", teal for "passed". Deep
   indigo instead of black at night, cool frost by day.
   ============================================================ */

:root {
  --e1: #6366f1;               /* electric indigo */
  --e2: #a855f7;               /* violet */
  --e3: #06b6d4;               /* cyan (the logo's blue-green) */
  --tl: #14b8a6;               /* teal: passed, live */
  --grad: linear-gradient(120deg, #0891b2 0%, #4f46e5 48%, #9333ea 100%);
  --grad-btn: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(34, 211, 238, .14));

  --bg: #f6f7fc;
  --bg-soft: rgba(255, 255, 255, .55);
  --bg-sunk: rgba(22, 18, 43, .045);
  --fg: #17132b;
  --fg-2: #39344f;
  --muted: #5f5b76;
  --faint: #9592aa;
  --line: rgba(22, 18, 43, .09);
  --line-2: rgba(22, 18, 43, .16);
  --accent: #4f46e5;
  --accent-bg: rgba(99, 102, 241, .11);
  --btn-bg: #17132b;
  --btn-fg: #ffffff;

  --glass: rgba(255, 255, 255, .58);
  --glass-2: rgba(255, 255, 255, .76);
  --glass-line: rgba(255, 255, 255, .85);
  --card-shadow: 0 1px 2px rgba(30, 20, 60, .04), 0 18px 44px -24px rgba(80, 40, 120, .28);
  --lift-shadow: 0 2px 6px rgba(30, 20, 60, .06), 0 34px 70px -30px rgba(120, 50, 140, .38);

  --code-bg: #100e22;
  --code-bar: #161430;
  --code-line: rgba(255, 255, 255, .08);
  --code-fg: #dcd9f0;
  --code-dim: #7b77a0;

  --b1: #6366f1; --b2: #14b8a6; --ws: #a855f7;
  --glow-1: rgba(99, 102, 241, .16); --glow-2: rgba(139, 92, 246, .14);
  --get: #0f9f6e; --post: #d97706; --put: #2563eb; --del: #dc2626;
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0a18;
    --bg-soft: rgba(255, 255, 255, .035);
    --bg-sunk: rgba(255, 255, 255, .06);
    --fg: #f2f0fb;
    --fg-2: #d3d0e6;
    --muted: #a4a1bf;
    --faint: #6f6b8d;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --accent: #a5b4fc;
    --accent-bg: rgba(129, 140, 248, .15);
    --e3: #22d3ee;
    --grad: linear-gradient(120deg, #22d3ee 0%, #818cf8 46%, #c084fc 100%);
    --grad-btn: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --btn-bg: #f2f0fb;
    --btn-fg: #0b0a18;

    --glass: rgba(24, 21, 48, .5);
    --glass-2: rgba(30, 27, 60, .68);
    --glass-line: rgba(255, 255, 255, .09);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -34px rgba(0, 0, 0, .9);
    --lift-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -36px rgba(0, 0, 0, .95);

    --code-bg: #0e0c1f;
    --code-bar: #13112a;

    --glow-1: rgba(99, 102, 241, .18); --glow-2: rgba(139, 92, 246, .2);
    --get: #34d399; --post: #fbbf24; --put: #60a5fa; --del: #f87171;
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- page */
body { background: var(--bg); }
::selection { background: rgba(99, 102, 241, .3); color: var(--fg); }
.ember { color: var(--accent); }

/* the aurora: soft colour fields that drift behind everything */
body::before {
  content: ""; position: fixed; inset: -25vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 18% 12%, rgba(129, 140, 248, .28), transparent 70%),
    radial-gradient(34vmax 28vmax at 86% 8%, rgba(192, 132, 252, .22), transparent 70%),
    radial-gradient(30vmax 26vmax at 70% 62%, rgba(34, 211, 238, .16), transparent 70%),
    radial-gradient(36vmax 30vmax at 10% 78%, rgba(94, 234, 212, .14), transparent 70%);
  animation: aurora 38s ease-in-out infinite alternate;
  will-change: transform;
}
@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(38vmax 30vmax at 16% 10%, rgba(99, 102, 241, .20), transparent 70%),
      radial-gradient(36vmax 30vmax at 86% 6%, rgba(124, 58, 237, .30), transparent 70%),
      radial-gradient(30vmax 26vmax at 74% 60%, rgba(6, 182, 212, .13), transparent 70%),
      radial-gradient(36vmax 30vmax at 8% 80%, rgba(20, 184, 166, .12), transparent 70%);
  }
}
/* fine grain over the colour, so large fields do not band */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(3vmax, -2vmax, 0) rotate(8deg) scale(1.06); }
  100% { transform: translate3d(-3vmax, 2vmax, 0) rotate(-6deg) scale(1.03); }
}

/* sections stop being boxes with hairlines: the aurora shows through */
.section { border-top: 0; }
.formats { border-top: 0; background: transparent; }
.closing, .footer { border-top: 0; }

/* --------------------------------------------------------------- glass */
.glass, .cell, .dl, .route, .faq details, .dl-stats, .fact, .kbd-list, .points, .term, .stage-tabs,
.price, .cmp, .contact-card, .flow-chip, .fv, .gallery-tabs button, .note-card {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}
.glass, .stage-tabs, .price, .contact-card, .fv, .nav-inner {
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}

/* ----------------------------------------------------------------- nav */
.nav {
  top: 10px; background: transparent; border: 0; padding: 0 12px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav-inner {
  position: relative; height: 58px; padding: 0 10px 0 18px;
  background: var(--glass-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--card-shadow);
}
.progress { position: fixed; top: 0; left: 0; right: 0; bottom: auto; height: 2px; z-index: 60; }
.nav-links a { border-radius: 10px; }
.nav-links a:hover, .nav-links a.on { background: var(--bg-sunk); color: var(--fg); }
.nav-links a.cta-link { color: var(--accent); font-weight: 500; }
@media (max-width: 1020px) {
  .nav-links {
    top: calc(100% + 8px); border-radius: 16px; border: 1px solid var(--line);
    background: var(--glass-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
}

/* ------------------------------------------------------------- buttons */
.btn { border-radius: 12px; transition: transform .18s ease, box-shadow .2s ease, background .2s, border-color .2s, filter .2s; }
.btn-sm { border-radius: 10px; }
.btn-primary {
  background: var(--grad-btn); color: #fff; border: 0;
  box-shadow: 0 10px 26px -12px rgba(124, 58, 237, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover { opacity: 1; filter: brightness(1.06) saturate(1.05); transform: translateY(-1px); box-shadow: 0 16px 32px -14px rgba(124, 58, 237, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-secondary, .btn-outline, .nav-web {
  background: var(--glass-2); color: var(--fg); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-secondary:hover, .btn-outline:hover, .nav-web:hover { background: var(--glass-2); border-color: color-mix(in srgb, var(--e2) 55%, var(--line-2)); transform: translateY(-1px); }
.btn-outline { position: relative; }
.btn-outline::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .85;
}
.btn-lg, .hero-cta .btn.btn-lg { height: 50px; padding: 0 24px; border-radius: 14px; font-size: 1rem; }
.btn-ghost:hover { background: var(--bg-sunk); }
.dl-row:not(.is-you) .btn-primary { background: var(--glass-2); color: var(--fg); border: 1px solid var(--line-2); box-shadow: none; }
.dl-row:not(.is-you) .btn-primary:hover { background: var(--glass-2); filter: none; }

/* ---------------------------------------------------- section headings */
.label {
  padding: 5px 12px 5px 10px; border-radius: 999px; font-family: var(--font); font-size: .8rem; font-weight: 500;
  color: var(--fg-2); background: var(--glass-2); border: 1px solid var(--line);
}
.label::before { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(99, 102, 241, .6); }
.section-head h2, .split h2 { letter-spacing: -.035em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----------------------------------------------------------------- hero */
.hero { padding-top: 76px; }
.hero::before { opacity: .35; }
.hero::after {
  background:
    radial-gradient(520px 340px at 78% 30%, var(--glow-2), transparent 70%),
    radial-gradient(560px 360px at 30% 6%, var(--glow-1), transparent 70%);
}
.hero h1 { letter-spacing: -.05em; }
.release { background: var(--glass-2); border-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.release .tag { background: var(--grad-btn); color: #fff; }
.hero-notice { background: var(--glass); border-color: var(--line); border-left: 3px solid var(--e1); }

/* the stage on the right: tabs over two demos */
.stage { position: relative; min-width: 0; }
.stage::before {   /* a halo that breathes behind the demo */
  content: ""; position: absolute; inset: 8% 4% -2%; z-index: -1; border-radius: 40px; filter: blur(40px);
  background: conic-gradient(from 180deg at 50% 50%, rgba(99, 102, 241, .45), rgba(124, 58, 237, .35), rgba(139, 92, 246, .45), rgba(20, 184, 166, .3), rgba(99, 102, 241, .45));
  animation: halo 9s ease-in-out infinite alternate; opacity: .55;
}
@keyframes halo { from { transform: scale(.94) rotate(0deg); opacity: .4; } to { transform: scale(1.03) rotate(14deg); opacity: .7; } }
.stage-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 14px;
}
.stage-tabs button {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 10px; font-size: .88rem; font-weight: 500; color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}
.stage-tabs button svg { width: 16px; height: 16px; }
.stage-tabs button:hover { color: var(--fg); }
.stage-tabs button[aria-selected="true"] { color: var(--fg); background: var(--glass-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line); }
.stage-tabs button[aria-selected="true"] svg { color: var(--accent); }
.stage-tabs button:focus-visible { outline: 2px solid var(--e1); outline-offset: 2px; }
.stage-panel[hidden] { display: none; }
.stage-panel { animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

/* ----------------------------------------- the MCP session (always dark) */
.term {
  --t-fg: #e7e4f7; --t-dim: #8b87ad; --t-line: rgba(255, 255, 255, .08);
  position: relative; overflow: hidden; border-radius: 18px; color: var(--t-fg); color-scheme: dark;
  background: linear-gradient(160deg, rgba(26, 22, 52, .96), rgba(12, 10, 28, .97)) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  box-shadow: 0 50px 90px -40px rgba(30, 10, 60, .65), 0 0 0 1px rgba(255, 255, 255, .03) inset !important;
  font-size: 13.5px; line-height: 1.6;
}
.term::after {   /* a light sweep along the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, .9), rgba(139, 92, 246, .9), transparent);
  opacity: .8;
}
.term-chrome {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--t-line);
  font-family: var(--mono); font-size: 11.5px; color: var(--t-dim);
}
.term-chrome > i { width: 10px; height: 10px; border-radius: 50%; background: #2b2748; }
.term-chrome > i:nth-child(1) { background: #ff5f57; } .term-chrome > i:nth-child(2) { background: #febc2e; } .term-chrome > i:nth-child(3) { background: #28c840; }
.term-chrome > i { opacity: .85; }
.term-title { margin-left: 8px; }
.term-mcp { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 2px 9px; border-radius: 999px; color: #c9f5ec; background: rgba(20, 184, 166, .13); border: 1px solid rgba(20, 184, 166, .3); }
.term-body { height: 356px; overflow: hidden; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.term-foot { padding: 9px 14px; border-top: 1px solid var(--t-line); font-size: 11.5px; color: var(--t-dim); }
.term-foot b { color: var(--t-fg); font-weight: 500; }
.t-user { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--t-line); animation: rise .25s ease; }
.t-user .t-who { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--t-fg); font-size: 11px; font-weight: 600; }
.t-user .t-text { min-width: 0; }
.t-tool {
  display: grid; grid-template-columns: 18px auto 1fr auto; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 10px; border: 1px solid var(--t-line); background: rgba(139, 92, 246, .07);
  font-family: var(--mono); font-size: 12px; animation: rise .22s ease; min-width: 0;
}
.t-tool .t-ico { width: 14px; height: 14px; display: grid; place-items: center; }
.t-tool .t-ico .spin { width: 11px; height: 11px; color: #c4b5fd; }
.t-tool .t-ico svg { width: 15px; height: 15px; color: #34d399; }
.t-tool .t-name { color: #e9d5ff; white-space: nowrap; }
.t-tool .t-name small { color: var(--t-dim); font-size: 11px; margin-right: 6px; }
.t-tool .t-args { color: var(--t-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.t-tool .t-res { white-space: nowrap; padding: 1px 8px; border-radius: 6px; font-size: 11px; color: #a7f3d0; background: rgba(52, 211, 153, .12); animation: pop .25s ease; }
.t-tool .t-res.warn { color: #fde68a; background: rgba(251, 191, 36, .13); }
.t-tool .t-res.bad { color: #fecaca; background: rgba(248, 113, 113, .14); }
.t-reply { display: flex; gap: 10px; align-items: flex-start; animation: rise .25s ease; }
.t-reply .t-who { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--grad-btn); color: #fff; }
.t-reply .t-who svg { width: 13px; height: 13px; }
.t-reply .t-text { color: #f3f1fd; }
.t-reply .t-text b { color: #fff; font-weight: 600; }
.t-think { color: var(--t-dim); font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; animation: rise .2s ease; }
.t-think .dots { display: inline-flex; gap: 3px; }
.t-think .dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: pulse 1s ease infinite; }
.t-think .dots i:nth-child(2) { animation-delay: .15s; } .t-think .dots i:nth-child(3) { animation-delay: .3s; }
.caret::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; border-radius: 1px; background: var(--e1); animation: pulse .8s steps(2) infinite; }
.term-body.fading > * { transition: opacity .4s ease, transform .4s ease; opacity: 0; transform: translateY(-6px); }
@media (max-width: 560px) { .term-body { height: 400px; } .t-tool { grid-template-columns: 18px 1fr auto; } .t-tool .t-args { display: none; } }

/* ------------------------------------------------- the request demo (rq) */
.rq, .panel, .try {
  border-radius: 18px; border-color: rgba(255, 255, 255, .1) !important;
  background: linear-gradient(160deg, #17143a 0%, #0e0c1f 60%) !important;
  box-shadow: 0 50px 90px -40px rgba(30, 10, 60, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.rq-chrome, .panel-bar { background: rgba(255, 255, 255, .03); }
.rq-url { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); }
.rq-side button.on { box-shadow: inset 2px 0 0 var(--e1); }

/* ------------------------------------------------------- cards (bento) */
.grid { gap: 14px; border: 0; background: transparent; overflow: visible; border-radius: 0; }
#features .grid { gap: 14px; background: transparent; }
.cell, #features .cell {
  position: relative; overflow: hidden; margin: 0; border-radius: 20px; padding: 26px 24px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.cell:hover { background: var(--glass-2); transform: translateY(-3px); box-shadow: var(--lift-shadow); }
/* the spotlight follows the pointer (fx.js sets --mx, --my) */
.cell::after, .price::after, .fv-node::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, .14), transparent 45%);
}
.cell:hover::after, .price:hover::after { opacity: 1; }
/* and a gradient edge appears under it */
.cell > .edge, .price > .edge {
  position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, .9), rgba(139, 92, 246, .55) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.cell:hover > .edge, .price:hover > .edge { opacity: 1; }
.cell .ico {
  width: 42px; height: 42px; padding: 10px; margin-bottom: 18px; border-radius: 13px;
  color: var(--accent); background: var(--grad-soft); border: 1px solid var(--line);
}
.cell:hover .ico { color: var(--e2); transform: translateY(-1px) rotate(-4deg); }
.cell h3 { font-size: 1.04rem; }
.cell .wire { border-top-color: var(--line); }
.cell .wire .wr { color: var(--accent); background: var(--accent-bg); }
.new { top: 22px; right: 20px; color: #fff; background: var(--grad-btn); box-shadow: 0 6px 14px -6px rgba(124, 58, 237, .7); }
@media (min-width: 901px) { #features .grid:not(.filtered) .cell.wide { grid-column: span 3; } }
.filters button { border-radius: 999px; background: var(--glass); }
.filters button[aria-pressed="true"] { color: #fff; background: var(--grad-btn); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(124, 58, 237, .7); }

/* ------------------------------------------------ facts, formats, route */
.facts { border-top: 0; gap: 14px; margin-top: 24px; }
.fact, .fact + .fact { border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; }
.fact .v { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .fact:nth-child(3) { padding-left: 22px; border-left: 1px solid var(--line); } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
.formats li { background: var(--glass); border-color: var(--line); }
@keyframes lit { 0%, 12%, 100% { border-color: var(--line); color: var(--fg-2); } 4%, 8% { border-color: var(--e1); color: var(--fg); } }
.route { border-radius: 20px; padding: 30px; }
.node { background: var(--glass-2); border-color: var(--line-2); border-radius: 14px; }
.node.api { border-color: var(--e1); box-shadow: 0 0 0 4px var(--accent-bg); }
.route-off b { color: var(--tl); }
.points { border: 1px solid var(--line); border-radius: 18px; padding: 4px 18px; }
.points li:last-child { border-bottom: 0; }
.points b { color: var(--fg); }

/* -------------------------------------------------------- screenshots */
.shot-frame {
  border: 1px solid var(--line) !important; border-radius: 22px !important; padding: 10px !important;
  background: var(--glass) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow), 0 40px 90px -50px rgba(124, 58, 237, .45) !important;
}
.shot-frame img { border-radius: 14px !important; border: 1px solid var(--line) !important; }
.hero-shot::after { display: none; }
.tour-item:hover .shot-frame { transform: translateY(-4px); box-shadow: var(--lift-shadow), 0 50px 100px -50px rgba(124, 58, 237, .55) !important; }
.tilt { transform-style: preserve-3d; transition: transform .2s linear; }

/* ----------------------------------------------- download, faq, kbd */
.dl { border-radius: 20px; overflow: hidden; }
.dl-row { background: transparent; }
.dl-row + .dl-row { border-top: 1px solid var(--line); }
.dl-row.is-you { background: var(--accent-bg); }
.dl-stats { border-radius: 18px; }
.dl-stats .v { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-alert { border-left-color: var(--e1); }
.cmdbox .copy.done { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }
.faq { border-top: 0; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 16px; padding: 0 20px; transition: background .2s, border-color .2s; }
.faq details[open] { background: var(--glass-2); border-color: color-mix(in srgb, var(--e1) 35%, var(--line)); }
.faq summary { padding: 18px 30px 18px 0; }
.faq details p { margin-bottom: 18px; }
.kbd-list { border-radius: 18px; padding: 4px 18px; border-top: 1px solid var(--line); }
.kbd-list li:last-child { border-bottom: 0; }
kbd { background: var(--glass-2); border-color: var(--line-2); }
.panel { border-radius: 18px; }
.panel-foot { background: rgba(255, 255, 255, .02); }

/* -------------------------------------------------------------- closing */
.closing {
  margin: 40px auto 0; max-width: calc(var(--maxw) - 48px); border-radius: 32px;
  border: 1px solid var(--line); background: var(--glass); box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
@media (max-width: 1180px) { .closing { margin-left: 16px; margin-right: 16px; } }
.closing::before {
  background: radial-gradient(600px 300px at 50% 0%, rgba(99, 102, 241, .22), transparent 70%), radial-gradient(500px 280px at 50% 100%, rgba(139, 92, 246, .22), transparent 70%);
}
.footer { background: transparent; }
.footer-col a:hover { color: var(--accent); }

/* ============================================================ flows */
.flows .section-head { margin-bottom: 40px; }
.fv {   /* the animated flow */
  position: relative; border-radius: 26px; padding: 34px 28px 26px; margin-bottom: 18px; overflow: hidden;
}
@media (min-width: 1101px) { .fv { padding-top: 132px; } }   /* room for the email to drop into "Wait for email" */
.fv::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.fv-row { position: relative; display: flex; align-items: center; gap: 0; }
.fv-node {
  position: relative; flex: 0 0 auto; width: 168px; padding: 12px 14px 13px; border-radius: 16px;
  background: var(--glass-2); border: 1px solid var(--line-2); box-shadow: var(--card-shadow);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.fv-node .k { display: flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fv-node .k i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.fv-node .v { margin-top: 6px; font-size: .9rem; font-weight: 500; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-node .v code { font-size: .8rem; }
.fv-node .st { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; }
.fv-node .st svg { width: 12px; height: 12px; }
.fv-node.live { border-color: var(--e1); box-shadow: 0 0 0 4px var(--accent-bg), var(--card-shadow); transform: translateY(-3px); }
.fv-node.live .st { opacity: 1; transform: none; color: var(--e1); }
.fv-node.done { border-color: color-mix(in srgb, var(--tl) 60%, var(--line-2)); }
.fv-node.done .st { opacity: 1; transform: none; background: var(--tl); color: #fff; }
.fv-node.wait.live .v::after { content: "  waiting"; color: var(--muted); font-weight: 400; animation: pulse 1.1s ease infinite; }
.fv-node[data-kind="start"] .k i { background: var(--tl); }
.fv-node[data-kind="request"] .k i { background: #3b82f6; }
.fv-node[data-kind="email"] .k i { background: var(--e3); }
.fv-node[data-kind="set"] .k i { background: #14b8a6; }
.fv-node[data-kind="if"] .k i { background: #f59e0b; }
.fv-wire { position: relative; flex: 1 1 auto; min-width: 22px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: visible; }
.fv-wire::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.fv-wire.lit::after { transform: scaleX(1); }
.fv-wire i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(99, 102, 241, .35), 0 0 16px rgba(99, 102, 241, .9); opacity: 0; }
.fv-wire.go i { animation: fvdot .5s ease-in forwards; }
@keyframes fvdot { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.fv-mail {   /* the email that arrives */
  position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 14px); width: 270px; transform: translate(-50%, -14px) scale(.96);
  padding: 12px 14px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line-2); box-shadow: var(--lift-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2); pointer-events: none; font-size: .82rem;
}
.fv-mail.in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.fv-mail .m-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .74rem; margin-bottom: 4px; }
.fv-mail .m-head svg { width: 15px; height: 15px; color: var(--e3); }
.fv-mail b { display: block; color: var(--fg); font-weight: 600; }
.fv-mail .code { font-family: var(--mono); font-weight: 600; color: var(--accent); background: var(--accent-bg); padding: 0 6px; border-radius: 5px; transition: box-shadow .3s; }
.fv-mail .code.grab { box-shadow: 0 0 0 2px var(--e1); }
.fv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; font-size: .84rem; color: var(--muted); }
.fv-foot .pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--bg-sunk); border: 1px solid var(--line); font-family: var(--mono); font-size: .76rem; color: var(--fg-2); transition: background .3s, color .3s; }
.fv-foot .pill.ok { background: rgba(20, 184, 166, .14); color: var(--tl); border-color: rgba(20, 184, 166, .35); }
.fv-foot .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fv-foot .log { font-family: var(--mono); font-size: .76rem; color: var(--faint); min-height: 1.4em; }
@media (max-width: 1100px) {
  .fv-row { flex-direction: column; align-items: stretch; }
  .fv-node { width: auto; }
  .fv-wire { height: 26px; width: 2px; min-width: 0; align-self: center; }
  .fv-wire::after { transform: scaleY(0); transform-origin: top; }
  .fv-wire.lit::after { transform: scaleY(1); }
  .fv-wire.go i { animation-name: fvdot-v; }
  .fv-mail { left: auto; right: 10px; bottom: auto; top: -8px; transform: translate(0, -10px) scale(.96); width: min(270px, 80%); }
  .fv-mail.in { transform: none; }
  @keyframes fvdot-v { 0% { top: 0; left: -4px; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 10px); left: -4px; opacity: 0; } }
}

.flow-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 44px; }
@media (max-width: 900px) { .flow-chips { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow-chips { grid-template-columns: 1fr; } }
.flow-chip { border-radius: 18px; padding: 18px 18px 16px; }
.flow-chip svg { width: 20px; height: 20px; color: var(--accent); margin-bottom: 10px; }
.flow-chip h3 { font-size: .96rem; margin: 0 0 6px; }
.flow-chip p { margin: 0; font-size: .88rem; color: var(--muted); }

/* the gallery: three real screenshots, one at a time */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.gallery-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .gallery-tabs { grid-template-columns: 1fr; } }
.gallery-tabs button {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; display: block;
  padding: 14px 16px 16px; border-radius: 16px; transition: background .2s, border-color .2s, transform .2s;
}
.gallery-tabs button b { display: block; font-size: .95rem; color: var(--fg); margin-bottom: 2px; }
.gallery-tabs button span { font-size: .84rem; color: var(--muted); }
.gallery-tabs button[aria-selected="true"] { background: var(--glass-2); border-color: color-mix(in srgb, var(--e1) 45%, var(--line)); }
.gallery-tabs button:focus-visible { outline: 2px solid var(--e1); outline-offset: 2px; }
.gallery-tabs button .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.gallery-tabs button[aria-selected="true"] .bar { animation: fill var(--slide, 6s) linear forwards; }
.gallery.paused .gallery-tabs button[aria-selected="true"] .bar { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.gallery-stage { position: relative; perspective: 1600px; }
.gallery-stage .shot-frame { margin: 0; }
.gallery-slide { display: none; }
.gallery-slide.on { display: block; animation: slidein .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes slidein { from { opacity: 0; transform: translateY(16px) scale(.98) rotateX(6deg); } to { opacity: 1; transform: none; } }
.float-card {
  position: absolute; z-index: 2; width: clamp(150px, 22%, 260px); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--lift-shadow), 0 30px 60px -30px rgba(139, 92, 246, .55);
  animation: bob 6s ease-in-out infinite;
}
.float-card img { display: block; width: 100%; height: auto; }
.float-card.a { right: -18px; bottom: 12%; }
.float-card.b { left: -18px; bottom: 6%; width: clamp(140px, 20%, 230px); animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (max-width: 760px) { .float-card { display: none; } }

/* ============================================================ pricing */
.page-hero { padding: 84px 0 40px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -.05em; line-height: 1.03; margin: 0 auto 18px; max-width: 18ch; }
.page-hero p { font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: var(--muted); max-width: 60ch; margin: 0 auto; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin: 44px 0 26px; }
@media (max-width: 960px) { .prices { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
.price { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 26px; padding: 28px 26px 26px; }
.price.featured {
  border-color: transparent;
  background: linear-gradient(var(--glass-2), var(--glass-2)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--lift-shadow), 0 40px 90px -40px rgba(124, 58, 237, .6);
}
@media (min-width: 961px) { .price.featured { transform: translateY(-10px); } }
.price .tagline { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--muted); background: var(--bg-sunk); border: 1px solid var(--line); margin-bottom: 18px; }
.price.featured .tagline { color: #fff; background: var(--grad-btn); border-color: transparent; }
.price h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 0 0 6px; }
.price .for { color: var(--muted); font-size: .93rem; margin: 0 0 22px; min-height: 2.9em; }
.price .amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price .amount b { font-size: 2.6rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.price.featured .amount b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price .amount span { color: var(--muted); font-size: .92rem; }
.price .sub { color: var(--faint); font-size: .84rem; margin: 0 0 22px; }
.price .btn { width: 100%; margin-bottom: 24px; }
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: .92rem; color: var(--fg-2); }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; color: var(--tl); background: rgba(20, 184, 166, .14); }
.price.featured li svg { color: #fff; background: var(--grad-btn); }
.price li b { color: var(--fg); font-weight: 600; }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 80px; }

.cmp { border-radius: 24px; overflow: clip; }
.cmp table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.cmp th, .cmp td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { position: sticky; top: 78px; z-index: 2; font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--glass-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.cmp thead th.pf { color: var(--accent); }
.cmp td:nth-child(n+2), .cmp th:nth-child(n+2) { text-align: center; width: 22%; }
.cmp tbody th { font-weight: 500; color: var(--fg-2); }
.cmp tr.group th { padding-top: 24px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-bottom: 0; }
.cmp td { font-family: var(--mono); font-size: .86rem; color: var(--fg); }
.cmp td.pf { font-weight: 600; background: linear-gradient(180deg, rgba(99, 102, 241, .06), rgba(139, 92, 246, .05)); }
.cmp td .yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--tl); background: rgba(20, 184, 166, .14); }
.cmp td .yes svg { width: 13px; height: 13px; }
.cmp td .no { color: var(--faint); font-family: var(--font); }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background-color: var(--bg-sunk); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .cmp th, .cmp td { padding: 11px 10px; } .cmp td { font-size: .78rem; } .cmp thead th { top: 74px; } }

.cta-band {
  position: relative; overflow: hidden; margin: 80px 0 40px; padding: 48px 32px; border-radius: 30px; text-align: center;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 240px at 20% 0%, rgba(99, 102, 241, .22), transparent 70%), radial-gradient(520px 260px at 85% 100%, rgba(139, 92, 246, .24), transparent 70%); }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.04em; margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }
.cta-band .hero-cta { justify-content: center; }

/* ============================================================ contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 22px; align-items: start; margin: 36px 0 90px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-card { border-radius: 26px; padding: 30px; position: relative; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .contact-card { padding: 22px; } }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld label { font-size: .86rem; font-weight: 500; color: var(--fg-2); }
.fld label small { color: var(--faint); font-weight: 400; margin-left: 4px; }
.fld input, .fld select, .fld textarea {
  font: inherit; font-size: .95rem; color: var(--fg); width: 100%;
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass-2);
  transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.fld select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b87a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.fld textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--e1); box-shadow: 0 0 0 4px var(--accent-bg); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--faint); }
.fld .err { display: none; font-size: .8rem; color: #e5484d; }
.fld.bad .err { display: block; }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: #e5484d; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-pick label { cursor: pointer; }
.chips-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chips-pick span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: .88rem; color: var(--fg-2); background: var(--glass-2); border: 1px solid var(--line-2); transition: all .2s; }
.chips-pick input:checked + span { color: #fff; background: var(--grad-btn); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(124, 58, 237, .7); }
.chips-pick input:focus-visible + span { outline: 2px solid var(--e1); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.form-foot .fine { font-size: .8rem; color: var(--faint); max-width: 46ch; margin: 0; }
.form-foot .fine a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin: 16px 0 0; font-size: .9rem; min-height: 1.4em; }
.form-status.bad { color: #e5484d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.sent { display: none; text-align: center; padding: 34px 10px 18px; }
.contact-card.done form { display: none; }
.contact-card.done .sent { display: block; animation: rise .45s ease; }
.sent .ok { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--grad-btn); box-shadow: 0 18px 40px -16px rgba(124, 58, 237, .8); animation: popin .5s cubic-bezier(.2, 1.4, .4, 1); }
.sent .ok svg { width: 30px; height: 30px; }
.sent h2 { font-size: 1.6rem; margin-bottom: 8px; }
.sent p { color: var(--muted); max-width: 44ch; margin: 0 auto 22px; }
@keyframes popin { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.note-card { border-radius: 20px; padding: 20px; }
.note-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 0 0 6px; }
.note-card h3 svg { width: 20px; height: 20px; color: var(--accent); }
.note-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.note-card a { color: var(--fg); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.note-card a:hover { text-decoration-color: var(--accent); }

/* ============================================================ motion */
.reveal { opacity: 0; transform: translateY(18px) scale(.985); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  body::before, .stage::before, .float-card, .fv-wire i { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .caret::after { animation: none; }
}

/* ------------------------------------------------------------- helpers */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.term code { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; }
.fv code, .flow-chip code { font-size: .8em; }
.hero-meta .link { color: var(--fg-2); }
