/**
 * FastQR — Website QR generator CONTENT sections only
 * Scoped: never affects header, footer, or tool form above .wqr-landing
 */

.wqr-landing {
  --wqr-max: 72rem;
  --wqr-content: 42rem;
  --wqr-ink: #1c1917;
  --wqr-body: #44403c;
  --wqr-muted: #78716c;
  --wqr-line: rgba(251, 191, 36, 0.35);
  --wqr-accent: #ea580c;
  --wqr-accent-dark: #c2410c;
  --wqr-gold: #fbbf24;
  --wqr-cream: #fffbeb;
  /* --wqr-surface: #fffaec; */
  --wqr-surface-2: #fafaf9;
  --wqr-radius: 18px;
  --wqr-radius-sm: 12px;
  --wqr-shadow: 0 1px 2px rgba(28, 25, 23, 0.04),
    0 12px 40px rgba(120, 53, 15, 0.07);
  --wqr-shadow-hover: 0 16px 48px rgba(120, 53, 15, 0.11);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

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

/* Section rhythm */
.wqr-block {
  position: relative;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  scroll-margin-top: 1.25rem;
}

.wqr-block + .wqr-block {
  border-top: 1px solid rgba(231, 229, 228, 0.9);
}

.wqr-block--band {
  background: #ffffff;
  border-radius: var(--wqr-radius);
  border-top: none;
}

.wqr-block--band + .wqr-block {
  border-top: none;
}

.wqr-block--band + .wqr-block--band {
  margin-top: 0;
}

.wqr-block__inner {
  max-width: var(--wqr-max);
  margin: 0 auto;
}

/* Headings — override global uppercase where needed */
.wqr-landing .wqr-h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--wqr-ink);
  text-align: center;
  text-transform: none;
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  position: relative;
  padding-bottom: 0.85rem;
}

.wqr-landing .wqr-h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 3.5rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--wqr-gold), var(--wqr-accent));
}

.wqr-landing .wqr-h2--left {
  text-align: left;
}

.wqr-landing .wqr-h2--left::after {
  left: 0;
  transform: none;
}

/* Cards */
.wqr-card {
  background: #fffaec;
  border: 1px solid #e7e5e4;
  border-radius: var(--wqr-radius);
  box-shadow: var(--wqr-shadow);
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.wqr-card:hover {
  box-shadow: var(--wqr-shadow-hover);
  border-color: rgba(251, 191, 36, 0.45);
}

.wqr-card--flush {
  padding: 0;
  overflow: hidden;
}

/* Prose */
.wqr-prose {
  max-width: var(--wqr-content);
  margin: 0 auto;
}

.wqr-prose p {
  margin: 0 0 1.1rem;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--wqr-body);
}

.wqr-prose p:last-child {
  margin-bottom: 0;
}

.wqr-prose strong {
  color: var(--wqr-ink);
  font-weight: 600;
}

.wqr-prose code {
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Lists */
.wqr-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: var(--wqr-content);
  margin-inline: auto;
}

.wqr-list li {
  position: relative;
  padding: 0.50rem 0 0.85rem 2.35rem;
  border-bottom: 1px solid #f5f5f4;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--wqr-body);
}

.wqr-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wqr-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wqr-gold), var(--wqr-accent));
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.wqr-list li strong {
  color: var(--wqr-ink);
  display: inline;
}

.wqr-list--compact li {
  padding-top: 0.30rem;
  padding-bottom: 0.65rem;
}

.wqr-list--compact li::before {
  top: 0.85rem;
}

/* How it works — grid */
.wqr-steps-wrap {
  margin-top: 0.5rem;
}

.wqr-landing .wqr-steps-wrap .website-how-it-works-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
  padding: 0;
}

.wqr-landing .wqr-steps-wrap .website-step {
  height: 100%;
  border-radius: var(--wqr-radius-sm);
  border: 1px solid #e7e5e4;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wqr-landing .wqr-steps-wrap .website-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--wqr-shadow);
}

.wqr-landing .wqr-steps-wrap .website-step-icon {
  transform: none;
  border-radius: 14px;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.25rem;
}

.wqr-landing .wqr-steps-wrap .website-step-icon i {
  transform: none;
}

.wqr-landing .wqr-steps-wrap .website-step:hover .website-step-icon {
  transform: scale(1.05);
  border-radius: 14px;
}

.wqr-landing .wqr-steps-wrap .website-step:hover .website-step-icon i {
  transform: none;
}

.wqr-landing .wqr-steps-wrap .website-step h3 {
  text-align: left;
  font-size: 1.05rem;
}

.wqr-landing .wqr-steps-wrap .website-step h3::after {
  left: 0;
  transform: none;
}

.wqr-landing .wqr-steps-wrap .website-step p {
  text-align: left;
  font-size: 0.98rem;
  color: var(--wqr-body);
}

/* Related tools links */
.wqr-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--wqr-content);
  margin-inline: auto;
}

.wqr-link-list li {
  margin-bottom: 0.65rem;
}

.wqr-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--wqr-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 88, 12, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.wqr-link-list a::before {
  content: "→";
  font-size: 0.85em;
  opacity: 0.7;
}

.wqr-link-list a:hover {
  color: var(--wqr-accent-dark);
  border-bottom-color: rgba(234, 88, 12, 0.55);
}

