/* ==========================================================================
   KANOPI · Editorial film aesthetic
   Palette: #4a0085 · #000000 · #ffffff · #fbb82e · #aa89f6
   ========================================================================== */

:root {
  --paper: #ffffff;
  --surface: #f5f5f7;
  --ink: #0b0a0c;
  --purple: #4a0085;
  --amber: #fbb82e;
  --lavender: #aa89f6;
  --hairline: rgba(11, 10, 12, 0.14);
  --hairline-soft: rgba(11, 10, 12, 0.08);

  --font-sans: "Archivo", -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "Courier Prime", "Courier New", monospace;

  --nav-h: 76px;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { padding-inline: var(--pad); }

/* ---------- Type ---------- */

.h-giant {
  font-weight: 700;
  font-size: clamp(3rem, 7.2vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* Hero headline: each .hero-line is one unbreakable line, so the copy always
   reads "Great films are made / before the camera / rolls." at every width.
   Font-size still scales fluidly via .h-giant; when even the smallest clamp
   size would overflow (narrow phones), fitHeroHeadline() in main.js shrinks
   it to fit rather than letting a line wrap. */
.hero-h1 { max-width: 100%; }
.hero-h1 .hero-line {
  display: block;
  white-space: nowrap;
}

.h-big {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

/* emphasized word: brand color accent */
.serif-it {
  color: var(--purple);
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mono-amber { color: #b97d00; }
.mono-lav { color: var(--purple); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 34px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.btn-ink { background: var(--ink); color: var(--paper); }

.btn-ink:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 0, 133, 0.3);
}

.btn-line { background: transparent; color: var(--ink); }

.btn-line:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-paper:hover { background: var(--amber); border-color: var(--amber); transform: translateY(-2px); }

.btn-amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }

.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(251, 184, 46, 0.45); }

.btn-sm { padding: 12px 24px; font-size: 0.85rem; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--hairline-soft);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.nav-logo img { height: 24px; width: auto; }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 100px;
  transition: background 0.25s;
}

.nav-links a:hover { background: rgba(11, 10, 12, 0.06); }
.nav-links a.active { background: var(--ink); color: var(--paper); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  width: 42px; height: 42px;
  position: relative;
}

.nav-burger span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}

.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 10px var(--pad) 30px;
  display: none;
  flex-direction: column;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 16px 4px;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--hairline-soft);
}

.mobile-menu .btn { margin-top: 20px; }

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--nav-h) + clamp(56px, 9vh, 100px));
  position: relative;
}

.hero-fade-in {
  margin-bottom: clamp(20px, 3vh, 40px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-fade-in::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.hero h1 { position: relative; max-width: 860px; }

.hero-sub-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(24px, 3.5vh, 40px);
  padding-bottom: clamp(36px, 6vh, 64px);
}

.hero-sub {
  max-width: 380px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(11, 10, 12, 0.72);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trial-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11, 10, 12, 0.55);
  text-align: center;
}


/* ---------- Marquee ---------- */

.marquee {
  background: var(--purple);
  color: var(--paper);
  overflow: hidden;
  padding: 18px 0;
  border-block: 1.5px solid var(--ink);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.mq-set { display: flex; }

.mq-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.3vw, 0.98rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  padding-inline: 24px;
}

.mq-item svg { width: 18px; height: 18px; flex-shrink: 0; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */

.section { padding-block: clamp(90px, 14vh, 170px); }

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(36px, 5vh, 64px);
}

.section-label::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

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

.features-head { margin-bottom: clamp(32px, 5vh, 56px); max-width: 900px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fcard {
  border-radius: 20px;
  background: var(--surface);
  padding: 24px 22px 22px;
  position: relative;
  overflow: hidden;
  min-height: 235px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.fcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px -20px color-mix(in srgb, var(--fc, var(--purple)) 65%, transparent);
}

/* hover-reveal art layer (Adobe-style) */
.fart {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
  transform: scale(1.05);
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--fc, var(--purple)) 55%, #17091f) 0%,
    color-mix(in srgb, var(--fc, var(--purple)) 92%, #17091f) 100%);
  pointer-events: none;
}

.fcard:hover .fart { opacity: 1; transform: scale(1); }

.fart svg {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 72%;
  height: 56%;
}

.fbody { position: relative; }

.fcard .fic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--fc, var(--purple)) 12%, #fff);
  transition: background 0.35s;
}

