:root {
  --ink: #16171a;
  --slate: #55575e;
  --mist: #8a8c92;
  --rule: #dfe0e3;
  --paper: #f7f6f4;
  --surface: #ffffff;
  --brand: #202226;
  --ember: #c24a1e;
  --ember-hover: #a33c16;
  --ember-wash: rgba(194, 74, 30, 0.1);
  --chalk: #ebe8e2;
  --font: "Public Sans", system-ui, sans-serif;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(22, 23, 26, 0.18);
  --max: 1120px;
  --header-h: 5.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(194, 74, 30, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(32, 34, 38, 0.06), transparent 50%),
    linear-gradient(180deg, #f3f1ed 0%, var(--paper) 28%, #fff 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 241, 237, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(255, 255, 255, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 8.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  height: 140px;
  width: auto;
}

.brand-word {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ember);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ember-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--rule-strong, #c0c2c7);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-dark {
  background: var(--brand);
  color: #fff;
}

.btn-dark:hover {
  background: #0f1012;
}

.btn-lg {
  min-height: 3.1rem;
  padding-inline: 1.4rem;
  font-size: 1rem;
}

.hero {
  position: relative;
  /* Header is in-flow sticky; 100svh would push CTAs below the fold. */
  min-height: min(calc(100svh - var(--header-h)), 840px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #1a1b1e;
  cursor: crosshair;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1a1b1e;
}

.hero-reel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-media-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(22, 23, 26, 0.18) 0%,
      rgba(22, 23, 26, 0.06) 34%,
      rgba(22, 23, 26, 0.1) 48%,
      rgba(22, 23, 26, 0.55) 68%,
      rgba(22, 23, 26, 0.94) 100%
    ),
    radial-gradient(900px 420px at 18% 78%, rgba(194, 74, 30, 0.16), transparent 62%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  /* Keep CTAs fully on-fold with ≥30px clearance from the viewport edge. */
  padding: 5rem 0 max(2.5rem, calc(36px + env(safe-area-inset-bottom, 0px)));
  max-width: 720px;
  pointer-events: none;
}

.hero-copy .btn {
  pointer-events: auto;
}

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 14ch;
  color: #fff;
  animation: riseIn 0.9s ease both;
}

.hero-copy > p {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 36ch;
  animation: riseIn 0.9s ease 0.08s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.9s ease 0.24s both;
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section-head p {
  margin: 0;
  color: var(--slate);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--chalk);
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature:hover .feature-visual img {
  transform: scale(1.04);
}

.feature-live:hover {
  transform: none;
  box-shadow: none;
}

.feature-live .feature-visual {
  position: relative;
}

.feature-live .feature-visual.audit-board,
.feature-live .feature-visual.studio-wheel {
  background: #1a1b1e;
}

.feature-live .feature-visual.assets-recolor {
  background:
    radial-gradient(520px 280px at 50% 40%, rgba(194, 74, 30, 0.1), transparent 65%),
    var(--chalk);
}

.audit-board {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 1.1rem;
}

.audit-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 520px;
}

.audit-frame {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: grab;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.audit-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.audit-frame:active {
  cursor: grabbing;
}

.audit-frame.is-dragging {
  opacity: 0.55;
  transform: scale(0.96);
}

.audit-frame.is-over {
  box-shadow: 0 0 0 2px var(--ember);
  transform: translateY(-2px);
}

.audit-reset {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(26, 27, 30, 0.72);
  color: rgba(255, 255, 255, 0.88);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.audit-reset:hover {
  background: rgba(194, 74, 30, 0.92);
  color: #fff;
}

.assets-recolor {
  display: grid;
  grid-template-rows: 1fr auto;
}

.assets-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 1.25rem 1.25rem 0.35rem;
}

.assets-stage svg {
  width: min(100%, 340px);
  height: auto;
  max-height: 220px;
  display: block;
}

.assets-fallback {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.assets-pickers {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.35rem 1rem 1.1rem;
}

.assets-swatch {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(22, 23, 26, 0.18);
  cursor: pointer;
}

.assets-swatch input {
  position: absolute;
  inset: -25%;
  width: 150%;
  height: 150%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none;
}

.assets-swatch span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}

.studio-wheel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem 1rem;
  background:
    radial-gradient(520px 320px at 42% 55%, rgba(194, 74, 30, 0.14), transparent 62%),
    #1a1b1e;
  min-height: 320px;
}

