* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f2f4f7;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  color: #1f2937;
  padding: 48px 24px;
}

.page {
  max-width: 720px;
  width: 100%;
}

.page-wide {
  max-width: 880px;
}

.page-landing {
  max-width: 1040px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 2px;
  padding: 3px;
  border-radius: 6px;
  background: #2563eb;
}

.brand-mark span {
  background: #ffffff;
  border-radius: 1px;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(4),
.brand-mark span:nth-child(6),
.brand-mark span:nth-child(8) {
  background: transparent;
}

.brand-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-nav a {
  padding: 8px 16px;
  border-radius: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.brand-nav a:hover {
  background: #dbeafe;
}

.brand-nav a.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eff6ff;
  border-radius: 10px;
  padding: 10px 16px;
  margin: -8px 0 24px;
  font-size: 15px;
  color: #1e3a8a;
  text-align: left;
}

.auth-bar[hidden] {
  display: none;
}

.auth-bar.subscribed {
  background: #ecfdf5;
  color: #065f46;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  flex-shrink: 0;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 48px;
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.card-wide {
  max-width: 880px;
  text-align: left;
}

.info-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 40px 48px;
  margin-top: 24px;
  text-align: left;
}

.info-card h2 {
  font-size: 24px;
  color: #111827;
  margin: 0 0 16px;
}

.info-card h2:not(:first-child) {
  margin-top: 32px;
}

.info-card-flat {
  background: #f9fafb;
  box-shadow: none;
  border: 1px solid #eef0f3;
}

/* Hero (two-column) */

.hero-card {
  background: radial-gradient(circle at 15% 15%, #eff6ff 0%, #ffffff 55%);
  border: 1px solid #e0e7ff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.1);
  padding: 48px;
  width: 100%;
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.hero-copy .hero {
  text-align: left;
  padding: 0;
}

.hero-copy .trust-badges {
  justify-content: flex-start;
}

.hero-copy .subtitle {
  margin-bottom: 24px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.qr-poster {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  padding: 28px 28px 22px;
  text-align: center;
  max-width: 260px;
  width: 100%;
}

.qr-poster::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 10px;
  background: #d1d5db;
  border-radius: 4px;
}

.qr-poster-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto;
}

.qr-poster-caption {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: 0.02em;
}

/* Product-in-action preview */

.preview-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 40px;
  margin-top: 24px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.preview-section h2 {
  font-size: 22px;
  color: #111827;
  margin: 0 0 8px;
}

.preview-intro {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 20px;
}

.qr-card-demo {
  background: #f9fafb;
}

.preview-note {
  font-size: 13px;
  color: #9ca3af;
  margin: 4px 0 0;
  font-style: italic;
}

/* Pricing band */

.pricing-band {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: 20px;
  padding: 40px 48px;
  margin-top: 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(30, 58, 138, 0.25);
}

.pricing-band h2 {
  color: #ffffff;
  margin: 0 0 20px;
}

.steps {
  font-size: 18px;
  line-height: 1.6;
  color: #374151;
  padding-left: 22px;
  margin: 0;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  font-size: 18px;
  color: #1e3a8a;
  margin: 0 0 6px;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
}

h1 {
  font-size: 36px;
  margin: 0 0 16px;
  color: #111827;
}

.subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 32px;
}

.btn {
  font-size: 20px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  cursor: pointer;
  transition: transform 0.05s ease, opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
}

.btn-secondary {
  background: #e5e7eb;
  color: #1f2937;
}

.btn-danger {
  background: #fee2e2;
  color: #991b1b;
}

a.btn {
  text-decoration: none;
  display: inline-block;
}

a.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.btn-google:hover {
  background: #f9fafb;
  opacity: 1;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #9ca3af;
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.btn-large {
  font-size: 24px;
  padding: 20px 36px;
  width: 100%;
}

.btn-small {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
}

.btn + .btn {
  margin-top: 16px;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-row .btn {
  margin-top: 0;
}

.text-input {
  display: block;
  width: 100%;
  font-size: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  box-sizing: border-box;
  font-family: inherit;
}

.text-input:focus {
  outline: none;
  border-color: #2563eb;
}

.text-input-small {
  font-size: 15px;
  padding: 10px 12px;
  margin-bottom: 0;
}

.price-info {
  font-size: 18px;
  color: #1e3a8a;
  font-weight: 600;
  margin: -20px 0 32px;
}

.note {
  font-size: 16px;
  color: #6b7280;
  margin: 20px 0 0;
}

.status {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 600;
}

.status.error {
  color: #dc2626;
}

.status.success {
  color: #15803d;
}

.status.loading {
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.status[hidden] {
  display: none !important;
}

.status.loading::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 3px solid #bfdbfe;
  border-top-color: #1e3a8a;
  border-radius: 50%;
  animation: status-spin 0.8s linear infinite;
}

@keyframes status-spin {
  to {
    transform: rotate(360deg);
  }
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.trust-badge-neutral {
  background: #f3f4f6;
  color: #374151;
}

.site-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #9ca3af;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: #9ca3af;
}

.result-box {
  margin-top: 28px;
}

/* Landing page */

.hero {
  text-align: center;
  padding: 8px 0 4px;
}

.hero-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 8px 0 0;
  text-align: left;
}

.feature-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.feature-box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
}

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

.feature-box h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: #111827;
}

