/* =========================================================
   VisionDock landing — production stylesheet
   No build step. Tokens → base → components → sections → motion
   Brand tokens mirror the VisionDock app (artifacts/visiondock/src/index.css)
   ========================================================= */

:root {
  /* app: --foreground 240 10% 8% */
  --ink: #131318;
  --ink-2: #26262e;
  /* app: --muted-foreground 240 6% 46% */
  --ink-soft: #6e6e7a;
  --ink-mute: #8e8e99;
  /* app: --background 240 20% 98% */
  --paper: #f9f9fb;
  --paper-2: #f1f1f6;
  --white: #ffffff;
  /* app: --primary 262 83% 58% / --primary-border 262 83% 52% */
  --accent: #7c3aed;
  --accent-dark: #6d28d9;
  --accent-2: #8b5cf6;
  /* app: --accent 262 60% 96% */
  --accent-soft: #f3effc;
  --accent-ring: rgba(124, 58, 237, 0.18);
  /* app: --sidebar 240 8% 7% */
  --night: #111113;
  --night-2: #1a1a1f;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  /* app: --border 240 12% 90% */
  --line: #e2e2ea;
  --line-strong: #cfcfda;
  --line-dark: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 2px rgba(19, 19, 24, 0.05), 0 4px 14px rgba(19, 19, 24, 0.05);
  --shadow-lg: 0 2px 6px rgba(19, 19, 24, 0.06), 0 30px 70px -10px rgba(76, 29, 149, 0.22);
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 0.05em 0.4em;
  border-radius: 5px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}
.container.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

/* ---------- Typography ---------- */
.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
}

.section h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.03em;
}

.section-lede {
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 42rem;
}

.section-head {
  margin-bottom: 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-sm {
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}
.btn-lg {
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--white);
  box-shadow: 0 8px 22px -6px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px -6px rgba(124, 58, 237, 0.6);
}
.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--accent-soft);
}

