:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5f6878;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(23, 32, 51, 0.1);
  --pink: #db2777;
  --rose: #e11d48;
  --blue: #2563eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/*
  questioncards.app pages only. Sopu shares this file and must keep horizontal
  overflow visible. `clip` (not `hidden`) does not force the other axis to
  `auto`, so it does not create a scroll container and position: sticky keeps
  using the viewport. This is a safety net; overflowing boxes are fixed below.
*/
html:has(body.qc-page),
html:has(body.invite-body) {
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 114, 182, 0.2), transparent 35rem),
    radial-gradient(circle at 90% 12%, rgba(96, 165, 250, 0.2), transparent 32rem),
    #fff8fb;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

.nav,
.hero,
.content,
.site-footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

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

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  position: relative;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

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

.lang-switch ul {
  position: absolute;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 0.15rem;
  min-width: 12rem;
  margin: 0.4rem 0 0;
  padding: 0.45rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 0.75rem 2rem rgba(23, 32, 51, 0.12);
}

.lang-switch a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  background: rgba(23, 32, 51, 0.06);
}

.privacy-doc h2 {
  margin-top: 2rem;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-cta {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.hero {
  padding-block: 4.5rem 3rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
}

h1 {
  max-width: 50rem;
  margin: 0 auto;
  font-size: clamp(2.7rem, 10vw, 5.7rem);
  letter-spacing: -0.04em;
}

.lede {
  max-width: 42rem;
  margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
}

.lede-follow {
  margin-top: 1rem;
}

.content {
  padding-bottom: 5rem;
}

.sample {
  max-width: 54rem;
  margin-inline: auto;
}

.sample h2,
.more-pages h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
}

.question-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: questions;
}

.question-list li {
  position: relative;
  min-height: 5rem;
  padding: 1.35rem 1.25rem 1.35rem 4rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--card);
  box-shadow: 0 0.5rem 1.5rem rgba(42, 27, 55, 0.05);
  counter-increment: questions;
}

.question-list li::before {
  position: absolute;
  top: 1.25rem;
  left: 1.15rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  border-radius: 50%;
  content: counter(questions);
}

.app-cta {
  margin: 3rem auto;
  padding: clamp(1.5rem, 6vw, 3rem);
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #be185d, #e11d48 52%, #2563eb);
  border-radius: 1.5rem;
  box-shadow: 0 1.25rem 3rem rgba(190, 24, 93, 0.22);
}

.app-cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.7rem);
}

.app-cta p {
  max-width: 38rem;
  margin: 0.9rem auto 1.4rem;
  color: rgba(255, 255, 255, 0.9);
}

.button {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  background: #fff;
  border-radius: 0.9rem;
}

.site-mention {
  font-size: 0.875rem;
}

.site-mention a {
  text-underline-offset: 0.2em;
}

.more-pages {
  max-width: 54rem;
  margin: 4rem auto 0;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.topic-links a {
  padding: 0.65rem 0.9rem;
  color: #9d174d;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(190, 24, 93, 0.18);
  border-radius: 999px;
}

.topic-links a[aria-current="page"] {
  color: var(--muted);
  background: #f3f4f6;
  border-color: var(--line);
}

.site-footer {
  padding-block: 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer a {
  color: #9d174d;
  font-weight: 700;
}

.landing-hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  padding-block: 4rem;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 5.4rem);
}

