/* QIQR public / marketing pages (landing, about, pricing). Tokens live in style.css. */

.lp-section {
  width: 100%;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px;
}

.lp-section--alt {
  max-width: none;
  background: var(--surface-alt);
}

.lp-section--alt > .lp-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* Buttons */
.cta-btn {
  background: var(--brand);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  border: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.cta-btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.cta-btn--light {
  background: #fff;
  color: var(--brand);
}

.cta-btn--light:hover {
  background: #f0f4f8;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e3e8ef 100%);
  padding: 80px 40px 72px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.6;
}

.hero-sub-cta {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.hero-visual {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.hero-qr-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  max-width: 560px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  position: relative;
}

.hero-example-tag {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
}

.hero-qr-left {
  flex-shrink: 0;
  text-align: center;
}

.hero-qr-box {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  display: inline-block;
  border: 1px solid var(--border);
}

.hero-qr-box img {
  display: block;
  width: 120px;
  height: 120px;
}

.hero-scan-count {
  margin-top: 8px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
}

.hero-qr-arrow {
  font-size: 28px;
  color: var(--brand);
  flex-shrink: 0;
  font-weight: 300;
}

.hero-qr-right {
  flex: 1;
  min-width: 0;
}

.hero-dest-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-dest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.hero-dest-item--active {
  background: var(--brand-soft);
  border-color: var(--brand-soft-border);
}

.hero-dest-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.hero-dest-dot--off {
  background: #d5d9df;
}

.hero-dest-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.hero-dest-url {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-change-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--brand);
  font-style: italic;
}

/* Live demo */
.demo-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 40px;
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
}

.demo-form label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.demo-form input[type="url"] {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #c9ced6;
  border-radius: 8px;
}

.demo-form input[type="url"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.demo-note {
  margin: 12px 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.demo-qr {
  width: 220px;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-sizing: border-box;
  background: #fff;
}

.demo-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 14px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.feature-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--ink);
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Use cases */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.usecase {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.usecase h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink);
}

.usecase p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Pricing teaser */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 28px;
}

.teaser-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.teaser-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
}

.teaser-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}

.teaser-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.teaser-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-link {
  text-align: center;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
}

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

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* Closing CTA */
.cta-section {
  background: var(--brand);
  color: #fff;
  padding: 64px 40px;
  text-align: center;
}

.cta-section h2 {
  font-size: 34px;
  margin: 0 0 16px;
}

.cta-section p {
  font-size: 18px;
  margin: 0 0 28px;
  opacity: 0.95;
}

.cta-section .cta-fine {
  margin: 16px 0 0;
  font-size: 15px;
  opacity: 0.9;
}

/* Inner page hero (About etc.) */
.page-hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #e3e8ef 100%);
  text-align: center;
  padding: 64px 40px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 40px;
  color: var(--ink);
}

.page-hero p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

.prose p {
  margin: 0 0 20px;
}

.prose .tagline {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

/* Pricing page */
.header--center {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 40px 0 16px;
}

.header--center p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.pricing-card.is-current {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.10);
}

.pricing-card.is-popular {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.pricing-card-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

.pricing-card-name {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.pricing-card-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--brand);
  margin: 12px 0 4px;
  line-height: 1;
}

.pricing-card-price sup {
  font-size: 20px;
  font-weight: 600;
  vertical-align: super;
}

.pricing-card-price-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.pricing-card-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--text);
}

.pricing-card-features li .feat-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #1a8f4c;
}

.pricing-card-features li .feat-icon svg {
  width: 18px;
  height: 18px;
}

.pricing-card-features li.feat-off {
  color: #8a94a3;
}

.pricing-card-features li.feat-off .feat-icon {
  color: #b8bfca;
}

.pricing-card-limits {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
}

.pricing-card-limits span {
  display: block;
  padding: 3px 0;
}

.pricing-card-cta {
  display: inline-block;
  width: auto;
  min-width: 160px;
  text-align: center;
  padding: 11px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: var(--brand);
  color: #fff;
  transition: background 0.15s;
  align-self: center;
  margin: 0 auto;
}

.pricing-card-cta:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.pricing-card-cta.cta-current {
  background: #e8f4fd;
  color: var(--brand);
  cursor: default;
}

.pricing-card-cta.cta-free {
  background: #f0f0f0;
  color: var(--text);
}

.pricing-card-cta.cta-free:hover {
  background: #e0e0e0;
}

.pricing-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

/* Shared footer */
.landing-footer {
  margin-top: auto;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 48px 40px 28px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 280px;
  line-height: 1.6;
  font-size: 14px;
}

.footer-logo img {
  display: block;
  height: 40px;
  width: auto;
}

.footer-col h2 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-copy {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title,
  .cta-section h2 {
    font-size: 28px;
  }

  .demo-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    justify-items: center;
  }

  .demo-form {
    width: 100%;
  }

  .page-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .hero-section,
  .cta-section,
  .page-hero {
    padding: 48px 20px;
  }

  .lp-section {
    padding: 48px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-qr-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px 20px;
  }

  .hero-qr-arrow {
    transform: rotate(90deg);
  }

  .hero-dest-label {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .landing-footer {
    padding: 36px 20px 24px;
  }
}