.link-quiet {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.link-quiet:hover {
  color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--accent), #7c3aed 40%, #6d28d9);
  color: var(--white);
  box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.45);
}
.brand-mark svg {
  width: 1.05rem;
  height: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a {
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--accent-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a:last-child {
    border-bottom: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions .link-quiet {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 4.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 55%, rgba(124, 58, 237, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 40% at 5% 70%, rgba(167, 139, 250, 0.12), transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.9s var(--ease) both;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  margin-bottom: 1.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--white);
  border: 1px solid #e4dcfb;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}
.pill:hover {
  border-color: var(--accent);
}
.pill-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  max-width: 15ch;
  margin-bottom: 1.35rem;
}
.hl {
  background: linear-gradient(120deg, var(--accent-2), var(--accent) 50%, #5b21b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.hero .cta-row {
  justify-content: center;
}
.trust-row {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.trust-row li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
  vertical-align: 0.05em;
}

.hero-shot {
  position: relative;
  margin-top: 3.75rem;
  animation: rise 1.1s var(--ease) 0.15s both;
}
.shot-caption {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* Browser frame around real screenshots */
.frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: 0;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.3rem;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.frame-bar .dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--line-strong);
}
.frame-url {
  margin-left: 0.75rem;
  padding: 0.15rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.frame img {
  width: 100%;
}
.frame-hero {
  max-width: 1080px;
  margin-inline: auto;
  border-radius: 18px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.7), 0 0 0 9px var(--line), 0 40px 90px -20px rgba(76, 29, 149, 0.35);
}
.frame-flat {
  box-shadow: none;
  border-radius: 12px;
}

/* Floating cards on the hero screenshot */
.float-card {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 0.95rem;
}
.float-samples {
  left: 0;
  bottom: 12%;
  width: 15.5rem;
  animation: float-in 1s var(--ease) 0.6s both;
}
.float-title {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.float-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}
.float-thumbs img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.float-result {
  right: 0;
  top: 22%;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 17rem;
  animation: float-in 1s var(--ease) 0.8s both;
}
.float-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
}
.float-result b {
  font-size: 1.02rem;
}
.float-sub {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
@media (max-width: 1240px) {
  .float-samples {
    left: 1%;
  }
  .float-result {
    right: 1%;
  }
}
@media (max-width: 860px) {
  .hero {
    padding-top: calc(var(--header-h) + 2.75rem);
  }
  .hero-shot {
    margin-top: 2.75rem;
  }
  .float-card {
    position: static;
    width: auto;
    max-width: none;
    margin-top: 0.85rem;
    animation: none;
  }
}

/* ---------- Strip ---------- */
.strip {
  padding: 1.4rem 0;
  border-block: 1px solid var(--line);
  background: var(--white);
}
.strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}
.strip-label {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}
.section-alt {
  background: var(--paper-2);
}
.section-dark {
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(124, 58, 237, 0.22), transparent 70%),
    var(--night);
  color: var(--white);
}
.section-dark .eyebrow {
  color: #a78bfa;
}
.section-dark .section-lede {
  color: rgba(255, 255, 255, 0.68);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.why-card:hover {
  border-color: #d9cdfa;
  box-shadow: var(--shadow-sm);
}
.why-index {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.why-card h3 {
  font-size: 1.25rem;
}
.why-problem {
  margin: 0;
  color: var(--ink-soft);
}
.why-solution {
  margin: 0.25rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.why-solution strong {
  color: var(--accent-dark);
}
@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Steps */
.step {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}
.step:first-of-type {
  border-top: none;
}
.step-reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.step-reverse .step-copy {
  order: 2;
}
.step-num {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.step h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.step-copy > p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 1.04rem;
}
.step-visual {
  margin: 0;
}
.step-visual figcaption {
  margin-top: 0.8rem;
  font-size: 0.84rem;
  color: var(--ink-mute);
  text-align: center;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.checks li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.97rem;
  line-height: 1.5;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.62rem no-repeat;
}
.checks.compact li {
  font-size: 0.93rem;
}
@media (max-width: 900px) {
  .step,
  .step-reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .step-reverse .step-copy {
    order: 0;
  }
}

/* Code frame */
.frame-code pre {
  margin: 0;
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-x: auto;
  background: var(--night);
  color: #e4e4ea;
}
.frame-code code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.frame-code .frame-bar {
  background: var(--night-2);
  border-bottom-color: var(--line-dark);
}
.frame-code .frame-bar .dot {
  background: rgba(255, 255, 255, 0.18);
}
.frame-code .frame-url {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
  color: rgba(255, 255, 255, 0.65);
}
.frame-code .c {
  color: #7d7d8a;
}
.frame-code .s {
  color: #c4b5fd;
}
.frame-code .n {
  color: #6ee7b7;
}
.frame-code .k {
  color: #a1a1aa;
}

/* Real walkthrough */
.wt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.wt-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.wt-photos figure {
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
}
.wt-photos img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.wt-photos figure:hover img {
  transform: scale(1.04);
}
.wt-photos figcaption {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--white);
  background: rgba(17, 17, 19, 0.72);
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.wt-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: wt;
}
.wt-timeline li {
  position: relative;
  padding: 0 0 1.5rem 2.75rem;
  counter-increment: wt;
}
.wt-timeline li::before {
  content: counter(wt);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.wt-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.95rem - 1px);
  top: 2.1rem;
  bottom: 0.2rem;
  width: 2px;
  background: #e4dcfb;
}
.wt-step {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.wt-timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.wt-timeline p b {
  color: var(--ink);
}
.wt-credit {
  margin-top: 1.5rem !important;
}
@media (max-width: 900px) {
  .wt-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.more-uses {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.more-uses > h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.uc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.uc-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.uc h4 {
  font-size: 1.15rem;
}
.uc p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
@media (max-width: 960px) {
  .uc-grid {
    grid-template-columns: 1fr;
  }
}

/* Tasks */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.task {
  background: var(--night);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.25s;
}
.task:hover {
  background: var(--night-2);
}
.task h3 {
  font-size: 1.3rem;
}
.task-sub {
  margin: 0;
  color: #c4b5fd;
  font-weight: 600;
  font-size: 0.95rem;
}
.task p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.96rem;
}
.task p b {
  color: var(--white);
}
.task-fmt {
  margin-top: auto !important;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem !important;
}
.task-fmt span {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 0.4rem;
}
.task-cta {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.35), rgba(124, 58, 237, 0.1)), var(--night-2);
  justify-content: space-between;
}
.task-cta:hover {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.42), rgba(124, 58, 237, 0.14)), var(--night-2);
}
.task-cta .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}
@media (max-width: 960px) {
  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .task-grid {
    grid-template-columns: 1fr;
  }
}