.feature-box p {
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0;
}

.pricing-card {
  border: 2px solid #2563eb;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  background: #eff6ff;
}

.pricing-amount {
  font-size: 40px;
  font-weight: 800;
  color: #111827;
  margin: 4px 0;
}

.pricing-amount span {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
}

.pricing-note {
  font-size: 15px;
  color: #4b5563;
  margin: 8px 0 20px;
}

/* Dashboard */

.limit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 15px;
  color: #374151;
  flex-wrap: wrap;
}

.create-form {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  background: #f9fafb;
  margin-bottom: 28px;
}

.create-form h2 {
  font-size: 19px;
  margin: 0 0 14px;
  color: #111827;
}

.field-label {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 4px;
  font-weight: 600;
}

.paywall-box {
  margin-top: 4px;
  padding: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  text-align: left;
}

.paywall-box p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #92400e;
}

.qr-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 8px;
  text-align: left;
}

.qr-list-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  padding: 24px 0;
}

.qr-card {
  border: 1px solid #e5e7eb;
  border-left: 4px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  background: #ffffff;
}

.qr-card-active {
  border-left-color: #16a34a;
  background: #f7fdf9;
}

.qr-card-paused {
  border-left-color: #9ca3af;
  background: #fafafa;
}

.qr-card-main {
  display: flex;
  gap: 16px;
}

.qr-preview {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

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

.qr-card-info {
  flex: 1;
  min-width: 0;
}

.qr-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.qr-label {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.qr-status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: #dcfce7;
  color: #166534;
}

.qr-status-pill.paused {
  background: #f3f4f6;
  color: #6b7280;
}

.qr-code {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 6px;
  font-family: monospace;
}

.qr-destination {
  font-size: 15px;
  color: #374151;
  word-break: break-all;
  margin: 0 0 10px;
}

.qr-destination a {
  color: #2563eb;
}

.qr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qr-actions .btn {
  margin-top: 0;
}

.qr-edit-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.qr-edit-row[hidden] {
  display: none;
}

.qr-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.qr-panel[hidden] {
  display: none;
}

.stat-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.stat-box {
  background: #eff6ff;
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
}

.stat-box-muted {
  background: #f3f4f6;
}

.stat-box-muted .stat-value {
  color: #4b5563;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #1e3a8a;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.stat-row-compact {
  margin-bottom: 12px;
}

.stat-row-compact .stat-box {
  padding: 8px 16px;
  display: inline-block;
}

.stat-row-compact .stat-value {
  font-size: 22px;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-row-label {
  width: 96px;
  flex-shrink: 0;
  color: #4b5563;
  text-align: right;
}

.bar-track {
  flex: 1;
  background: #e5e7eb;
  border-radius: 4px;
  height: 12px;
  overflow: hidden;
}

.bar-fill {
  background: #2563eb;
  height: 100%;
  border-radius: 4px;
}

.bar-row-count {
  width: 28px;
  text-align: left;
  color: #374151;
  font-weight: 600;
}

.bar-list-empty {
  font-size: 14px;
  color: #9ca3af;
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .hero {
    text-align: center;
  }

  .hero-copy .trust-badges {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .qr-poster {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  body {
    align-items: flex-start;
    padding: 12px;
    font-size: 17px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 12px;
  }

  .card-wide {
    padding: 20px 16px;
  }

  .hero-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .hero-grid {
    gap: 24px;
  }

  .preview-section {
    padding: 20px 18px;
  }

  .pricing-band {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .qr-list {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 19px;
  }

  .brand-nav a {
    padding: 6px 12px;
    font-size: 13px;
  }

  .auth-bar {
    font-size: 13px;
    padding: 8px 12px;
    margin: -4px 0 18px;
  }

  .link-btn {
    font-size: 13px;
  }

  .info-card {
    padding: 22px 18px;
    margin-top: 16px;
  }

  .info-card h2 {
    font-size: 20px;
  }

  .steps {
    font-size: 16px;
  }

  .faq-item h3 {
    font-size: 16px;
  }

  .faq-item p {
    font-size: 15px;
  }

  h1 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 17px;
  }

  .btn-large {
    font-size: 19px;
    padding: 15px 24px;
  }

  .price-info {
    font-size: 15px;
    margin: -8px 0 18px;
  }

  .text-input {
    font-size: 16px;
    padding: 11px 14px;
  }

  .pricing-amount {
    font-size: 32px;
  }

  .qr-card-main {
    flex-direction: column;
  }

  .qr-preview {
    width: 100px;
    height: 100px;
  }

  .bar-row-label {
    width: 76px;
    font-size: 12px;
  }
}
