/*
Theme Name: KGK QR Generator
Version: 1.0.0
*/
:root {
  --primary: #0d6efd;
  --primary-dark: #0a4ecf;
  --primary-soft: #eaf2ff;
  --dark: #0f172a;
  --dark-2: #111827;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background: linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(9, 24, 58, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  min-height: 78px;
}

.navbar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo,
.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0.65rem 0.85rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
}

.hero-section {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.18), transparent 28%),
    linear-gradient(135deg, #06162d 0%, #0f172a 35%, #112a52 100%);
  color: #fff;
  padding: 5.5rem 0 4rem;
}

.hero-copy {
  max-width: 620px;
}

.badge {
  font-size: 0.8rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 1rem 0 1.2rem;
  font-weight: 800;
}

.hero-copy p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-actions .btn {
  font-weight: 600;
}

.hero-meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  font-weight: 500;
}

.hero-meta i {
  color: #61d2ff;
  margin-right: 0.4rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.mini-qrcode-wrap {
  width: min(100%, 360px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.qr-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.qr-sample canvas {
  max-width: 100%;
  height: auto !important;
}

#qrCanvas {
  height: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.section-heading {
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0;
  color: var(--dark);
}

.generator-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.form-panel,
.result-panel,
.feature-box,
.step-card,
.accordion-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 2rem;
}

.qr-tips {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #dce8fb;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-soft), #f8fbff);
}

.qr-tips h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.qr-tips i { color: var(--primary); }
.qr-tips ul { margin: 0; padding: 0; list-style: none; }
.qr-tips li { display: flex; gap: 0.8rem; align-items: flex-start; }
.qr-tips li + li { margin-top: 0.85rem; }
.qr-tips li > i { width: 18px; flex-shrink: 0; margin-top: 0.25rem; text-align: center; }
.qr-tips li span { font-size: 0.8rem; line-height: 1.55; color: var(--gray-500); }
.qr-tips strong { display: block; color: var(--gray-700); font-weight: 600; }

@media (min-width: 992px) {
  .generator-panels > .col-lg-6 {
    display: flex;
  }

  .generator-panels .form-panel,
  .generator-panels .result-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .generator-panels #qrStatus {
    margin-top: auto !important;
    padding-top: 1.5rem;
  }

  .generator-panels .qr-output-box {
    flex: 1;
  }
}

.qr-type-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  border: 8px solid #e9e9ed;
  border-radius: 16px;
  background: #fff;
  overflow-x: auto;
}

.qr-type-tab {
  display: flex;
  flex: 1 0 135px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.65rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #525866;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
}

.qr-type-tab:hover { background: var(--primary-soft); }
.qr-type-tab.active { background: var(--primary-soft); color: var(--primary); }
.qr-type-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.qr-type-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border: 1px solid #e8e8ee;
  border-radius: 9px;
  color: var(--primary);
  font-size: 1.2rem;
}

.qr-type-tab.active .qr-type-icon { border-color: var(--primary); }

.form-label {
  font-weight: 600;
  color: var(--gray-700);
}

.form-select,
.form-control,
.form-control-color {
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  min-height: 52px;
  background-color: #fff;
  color: var(--dark);
}

.form-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.form-control[type="file"] {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 0.75rem 0 0;
  line-height: 50px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.form-control[type="file"]::file-selector-button {
  height: 50px;
  margin: 0 0.75rem 0 0;
  padding: 0 1rem;
  border: 0;
  border-right: 1px solid var(--gray-200);
  background: var(--primary-soft);
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.form-control[type="file"]:hover:not(:disabled):not([readonly])::file-selector-button {
  background: #dbeafe;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(13, 110, 253, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.form-control-color {
  min-height: 52px;
  width: 100%;
  padding: 0.25rem;
}

.range-labels {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.result-panel {
  padding: 1.5rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--gray-700);
}

.qr-output-box {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 24px;
  min-height: 420px;
  padding: 1rem;
}

.qr-card {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: white;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  padding: 1rem;
}

.qr-card canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.qr-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 6vw, 5rem);
  color: rgba(13, 110, 253, 0.12);
}