/* Libraries */
.lib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.lib {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}
.lib .frame {
  border-color: var(--line);
}
.lib-body {
  padding: 1.4rem 1.25rem 1.1rem;
}
.lib h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.lib p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .lib-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring), var(--shadow-lg);
}
.plan-flag {
  position: absolute;
  top: -0.8rem;
  left: 2rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.plan h3 {
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.plan-credits {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.plan-credits b {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-right: 0.35rem;
}
.plan-desc {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  min-height: 3rem;
}
.plan .checks {
  margin-bottom: 1.25rem;
}
.plan .btn {
  margin-top: auto;
  width: 100%;
}
@media (max-width: 960px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

.credit-table {
  margin-top: 3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem 1.5rem;
}
.credit-table h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.credit-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.credit-table th,
.credit-table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.credit-table th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.credit-table td:first-child {
  font-weight: 700;
}
.credit-table tr:last-child td {
  border-bottom: none;
}
.fineprint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.fineprint a {
  color: var(--accent-dark);
  font-weight: 600;
}
@media (max-width: 640px) {
  .credit-table {
    padding: 1.25rem;
    overflow-x: auto;
  }
  .credit-table table {
    min-width: 34rem;
  }
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  font-size: 1.04rem;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 44rem;
}
.faq details a {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Made by HiddenSlate */
.maker {
  padding-top: 0;
}
.maker-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(124, 58, 237, 0.12), transparent 70%),
    var(--white);
  border: 1px solid var(--line);
}
.maker h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem) !important;
}
.maker-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--white);
}
.maker-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.maker-tag {
  color: #c4b5fd;
  font-weight: 500;
}
.maker-card ul {
  list-style: none;
  margin: 0.5rem 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}
.maker-card a:not(.btn) {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.maker-card .btn {
  align-self: flex-start;
}
@media (max-width: 860px) {
  .maker-row {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 1.75rem;
  }
}

/* Close */
.section-close {
  text-align: center;
  background:
    radial-gradient(ellipse 55% 70% at 50% 100%, rgba(124, 58, 237, 0.16), transparent 70%),
    var(--paper-2);
}
.section-close .section-lede {
  margin: 1.1rem auto 1.9rem;
}
.section-close .cta-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand {
  color: var(--white);
}
.footer-brand p {
  margin: 0.9rem 0 0;
  max-width: 24rem;
  font-size: 0.95rem;
}
.site-footer h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.9rem;
}
.site-footer nav a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.site-footer nav a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.made-by {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, color 0.2s;
}
.made-by b {
  color: var(--white);
  font-weight: 700;
}
.made-by:hover {
  border-color: #a78bfa;
  color: var(--white);
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.why-card.reveal:nth-child(2),
.task.reveal:nth-child(3n + 2),
.uc.reveal:nth-child(2),
.lib.reveal:nth-child(2),
.plan.reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.why-card.reveal:nth-child(3),
.task.reveal:nth-child(3n),
.uc.reveal:nth-child(3),
.plan.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .nav-toggle,
  .float-card {
    display: none;
  }
  .hero {
    padding-top: 1rem;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
