/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Variables ──────────────────────────────────────── */
:root {
  --primary:        #0056F5;
  --primary-dark:   #0044D4;
  --primary-light:  #f0f6fd;
  --primary-border: #d0e4f7;
  --text:           #1a1a1a;
  --text-muted:     #6b7280;
  --border:         #e5e7eb;
  --bg:             #ffffff;
  --bg-alt:         #f9fafb;
  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      20px;
  --shadow-sm:      0 1px 4px rgba(7,115,224,0.10);
  --shadow:         0 4px 24px rgba(7,115,224,0.12);
  --shadow-lg:      0 8px 40px rgba(7,115,224,0.16);
  --max-w:          1080px;
  --font:           'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Base ───────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ──────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(7,115,224,0.30);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 18px rgba(7,115,224,0.40);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
}
.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}
.nav-logo-side {
  height: 54px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.nav-links a:not(.btn-primary):hover,
.nav-links a.active:not(.btn-primary) {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-links .btn-primary {
  padding: 7px 18px;
  font-size: 14px;
  color: #ffffff;
  background: var(--primary);
}
.nav-links .btn-primary:hover {
  color: #ffffff;
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--primary-light) 0%, #ffffff 55%);
  padding: 80px 0 70px;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-content { flex: 1; max-width: 540px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  background: white;
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow svg { width: 16px; height: 16px; }
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}
.hero-visual { flex: 0 0 340px; }

/* App mockup card */
.app-mockup {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto;
}
.mockup-header {
  background: var(--primary);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mockup-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-header-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.mockup-header-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 1px;
}
.mockup-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mockup-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 4px;
}
.mockup-note-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.mockup-note-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.mockup-note-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.mockup-note-date {
  font-size: 10.5px;
  color: #9ca3af;
  margin-top: 6px;
}
.mockup-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

/* ── Features ───────────────────────────────────────── */
.features {
  padding: 80px 0;
  background: var(--bg);
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.2s ease;
}
.feature-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--primary); }
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── How it works ───────────────────────────────────── */
.how {
  padding: 80px 0;
  background: var(--bg-alt);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;                    /* = half of 56px circle — centers on circles */
  left: calc(100% / 6 + 28px); /* right edge of circle 1 */
  right: calc(100% / 6 + 28px);/* left edge of circle 3, from the right */
  height: 2px;
  background: var(--primary-border);
  z-index: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 28px;         /* no top padding — circles start at y=0 so top:28px hits their center */
  position: relative;
  z-index: 1;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(7,115,224,0.30);
  flex-shrink: 0;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA Banner ─────────────────────────────────────── */
.cta-banner {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
}
.cta-banner h2 {
  font-size: 34px;
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  letter-spacing: -0.6px;
}
.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 32px;
}
.cta-banner .btn {
  background: white;
  color: var(--primary);
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-banner .btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.20);
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}
.footer-tagline {
  font-size: 13.5px;
  color: #6b7280;
  max-width: 220px;
  line-height: 1.6;
}
.footer-links { display: flex; gap: 48px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 14px;
  color: #9ca3af;
  transition: color 0.15s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: white; }

/* ── Legal pages ─────────────────────────────────────── */
.legal-hero {
  background: var(--primary-light);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--primary-border);
}
.legal-hero h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.legal-hero p { font-size: 15px; color: var(--text-muted); }

.legal-body { padding: 60px 0 80px; }
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-content ul li {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 6px;
}
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── Legal table (used in Privacy Policy) ───────────── */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14.5px;
}
.legal-table th {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--primary-border);
}
.legal-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: #374151;
  line-height: 1.65;
  vertical-align: top;
}
.legal-table td code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: 'Consolas', 'Menlo', monospace;
  color: var(--primary-dark);
}
.legal-table tr:nth-child(even) td {
  background: var(--bg-alt);
}
.legal-content code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: 'Consolas', 'Menlo', monospace;
  color: var(--primary-dark);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; }
  .hero h1 { font-size: 36px; }
  .hero-visual { flex: none; width: 100%; max-width: 320px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 28px; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn-primary) { display: none; }
  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 15px; }
  .section-header h2 { font-size: 26px; }
  .cta-banner h2 { font-size: 26px; }
  .legal-hero h1 { font-size: 28px; }
  .features { padding: 52px 0; }
  .how { padding: 52px 0; }
  .cta-banner { padding: 52px 0; }
}