.wheel-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mode-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: 650 0.78rem/1 "Public Sans", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mode-switch button.is-active {
  background: var(--ember);
  color: #fff;
}

.wheel-reward {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  text-align: right;
  min-height: 1.35em;
  transition: color 0.2s ease;
}

.wheel-reward.is-hit {
  color: #fff;
  font-weight: 600;
}

.wheel-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
}

.wheel-canvas {
  display: block;
  border-radius: 50%;
  cursor: default;
  max-width: 100%;
}

.studio-wheel.is-manual .wheel-canvas {
  cursor: grab;
}

.studio-wheel.is-manual .wheel-canvas:active {
  cursor: grabbing;
}

.wheel-pointer {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid #ebe8e2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.wheel-hint {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.feature-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.feature-body h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}

.feature-body p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
}

.feature.wide {
  grid-column: 1 / -1;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto;
}

.feature.wide .feature-visual {
  aspect-ratio: auto;
  min-height: 280px;
}

.feature.wide .feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.pipeline-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.4rem;
  background:
    radial-gradient(520px 220px at 20% 80%, rgba(194, 74, 30, 0.16), transparent 70%),
    linear-gradient(165deg, #f3f1ed 0%, var(--chalk) 100%);
}

.pipeline-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

.pipeline-steps li {
  position: relative;
  flex: 1 1 7.5rem;
  max-width: 10.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 0.85rem 1.05rem;
  text-align: center;
  box-shadow: 0 10px 24px rgba(22, 23, 26, 0.06);
}

.pipeline-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid var(--ember);
  border-right: 2px solid var(--ember);
  transform: translateY(-50%) rotate(45deg);
}

.pipeline-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pipeline-steps strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.pipeline-steps em {
  display: block;
  font-style: normal;
  color: var(--slate);
  font-size: 0.8rem;
}

.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.how-step {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.4rem 1.6rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 100%;
}

.how-n {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--ember);
  line-height: 1;
}

.how-step h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

.how-step p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
}

.use-case-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.use-case-grid li {
  padding: 1.35rem 1.25rem 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.use-case-grid li:nth-child(even) {
  padding-left: 1.25rem;
  padding-right: 0;
}

.use-case-grid h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.use-case-grid p {
  margin: 0;
  color: var(--slate);
  font-size: 0.96rem;
  max-width: 36ch;
}

.credit-rates {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.credit-rate {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem 1.2rem 1.3rem;
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.credit-rate.free {
  grid-column: span 2;
  border-color: rgba(31, 74, 61, 0.28);
  background: linear-gradient(180deg, rgba(31, 74, 61, 0.06), var(--surface) 55%);
}

.credit-cost {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ember);
}

.credit-rate.free .credit-cost {
  color: #1f4a3d;
}

.credit-cost small {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0;
}

.credit-rate h3 {
  margin: 0.35rem 0 0;
  font-size: 1.02rem;
}

.credit-rate p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.credit-example {
  margin: 1.35rem 0 0;
  color: var(--slate);
  font-size: 0.98rem;
  max-width: 72ch;
}

.credit-example a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.language-plans {
  margin-top: 2.4rem;
}

.language-plans-head h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}

.language-plans-head p {
  margin: 0 0 1.15rem;
  color: var(--slate);
  max-width: 62ch;
}

.language-plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.language-plan-grid article {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.15rem 1.15rem 1.2rem;
}

.language-plan-grid h4 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
}

.language-plan-grid .language-rate {
  margin: 0 0 0.55rem;
  color: var(--ember);
  font-weight: 700;
  font-size: 0.92rem;
}

.language-plan-grid p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.45rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  position: relative;
}

.plan.featured::before {
  content: "Most popular";
  position: absolute;
  top: -0.7rem;
  left: 1.2rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.plan h3 {
  margin: 0;
  font-size: 1.15rem;
}

.plan .price {
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
}

.plan .price span {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--slate);
  font-weight: 500;
}

.plan .price strong {
  font-weight: inherit;
}

.plan .plan-annual {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--slate);
}

.price-was {
  color: #c62828;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-weight: 650;
}

.plan .price .price-was {
  font-family: var(--font);
  font-size: 1.15rem;
}

.plan-save {
  color: #c62828;
  font-weight: 700;
}

.billing-interval-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--rule, rgba(27, 30, 26, 0.14));
  border-radius: 999px;
  background: var(--sand, #f7f6f3);
}