.wqr-link-list span {
  font-weight: 400;
  color: var(--wqr-muted);
}

/* CTA */
.wqr-cta {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.wqr-cta .wqr-prose p {
  text-align: center;
}

.wqr-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: none;
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wqr-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.38);
  color: #fff !important;
}

.wqr-cta-btn:focus-visible {
  outline: 3px solid rgba(234, 88, 12, 0.45);
  outline-offset: 3px;
}

/* FAQ */
.wqr-faq-shell {
  max-width: 48rem;
  margin: 0 auto;
}

.wqr-landing .wqr-faq-shell .website-faq-content {
  border: 1px solid #e7e5e4;
  border-radius: var(--wqr-radius);
  box-shadow: var(--wqr-shadow);
  padding: 0.5rem clamp(0.65rem, 2vw, 1rem);
  background: var(--wqr-surface);
}

.wqr-landing .wqr-faq-shell .website-faq-item {
  border-bottom: 1px solid #f5f5f4;
  margin-bottom: 0;
  border-radius: var(--wqr-radius-sm);
  overflow: hidden;
}

.wqr-landing .wqr-faq-shell .website-faq-item:last-child {
  border-bottom: none;
}

.wqr-landing .wqr-faq-shell .website-faq-question {
  padding: 1.05rem 1.1rem;
  font-size: clamp(0.98rem, 2vw, 1.06rem);
  border-radius: var(--wqr-radius-sm);
  color: var(--wqr-ink);
  gap: 1rem;
}

.wqr-landing .wqr-faq-shell .website-faq-question:hover {
  background: linear-gradient(90deg, #fffbeb, transparent);
  color: var(--wqr-accent-dark);
}

.wqr-landing .wqr-faq-shell .website-faq-question:focus-visible {
  outline: 2px solid var(--wqr-accent);
  outline-offset: -2px;
}

.wqr-landing .wqr-faq-shell .website-faq-answer {
  padding: 0 1.1rem;
}

.wqr-landing .wqr-faq-shell .website-faq-answer p {
  padding: 0 0 1.1rem;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--wqr-body);
}

/* Muted blocks (use cases + trust) — tidy without heavy chrome */
.wqr-block--soft .website-why-choose-content {
  gap: clamp(1rem, 2vw, 1.25rem);
}

.wqr-landing .wqr-block--soft .website-why-choose-card {
  border-radius: var(--wqr-radius-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wqr-landing .wqr-block--soft .website-why-choose-card:hover {
  box-shadow: var(--wqr-shadow);
}

.wqr-block--soft .website-smart-share-content {
  padding: clamp(1rem, 3vw, 2.5rem);
  border-radius: var(--wqr-radius-sm);
  background: #ffffff;
  border: 1px solid #e7e5e4;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.04);
}

.wqr-block--soft .wqr-trust-grid h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wqr-ink);
  margin: 1.25rem 0 0.4rem;
}

.wqr-block--soft .wqr-trust-grid h3:first-child {
  margin-top: 0;
}

.wqr-block--soft .wqr-trust-grid p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--wqr-body);
  font-size: 1rem;
}

.wqr-block--soft .wqr-trust-grid p:last-child {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .wqr-landing .wqr-steps-wrap .website-how-it-works-content {
    grid-template-columns: 1fr;
  }

  .wqr-list li {
    padding-left: 2rem;
    font-size: 0.98rem;
  }
}

/* How-it-works card padding when flush */
.wqr-landing .wqr-card--flush.wqr-steps-wrap .website-how-it-works-content {
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

/* Related list muted tail */
.wqr-link-desc {
  font-weight: 400;
  color: var(--wqr-muted);
}

/* CTA: tighten last line */
.wqr-cta .wqr-prose p:last-child {
  margin-bottom: 0;
  margin-top: 0.35rem;
}

/* Unify H2 underlines (override stacked legacy ::after rules) */
.wqr-landing h2.wqr-h2.website-intro-title,
.wqr-landing h2.wqr-h2.website-how-it-works-title,
.wqr-landing h2.wqr-h2.website-why-choose-title,
.wqr-landing h2.wqr-h2.website-smart-share-title,
.wqr-landing h2.wqr-h2.website-accessible-title,
.wqr-landing h2.wqr-h2.website-faq-title {
  position: relative;
  text-transform: none;
  letter-spacing: -0.02em;
}

.wqr-landing h2.wqr-h2.website-intro-title::after,
.wqr-landing h2.wqr-h2.website-how-it-works-title::after,
.wqr-landing h2.wqr-h2.website-why-choose-title::after,
.wqr-landing h2.wqr-h2.website-smart-share-title::after,
.wqr-landing h2.wqr-h2.website-accessible-title::after,
.wqr-landing h2.wqr-h2.website-faq-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 3.5rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--wqr-gold), var(--wqr-accent));
  box-shadow: none;
  animation: none;
}

/* Remove decorative orbs behind FAQ (cleaner card) */
.wqr-landing .wqr-faq-shell .website-faq-content::before,
.wqr-landing .wqr-faq-shell .website-faq-content::after {
  display: none;
}

.wqr-landing .wqr-faq-shell .website-faq-content {
  position: relative;
  overflow: hidden;
}