.fcard .fic svg { width: 20px; height: 20px; stroke: var(--fc, var(--purple)); transition: stroke 0.35s; }

.fcard:hover .fic { background: rgba(255, 255, 255, 0.16); }
.fcard:hover .fic svg { stroke: #fff; }

.fcard h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  transition: color 0.35s;
}

.fcard p { font-size: 0.85rem; color: rgba(11, 10, 12, 0.55); margin-top: 4px; transition: color 0.35s; }

.fcard:hover h3 { color: #fff; }
.fcard:hover p { color: rgba(255, 255, 255, 0.78); }

.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--amber);
  text-transform: uppercase;
  transform: translateY(-2px);
}

/* ---------- Analyzer (purple act) ---------- */

.analyzer {
  background: var(--purple);
  color: var(--paper);
  border-block: 1.5px solid var(--ink);
}

.analyzer .section-label::after { background: rgba(255, 255, 255, 0.25); }
.analyzer .mono-amber { color: var(--amber); }
.analyzer .serif-it { color: var(--amber); }
.band .serif-it { color: var(--lavender); }

.analyzer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}


.analyzer-copy {
  margin-top: 30px;
  max-width: 420px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(248, 246, 241, 0.75);
}

.analyzer-stats {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(24px, 4vw, 60px);
  justify-content: start;
}

.a-stat .a-num {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.a-stat .a-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.55);
  margin-top: 8px;
}

/* Score dial */

.dial-wrap { display: flex; justify-content: center; }

.dial {
  --score: 0;
  width: clamp(240px, 26vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--purple) 79%, transparent 80% 100%),
    conic-gradient(var(--amber) calc(var(--score) * 1%), rgba(248, 246, 241, 0.14) 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dial::after {
  content: "";
  position: absolute;
  inset: 10.5%;
  border-radius: 50%;
  border: 1px dashed rgba(248, 246, 241, 0.25);
}

.dial-num {
  font-weight: 800;
  font-size: clamp(4rem, 7vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.dial-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 10px;
}

/* ---------- Do the math: tiles + versus panel ---------- */

.math { padding-bottom: clamp(50px, 7vh, 90px); }

#suite { padding-top: clamp(50px, 7vh, 90px); }

.math-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 380px);
  gap: clamp(24px, 3.5vw, 52px);
  align-items: stretch;
}

.math-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: clamp(8px, 1vw, 14px);
  height: 100%;
}

.math-tile {
  min-height: 150px;
  border: 1px solid var(--hairline-soft);
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.math-tile.on { opacity: 1; transform: none; }

.mt-ic {
  width: clamp(30px, 3vw, 40px);
  height: clamp(30px, 3vw, 40px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--fc, var(--purple)) 12%, #fff);
}

.mt-ic svg { width: 50%; height: 50%; stroke: var(--fc, var(--purple)); }

.mt-price { font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.2rem); transition: color 0.4s; }

.mt-price small { font-weight: 600; font-size: 0.62em; color: rgba(11, 10, 12, 0.45); }

.mt-name { font-size: clamp(0.62rem, 0.9vw, 0.74rem); font-weight: 600; color: rgba(11, 10, 12, 0.5); }

.math.compare .math-tile { opacity: 0.55; }
.math.compare .mt-price { text-decoration: line-through; color: rgba(11, 10, 12, 0.45); }

.math-foot {
  margin-top: 14px;
  font-size: 0.72rem;
  color: rgba(11, 10, 12, 0.4);
}

/* the versus panel: both numbers stay visible */

.vs-panel {
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  padding: clamp(24px, 2.6vw, 34px);
  text-align: center;
  background: #fff;
}

.math-panel-label { color: rgba(11, 10, 12, 0.5); }

