/* Safe and Sorted — marketing site
   Mobile-first. No frameworks. System fonts.
   Palette locked from BRAND_SHEET.md (8 May 2026). */

:root {
  --brand: #1E293B;
  --brand-deep: #0F172A;
  --brand-light: #CBD5E1;
  --brand-pale: #E2E8F0;
  --ink: #0F172A;
  --ink-soft: #475569;
  --bg: #FAF7F2;
  --card: #FFFFFF;
  --border: #E5E7E9;
  --success: #16A34A;
  --tick: #22C55E;
  --warn: #BF8E3D;
  --danger: #B0413E;
  --danger-light: #F8E8E7;
  --max: 1100px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

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

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: var(--max); margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.2rem; color: var(--ink);
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; }
.brand .word-and { color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: 0 2px;
  border-bottom: 2px solid var(--tick); }
.nav-links { display: none; gap: 18px; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* Buttons — primary is brand-navy, NOT amber. Per brand sheet. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.99); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--card); border-color: var(--brand-light); }
.btn-lg { padding: 15px 26px; font-size: 1rem; min-height: 50px; }

/* Sections */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section.dark { background: var(--brand-deep); color: #fff; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark .muted { color: var(--brand-light); }

/* Hero */
.hero { padding: 56px 0 56px; }
.hero-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tick); }
.hero h1 { margin-bottom: 22px; line-height: 1.15; }
.hero .lede { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 28px; max-width: 540px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 28px; color: var(--ink-soft); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 18px 22px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .check { color: var(--success); font-weight: 700; }

.hero-visual {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.hero-visual img { margin: 0 auto; max-height: 480px; width: auto; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .hero { padding: 80px 0 64px; }
}

/* Card grids */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: 6px; color: var(--ink); }
.card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.card-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--brand-pale); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

/* Steps */
.steps { display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Pricing */
.pricing-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 720px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan.popular {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-md);
}
.plan.popular::before {
  content: "Most popular";
  position: absolute; top: -12px; left: 22px;
  background: var(--brand); color: #fff;
  padding: 4px 10px; border-radius: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.plan h3 { margin-bottom: 4px; color: var(--brand-deep); }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--ink); margin: 6px 0 0; line-height: 1; }
.plan-price small { font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.plan .plan-note { color: var(--ink-soft); font-size: .9rem; margin: 6px 0 16px; min-height: 2.6em; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--ink); font-size: .95rem; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--success); font-weight: 700;
}
.plan .btn { margin-top: auto; width: 100%; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.faq summary {
  font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink);
}
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--ink-soft);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details > p { margin: 12px 0 0; color: var(--ink-soft); }

/* Form */
.form {
  max-width: 540px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form .field { margin-bottom: 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--card);
  color: var(--ink);
  min-height: 44px;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 3px solid rgba(30, 41, 59, .15);
  border-color: var(--brand);
}
.form .row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .btn { width: 100%; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.form-note a { color: var(--ink); }
.hp { position: absolute; left: -9999px; }

/* CTA strip */
.cta-strip {
  background: var(--brand-deep);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
  border-radius: 16px;
}
.cta-strip h2 { color: #fff; margin-bottom: 8px; }
.cta-strip p { color: var(--brand-light); margin-bottom: 22px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-strip .btn-primary { background: #fff; color: var(--brand-deep); }
.cta-strip .btn-primary:hover { background: var(--brand-pale); color: var(--brand-deep); }

/* Footer */
.footer {
  background: var(--brand-deep);
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-light); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer a { color: #fff; text-decoration: none; opacity: .85; font-size: .92rem; }
.footer a:hover { opacity: 1; }
.footer .brand { color: #fff; }
/* footer logo uses logo-light.svg variant — no filter needed */
.footer-blurb { color: var(--brand-light); font-size: .9rem; margin-top: 12px; max-width: 320px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: var(--brand-light);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* Coming-soon placeholders for photos / videos / screenshots */
.placeholder {
  background: var(--brand-pale);
  border: 1px dashed var(--brand-light);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: .92rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
}
.placeholder .ph-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
  opacity: .65;
}
.placeholder strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-deep);
  color: #fff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.placeholder strong::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tick);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: pulse 2s infinite;
}
.placeholder p { margin: 0; max-width: 320px; color: var(--ink-soft); }

/* Utility */
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 24px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.split.reverse > :first-child { order: 2; }
@media (min-width: 860px) { .split.reverse > :first-child { order: 0; } }

/* Banners (re-using app's pattern) */
.banner {
  border-radius: 8px; padding: 12px 14px; margin-bottom: 16px;
  font-size: .92rem;
}
.banner-success { background: #E8F1EC; color: var(--success); border: 1px solid var(--success); }
.banner-error { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger); }

/* SR-only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Mobile nav (no hamburger — links wrap onto a second row) ---------- */
.nav-toggle, .nav-burger { display: none !important; }

@media (max-width: 759px) {
  .nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
  }
  /* Bigger brand on mobile — leads with the brand */
  .brand { font-size: 1.55rem; gap: 14px; }
  .brand img { width: 56px; height: 56px; }
  .brand .word-and { font-size: 1.25rem; }

  /* Nav links: full-width second row, evenly spaced like the desktop bar */
  .nav-links {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    gap: 0;
    justify-content: space-between;
    order: 99;
  }
  .nav-links a {
    color: var(--ink);
    font-size: .85rem;
    font-weight: 600;
    padding: 8px 2px;
    min-height: 40px;
    text-decoration: none;
    background: transparent;
    flex: 1 1 auto;
    text-align: center;
    border-radius: 6px;
    white-space: nowrap;
  }
  .nav-links a:hover, .nav-links a.active {
    background: var(--brand-pale);
    color: var(--ink);
  }
  /* The drawer-style mobile CTA isn't needed any more */
  .nav-cta-mobile { display: none !important; }
  /* Show the CTA on mobile, slightly tighter padding */
  .nav-cta-desktop {
    display: inline-flex !important;
    padding: 10px 14px;
    min-height: 40px;
    font-size: .92rem;
  }
}

@media (min-width: 760px) {
  .nav .nav-cta-mobile { display: none; }
}


/* ---------- Coming soon badge (used on hero eyebrow + page corners) ---------- */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: var(--brand-deep);
  color: #fff;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.coming-soon-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tick);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Soft "coming soon" bar at top of pricing — quieter signal */
.prelaunch-strip {
  background: var(--brand-deep);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: .92rem;
  font-weight: 500;
}
.prelaunch-strip strong { font-weight: 700; }


/* Mobile hero spacing additions */
@media (max-width: 759px) {
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 1.85rem; line-height: 1.18; margin-bottom: 24px; }
  .hero .lede { font-size: 1.05rem; line-height: 1.65; margin-bottom: 28px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { flex: 1 1 calc(50% - 6px); }
  .hero-trust {
    margin-top: 28px;
    font-size: .95rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero-trust span {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    justify-content: flex-start;
  }
  .hero-trust .check {
    flex: 0 0 auto;
    font-size: 1.05rem;
  }
  .coming-soon-badge { font-size: .76rem; padding: 7px 14px; margin-bottom: 22px; }
}
