/* Que's Corner rewrite mock — same tokens as live quescorner.ca */
:root {
  --qc-bg: #ededea;
  --qc-surface: #f5ebe0;
  --qc-text: #2c2c2c;
  --qc-muted: #6d4c41;
  --qc-accent: #6d4c41;
  --qc-border: #d6ccc2;
  --qc-buy: #c62828;
  --qc-buy-hover: #a31f1f;
  --qc-hero: #154854;
  --qc-hero-soft: #1a5a68;
  --qc-hero-text: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 68rem;
  --radius: 0.85rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, #f5ebe0 0%, transparent 55%),
    var(--qc-bg);
  color: var(--qc-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--qc-accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  text-wrap: balance;
}

.banner {
  margin: 0;
  padding: 0.45rem 1.25rem;
  background: #2c2c2c;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

.banner a {
  color: #fff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 1.5rem;
  background: color-mix(in srgb, var(--qc-hero) 92%, #000);
  color: var(--qc-hero-text);
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

main {
  flex: 1;
}

.hero {
  background: linear-gradient(165deg, var(--qc-hero) 0%, var(--qc-hero-soft) 100%);
  color: var(--qc-hero-text);
  padding: 3.5rem 1.5rem 3.25rem;
  text-align: center;
}

.hero img {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

.hero .tagline {
  margin: 0 auto 0.85rem;
  max-width: 36rem;
  font-size: 1.35rem;
}

.hero .lede {
  margin: 0 auto 1.5rem;
  max-width: 38rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-light {
  background: #fff;
  color: var(--qc-hero);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-buy {
  background: var(--qc-buy);
  color: #fff;
}

.btn-buy:hover {
  background: var(--qc-buy-hover);
}

.section {
  padding: 3rem 1.5rem;
}

.inner {
  max-width: var(--max);
  margin: 0 auto;
}

.center {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--qc-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 1.15rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.card {
  background: var(--qc-surface);
  border: 1px solid var(--qc-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}

.card h3 {
  margin: 0 0 0.4rem;
}

.card p {
  margin: 0 0 0.85rem;
  color: var(--qc-muted);
}

.card a.more {
  font-weight: 700;
  text-decoration: none;
}

.card--hero-product {
  border-width: 2px;
  border-color: var(--qc-hero);
}

.step {
  counter-increment: steps;
}

.step h3::before {
  content: counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--qc-hero);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.steps {
  counter-reset: steps;
}

.drop {
  min-height: 9.5rem;
  border: 2px dashed var(--qc-hero);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem;
  text-align: center;
}

.drop strong {
  font-size: 1.05rem;
}

.drop span {
  color: var(--qc-muted);
  font-size: 0.95rem;
}

.price {
  font-size: 2rem;
  font-family: var(--font-display);
  margin: 0.2rem 0 0.8rem;
}

.muted {
  color: var(--qc-muted);
}

.footer {
  margin-top: auto;
  padding: 1.1rem 1.5rem;
  background: var(--qc-hero);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: #fff;
}

.hero .version {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.app-tour {
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #1a1a1a;
}

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #1b1b1b;
}

.tour-tabs button {
  flex: 1 1 auto;
  min-width: 6.5rem;
  padding: 0.75rem 0.6rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.tour-tabs button[aria-selected="true"] {
  background: var(--qc-hero);
  color: #fff;
}

.tour-frame {
  margin: 0;
}

.tour-frame img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  background: #2a3140;
}

.tour-frame figcaption {
  padding: 0.9rem 1.1rem 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

.tour-frame figcaption strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.includes {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.includes li {
  padding: 0.85rem 1rem;
  background: var(--qc-surface);
  border: 1px solid var(--qc-border);
  border-radius: 0.65rem;
}

.includes strong {
  display: block;
  margin-bottom: 0.15rem;
}

.mail-stage {
  background: #fff;
  border: 1px solid var(--qc-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-height: 22rem;
}

.scene-kicker {
  margin: 0 0 1rem;
  color: var(--qc-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.mail-stage[data-scene="3"] .stage-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 1fr);
}

.cert-stack {
  position: relative;
  background: #f7f4ef;
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: 14rem;
}

.cert-stack img {
  width: 100%;
  height: auto;
}

.cert-stack .cert-filled {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.sheet-card,
.out-stack {
  background: var(--qc-surface);
  border: 1px solid var(--qc-border);
  border-radius: 0.65rem;
  padding: 0.9rem 1rem;
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.out-stack {
  display: none;
}

.sheet-card {
  margin-top: 1.1rem;
}

.sheet-file {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--qc-muted);
}

.sheet-thumb {
  width: 100%;
  height: auto;
  border: 1px solid var(--qc-border);
  border-radius: 0.35rem;
  background: #fff;
}

.out-stack button {
  display: block;
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.65rem;
  text-align: left;
  border: 1px solid var(--qc-border);
  border-radius: 0.45rem;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.out-stack button[aria-pressed="true"] {
  border-color: var(--qc-hero);
  background: #eef6f7;
  font-weight: 700;
}

.mail-stage[data-scene="1"] .sheet-card,
.mail-stage[data-scene="2"] .sheet-card,
.mail-stage[data-scene="2"] .cert-filled,
.mail-stage[data-scene="3"] .sheet-card,
.mail-stage[data-scene="3"] .cert-filled,
.mail-stage[data-scene="3"] .out-stack {
  display: block;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mail-stage[data-scene="3"] .out-stack button {
  animation: file-in 0.45s ease both;
}

.mail-stage[data-scene="3"] .out-stack button:nth-of-type(1) { animation-delay: 0.05s; }
.mail-stage[data-scene="3"] .out-stack button:nth-of-type(2) { animation-delay: 0.12s; }
.mail-stage[data-scene="3"] .out-stack button:nth-of-type(3) { animation-delay: 0.19s; }
.mail-stage[data-scene="3"] .out-stack button:nth-of-type(4) { animation-delay: 0.26s; }

@keyframes file-in {
  from { opacity: 0; transform: translateX(0.8rem); }
  to { opacity: 1; transform: none; }
}

.scene-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 1rem 0 0;
}

.scene-dots button {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 0;
  background: var(--qc-border);
  cursor: pointer;
}

.scene-dots button[aria-current="true"] {
  background: var(--qc-hero);
}

.file-rail {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.file-rail button {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--qc-border);
  border-radius: 0.55rem;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.file-rail button[aria-pressed="true"] {
  border-color: var(--qc-hero);
  background: var(--qc-surface);
  font-weight: 700;
}

.sample-frame {
  background: #fff;
  border: 1px solid var(--qc-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sample-frame img {
  width: 100%;
}

.zoom-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1100px);
}

.zoom-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.zoom-dialog img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .hero {
    padding: 2.4rem 1.1rem;
  }

  .stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-stack .cert-filled,
  .sheet-card,
  .out-stack,
  .mail-stage[data-scene="3"] .out-stack button {
    transition: none;
    animation: none;
  }
}