.math-sum {
  font-weight: 700;
  font-size: clamp(2.8rem, 4.4vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 8px;
  transition: color 0.45s;
}

.math-per { font-size: 0.85rem; color: rgba(11, 10, 12, 0.55); }

.math.compare .math-sum {
  text-decoration: line-through;
  text-decoration-thickness: 0.06em;
  text-decoration-color: var(--amber);
  color: rgba(11, 10, 12, 0.5);
}

.vs-div {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block: 16px 0;
  opacity: 0;
  transition: opacity 0.4s 0.15s;
}

.vs-div::before, .vs-div::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

.vs-div .mono { color: rgba(11, 10, 12, 0.45); font-size: 0.7rem; }

.math.compare .vs-div { opacity: 1; }

.vs-kanopi {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.55s var(--ease), margin-top 0.55s var(--ease);
  margin-top: 0;
}

.math.compare .vs-kanopi { grid-template-rows: 1fr; margin-top: 16px; }

.vs-kanopi-inner { min-height: 0; overflow: hidden; }

.vs-kanopi-card {
  background: var(--purple);
  color: var(--paper);
  border-radius: 18px;
  padding: 22px;
}

.vs-kanopi-card .mono { color: var(--amber); }

.vs-price {
  font-weight: 700;
  font-size: clamp(2.8rem, 4.4vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 6px;
}

.vs-price .per { font-size: 0.3em; font-weight: 600; opacity: 0.65; }

.vs-kanopi-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); margin-top: 2px; }

/* the $35 lands into the suite heading */

.suite-35 { display: inline-block; }

.reveal.visible .suite-35 {
  animation: land35 0.75s var(--ease) 0.2s both;
}

@keyframes land35 {
  from { opacity: 0; transform: scale(2.3) translateY(-0.35em); }
  to { opacity: 1; transform: none; }
}

/* ---------- Download ---------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(40px, 6vh, 70px);
}

.dl-card {
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  padding: clamp(30px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 6vh, 80px);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.dl-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(11, 10, 12, 0.16); }

.dl-mac { background: var(--ink); color: var(--paper); }
.dl-win { background: var(--lavender); color: var(--ink); }

.dl-top { display: flex; justify-content: space-between; align-items: flex-start; }

.dl-os { width: clamp(44px, 5vw, 60px); height: clamp(44px, 5vw, 60px); }
.dl-mac .dl-os { fill: var(--paper); }
.dl-win .dl-os { fill: var(--ink); }

.dl-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
}

.dl-card:hover .dl-arrow { transform: rotate(45deg); }
.dl-mac:hover .dl-arrow { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.dl-win:hover .dl-arrow { background: var(--ink); color: var(--paper); }

.dl-name {
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.dl-req {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 10px;
}

/* Windows "coming soon" — inert stand-ins for the hero button and the
   download card until the NSIS installer ships (see downloads/README.md). */
.btn-soon {
  border-style: dashed;
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
  gap: 10px;
}
.btn-soon em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.dl-soon {
  border-style: dashed;
  cursor: default;
  opacity: 0.85;
}
.dl-soon:hover { transform: none; box-shadow: none; }
.dl-soon-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Pricing band (index teaser + pricing page) ---------- */

.band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  border-top: 1.5px solid var(--ink);
}


.band-price {
  font-weight: 700;
  font-size: clamp(3.4rem, 8.5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-block: clamp(18px, 3.5vh, 34px);
}

.band-price sup {
  font-size: 0.3em;
  vertical-align: super;
  letter-spacing: 0;
  color: var(--amber);
}

.band-price .per {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.22em;
  letter-spacing: 0;
  color: rgba(248, 246, 241, 0.6);
}

.band-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.55);
  margin-bottom: 36px;
}

/* ---------- Pricing page ---------- */

.page-top { padding-top: calc(var(--nav-h) + clamp(60px, 10vh, 120px)); }

.billing-toggle {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  padding: 5px;
  gap: 4px;
  background: var(--paper);
}

.billing-toggle button {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 100px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s, color 0.25s;
}

.billing-toggle button.active { background: var(--ink); color: var(--paper); }

.save-pill {
  background: var(--amber);
  color: var(--ink);
  font-size: 0.62rem;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.08em;
}

.price-stage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(40px, 6vh, 64px);
  text-align: left;
}

.price-card {
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  padding: clamp(30px, 4vw, 52px);
  display: flex;
  flex-direction: column;
}

.price-card.main { background: var(--purple); color: var(--paper); position: relative; overflow: hidden; }

.price-card.main::after {
  content: "✦";
  position: absolute;
  top: -30px; right: -10px;
  font-size: 11rem;
  color: rgba(251, 184, 46, 0.16);
  line-height: 1;
  pointer-events: none;
}

.price-card .plan-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.plan-price {
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-block: 22px 6px;
}