.landing-hero .lede {
  margin-inline: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button-dark,
.button-light {
  display: inline-block;
  padding: 0.9rem 1.15rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0.9rem;
}

.button-dark {
  color: #fff;
  background: var(--ink);
}

.button-light {
  color: #9d174d;
  background: #fff;
  border: 1px solid rgba(190, 24, 93, 0.18);
}

.hero-card {
  width: min(100%, 31rem);
  height: auto;
  margin-inline: auto;
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 4rem rgba(42, 27, 55, 0.18);
}

.section {
  padding-block: 4.5rem;
}

.section-inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-white {
  background: #fff;
}

.feature-grid,
.topic-grid {
  display: grid;
  gap: 1rem;
}

.feature-card,
.topic-card,
.faq-list details {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0.5rem 1.5rem rgba(42, 27, 55, 0.04);
}

.feature-card h3,
.topic-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.feature-card p,
.topic-card p {
  margin: 0;
  color: var(--muted);
}

.topic-card {
  display: block;
  text-decoration: none;
}

.topic-card span {
  display: inline-block;
  margin-top: 0.85rem;
  color: #9d174d;
  font-weight: 800;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.category-list li {
  padding: 0.55rem 0.8rem;
  color: #7f1d4e;
  font-weight: 700;
  background: #fce7f3;
  border-radius: 999px;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 54rem;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  padding: 1.2rem 1.4rem;
  font-weight: 800;
  cursor: pointer;
}

.faq-list details p {
  margin: 0;
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.2rem;
  margin-bottom: 1rem;
}

@media (min-width: 48rem) {
  .nav,
  .hero,
  .content,
  .site-footer,
  .landing-hero,
  .section-inner {
    width: min(100% - 4rem, 72rem);
  }

  .hero {
    padding-block: 6.5rem 4rem;
  }

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

  .landing-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    padding-block: 5.5rem;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 64rem) {
  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.invite-body {
  min-height: 100vh;
}

.invite {
  display: grid;
  align-content: center;
  gap: 1.15rem;
  width: min(100% - 2rem, 26rem);
  min-height: 100vh;
  margin-inline: auto;
  padding-block: 2.5rem 2rem;
  text-align: center;
}

.invite-from {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  color: #9d174d;
  font-size: 0.95rem;
  font-weight: 700;
}

.invite-mark {
  position: relative;
  display: inline-block;
  width: 1.15rem;
  height: 0.9rem;
  background: currentColor;
  border-radius: 0.35rem;
}

.invite-mark::after {
  position: absolute;
  left: 0.22rem;
  bottom: -0.22rem;
  width: 0.28rem;
  height: 0.28rem;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  content: "";
}

.invite-card {
  display: grid;
  place-items: center;
  min-height: 15.5rem;
  padding: 2rem 1.5rem;
  color: #fff;
  background: linear-gradient(160deg, #be185d, #e11d48 48%, #2563eb);
  border-radius: 1.5rem;
  box-shadow: 0 1.25rem 3rem rgba(190, 24, 93, 0.22);
}

.invite-card p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.invite-card .invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(2.1rem, 9vw, 2.7rem);
  letter-spacing: 0.18em;
}

.invite-caption {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-weight: 600;
}

.invite-actions {
  display: grid;
  gap: 0.7rem;
}

.invite-open,
.invite-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.15rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
}

.invite-open {
  color: #fff;
  background: var(--ink);
}

.invite-mark-on-dark {
  background: #fff;
}

.invite-store {
  color: #9d174d;
  background: #fff;
  border: 1px solid rgba(190, 24, 93, 0.22);
}

.invite-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 0.15rem;
  padding: 0.65rem 1.1rem;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  background: #fff;
  border: 1px dashed rgba(190, 24, 93, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

.invite-copy:focus-visible {
  outline: 2px solid #9d174d;
  outline-offset: 2px;
}

.invite-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.invite-brand {
  margin: 0;
  font-weight: 800;
}

.invite-brand a {
  color: var(--ink);
  text-decoration: none;
}

.invite-play .invite-form {
  display: grid;
  gap: 0.85rem;
}

.invite-play .invite-field {
  display: grid;
  gap: 0.4rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.invite-play .invite-input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
}

.invite-play .invite-textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.invite-play .invite-form .invite-open {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.invite-play .invite-form .invite-open:disabled,
.invite-play .invite-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.invite-play .invite-error,
.invite-play .invite-status-title,
.invite-play .invite-locked {
  margin: 0;
  font-weight: 700;
}

.invite-play .invite-error,
.invite-play .invite-status-title {
  color: #9d174d;
}

.invite-play .invite-status-body,
.invite-play .invite-locked {
  color: var(--muted);
  font-size: 0.95rem;
}

.invite-play .invite-app-secondary {
  margin-top: 0.4rem;
}

.invite-play .invite-answers-heading {
  margin: 1.1rem 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.invite-play .invite-answers {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.invite-play .invite-answer {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.invite-play .invite-answer-name {
  margin: 0;
  color: #9d174d;
  font-size: 0.78rem;
  font-weight: 800;
}

.invite-play .invite-answer-text {
  margin: 0;
  font-weight: 600;
}

.invite-play .invite-report {
  justify-self: start;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.invite-play .invite-report:disabled {
  cursor: default;
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------------
   Question Cards marketing theme (questioncards.app)
   Clean, warm, product-first. Scoped to body.qc-page so the shared base
   above keeps serving Sopu and the invite / referral landings unchanged.
   ------------------------------------------------------------------------ */

body.qc-page {
  color-scheme: light;
  --ink: #17161a;
  --ink-2: #3d3b43;
  --muted: #6c6873;
  --line: rgba(23, 22, 26, 0.09);
  --line-strong: rgba(23, 22, 26, 0.16);
  --paper: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f4f0ea;
  --accent: #d4315e;
  --accent-ink: #a82249;
  --accent-soft: #fbe9ef;
  --pink: var(--accent);
  --rose: var(--accent);
  --blue: #4f5bd5;
  --card: var(--surface);
  --shadow-sm: 0 1px 2px rgba(23, 22, 26, 0.04), 0 8px 24px -16px rgba(23, 22, 26, 0.16);
  --shadow-md: 0 2px 4px rgba(23, 22, 26, 0.04), 0 24px 48px -24px rgba(23, 22, 26, 0.22);
  --shadow-lg: 0 8px 16px -8px rgba(23, 22, 26, 0.12), 0 48px 96px -32px rgba(23, 22, 26, 0.32);
  --radius-sm: 0.75rem;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Source Serif Pro", Georgia, "Times New Roman", serif;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--paper);
}

body.qc-page ::selection {
  color: #fff;
  background: var(--accent);
}

body.qc-page :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

body.qc-page h1,
body.qc-page h2,
body.qc-page h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

body.qc-page h3 {
  letter-spacing: -0.015em;
  line-height: 1.25;
}

body.qc-page p {
  text-wrap: pretty;
}

/* Header ---------------------------------------------------------------- */

body.qc-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 242, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

body.qc-page .nav {
  min-height: 4rem;
}

body.qc-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.qc-page .brand-mark {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px rgba(23, 22, 26, 0.06);
}

body.qc-page .brand-wordmark {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.qc-page .lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-2);
  font-weight: 600;
  background: transparent;
  border-color: var(--line-strong);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

body.qc-page .lang-switch summary::after {
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

body.qc-page .lang-switch summary:hover {
  background: var(--surface);
}

body.qc-page .lang-switch ul {
  max-height: min(70vh, 26rem);
  overflow: auto;
  background: var(--surface);
  border-color: var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-md);
}

body.qc-page .lang-switch a {
  color: var(--ink);
  font-weight: 500;
}

body.qc-page .lang-switch a:hover {
  background: var(--surface-2);
}

body.qc-page .lang-switch a[aria-current="true"] {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

body.qc-page .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

body.qc-page .nav-cta:hover {
  background: #000;
}

/* Shared type + buttons ------------------------------------------------- */

body.qc-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: none;
  text-transform: none;
}

body.qc-page .eyebrow::before {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

body.qc-page .lede,
body.qc-page .section-heading p,
body.qc-page .feature-card p,
body.qc-page .topic-card p,
body.qc-page .faq-list details p,
body.qc-page .site-footer {
  color: var(--muted);
}

body.qc-page .button-dark,
body.qc-page .button-light,
body.qc-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.2rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

body.qc-page .button-dark {
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 24px -14px rgba(23, 22, 26, 0.6);
}

body.qc-page .button-dark:hover {
  background: #000;
  border-color: #000;
  box-shadow: 0 14px 28px -14px rgba(23, 22, 26, 0.7);
  transform: translateY(-1px);
}

body.qc-page .button-light {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

body.qc-page .button-light:hover {
  border-color: var(--ink);
}

body.qc-page .button {
  color: var(--ink);
  background: #fff;
  border: 1px solid #fff;
}

body.qc-page .button:hover {
  background: var(--paper);
  transform: translateY(-1px);
}

body.qc-page .section {
  padding-block: 4.5rem;
}

body.qc-page .section-white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.qc-page .section-heading {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

body.qc-page .section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
}

body.qc-page .section-heading p {
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

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

body.qc-page .landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 3rem 3.5rem;
}

body.qc-page .landing-hero::before {
  position: absolute;
  /* Horizontal inset used to be -30%, which painted past the viewport and
     widened the page (~90px at 375px). Keep the glow inside the hero. */
  inset: -20rem 0 auto;
  z-index: 0;
  height: 44rem;
  pointer-events: none;
  background:
    radial-gradient(38rem 24rem at 72% 45%, rgba(212, 49, 94, 0.14), transparent 70%),
    radial-gradient(30rem 20rem at 20% 30%, rgba(79, 91, 213, 0.08), transparent 70%);
  content: "";
}

body.qc-page .landing-hero > * {
  position: relative;
  z-index: 1;
}

body.qc-page .hero-lead,
body.qc-page .hero-follow,
body.qc-page .shot-scroll {
  min-width: 0;
  max-width: 100%;
}

body.qc-page .landing-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

body.qc-page .landing-hero .lede {
  max-width: 36rem;
  margin: 1.15rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}

body.qc-page .hero-sample {
  width: min(100%, 17.5rem);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
}

body.qc-page .hero-sample .deck-card {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
}

body.qc-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

body.qc-page .hero-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

body.qc-page .hero-note svg {
  flex: 0 0 auto;
  color: var(--accent);
}

body.qc-page .hero-lead .stat-list {
  margin-top: 1.35rem;
}

body.qc-page .stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 34rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

body.qc-page .stat-list li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1rem 0 0;
}

body.qc-page .stat-list li + li {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

body.qc-page .stat-list strong {
  font-size: clamp(1.4rem, 3.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

body.qc-page .stat-list span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

body.qc-page .category-list {
  margin: 0;
  gap: 0.5rem;
}

body.qc-page .category-list li {
  padding: 0.45rem 0.8rem;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

/* Hero product stage ---------------------------------------------------- */

body.qc-page .hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 24rem);
  min-height: 30rem;
  margin-inline: auto;
}

body.qc-page .hero-bokeh {
  position: absolute;
  inset: 10% 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}

body.qc-page .hero-bokeh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
}

body.qc-page .hero-bokeh span:nth-child(1) {
  top: 6%;
  left: -4%;
  width: 11rem;
  height: 11rem;
  background: rgba(212, 49, 94, 0.28);
}

body.qc-page .hero-bokeh span:nth-child(2) {
  right: -8%;
  bottom: 8%;
  width: 12rem;
  height: 12rem;
  background: rgba(79, 91, 213, 0.18);
}

body.qc-page .hero-bokeh span:nth-child(3),
body.qc-page .hero-bokeh span:nth-child(4) {
  display: none;
}

body.qc-page .stage-card {
  position: absolute;
  z-index: 1;
  width: 12.5rem;
  padding: 1.1rem 1.1rem 1.25rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-md);
}

body.qc-page .stage-card-kicker {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

body.qc-page .stage-card-q {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

body.qc-page .stage-card-left {
  top: 10%;
  left: -14%;
  transform: rotate(-9deg);
}

body.qc-page .stage-card-left .stage-card-kicker {
  color: #8a6a00;
  background: #fbf1c8;
}

body.qc-page .stage-card-right {
  right: -14%;
  bottom: 9%;
  transform: rotate(8deg);
}

body.qc-page .stage-card-right .stage-card-kicker {
  color: #1e6b52;
  background: #dcf3ea;
}

body.qc-page .phone-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 18rem);
  padding: 0.55rem;
  background: linear-gradient(180deg, #2d2b33, #17161a 60%);
  border-radius: 2.6rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    var(--shadow-lg);
}

body.qc-page .phone-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.85rem;
  min-height: 33rem;
  padding: 1.15rem 0.85rem 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(18rem 14rem at 50% -10%, rgba(212, 49, 94, 0.14), transparent 70%),
    linear-gradient(180deg, #fdfbf8, #f5f0e9);
  border-radius: 2.1rem;
}

body.qc-page .phone-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

body.qc-page .phone-brand img {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.3rem;
}

body.qc-page .phone-brand span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.qc-page .phone-progress {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}

body.qc-page .phone-progress i {
  width: 1.2rem;
  height: 0.22rem;
  background: rgba(23, 22, 26, 0.12);
  border-radius: 999px;
}

body.qc-page .phone-progress i:first-child {
  background: var(--ink);
}

body.qc-page .play-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 17.5rem;
  padding: 1.3rem 1.2rem 1.2rem;
  color: #fbf6ef;
  background:
    radial-gradient(14rem 10rem at 100% 0%, rgba(212, 49, 94, 0.55), transparent 65%),
    radial-gradient(10rem 8rem at 0% 100%, rgba(79, 91, 213, 0.45), transparent 65%),
    linear-gradient(160deg, #2a1f2e, #17161a);
  border-radius: 1.35rem;
  box-shadow: 0 24px 40px -20px rgba(23, 22, 26, 0.5);
}

body.qc-page .play-card-kicker {
  margin: 0;
  color: rgba(251, 246, 239, 0.7);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.qc-page .play-card-q {
  margin: 0.9rem 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

body.qc-page .play-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  color: rgba(251, 246, 239, 0.6);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

body.qc-page .play-card-foot svg {
  width: 0.95rem;
  height: 0.95rem;
}

body.qc-page .phone-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

body.qc-page .phone-actions span {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

body.qc-page .phone-actions span:nth-child(2) {
  width: 2.9rem;
  height: 2.9rem;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

body.qc-page .phone-actions svg {
  width: 1rem;
  height: 1rem;
}

/* How it works ---------------------------------------------------------- */

body.qc-page .feature-grid {
  gap: 1rem;
}

body.qc-page .feature-card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 1.6rem 1.5rem 1.7rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

body.qc-page .step-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--accent-soft);
  border-radius: 0.7rem;
}

body.qc-page .feature-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

body.qc-page .feature-card p {
  margin: 0;
}

body.qc-page .mid-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* Deck showcase --------------------------------------------------------- */

/* The scroller is a plain block, not the grid. A grid's min-content size
   escapes overflow-x: auto and widens the page (especially in iOS Safari).
   The +2rem width matches the 1rem inset on .section-inner below 48rem. */
body.qc-page .deck-scroll {
  width: calc(100% + 2rem);
  max-width: calc(100% + 2rem);
  min-width: 0;
  margin-inline: -1rem;
  padding-inline: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  scrollbar-width: none;
  contain: inline-size;
}

body.qc-page .deck-scroll::-webkit-scrollbar {
  display: none;
}

body.qc-page .deck-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 13.5rem;
  gap: 1rem;
  width: max-content;
  margin: 0;
  padding: 0.5rem 0 1.25rem;
  list-style: none;
}

body.qc-page .deck-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  aspect-ratio: 3 / 4;
  padding: 1.25rem 1.25rem 1.2rem;
  scroll-snap-align: start;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.qc-page .deck-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

body.qc-page .deck-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  margin: 0;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

body.qc-page .deck-card-q {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

body.qc-page .deck-card-foot {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.qc-page .deck-card-foot img {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
}

body.qc-page .deck-tone-rose .deck-card-kicker {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

body.qc-page .deck-tone-amber .deck-card-kicker {
  color: #8f4b0f;
  background: #fdebd6;
}

body.qc-page .deck-tone-indigo .deck-card-kicker {
  color: #3f47a8;
  background: #e8e9fb;
}

body.qc-page .deck-tone-gold .deck-card-kicker {
  color: #7d5f00;
  background: #fbf1c8;
}

body.qc-page .deck-tone-mint .deck-card-kicker {
  color: #1e6b52;
  background: #dcf3ea;
}

body.qc-page .deck-tone-sky .deck-card-kicker {
  color: #1f5f8b;
  background: #dcedf9;
}

body.qc-page .deck-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

body.qc-page .deck-more li {
  padding: 0.45rem 0.85rem;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

body.qc-page .deck-more li.deck-more-count {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

/* Free question guides -------------------------------------------------- */

body.qc-page .topic-grid {
  gap: 1rem;
}

body.qc-page .topic-card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 1.4rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.qc-page .topic-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

body.qc-page .topic-card h3 {
  margin: 0;
  padding-right: 2rem;
  font-size: 1.15rem;
}

body.qc-page .topic-card p {
  margin: 0;
  font-size: 0.95rem;
}

body.qc-page .topic-card span {
  margin-top: 0.5rem;
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

body.qc-page .topic-card::after {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  color: var(--ink);
  font-size: 0.95rem;
  background: var(--surface-2);
  border-radius: 50%;
  content: "↗";
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.qc-page .topic-card:hover::after {
  color: #fff;
  background: var(--ink);
}

/* FAQ ------------------------------------------------------------------- */

body.qc-page .faq-list {
  gap: 0;
  max-width: 48rem;
  border-top: 1px solid var(--line-strong);
}

body.qc-page .faq-list details {
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

body.qc-page .faq-list summary {
  position: relative;
  padding: 1.25rem 3rem 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
}

body.qc-page .faq-list summary::-webkit-details-marker {
  display: none;
}

body.qc-page .faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  background: var(--surface-2);
  border-radius: 50%;
  transform: translateY(-50%);
  content: "+";
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body.qc-page .faq-list details[open] summary::after {
  color: #fff;
  background: var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

body.qc-page .faq-list details p {
  max-width: 42rem;
  margin: 0;
  padding: 0 3rem 1.4rem 0;
}

/* Final download panel -------------------------------------------------- */

body.qc-page .app-cta {
  position: relative;
  margin: 0;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 6vw, 4rem);
  overflow: hidden;
  color: #fbf6ef;
  background:
    radial-gradient(30rem 18rem at 85% 0%, rgba(212, 49, 94, 0.55), transparent 70%),
    radial-gradient(24rem 16rem at 0% 100%, rgba(79, 91, 213, 0.4), transparent 70%),
    linear-gradient(160deg, #2a1f2e, #17161a);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

body.qc-page .app-cta h2 {
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

body.qc-page .app-cta p {
  max-width: 34rem;
  margin: 1rem auto 1.75rem;
  color: rgba(251, 246, 239, 0.78);
  font-size: 1.05rem;
}

body.qc-page .app-cta .site-mention {
  margin: 1.25rem auto 0;
  color: rgba(251, 246, 239, 0.6);
  font-size: 0.85rem;
}

body.qc-page .app-cta .site-mention a {
  color: inherit;
}

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

body.qc-page .site-footer {
  padding-block: 2.5rem 3rem;
  font-size: 0.875rem;
}

body.qc-page .footer-links {
  margin-bottom: 1.25rem;
}

body.qc-page .footer-links a,
body.qc-page .site-footer a {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

body.qc-page .footer-links a:hover,
body.qc-page .site-footer a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Official App Store badge. Do not recolor, crop, or animate the artwork.
   Clear space is one-quarter of the on-screen badge height. */
.app-store-badge-link {
  --badge-height: 40px;
  display: inline-block;
  flex: 0 0 auto;
  margin: calc(var(--badge-height) / 4);
  line-height: 0;
  text-decoration: none;
}

.app-store-badge {
  display: block;
  height: var(--badge-height);
  width: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.app-store-qr {
  display: none;
}

.apple-trademark {
  max-width: 40rem;
  margin: 0.85rem auto 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.45;
}

/* Official Google Play badge. Do not recolor, crop, or animate the artwork.
   The PNGs carry transparent space around the badge, so the image is
   scaled until the visible badge equals --badge-height (same as the App
   Store badge) and the margin tops that space up to one-quarter of the
   badge height. "padded" = English file (41/250 px on every side),
   "tight" = localized files (29/250 px above and below only). */
.play-store-badge-link {
  --badge-height: 40px;
  --play-scale: 1.31;
  --play-inset-y: calc(var(--badge-height) * 0.152);
  --play-inset-x: 0px;
  display: inline-block;
  flex: 0 0 auto;
  margin: calc(var(--badge-height) / 4 - var(--play-inset-y))
    calc(var(--badge-height) / 4 - var(--play-inset-x));
  line-height: 0;
  text-decoration: none;
}

.play-store-badge-link--padded {
  --play-scale: 1.49;
  --play-inset-y: calc(var(--badge-height) * 0.245);
  --play-inset-x: calc(var(--badge-height) * 0.245);
}

.play-store-badge {
  display: block;
  height: calc(var(--badge-height) * var(--play-scale));
  width: auto;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.store-badges--hero {
  justify-content: flex-start;
  margin-inline: -10px;
}

/* Dark download panels: the badges sit on a plain white plate. */
.store-badges--panel {
  display: inline-flex;
  max-width: 100%;
  background: #fff;
  border-radius: 14px;
}

.store-badges--nav .app-store-badge-link,
.store-badges--nav .play-store-badge-link {
  --badge-height: 32px;
}

.store-badges--nav {
  flex-wrap: nowrap;
}

.store-badges--sticky {
  flex-wrap: nowrap;
}

body.qc-page .site-footer .store-badges {
  margin-bottom: 0.75rem;
}

.google-play-trademark {
  max-width: 40rem;
  margin: 0.35rem auto 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.45;
}

.invite-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

@media (min-width: 48rem) {
  .invite-download .app-store-qr {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
  }
}

/* Guide, keyword, and privacy pages ------------------------------------- */

body.qc-page .hero {
  padding-block: 3.5rem 2.5rem;
}

body.qc-page .hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  letter-spacing: -0.04em;
}

body.qc-page .hero .lede {
  font-size: clamp(1.02rem, 2.4vw, 1.15rem);
}

body.qc-page .sample h2,
body.qc-page .more-pages h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
}

body.qc-page .question-list li {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.4;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.qc-page .question-list li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.qc-page .question-list li::before {
  color: var(--accent-ink);
  font-family: var(--font-sans);
  background: var(--accent-soft);
}

body.qc-page .content .app-cta {
  margin: 3.5rem auto;
}

body.qc-page .topic-links a {
  color: var(--ink);
  font-weight: 600;
  background: var(--surface);
  border-color: var(--line-strong);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

body.qc-page .topic-links a:hover {
  border-color: var(--ink);
}

body.qc-page .topic-links a[aria-current="page"] {
  color: var(--muted);
  background: var(--surface-2);
  border-color: transparent;
}

body.qc-page .privacy-doc {
  color: var(--ink-2);
}

body.qc-page .privacy-doc h2 {
  font-size: 1.35rem;
}

body.qc-page .privacy-doc .button {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

body.qc-page .privacy-doc .doc-code {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

body.qc-page .privacy-doc .doc-code code {
  font: inherit;
  user-select: all;
  -webkit-user-select: all;
}

/* In-app browser hint (/otter-inapp.js injects the sheet + base styles) --- */

body.qc-page .otter-inapp__card {
  color: #fbf6ef;
  background: linear-gradient(160deg, #2a1f2e, #17161a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

body.qc-page .otter-inapp__intro {
  color: rgba(251, 246, 239, 0.72);
}

body.qc-page .otter-inapp__steps strong {
  color: #fff;
}

body.qc-page .otter-inapp__ok {
  color: var(--ink);
  background: #fff;
}

body.qc-page .otter-inapp__ok:focus-visible,
body.qc-page .otter-inapp__x:focus-visible {
  outline-color: var(--accent);
}

/* Sticky mobile CTA ----------------------------------------------------- */

body.qc-page .sticky-cta {
  display: none;
}

@media (max-width: 47.99rem) {
  body.qc-home .nav-cta,
  body.qc-page .store-badges--nav {
    display: none;
  }

  body.qc-home {
    padding-bottom: 5.75rem;
  }

  body.qc-home .sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: block;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(250, 247, 242, 0.88);
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
  }

  body.qc-home .sticky-cta {
    padding-block: 0.15rem calc(0.15rem + env(safe-area-inset-bottom));
  }

  /* Keep the in-app hint above the sticky download bar, not on top of it. */
  body.qc-home .otter-inapp {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  body.qc-page .hero-actions .button-dark,
  body.qc-page .hero-actions .button-light,
  body.qc-page .mid-cta .button-dark {
    width: 100%;
  }

  body.qc-page .hero-visual {
    min-height: 0;
    padding-block: 1rem 1.5rem;
  }

  body.qc-page .stage-card {
    width: 9.5rem;
    padding: 0.85rem 0.9rem 1rem;
  }

  body.qc-page .stage-card-q {
    font-size: 0.85rem;
  }

  body.qc-page .stage-card-left {
    top: 8%;
    left: -2%;
  }

  body.qc-page .stage-card-right {
    right: -2%;
    bottom: 8%;
  }

  body.qc-page .phone-shell {
    width: min(100%, 14.5rem);
  }

  body.qc-page .phone-screen {
    min-height: 29rem;
  }

  body.qc-page .play-card {
    min-height: 15rem;
  }

  body.qc-page .deck-row {
    grid-auto-columns: 14rem;
  }

  body.qc-page .deck-card {
    aspect-ratio: auto;
    min-height: 15rem;
  }
}

@media (min-width: 48rem) {
  body.qc-page .nav {
    min-height: 4.5rem;
  }

  body.qc-page .landing-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "lead card"
      "actions card";
    align-items: center;
    column-gap: 3rem;
    row-gap: 1.5rem;
    padding-block: 5rem 5.5rem;
  }

  body.qc-page .hero-lead {
    grid-area: lead;
  }

  body.qc-page .hero-follow {
    grid-area: actions;
  }

  body.qc-page .hero-sample {
    grid-area: card;
    justify-self: end;
    align-self: center;
    width: min(100%, 20rem);
    margin-inline: 0;
  }

  body.qc-page .section {
    padding-block: 6rem;
  }

  body.qc-page .section-heading {
    margin-bottom: 3rem;
  }

  body.qc-page .feature-card {
    padding: 2rem 1.75rem 2.1rem;
  }

  body.qc-page .deck-scroll {
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    contain: none;
  }

  body.qc-page .deck-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    margin: 0;
    padding: 0;
  }
}

@media (min-width: 64rem) {
  body.qc-page .deck-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.qc-page .deck-card {
    padding: 1.4rem 1.35rem 1.3rem;
  }
}

@media (min-width: 70rem) {
  body.qc-page .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.95fr);
    column-gap: 4rem;
  }

  body.qc-page .hero-visual {
    width: min(100%, 28rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.qc-page * {
    transition: none !important;
  }
}
/* Play Together marketing section (homepage #play-together) */
.feature-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .feature-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .feature-grid-4 {
    grid-template-columns: 1fr;
  }
}
.section-heading-tight {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.section-heading-tight h3 {
  margin: 0;
  font-size: 1.15rem;
}
.play-together-note {
  justify-content: center;
  margin-top: 0.75rem;
}

/* App screenshots and Play Together reveal demo ------------------------- */

body.qc-page .shot-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: none;
  contain: inline-size;
}

body.qc-page .shot-scroll::-webkit-scrollbar {
  display: none;
}

body.qc-page .shot-row {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  list-style: none;
}

body.qc-page .shot-card {
  flex: 0 0 auto;
  width: 8.75rem;
  min-width: 0;
  scroll-snap-align: start;
}

body.qc-page .shot-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 1.35rem;
  background: #17161a;
  box-shadow: var(--shadow-md);
}

body.qc-page .shot-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

body.qc-page .feature-grid-2 {
  grid-template-columns: minmax(0, 1fr);
}

body.qc-page .feature-card,
body.qc-page .deck-card,
body.qc-page .deck-card-q,
body.qc-page .reveal-face {
  min-width: 0;
  overflow-wrap: break-word;
}

body.qc-page .reveal-demo {
  max-width: 40rem;
  margin-top: 1.75rem;
}

body.qc-page .reveal-demo-q {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.qc-page .reveal-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

body.qc-page .reveal-name {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

body.qc-page .reveal-card {
  position: relative;
  display: grid;
  min-height: 6.75rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #1c1b20;
  color: #fff;
}

body.qc-page .reveal-face {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0.9rem 0.8rem;
  text-align: center;
  line-height: 1.3;
}

body.qc-page .reveal-face-private {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: qc-reveal-out 7.5s ease-in-out infinite;
}

body.qc-page .reveal-face-shown {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  opacity: 0;
  animation: qc-reveal-in 7.5s ease-in-out infinite;
}

@keyframes qc-reveal-in {
  0%, 34% { opacity: 0; }
  46%, 86% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes qc-reveal-out {
  0%, 34% { opacity: 1; }
  46%, 86% { opacity: 0; }
  100% { opacity: 1; }
}

@media (min-width: 40rem) {
  body.qc-page .feature-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  body.qc-page .shot-row {
    width: auto;
    max-width: 100%;
  }

  body.qc-page .shot-card {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.qc-page .reveal-face-private,
  body.qc-page .reveal-face-shown {
    animation: none;
  }

  body.qc-page .reveal-face-private {
    opacity: 0;
  }

  body.qc-page .reveal-face-shown {
    opacity: 1;
  }
}

/* ChatGPT-referred visitors only (inserted by _qc-chatgpt-landing.js). */
body.qc-page .qc-chatgpt-landing {
  width: min(100% - 2rem, 72rem);
  margin: 1rem auto 0;
}

body.qc-page .qc-chatgpt-inner {
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(42, 27, 55, 0.06);
}

body.qc-page .qc-chatgpt-deck {
  margin: 0;
  color: #9d174d;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.qc-page .qc-chatgpt-landing h2 {
  margin: 0.25rem 0 0.6rem;
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  line-height: 1.2;
}

body.qc-page .qc-chatgpt-questions {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
}

body.qc-page .qc-chatgpt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-top: 0.85rem;
}

body.qc-page .qc-chatgpt-play {
  padding: 0.7rem 1.3rem;
}

body.qc-page .qc-chatgpt-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Keep the hero close so the block reads as part of the first screen. */
body.qc-home .qc-chatgpt-landing ~ .landing-hero {
  padding-top: 1.5rem;
}

@media (min-width: 48rem) {
  body.qc-page .qc-chatgpt-landing {
    width: min(100% - 4rem, 72rem);
    margin-top: 1.5rem;
  }
}
