/* ============================================
   QRCode App Landing Page — Shared Styles
   Brand colors mirrored from src/theme/colors.ts
   ============================================ */

:root {
  --primary: #5c5fef;
  --primary-light: #818cf8;
  --primary-dark: #4338ca;
  --primary-muted: #eef2ff;

  --success: #22c55e;
  --warning: #f59e0b;

  --bg: #ffffff;
  --surface: #f6f7fb;
  --surface-2: #eef0f7;

  --text: #0d0d14;
  --text-secondary: #5a5e6b;
  --text-tertiary: #8b8f9c;

  --border: #e3e5ee;

  --shadow-sm: 0 1px 2px rgba(20, 20, 43, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 20, 43, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 20, 43, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(92, 95, 239, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(92, 95, 239, 0.38);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-disabled {
  background: var(--surface-2);
  color: var(--text-tertiary);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover {
  transform: none;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-by {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.nav-toggle:hover {
  background: var(--surface-2);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding: 72px 0 96px;
  background: radial-gradient(
      ellipse 60% 50% at 80% 0%,
      rgba(92, 95, 239, 0.1),
      transparent
    ),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-muted);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text-tertiary);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  opacity: 0.8;
}

.store-badge .store-text {
  text-align: left;
  line-height: 1.2;
}

.store-badge .store-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.store-badge .store-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-row svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

/* ===== Hero phone mockup ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone {
  width: 280px;
  aspect-ratio: 9 / 18.5;
  background: #0d0d14;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20, 20, 43, 0.06);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(160deg, #15151f 0%, #0a0a0f 100%);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0d0d14;
  border-radius: 999px;
  z-index: 3;
}

.phone-statusbar {
  height: 40px;
}

.scan-area {
  flex: 1;
  margin: 10px 20px 0;
  border-radius: 20px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-frame {
  width: 60%;
  aspect-ratio: 1;
  position: relative;
}

.qr-target {
  position: absolute;
  inset: 12%;
  background: #fff;
  border-radius: 8px;
  padding: 10%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.qr-svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: #15151f;
}

.scan-frame .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--primary-light);
}

.scan-frame .corner.tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
}
.scan-frame .corner.tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-radius: 0 6px 0 0;
}
.scan-frame .corner.bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 6px;
}
.scan-frame .corner.br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-radius: 0 0 6px 0;
}

.scan-laser {
  position: absolute;
  left: 4%;
  width: 92%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-light) 20%,
    var(--primary-light) 80%,
    transparent
  );
  box-shadow: 0 0 10px 1px var(--primary-light);
  animation: scanline 2.6s ease-in-out infinite;
}

.phone-tabbar {
  height: 64px;
  margin: 10px 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.phone-tabbar .tab-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-tabbar .tab-dot.active {
  background: var(--primary);
}

.phone-tabbar .tab-dot svg {
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, 0.35);
}

.phone-tabbar .tab-dot.active svg {
  color: #fff;
}

.float-chip {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  animation: float 6s ease-in-out infinite;
}

.float-chip svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

.float-chip.chip-1 {
  top: 14%;
  left: -8%;
  animation-delay: 0.4s;
}

.float-chip.chip-2 {
  bottom: 12%;
  right: -10%;
  animation-delay: 1.1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes scanline {
  0%,
  100% {
    top: 8%;
  }
  50% {
    top: 88%;
  }
}

/* ===== Section headers ===== */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon.tint-primary {
  background: var(--primary-muted);
}
.feature-icon.tint-success {
  background: #f0fdf4;
}
.feature-icon.tint-warning {
  background: #fffbeb;
}

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

.feature-icon.tint-primary svg {
  color: var(--primary);
}
.feature-icon.tint-success svg {
  color: var(--success);
}
.feature-icon.tint-warning svg {
  color: var(--warning);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== How it works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(92, 95, 239, 0.3);
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 260px;
  margin: 0 auto;
}

/* ===== Roadmap teaser ===== */
.roadmap-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: #fff;
}

.roadmap-card h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
}

.roadmap-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  max-width: 480px;
}

.roadmap-pill {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== CTA banner ===== */
.cta-banner {
  text-align: center;
  padding: 96px 0;
}

.cta-banner h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 13.5px;
}

/* ===== Simple page header (Contact / Privacy) ===== */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 16.5px;
  max-width: 540px;
  margin: 0 auto;
}

/* ===== Contact page ===== */
.contact-grid {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

.contact-info-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-info-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .icon-badge svg {
  width: 19px;
  height: 19px;
  color: var(--primary);
}

.contact-info-item strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 3px;
}

.contact-info-item span,
.contact-info-item a {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-info-item a:hover {
  color: var(--primary);
}

/* ===== Legal / Privacy Policy page ===== */
.legal-content {
  padding: 64px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
}

.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}

.legal-toc span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.legal-toc a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 7px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.legal-toc a:hover {
  color: var(--primary);
  border-color: var(--primary-light);
}

.legal-body h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 14px;
}

.legal-body ul {
  margin: 0 0 14px;
  padding-left: 0;
}

.legal-body ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 10px;
}

.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

.legal-body strong {
  color: var(--text);
}

.legal-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 20px;
}

.service-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  background: var(--surface);
}

.service-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.service-item-head h3 {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-active {
  background: #f0fdf4;
  color: #157c3b;
}

.service-item p {
  font-size: 14px;
  margin-bottom: 8px;
}

.service-item p:last-child {
  margin-bottom: 0;
}

.service-item a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.service-item a:hover {
  text-decoration: underline;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ===== Reveal-on-scroll =====
   Hidden state only applies once the "js" class (set by an inline
   script in <head>) is present, so content stays visible by default
   if JavaScript is slow, disabled, or fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 8px;
  }

  .hero p.lead {
    max-width: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-layout > * {
    min-width: 0;
  }

  .legal-toc {
    position: static;
    display: block;
    margin-bottom: 32px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  .legal-toc a {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .roadmap-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open .nav-links a {
    padding: 10px 0;
    width: 100%;
  }

  .nav.is-open .nav-cta {
    display: flex;
    position: absolute;
    top: 198px;
    left: 24px;
    right: 24px;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .cta-banner {
    padding: 72px 0;
  }

  .contact-info-card {
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