.plan-price .per {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.26em;
  color: inherit;
  opacity: 0.65;
}

/* early launch pricing: struck-through regular price beside the live one */

.was-price {
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
  margin-right: 0.22em;
  color: color-mix(in srgb, currentColor 55%, transparent);
  text-decoration: line-through;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 0.06em;
}

.vs-launch { display: block; color: var(--amber); font-weight: 700; }

/* inline-block keeps the strike line off the raised $ */
.was-price sup { display: inline-block; opacity: 0.55; }

.hero-trial-note .was-price { margin-right: 0.5em; }

.plan-sub .hl, .band-note .hl { display: block; }

.band-note .hl { color: var(--amber); margin-bottom: 0.7em; }

.plan-sub { font-size: 0.95rem; opacity: 0.75; min-height: 24px; }
.plan-sub .hl { color: var(--amber); font-weight: 700; }

.plan-list {
  list-style: none;
  margin-block: 34px;
  flex: 1;
  display: grid;
  gap: 0;
}

.plan-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 13px;
  font-size: 0.96rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.price-card.main .plan-list li { border-color: rgba(248, 246, 241, 0.18); }

.plan-list li::before {
  content: "✦";
  color: var(--amber);
  font-size: 0.8rem;
}

.price-card.side .plan-list li::before { color: var(--purple); }

/* FAQ */

.faq { border-top: 1.5px solid var(--ink); }

.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 3vh, 28px) 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-q-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(11, 10, 12, 0.4);
}

.faq-plus {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] .faq-plus { transform: rotate(45deg); }

.faq-body {
  padding: 0 6px 28px 94px;
  max-width: 760px;
  color: rgba(11, 10, 12, 0.65);
  font-size: 0.98rem;
}

/* ---------- Contact ---------- */

.contact-hero-mail {
  display: block;
  font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 2.9rem);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin-top: clamp(24px, 4vh, 40px);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  transition: color 0.3s;
  word-break: break-all;
}

.contact-hero-mail:hover { color: var(--purple); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact-topics { border-top: 1.5px solid var(--ink); }

.contact-topic {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding-block: 24px;
  border-bottom: 1px solid var(--hairline);
}

.contact-topic h4 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.contact-topic p {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(11, 10, 12, 0.6);
  font-size: 1.05rem;
}

/* Form */

.form-card { border: 1.5px solid var(--ink); border-radius: 24px; padding: clamp(28px, 4vw, 48px); background: #fff; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-field { margin-bottom: 22px; }

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: rgba(11, 10, 12, 0.55);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230b0a0c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(74, 0, 133, 0.12);
}

.form-status {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--purple);
  min-height: 24px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(70px, 10vh, 110px);
  border-top: 1.5px solid var(--ink);
}

.footer-cta { text-align: center; margin-bottom: clamp(60px, 9vh, 100px); }

.footer-logo-big {
  width: min(920px, 88%);
  margin: 0 auto clamp(40px, 7vh, 80px);
  opacity: 0.97;
}

.footer-bottom {
  border-top: 1px solid rgba(248, 246, 241, 0.16);
  padding-block: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }

.footer-bottom a, .footer-bottom span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.55);
}

