:root {
  --bg: #f3f7f6;
  --surface: #ffffff;
  --ink: #17333c;
  --muted: #58727b;
  --line: #dce7e5;
  --teal: #087e8b;
  --teal-dark: #06636e;
  --deep: #112f38;
  --gold: #eab56f;
  --soft: #ebf5f4;
  --radius: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; color: var(--ink); background: var(--bg); min-width: 320px; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 247, 246, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; position: relative;
}
.site-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--deep); font-weight: 750; font-size: 1.2rem; letter-spacing: -.3px; }
.site-brand:hover { text-decoration: none; }
.site-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--deep); color: var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
}
.site-mark svg { width: 22px; height: 22px; }
.site-brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .5px; line-height: 1.1; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a.nav-link {
  color: var(--ink); font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 9px;
}
.site-nav a.nav-link:hover, .site-nav a.nav-link.active { background: #e3efed; text-decoration: none; color: var(--deep); }
.mobile-bar { display: none; align-items: center; gap: 8px; }
.mobile-menu { position: relative; }
.mobile-menu summary {
  list-style: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid #c8dad7; background: #fff; color: var(--deep);
  display: grid; place-items: center; cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { background: #e3efed; border-color: #9ec5c0; }
.mobile-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; box-shadow: 0 16px 40px rgba(17, 47, 56, .16);
  display: grid; gap: 4px; z-index: 40;
}
.mobile-menu-panel a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px;
  border-radius: 9px; color: var(--deep); font-size: 14.5px; font-weight: 600;
}
.mobile-menu-panel a:hover { background: var(--soft); text-decoration: none; }
.mobile-menu-panel .btn { width: 100%; margin-top: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 650 15px/1.2 inherit; padding: 12px 20px; min-height: 44px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); }
.btn.secondary { background: #fff; color: var(--deep); border-color: #c8dad7; }
.btn.secondary:hover { background: #eaf3f1; }
.btn.gold { background: var(--gold); color: var(--deep); }
.btn.gold:hover { background: #f2c484; }
.btn.small { font-size: 14px; padding: 8px 14px; min-height: 38px; }

/* Hero */
.hero { padding: 48px 0 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e3f2f0; color: #0b646f; border: 1px solid #c6e3df;
  border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.16; letter-spacing: -.8px; margin: 16px 0 14px; color: var(--deep); }
.hero p.lead { font-size: 1.07rem; color: var(--muted); margin: 0 0 24px; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; font-size: 13.5px; color: var(--muted); font-weight: 550; }
.hero-meta span::before { content: "✓ "; color: var(--teal); font-weight: 800; }

/* Visual App Mockup Card */
.preview-card {
  background: linear-gradient(155deg, #174956, #0e2a33);
  border-radius: 22px; padding: 20px; color: #fff;
  box-shadow: 0 24px 60px rgba(17, 47, 56, .18);
}
.preview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 12px; color: #b7d2d9; }
.preview-dots { display: flex; gap: 6px; }
.preview-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); display: block; }
.preview-inner { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px; }
.preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.preview-head small { color: var(--teal); font-weight: 750; font-size: 11px; letter-spacing: .6px; display: block; }
.preview-head strong { font-size: 16px; color: var(--deep); }
.preview-badge { background: #e6f4f1; color: #0b646f; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.preview-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.preview-stat { background: #f3f7f6; border-radius: 12px; padding: 11px 12px; }
.preview-stat b { display: block; font-size: 19px; color: var(--deep); line-height: 1.2; }
.preview-stat span { font-size: 12px; color: var(--muted); }
.preview-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: #f8fbfa;
  border-left: 4px solid var(--teal); margin-bottom: 9px;
}
.preview-item.gold { border-left-color: var(--gold); }
.preview-item strong { display: block; font-size: 13.5px; color: var(--deep); }
.preview-item small { font-size: 12px; color: var(--muted); }
.preview-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e3f4ec; color: #1b6b47; white-space: nowrap; }
.preview-tag.amber { background: #fdf3e1; color: #946016; }

/* Sections */
.section { padding: 44px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 28px; }
.eyebrow { font-size: 12px; letter-spacing: .9px; font-weight: 750; color: var(--teal); text-transform: uppercase; margin: 0 0 6px; }
.section h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.22; letter-spacing: -.4px; margin: 0 0 10px; color: var(--deep); }
.section-head p { margin: 0; color: var(--muted); }

/* Trust strip */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.trust-card strong { display: block; font-size: 16px; color: var(--deep); margin-bottom: 4px; }
.trust-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--soft); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--deep); }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--deep); color: var(--gold);
  font-weight: 800; font-size: 14px; margin-bottom: 12px;
}

/* CTA Banner */
.cta-box {
  background: linear-gradient(135deg, #154552, #0e2a33);
  color: #fff; border-radius: 22px; padding: 36px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-box h2 { color: #fff; margin: 0 0 8px; }
.cta-box p { color: #c7dde2; margin: 0; max-width: 560px; }

/* Article / Guide / Privacy pages */
.page-hero { padding: 38px 0 24px; }
.page-hero h1 { font-size: clamp(1.75rem, 3.4vw, 2.35rem); line-height: 1.2; margin: 10px 0 10px; color: var(--deep); }
.page-hero p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.toc a {
  background: #fff; border: 1px solid var(--line); color: var(--deep);
  font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.toc a:hover { background: var(--soft); border-color: #b7d7d3; text-decoration: none; }
.doc-stack { display: grid; gap: 18px; padding-bottom: 48px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.doc-card h2 { margin: 0 0 12px; font-size: 1.28rem; color: var(--deep); }
.doc-card h3 { margin: 18px 0 6px; font-size: 1rem; color: var(--deep); }
.doc-card p { margin: 0 0 12px; color: #36525b; }
.doc-card p:last-child, .doc-card ul:last-child, .doc-card ol:last-child { margin-bottom: 0; }
.doc-card ul, .doc-card ol { margin: 0 0 12px; padding-left: 20px; color: #36525b; }
.doc-card li + li { margin-top: 6px; }
.callout {
  background: #edf7f5; border: 1px solid #cce5e0; border-radius: 12px;
  padding: 14px 16px; margin: 14px 0; font-size: 14.5px; color: var(--deep);
}

/* FAQ Accordion */
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; color: var(--deep); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 20px; color: var(--teal); line-height: 1; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 10px 0 0; font-size: 14.5px; color: #435f68; }

/* 404 */
.center-page { min-height: calc(100dvh - 150px); display: grid; place-items: center; padding: 36px 20px; }
.notfound-card { max-width: 480px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 28px; text-align: center; box-shadow: 0 14px 40px rgba(17, 47, 56, .08); }
.notfound-card h1 { margin: 0 0 10px; font-size: 1.55rem; color: var(--deep); }
.notfound-card p { margin: 0 0 22px; color: var(--muted); }
.notfound-card .cta-row { justify-content: center; }
.code-404 { font-size: 54px; font-weight: 850; line-height: 1; color: var(--teal); margin: 0 0 10px; letter-spacing: -2px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 14px; color: var(--muted);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); font-weight: 550; }
.footer-links a:hover { color: var(--teal); }

@media (max-width: 900px) {
  .hero-grid, .feature-grid, .steps-grid, .trust-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .mobile-bar { display: flex; }
  .header-inner { min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .cta-box { padding: 26px 20px; }
  .doc-card { padding: 20px 18px; }
}
@media (max-width: 520px) {
  .hero .cta-row .btn, .cta-box .cta-row .btn, .notfound-card .cta-row .btn { flex: 1 1 100%; width: 100%; }
}
