:root {
  --bg: #F7FAFD;
  --surface: #FFFFFF;
  --surface-soft: #EEF6FF;
  --primary: #4C8DFF;
  --primary-dark: #152A43;
  --accent: #7DE0C9;
  --text: #152A43;
  --text-muted: #5B7280;
  --border: #E2EAF3;
  --success: #1F8A6C;
  --danger: #C94F4F;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(21, 42, 67, 0.08);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 253, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

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

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

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

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
}

.menu-toggle {
  display: none;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--primary-dark);
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 28px;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.hero-art {
  background: linear-gradient(160deg, var(--primary-dark), #0d1a2b);
  border-radius: 32px;
  padding: 34px;
  box-shadow: var(--shadow);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(125, 224, 201, 0.25), transparent 55%);
}

.phone-mock {
  position: relative;
  z-index: 1;
  background: #0f1b2b;
  border-radius: 26px;
  padding: 10px;
  max-width: 260px;
  margin: 0 auto;
}

.phone-mock-inner {
  background: var(--bg);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-mock-inner .chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(21, 42, 67, 0.06);
}

.phone-mock-inner .bubble {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 9px 12px;
  font-size: 11px;
  max-width: 80%;
}

.phone-mock-inner .bubble.ai {
  align-self: flex-start;
  background: #fff;
  color: var(--text);
  border-radius: 14px 14px 14px 4px;
}

/* Sections */
section {
  padding: 56px 0;
}

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

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.category-card {
  text-align: center;
}

.category-card .icon {
  margin: 0 auto 14px;
}

.category-card h3 {
  font-size: 14px;
}

.category-card p {
  font-size: 12px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.step {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.step .num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.step p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.disclaimer-band {
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.disclaimer-band h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.disclaimer-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  max-width: 640px;
  margin: 0 auto;
}

.cta-band {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 44px;
  text-align: center;
}

.cta-band h2 {
  font-size: 26px;
  color: var(--primary-dark);
  margin: 0 0 12px;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-dark);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
}

.store-badge:hover {
  opacity: 0.9;
}

.store-badge .sub {
  display: block;
  font-weight: 400;
  font-size: 10px;
  opacity: 0.75;
}

/* App redirect (app.html) */
.app-redirect {
  padding: 80px 0;
  min-height: calc(100vh - 400px);
  display: flex;
  align-items: center;
}

.app-redirect-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px 40px;
}

.app-redirect-panel h1 {
  font-size: 30px;
  color: var(--primary-dark);
  margin: 0 0 12px;
}

.app-redirect-panel .lead {
  color: var(--text-muted);
  margin: 0 0 8px;
}

.app-attribution {
  color: var(--text-muted);
  font-size: 12px;
  opacity: 0.7;
  min-height: 16px;
  margin: 0 0 28px;
}

.store-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-dark);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
}

.store-link:hover {
  opacity: 0.9;
}

.store-link svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.store-kicker {
  font-size: 10px;
  opacity: 0.75;
  font-weight: 400;
}

.store-name {
  font-size: 15px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: #fff !important;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 19px;
  color: var(--primary-dark);
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal-page h3 {
  font-size: 15px;
  color: var(--text);
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal-page p,
.legal-page li {
  font-size: 14.5px;
  color: var(--text);
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: var(--surface-soft);
  font-weight: 700;
}

.notice-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin: 24px 0;
}

.placeholder {
  background: #FFF3DE;
  color: #8A5A12;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Simple page (about/contact) */
.page-header {
  padding: 56px 0 20px;
  text-align: center;
}

.page-header .eyebrow {
  margin-bottom: 14px;
}

.page-header h1 {
  font-size: 34px;
  color: var(--primary-dark);
  margin: 0 0 12px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 14px;
  background: var(--surface-soft);
  color: var(--text);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.value-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.value-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 32px;
  }
  .grid-3,
  .grid-5,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