.footer-bottom a:hover { color: var(--amber); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rd, 0s);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero h1 .star-mark { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .dl-win { grid-column: 1 / -1; }
  .analyzer-grid { grid-template-columns: 1fr; }
  .math-grid { grid-template-columns: 1fr; }
  .price-stage { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-sub-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-burger { display: block; }
  .dl-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .faq-item summary { grid-template-columns: 44px 1fr auto; gap: 14px; }
  .faq-body { padding-left: 64px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; min-width: 200px; }
}


/* ==========================================================================
   Beta notice (shown before the first Mac download — see main.js)
   ========================================================================== */
.beta-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
  background: rgba(11, 10, 12, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: beta-fade 0.28s var(--ease) both;
}
.beta-backdrop[hidden] { display: none; }
.beta-card {
  position: relative;
  width: min(560px, 100%);
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(11, 10, 12, 0.35);
  animation: beta-rise 0.5s var(--ease) both;
}
/* Clapperboard stripe */
.beta-slate {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg, var(--ink) 0 18px, var(--paper) 18px 36px
  );
  border-bottom: 1px solid var(--hairline);
}
.beta-inner { padding: clamp(24px, 4vw, 40px); }
.beta-inner .section-label { margin-bottom: 14px; }
.beta-h {
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.beta-p {
  font-size: 1.02rem; line-height: 1.55;
  color: rgba(11, 10, 12, 0.78);
  margin: 0 0 20px;
}
.beta-mail {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; margin-bottom: 22px;
  border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.beta-mail .mono { font-size: 0.72rem; color: rgba(11, 10, 12, 0.6); }
.beta-mail-addr { font-weight: 600; letter-spacing: -0.01em; }
.beta-mail-arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.beta-mail:hover { border-color: var(--lavender); transform: translateY(-1px); }
.beta-mail:hover .beta-mail-arrow { transform: translateX(4px); }
.beta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.beta-foot {
  margin: 18px 0 0; font-size: 0.7rem;
  color: rgba(11, 10, 12, 0.5);
}
.beta-close {
  position: absolute; top: 24px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--paper); color: var(--ink);
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.beta-close:hover { background: var(--ink); color: var(--paper); }
@keyframes beta-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes beta-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .beta-backdrop, .beta-card { animation: none; }
}
@media (max-width: 480px) {
  .beta-actions .btn { width: 100%; justify-content: center; }
}


/* ==========================================================================
   Get Kanopi flow: account → subscribe → download
   (get-kanopi.html + welcome.html, wired up in assets/js/account.js)
   ========================================================================== */

/* account.js toggles blocks with the hidden attribute; keep it winning over
   display rules like .signed-in-as { display:flex } */
[hidden] { display: none !important; }

.steps {
  display: flex;
  margin-top: clamp(32px, 5vh, 56px);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.4;
}

.step.active, .step.done { opacity: 1; }

.step-num {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  letter-spacing: 0;
}

.step.active .step-num { background: var(--ink); color: var(--paper); }
.step.done .step-num { background: var(--amber); border-color: var(--amber); }

.acct-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(36px, 5vh, 56px);
  text-align: left;
  align-items: start;
}

/* Plan summary (reuses .price-card.main) */
.acct-plan .billing-toggle {
  background: transparent;
  border-color: rgba(248, 246, 241, 0.35);
  margin-bottom: 26px;
}
.acct-plan .billing-toggle button { color: var(--paper); }
.acct-plan .billing-toggle button.active { background: var(--paper); color: var(--ink); }
.acct-plan .plan-list { margin-bottom: 0; }
.acct-plan .plan-list li:last-child { border-bottom: none; }

.form-field input[type="password"] { letter-spacing: 0.08em; }

.form-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(11, 10, 12, 0.5);
}

.form-status.error { color: #b3261e; }
.form-status.ok { color: #1f7a4d; }

.form-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-soft);
  text-align: center;
  font-size: 0.92rem;
  color: rgba(11, 10, 12, 0.62);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }

.form-legal {
  margin-top: 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(11, 10, 12, 0.5);
  text-align: center;
}
.form-legal a { text-decoration: underline; text-underline-offset: 3px; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.signed-in-as {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  margin-bottom: 22px;
  font-size: 0.95rem;
}
.signed-in-as strong { font-weight: 700; }
.signed-in-as .mono { font-size: 0.62rem; color: rgba(11, 10, 12, 0.5); display: block; margin-bottom: 4px; }

/* Welcome / download page */
.welcome-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 3vh, 32px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: rgba(11, 10, 12, 0.7);
}
.welcome-status .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}
.welcome-status.pending .dot { animation: pulse 1.2s ease-in-out infinite; }
.welcome-status.ok .dot { background: #1f7a4d; }
.welcome-status.warn .dot { background: #b3261e; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.4; }
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(28px, 4vh, 44px);
  text-align: left;
}

.next-item {
  border-top: 1.5px solid var(--ink);
  padding-top: 20px;
}
.next-item h4 { font-weight: 700; font-size: 1.05rem; margin: 12px 0 6px; letter-spacing: -0.01em; }
.next-item p { font-size: 0.95rem; color: rgba(11, 10, 12, 0.62); line-height: 1.55; }

@media (max-width: 900px) {
  .acct-grid { grid-template-columns: 1fr; }
  .next-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .steps { flex-direction: column; }
  .step { padding: 12px 0; }
  .signed-in-as { flex-direction: column; align-items: flex-start; }
}
