/* SMSLoud marketing landing page — same token family as app.css,
   scaled up for marketing typography. Self-contained (app.css not loaded). */

:root {
  --bg:           #F7F6F1;
  --panel:        #FFFFFF;
  --panel-subtle: #F3F1EA;
  --border:       #E5E2DA;
  --border-soft:  #EFEDE4;
  --ink:          #17140F;
  --ink-2:        #3A362E;
  --muted:        #8B8579;
  --muted-2:      #A39C8E;
  --brand:        #001f3f;
  --brand-2:      #003366;
  --brand-tint:   #E6EDF5;
  --ok:           #15803D;
  --ok-bg:        #DCFCE7;
  --err:          #B91C1C;
  --err-bg:       #FEE2E2;
  --radius:       12px;
  --radius-lg:    18px;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Nav ---------- */
.lnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 241, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.lnav.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 24px rgba(23, 20, 15, 0.05); }
.lnav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--mono); font-weight: 700; font-size: 14px;
}
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.lnav-links { display: flex; align-items: center; gap: 28px; }
.lnav-links a { font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: color .15s ease; }
.lnav-links a:hover { color: var(--brand); }
.lnav-cta { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9px; font-weight: 700; font-size: 14.5px; cursor: pointer;
  padding: 11px 22px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(0, 31, 63, 0.22); }
.btn-primary:hover { background: var(--brand-2); box-shadow: 0 10px 26px rgba(0, 31, 63, 0.3); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); background: var(--panel); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted-2); transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 11px; }
.btn-invert { background: #fff; color: var(--brand); }
.btn-invert:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }

