:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f6f2;
  --color-text: #1f2a37;
  --color-text-muted: #5b6878;
  --color-primary: #1c3a5e;
  --color-primary-hover: #16304d;
  --color-accent: #e0a93b;
  --color-border: #e6e7ea;
  --max-width: 1140px;
  --max-width-narrow: 760px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 55, 0.06);
  --shadow-md: 0 6px 18px rgba(31, 42, 55, 0.08);
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif Pro", "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.3em 1.2em;
  margin: 1.5em 0;
  color: var(--color-text-muted);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-primary);
}
.nav-brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-brand:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a.active,
.nav-links a:hover { color: var(--color-primary); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.4rem;
  color: var(--color-primary);
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    gap: 0.8rem;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 3rem;
  background: linear-gradient(180deg, #fbfaf6 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1.6rem;
}
.hero img.hero-illustration {
  max-height: 480px;
  margin-left: auto;
}
@media (max-width: 780px) {
  .hero { padding: 2.5rem 0 1.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero img.hero-illustration { margin: 0 auto; }
}

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--color-primary-hover); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.app-store-badge img { height: 50px; width: auto; }

/* ---------- Sections ---------- */
section.section { padding: 4rem 0; }
section.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { color: var(--color-text-muted); max-width: 640px; margin: 0 auto; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

/* ---------- How it works (3 step) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step { text-align: center; }
.step img { border-radius: var(--radius); margin: 0 auto 1.2rem; box-shadow: var(--shadow-md); max-height: 360px; }
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--color-text-muted); }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Side-by-side image+text ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Article list ---------- */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.article-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card a { color: inherit; display: block; }
.article-card a:hover { text-decoration: none; }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card .body { padding: 1.3rem 1.4rem 1.5rem; }
.article-card .meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.article-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.article-card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Article page ---------- */
.article-hero {
  padding: 3rem 0 1.5rem;
  background: var(--color-bg-alt);
}
.article-hero .meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.article-hero img {
  border-radius: var(--radius);
  margin: 2rem 0 0;
  box-shadow: var(--shadow-md);
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}
.article-body { padding: 3rem 0; }
.article-body h2 { margin-top: 2.5rem; }
.article-body h3 { margin-top: 1.8rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.article-body .tldr {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}
.article-body .tldr h3 { margin-top: 0; }
.article-body .references {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* ---------- Pricing band ---------- */
.pricing-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem;
}
.pricing-band h2 { color: #fff; }
.pricing-band p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto 1rem; }

/* ---------- Security band ---------- */
.security {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.security img { max-height: 420px; margin: 0 auto; }
.security-points {
  display: grid;
  gap: 1rem;
}
.security-point {
  border-left: 3px solid var(--color-accent);
  padding: 0.2rem 0 0.2rem 1rem;
}
.security-point h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.security-point p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }
@media (max-width: 780px) { .security { grid-template-columns: 1fr; } }

/* ---------- Page header (non-home) ---------- */
.page-header {
  padding: 3.5rem 0 2rem;
  background: var(--color-bg-alt);
  text-align: center;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--color-text-muted); max-width: 640px; margin: 0 auto; }

/* ---------- Legal page tiles ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.legal-tile {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.legal-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.legal-tile h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.legal-tile p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-box {
  text-align: center;
  max-width: 560px;
  margin: 2rem auto 0;
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}
.contact-box a.email {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-primary);
  word-break: break-all;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #14233a;
  color: #c8d2e0;
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
  margin-top: 3rem;
}
.site-footer a { color: #c8d2e0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin: 0 0 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.footer-brand img { width: 36px; height: 36px; }
.social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background 0.15s ease;
}
.social a:hover { background: rgba(255,255,255,0.18); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #8a98ad;
  font-size: 0.85rem;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