.billing-interval-toggle button {
  border: 0;
  background: transparent;
  color: var(--slate);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.billing-interval-toggle button span {
  font-weight: 650;
  font-size: 0.72rem;
  margin-left: 0.35rem;
  color: var(--accent, #c24a1e);
}

.billing-interval-toggle button.active {
  background: var(--ink, #1b1e1a);
  color: #fff;
}

.billing-interval-toggle button.active span {
  color: inherit;
  opacity: 0.85;
}

.pricing-grid[data-interval="year"] .price-monthly {
  display: none;
}

.pricing-grid[data-interval="month"] .price-annual {
  display: none;
}

#pricing .section-head + .billing-interval-toggle,
.section-head + .billing-interval-toggle {
  display: flex;
  width: fit-content;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--slate);
  font-size: 0.95rem;
  flex: 1;
}

.plan li::before {
  content: "✓";
  color: var(--ember);
  font-weight: 700;
  margin-right: 0.45rem;
}

.plan-matrix-block {
  margin-top: 2.75rem;
}

.plan-matrix-head {
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.plan-matrix-head h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}

.plan-matrix-head p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
}

.plan-matrix {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan-matrix table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.94rem;
}

.plan-matrix th,
.plan-matrix td {
  padding: 0.8rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

.plan-matrix thead th {
  background: #f4f3f0;
  font-weight: 700;
  font-size: 0.88rem;
}

.plan-matrix thead th:first-child,
.plan-matrix tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
}

.plan-matrix tbody th[scope="row"] {
  color: var(--ink);
  width: 42%;
}

.plan-matrix tr.matrix-group th {
  text-align: left;
  background: rgba(32, 34, 38, 0.04);
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.95rem;
  padding-bottom: 0.75rem;
}

.plan-matrix tbody tr:last-child th,
.plan-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.cell-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  color: #1f4a3d;
  font-weight: 700;
}

.cell-yes::before {
  content: "✓";
  margin-right: 0.28rem;
  color: var(--ember);
}

.cell-no {
  color: var(--mist);
  font-weight: 500;
}

.plan-matrix-note {
  margin: 0.95rem 0 0;
  color: var(--mist);
  font-size: 0.88rem;
  max-width: 72ch;
}

.compare {
  margin-top: 2.5rem;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.compare th {
  background: #f4f3f0;
  font-weight: 600;
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare .hl {
  color: var(--ember);
  font-weight: 700;
}

.compare .note {
  margin: 0.85rem 1.1rem 1.1rem;
  color: var(--mist);
  font-size: 0.82rem;
}

.done-for-you {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: 2.25rem;
  overflow: hidden;
  position: relative;
}

.done-for-you::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 280px;
  background: radial-gradient(circle, rgba(194, 74, 30, 0.45), transparent 65%);
  pointer-events: none;
}

.done-for-you > * {
  position: relative;
  z-index: 1;
}

.done-for-you h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.done-for-you p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
}

.dfy-price {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.dfy-price strong {
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.dfy-price span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--mist);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.85rem 0 0.2rem;
  color: var(--slate);
}

.faq a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-band {
  text-align: center;
  padding: 4.5rem 0 5rem;
}

.contact-wrap {
  max-width: 720px;
}

.contact-form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.4rem 1.35rem;
}

.hp-fields {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  appearance: none;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 500 0.98rem/1.4 var(--font);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(194, 74, 30, 0.55);
  box-shadow: 0 0 0 3px rgba(194, 74, 30, 0.12);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 1.25rem;
}

.contact-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate);
  font-weight: 500;
}

.contact-status.is-ok {
  color: #1f6b3a;
}

.contact-status.is-error {
  color: #a33c16;
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  color: var(--slate);
  max-width: 42ch;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.5rem;
  color: var(--slate);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .credit-rates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .feature-grid,
  .pricing-grid,
  .how-grid,
  .use-case-grid,
  .done-for-you,
  .feature.wide,
  .language-plan-grid {
    grid-template-columns: 1fr;
  }

  .use-case-grid li,
  .use-case-grid li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }

  .credit-rates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature.wide .feature-visual {
    min-height: 200px;
  }

  .studio-wheel {
    min-height: 360px;
  }

  .pipeline-steps li:not(:last-child)::after {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 4.25rem;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-copy {
    padding: 4rem 0 max(2.5rem, calc(36px + env(safe-area-inset-bottom, 0px)));
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }

  .credit-rates {
    grid-template-columns: 1fr;
  }

  .credit-rate.free {
    grid-column: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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