:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #0e0e12;
  --ink-2: #4b4b57;
  --ink-3: #767680;
  --line: #e3e1da;
  --blue: #3d5afe;
  --blue-dark: #2840d8;
  --yellow: #ffd23f;
  --yellow-ink: #1a1400;
  --green: #12b76a;
  --pink: #ff5c8a;
  --grey-block: #efeeea;
  --soft-blue: #eef1ff;
  --shadow: 0 20px 50px -28px rgba(14, 14, 18, 0.35);
}

/* Dark palette: the same values as the landing page (index.html), so every marketing page follows the system
   setting. The coloured feature blocks keep their own fixed text colours and read the same in both themes. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f13;
    --surface: #18181e;
    --ink: #f4f3ef;
    --ink-2: #bdbcc6;
    --ink-3: #80808c;
    --line: #2a2a33;
    --blue: #4d6bff;
    --blue-dark: #3d5afe;
    --pink: #ff6a94;
    --green: #1cc576;
    --grey-block: #1d1d24;
    --soft-blue: #1e2352;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f13;
  --surface: #18181e;
  --ink: #f4f3ef;
  --ink-2: #bdbcc6;
  --ink-3: #80808c;
  --line: #2a2a33;
  --blue: #4d6bff;
  --blue-dark: #3d5afe;
  --pink: #ff6a94;
  --green: #1cc576;
  --grey-block: #1d1d24;
  --soft-blue: #1e2352;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.wrap {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
}

.site-nav ul,
.footer-links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.site-nav ul a,
.footer-links a {
  text-decoration: none;
}

.site-nav ul a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 21px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.hero {
  padding: 74px 0 84px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  padding: 5px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin: 20px auto 0;
  font-size: clamp(42px, 7vw, 70px);
  font-weight: 800;
}

.scribble {
  text-decoration-color: var(--blue);
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 4px;
  text-underline-offset: 9px;
}

h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
}

h3 {
  font-size: 23px;
  font-weight: 750;
}

.hero-copy {
  max-width: 670px;
  margin: 22px auto 0;
  color: var(--ink-2);
  font-size: clamp(18px, 2.4vw, 21px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-note {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}

.mock-shell {
  max-width: 880px;
  margin: 54px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.mock-url {
  overflow: hidden;
  flex: 1;
  margin-left: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
}

.video-side {
  display: grid;
  min-height: 320px;
  padding: 30px;
  align-content: center;
  background: #17171f;
  color: #fff;
}

.play {
  display: grid;
  width: 66px;
  height: 46px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 13px;
  background: #ff0033;
}

.play::after {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  content: "";
}

.video-side strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  line-height: 1.2;
}

.video-side span {
  margin-top: 8px;
  color: #b8b8c5;
  font-size: 14px;
}

.text-side {
  padding: 28px;
}

.text-side small {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
}

.panel-brand .mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 9px;
}

.panel-chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-size: 11px;
  font-weight: 800;
}

.transcript-lines {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.transcript-lines p {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.timestamp {
  color: var(--blue);
  font-weight: 800;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 15px 0 0;
  color: var(--ink-2);
  font-size: 18px;
}

.prose {
  max-width: 780px;
}

.prose p {
  margin: 0 0 18px;
  color: var(--ink-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 225px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  counter-increment: steps;
  transform: rotate(-0.35deg);
}

.steps li:nth-child(even) {
  transform: rotate(0.35deg);
}

.steps li:nth-child(2)::before {
  background: var(--pink);
}

.steps li:nth-child(3)::before {
  background: var(--green);
}

.steps li:nth-child(4)::before {
  background: var(--yellow);
  color: var(--yellow-ink);
}

.steps li::before {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  content: counter(steps);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
}

.steps p {
  margin: 10px 0 0;
  color: var(--ink-2);
}

.step-emoji {
  position: absolute;
  top: 25px;
  right: 26px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  box-shadow: var(--shadow);
  font-size: 21px;
  transform: rotate(5deg);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.compare {
  display: grid;
  gap: 14px;
}

.compare article,
.language-card,
.limits {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.compare article:first-child {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
  transform: rotate(-1deg);
}

.compare article:nth-child(2) {
  border-color: transparent;
  background: var(--yellow);
  color: var(--yellow-ink);
  transform: rotate(0.8deg);
}

.compare article:nth-child(3) {
  border-color: transparent;
  background: var(--green);
  color: #fff;
  transform: rotate(-0.4deg);
}

.compare article:first-child p,
.compare article:nth-child(3) p {
  color: rgba(255, 255, 255, 0.9);
}

.compare article:nth-child(2) p {
  color: rgba(26, 20, 0, 0.8);
}

.card-emoji {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 20px;
  transform: rotate(-5deg);
}

.compare p,
.language-card p,
.limits p {
  margin: 9px 0 0;
  color: var(--ink-2);
}

.language-card {
  border: 0;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.colour-block {
  overflow: hidden;
  padding: 40px;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.colour-block.blue {
  background: var(--blue);
  color: #fff;
}

.colour-block.green {
  background: var(--green);
  color: #fff;
}

.colour-block p {
  color: rgba(255, 255, 255, 0.9);
}

.language-art {
  position: relative;
  min-height: 290px;
}

.tilt-card {
  position: absolute;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 14px;
}

.tilt-card strong {
  display: block;
  margin-bottom: 4px;
}

.tilt-card.one {
  top: 18px;
  left: 3%;
  width: min(86%, 330px);
  transform: rotate(-3deg);
}

.tilt-card.two {
  top: 116px;
  right: 1%;
  width: min(82%, 310px);
  background: var(--yellow);
  color: var(--yellow-ink);
  transform: rotate(2.5deg);
}

.tilt-card.three {
  bottom: 10px;
  left: 13%;
  background: var(--surface);
  transform: rotate(-1.5deg);
}

.emoji-face {
  position: absolute;
  top: -5px;
  right: 1%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 19px;
  background: var(--pink);
  box-shadow: var(--shadow);
  font-size: 34px;
  transform: rotate(7deg);
}

.language-card p {
  color: #eef0ff;
}

.language-list {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.language-list span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.limits {
  background: var(--grey-block);
  border-left: 6px solid var(--yellow);
  box-shadow: var(--shadow);
}

.limits ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 22px;
  color: var(--ink-2);
}

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

.faq details {
  padding: 0 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  color: var(--blue);
  content: "+";
  font-size: 24px;
  line-height: 1;
}

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

.faq details p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--ink-2);
}

.closing {
  padding: 70px 32px;
  border-radius: 30px;
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.closing p {
  max-width: 590px;
  margin: 16px auto 25px;
  color: #eef0ff;
  font-size: 18px;
}

.closing .button {
  border-color: #fff;
  background: #fff;
  color: #0e0e12; /* fixed: --ink turns light in dark mode and the label vanished on the white pill */
}

.closing .button:hover {
  border-color: var(--yellow);
  background: var(--yellow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-top: 78px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}

@media (max-width: 760px) {
  .wrap {
    width: min(1040px, calc(100% - 32px));
  }

  .site-nav .button {
    min-height: 40px;
    padding: 9px 15px;
    font-size: 14px;
  }

  .hero {
    padding: 48px 0 62px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .output-card,
  .split,
  .steps {
    grid-template-columns: 1fr;
  }

  .mock-shell {
    margin-top: 40px;
  }

  .video-side {
    min-height: 230px;
  }

  .section {
    padding: 62px 0;
  }

  .split {
    gap: 24px;
  }

  .steps li {
    min-height: 0;
    transform: none;
  }

  .steps li:nth-child(even),
  .compare article:first-child,
  .compare article:nth-child(2),
  .compare article:nth-child(3) {
    transform: none;
  }

  .colour-block {
    padding: 28px;
  }

  .language-art {
    min-height: 310px;
  }

  .closing {
    padding: 48px 22px;
  }

  .site-footer,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    gap: 0;
  }

  .footer-links a {
    display: inline-block;
    padding-block: 12px;
  }
}

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

  .button {
    transition: none;
  }
}