/* Mobile menu */
.menu-btn {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
  color: var(--ink);
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.mobile-menu a { padding: 12px 10px; font-weight: 600; font-size: 15px; border-radius: 8px; }
.mobile-menu a:hover { background: var(--panel-subtle); }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 82% 6%, rgba(0, 51, 102, 0.08), transparent 100%),
    radial-gradient(48% 55% at 8% 88%, rgba(0, 31, 63, 0.05), transparent 100%),
    radial-gradient(90% 60% at 50% 0%, rgba(222, 231, 241, 0.55), transparent 100%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand);
  background: var(--brand-tint); border: 1px solid rgba(0, 31, 63, 0.12);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -1.8px;
  font-weight: 800; margin: 0 0 22px;
}
.hero h1 .accent {
  color: var(--brand);
  background: linear-gradient(transparent 72%, var(--brand-tint) 72%, var(--brand-tint) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .lede { font-size: 18.5px; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hstat .num {
  font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--ink); display: block;
}
.hstat .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Hero visual — CSS mock of a live campaign card */
.hero-visual { position: relative; }
.mock-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(23, 20, 15, 0.12), 0 2px 8px rgba(23, 20, 15, 0.05);
  padding: 22px; position: relative; z-index: 2;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mock-title { font-weight: 700; font-size: 14.5px; }
.mock-sub { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.badge {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; border-radius: 6px; padding: 4px 9px;
}
.badge-ok { color: var(--ok); background: var(--ok-bg); }
.mock-meter { height: 8px; background: var(--border-soft); border-radius: 4px; overflow: hidden; margin: 16px 0 8px; }
.mock-meter > span {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mock-meter-lbl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.mock-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cell { background: var(--panel-subtle); border-radius: 10px; padding: 12px 14px; }
.mock-cell .k { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted-2); display: block; margin-bottom: 4px; }
.mock-cell .v { font-family: var(--mono); font-size: 17px; font-weight: 700; }
.mock-cell .v.ok { color: var(--ok); }
.mock-cell .v.err { color: var(--err); }

.mock-float {
  position: absolute; z-index: 3; background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 14px 34px rgba(23, 20, 15, 0.13);
  display: flex; align-items: center; gap: 10px;
  animation: floaty 5s ease-in-out infinite;
}
.mock-float.f1 { top: -48px; right: -18px; }
.mock-float.f2 { bottom: -46px; left: -18px; animation-delay: 2.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mock-float { animation: none; } .eyebrow .dot { animation: none; } }
.mock-float .ic {
  width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ic-ok { background: var(--ok-bg); color: var(--ok); }
.ic-brand { background: var(--brand-tint); color: var(--brand); }
.mock-float .t1 { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.mock-float .t2 { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -1.1px; line-height: 1.12; font-weight: 800; margin: 0 0 14px; }
.section-head p { color: var(--ink-2); font-size: 16.5px; margin: 0; }

/* Feature bento grid */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bcard {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23, 20, 15, 0.09); border-color: var(--muted-2); }
.bcard.span2 { grid-column: span 2; }
.bcard .ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.bcard h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 8px; }
.bcard p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.bcard .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px;
  color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px;
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
}
.step .n {
  font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--brand);
  background: var(--brand-tint); border-radius: 999px; padding: 5px 13px; display: inline-block; margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.3px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* Developer section */
.dev-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
/* Let grid items shrink below their content's min-content width —
   otherwise the <pre> code lines blow the layout out on narrow screens. */
.dev-grid > *, .bento > *, .steps > *, .hero-grid > * { min-width: 0; }
.dev-copy h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -1px; font-weight: 800; line-height: 1.14; margin: 0 0 16px; }
.dev-copy p { color: var(--ink-2); font-size: 16px; margin: 0 0 24px; }
.dev-points { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dev-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.dev-points .tick {
  width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg); color: var(--ok);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.code-window {
  background: #0D1420; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 26px 60px rgba(13, 20, 32, 0.35); border: 1px solid #1D2940;
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid #1D2940; }
.code-bar .cd { width: 11px; height: 11px; border-radius: 50%; }
.code-bar .r { background: #F26D5F; } .code-bar .y { background: #F2BE4C; } .code-bar .g { background: #56C271; }
.code-bar .fname { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: #6A7A96; }
.code-window pre {
  margin: 0; padding: 20px 22px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.75; color: #C6D2E4;
}
.code-window .c1 { color: #5B6C89; }   /* comment */
.code-window .c2 { color: #7FB5FF; }   /* key/flag */
.code-window .c3 { color: #8FD9A8; }   /* string */
.code-window .c4 { color: #F2BE4C; }   /* accent */

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 24px; padding: 64px 48px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 85% 15%, rgba(255, 255, 255, 0.14), transparent 60%);
}
.cta-band h2 { position: relative; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -1px; font-weight: 800; margin: 0 0 12px; }
.cta-band p { position: relative; font-size: 16.5px; color: rgba(255, 255, 255, 0.78); margin: 0 0 30px; }
.cta-band .hero-ctas { position: relative; justify-content: center; margin: 0; }

/* Footer */
.lfooter { border-top: 1px solid var(--border); padding: 44px 0 36px; margin-top: 84px; }
.lfooter-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.lfooter .fcol { display: flex; flex-direction: column; gap: 10px; }
.lfooter .fcol .h { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.lfooter .fcol a { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.lfooter .fcol a:hover { color: var(--brand); }
.lfooter-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.lfooter-bottom .mono { font-size: 11.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero .lede { max-width: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bcard.span2 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: 1fr; gap: 40px; }
  .mock-float.f1 { right: 0; }
  .mock-float.f2 { left: 0; }
}
@media (max-width: 680px) {
  .lnav-links, .lnav-cta .btn-ghost { display: none; }
  .menu-btn { display: flex; }
  .hero { padding: 56px 0 48px; }
  .hero-stats { gap: 24px; }
  .bento { grid-template-columns: 1fr; }
  .bcard.span2 { grid-column: span 1; }
  .cta-band { padding: 48px 24px; border-radius: var(--radius-lg); }
  .section { padding: 60px 0; }
}

/* ── Legal pages (terms / privacy / cookies) ──────────────────────────────── */
.legal { padding: 40px 0 20px; }
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.legal h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin: 8px 0 6px; }
.legal-updated { font-family: var(--mono); font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 28px; }
.legal h2 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; color: var(--ink); }
.legal p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin-bottom: 7px; }
.legal a { color: var(--brand); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal-note { margin-top: 32px; padding: 14px 16px; background: var(--panel-subtle); border: 1px solid var(--border-soft); border-radius: var(--radius); font-size: 13px; color: var(--muted); }
.legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.legal-table th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted-2); }
.legal-table td { color: var(--ink-2); }
.legal-crosslinks { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.legal-crosslinks a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.legal-crosslinks a:hover { color: var(--brand); }

/* ── Cookie consent banner ────────────────────────────────────────────────── */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--ink); color: #fff; box-shadow: 0 -6px 30px rgba(23, 20, 15, 0.18); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; flex-wrap: wrap; }
.cookie-text { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); margin: 0; max-width: 720px; }
.cookie-text a { color: #fff; font-weight: 700; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { font-family: var(--sans); font-size: 13.5px; font-weight: 700; padding: 9px 18px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; transition: opacity .15s ease, background .15s ease; }
.cookie-btn-solid { background: #fff; color: var(--ink); }
.cookie-btn-solid:hover { opacity: 0.9; }
.cookie-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cookie-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 600px) { .cookie-inner { justify-content: center; text-align: center; } .cookie-actions { width: 100%; justify-content: center; } }