.download-options .btn {
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.download-options .btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(13, 110, 253, 0.18);
}

.features-section,
.steps-section,
.faq-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.feature-box {
  padding: 2rem 1.5rem;
  min-height: 220px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-soft), #dfeeff);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-box h3,
.step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.feature-box p,
.step-card p,
.accordion-body {
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 0;
}

.steps-copy h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0;
}

.step-card {
  padding: 1.5rem;
  height: 100%;
}

.step-number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-button {
  font-weight: 600;
  color: var(--dark);
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
}

.accordion-button:not(.collapsed) {
  background: rgba(234, 242, 255, 0.8);
  color: var(--dark);
  box-shadow: none;
}

.accordion-body {
  padding: 1rem 1.25rem 1.4rem;
}

.site-footer {
  padding: 1.5rem 0;
  background: #0b1729;
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 4rem;
  }

  .hero-card {
    min-height: 330px;
  }
}

@media (max-width: 767.98px) {
  html { scroll-padding-top: 80px; }
  body { font-size: 0.9rem; }
  .navbar { min-height: 64px; }
  .navbar-toggler { min-width: 44px; min-height: 44px; padding: 0.25rem 0.5rem; }
  .brand-logo, .footer-logo { width: 34px; height: 34px; flex-shrink: 0; }
  .navbar .nav-link { font-size: 0.9rem; }

  .hero-section { padding: 2.5rem 0; }
  .hero-copy h1 { font-size: clamp(1.85rem, 7vw, 2.5rem); line-height: 1.15; letter-spacing: -0.035em; }
  .hero-copy p { font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.5rem; }
  .badge { font-size: 0.72rem; white-space: normal; line-height: 1.4; }
  .hero-meta { font-size: 0.8rem; gap: 0.75rem 1rem !important; }
  .hero-actions .btn { font-size: 0.95rem; min-height: 44px; }
  .hero-card { min-height: 0; border-radius: 20px; }
  .mini-qrcode-wrap { width: min(100%, 280px); padding: 1rem; border-radius: 18px; }
  .qr-sample { min-height: 0; }

  .generator-section.py-5, .features-section.py-5,
  .steps-section.py-5, .faq-section.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .section-heading.mb-5 { margin-bottom: 1.5rem !important; }
  .section-heading h2, .steps-copy h2 { font-size: clamp(1.5rem, 5.5vw, 1.9rem); line-height: 1.2; }
  .eyebrow { font-size: 0.7rem; margin-bottom: 0.55rem; }
  .generator-panels > div, .form-panel, .result-panel { min-width: 0; }
  .form-panel, .result-panel, .feature-box, .step-card { padding: 1.25rem 1rem; border-radius: 18px; }
  .form-label, .form-check-label, .result-header { font-size: 0.875rem; }
  .form-check-label { padding-block: 0.35rem; }
  .form-check-input { margin-top: 0.55rem; }
  .form-text { font-size: 0.78rem; line-height: 1.55; overflow-wrap: anywhere; }
  /* Keep editable text readable without triggering mobile input zoom. */
  .form-control, .form-select { font-size: 1rem; min-height: 48px; }
  .form-control[type="file"] { font-size: 0.875rem; }
  .form-control[type="file"]::file-selector-button { padding-inline: 0.75rem; }
  .qr-tips { padding: 1rem; }
  .qr-output-box { min-height: 0; padding: 1rem; border-radius: 18px; }
  .qr-card { min-width: 0; width: min(100%, 280px); padding: 0.75rem; border-radius: 16px; }
  .result-panel .btn { min-height: 44px; font-size: 0.875rem; }

  .feature-box { min-height: 0; }
  .feature-icon { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 14px; }
  .feature-box h3, .step-card h3 { font-size: 1.1rem; }
  .feature-box p, .step-card p, .accordion-body { font-size: 0.875rem; line-height: 1.65; }
  .step-number { width: 40px; height: 40px; }
  .accordion-button { font-size: 0.875rem; line-height: 1.5; padding: 1rem; }
  .accordion-body { padding: 1rem; }
  .site-footer { padding: 1.25rem 0; }
  .footer-brand { font-size: 0.875rem; }
  .site-footer p { font-size: 0.75rem; line-height: 1.6; }
  .navbar-brand {
    font-size: 0.88rem;
    max-width: calc(100% - 65px);
    white-space: normal;
  }

  .brand-logo { flex-shrink: 0; }

  .hero-card { padding: 1rem; }
  .hero-section {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    margin-top: 0.8rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-panel,
  .result-panel,
  .feature-box,
  .step-card {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .site-footer .container {
    text-align: center;
  }
}

/* Keep dense contact codes large and crisp within the responsive preview. */
.generator-panels .qr-card { width: min(100%, 400px); }
#qrCanvas { image-rendering: pixelated; }

/* Compact hero with a decorative CSS background, no external image download. */
.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4rem 0;
  background: radial-gradient(ellipse at 78% 35%, #244989 0%, transparent 48%),
    radial-gradient(ellipse at 8% 100%, #16385c 0%, transparent 50%), #0b142b;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.13;
  background-image: linear-gradient(#8cabdf 1px, transparent 1px), linear-gradient(90deg, #8cabdf 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 20%, #000);
  pointer-events: none;
}
.hero-section::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -190px;
  top: -220px;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  box-shadow: 0 0 0 55px #ffffff05, 0 0 0 110px #ffffff03;
  z-index: -1;
  pointer-events: none;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 0.6rem; color: #a9d8ff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.hero-kicker > span { width: 7px; height: 7px; border-radius: 50%; background: #79d9ee; box-shadow: 0 0 12px #79d9ee60; }
.hero-copy { max-width: 570px; }
.hero-copy h1 { font-size: clamp(2rem, 3.1vw, 3rem); line-height: 1.15; letter-spacing: -0.035em; margin: 1.15rem 0; }
.hero-copy p { max-width: 520px; font-size: 1rem; line-height: 1.75; color: #c5d2e7; margin-bottom: 1.5rem; }
.hero-actions .btn { font-size: 0.95rem; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.hero-meta { font-size: 0.8rem; color: #bdcce3; margin-bottom: 0; }
.hero-card { display: flex; flex-direction: column; gap: 1.5rem; min-height: 0; max-width: 460px; margin-left: auto; padding: 1.5rem; background: #ffffff0b; border: 1px solid #ffffff24; border-radius: 24px; box-shadow: 0 24px 65px #020b2433; }
.hero-card-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.7rem; width: 100%; color: #e4edff; font-size: 0.8rem; font-weight: 500; }
.hero-card-heading i { margin-right: 0.4rem; color: #94c9ff; }
.hero-ready { font-size: 0.68rem; border-radius: 20px; padding: 0.25rem 0.6rem; color: #a6f0d7; background: #3acd9517; }
.hero-card .mini-qrcode-wrap { width: min(100%, 290px); background: white; padding: 1.1rem; border-radius: 20px; box-shadow: 0 15px 35px #020b2426; }
.hero-card .qr-sample { min-height: 0; }
.hero-qr-caption { margin: 0.6rem 0 0; text-align: center; color: #64748b; font-size: 0.75rem; }
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section .row > .col-lg-6 { width: 50%; }
  .hero-card { padding: 1rem; }
  .hero-meta { gap: 0.65rem !important; }
}
@media (max-width: 767.98px) {
  .hero-section { padding: 2.5rem 0; }
  .hero-copy h1 { font-size: clamp(1.85rem, 6.5vw, 2.3rem); }
  .hero-copy p { font-size: 0.9rem; line-height: 1.65; }
  .hero-card { margin: 0 auto; width: 100%; padding: 1.1rem; gap: 1rem; }
  .hero-kicker { font-size: 0.65rem; }
  .hero-card .mini-qrcode-wrap { max-width: 250px; }
}

.hero-qr-decoration { display: block; font-size: clamp(8rem, 16vw, 12rem); line-height: 1; padding: 1rem; color: var(--primary); }

.benefits-heading, .workflow-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.benefits-heading h2, .workflow-heading h2 { margin: 0; color: var(--dark); font-size: clamp(1.65rem, 2.5vw, 2.25rem); font-weight: 750; line-height: 1.2; letter-spacing: -0.035em; }
.benefits-heading > p { margin: 0; color: var(--gray-500); font-size: 0.92rem; line-height: 1.7; }
.benefit-card { height: 100%; padding: 1.6rem; border: 1px solid #dfe7f2; background: #fff; border-radius: 20px; box-shadow: 0 6px 20px #0f172a04; display: flex; flex-direction: column; }
.benefit-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1.4rem; }
.benefit-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--primary); background: var(--primary-soft); font-size: 1.15rem; flex-shrink: 0; }
.benefit-tag { font-size: 0.7rem; font-weight: 600; color: #64748b; background: #f6f8fc; padding: 0.35rem 0.6rem; border-radius: 20px; }
.benefit-card h3, .workflow-list h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.65rem; letter-spacing: -0.02em; }
.benefit-card p, .workflow-list p { font-size: 0.88rem; line-height: 1.75; color: var(--gray-500); margin: 0 0 1.3rem; }
.benefit-detail { margin-top: auto; padding-top: 1rem; border-top: 1px solid #edf1f7; color: var(--gray-700); font-size: 0.76rem; }
.benefit-detail i { color: var(--primary); margin-right: 0.4rem; }
.workflow-section { padding-top: 1rem !important; }
.workflow-surface { padding: 2.5rem; border-radius: 26px; background: linear-gradient(120deg, #e5efff, #f8fbff); border: 1px solid #d7e5fb; }
.workflow-heading .btn { font-size: 0.85rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.workflow-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin: 0; padding: 0; }
.workflow-list li { position: relative; padding-top: 0.5rem; }
.workflow-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--primary); border: 1px solid #ccddf7; font-size: 0.85rem; font-weight: 700; margin-bottom: 1.15rem; }
.workflow-list li:not(:last-child)::after { content: ''; position: absolute; top: 30px; left: 60px; right: -1rem; height: 1px; background: #c9daf3; }
.workflow-list p { margin-bottom: 0; max-width: 280px; }
@media (min-width: 768px) and (max-width: 991.98px) { .benefit-card { padding: 1.15rem; } .benefit-top { flex-wrap: wrap; } .benefits-heading { align-items: flex-start; } }
@media (max-width: 767.98px) {
 .benefits-heading, .workflow-heading { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
 .benefits-heading h2, .workflow-heading h2 { font-size: 1.6rem; }
 .benefits-heading > p { font-size: 0.85rem; }
 .benefit-card { padding: 1.25rem; }
 .benefit-top { margin-bottom: 1rem; }
 .workflow-surface { padding: 1.4rem; border-radius: 20px; }
 .workflow-list { grid-template-columns: 1fr; gap: 1.5rem; }
 .workflow-list li { padding: 0 0 0 60px; min-height: 64px; }
 .workflow-number { position: absolute; left: 0; top: 0; }
 .workflow-list li:not(:last-child)::after { top: 52px; bottom: -1rem; left: 21px; right: auto; width: 1px; height: auto; }
 .workflow-list p { max-width: none; font-size: 0.85rem; }
 .benefit-card h3, .workflow-list h3 { font-size: 1.05rem; }
}

.faq-refresh { border-top: 1px solid #e1eaf6; background: linear-gradient(180deg, #f8fbff, #f1f6fd); }
.faq-intro-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--primary); background: var(--primary-soft); font-size: 1.4rem; margin-bottom: 1.25rem; }
.faq-intro .eyebrow { display: block; }
.faq-intro h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.2; margin-bottom: 1rem; }
.faq-intro p { max-width: 310px; font-size: 0.9rem; line-height: 1.75; color: var(--gray-500); }
.faq-return { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px; color: var(--primary); font-size: 0.85rem; font-weight: 600; }
.faq-return:hover { color: var(--primary-dark); text-decoration: underline; }
.faq-refresh .accordion-item { background: #fff; border: 1px solid #dfe7f2; border-radius: 16px; margin-bottom: 0.75rem; box-shadow: none; }
.faq-refresh .accordion-button { display: flex; gap: 1rem; font-size: 0.95rem; line-height: 1.5; padding: 1.15rem 1.25rem; border-radius: 0; background: #fff; }
.faq-refresh .accordion-button:not(.collapsed) { background: #f1f6ff; color: var(--primary-dark); box-shadow: none; }
.faq-refresh .accordion-button::after { flex-shrink: 0; margin-left: auto; width: 16px; height: 16px; background-size: 16px; }
.faq-refresh .accordion-button:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; box-shadow: none; }
.faq-index { color: #7c91b0; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; }
.faq-refresh .accordion-body { padding: 1rem 1.25rem 1.25rem 3.25rem; font-size: 0.875rem; line-height: 1.8; color: var(--gray-500); }
@media (max-width: 767.98px) {
 .faq-intro-icon { margin-bottom: 1rem; }
 .faq-intro h2 { font-size: 1.6rem; }
 .faq-intro p { max-width: none; font-size: 0.85rem; }
 .faq-refresh .accordion-button { font-size: 0.85rem; padding: 1rem; gap: 0.65rem; }
 .faq-refresh .accordion-body { font-size: 0.83rem; padding: 0.9rem 1rem 1.1rem; }
}

/* Consistent mobile spacing across the page. */
@media (max-width: 767.98px) {
  .container { padding-right: 16px; padding-left: 16px; }
  .hero-section { padding: 2rem 0; }
  .hero-section .row { --bs-gutter-y: 1.5rem; }
  .hero-copy h1 { margin: 0.85rem 0 1rem; }
  .hero-copy p { margin-bottom: 1.25rem; }
  .hero-actions { gap: 0.75rem !important; }
  .hero-meta { margin-top: 1.25rem !important; }
  .generator-section.py-5, .benefits-section.py-5, .faq-refresh.py-5 {
    padding-top: 2rem !important; padding-bottom: 2rem !important;
  }
  .workflow-section.py-5 { padding-top: 0.5rem !important; padding-bottom: 2rem !important; }
  .section-heading.mb-5 { margin-bottom: 1.25rem !important; }
  .qr-type-mobile.mb-4 { margin-bottom: 1rem !important; }
  .generator-panels { --bs-gutter-y: 1rem; }
  .form-panel, .result-panel { padding: 1.1rem 1rem; }
  .form-label { margin-bottom: 0.5rem; }
  #vcardFields .row { --bs-gutter-y: 1rem; }
  .qr-tips { margin-top: 1rem; }
  #qrStatus { margin-top: 1rem !important; padding-top: 0; }
  .result-header { margin-bottom: 0.75rem; }
  .qr-output-box { padding: 0.75rem; }
  .result-panel > .mt-4 { margin-top: 1rem !important; }
  .result-panel > .d-flex { gap: 0.75rem !important; }
  .benefits-heading, .workflow-heading { gap: 0.75rem; margin-bottom: 1.25rem; }
  .benefits-section .row { --bs-gutter-y: 0.85rem; }
  .benefit-card { padding: 1.15rem; }
  .benefit-card p { margin-bottom: 1rem; }
  .workflow-surface { padding: 1.25rem 1rem; }
  .workflow-heading .btn { width: 100%; margin-top: 0.25rem; }
  .workflow-list { gap: 1.25rem; }
  .workflow-list li { padding-left: 56px; }
  .workflow-list li:not(:last-child)::after { bottom: -0.75rem; }
  .faq-refresh .row { --bs-gutter-y: 1.25rem; }
  .faq-intro-icon { margin-bottom: 0.75rem; }
  .faq-intro h2 { margin-bottom: 0.75rem; }
  .faq-intro p { margin-bottom: 0.5rem; }
  .faq-refresh .accordion-item:last-child { margin-bottom: 0; }
  .faq-refresh .accordion-button { padding: 0.9rem 1rem; }
  .site-footer .container { gap: 0.75rem !important; }
}
/* Account for the toolbar when editing the site while signed in. */
@media (min-width: 783px) { body.admin-bar .site-header { top: 32px; } }
@media (min-width: 601px) and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
