/* SitesMade shared styles: tokens, header, mobile tab bar, buttons, cards, forms, footer.
   Desktop gets a floating glass menu; phones get a slim top bar and an app-style tab bar. */
:root {
  color-scheme: light;
  --bg: #f6f8fd;
  --surface: #ffffff;
  --surface-2: #f0f4fd;
  --ink: #0e1530;
  --ink-2: #4a5373;
  --muted: #7d86a5;
  --line: #e4e8f3;
  --blue: #1f5eff;
  --blue-hi: #4a7dff;
  --blue-50: #eef3ff;
  --blue-100: #dde7ff;
  --navy: #0b1640;
  --navy-2: #172a6b;
  --on-navy: #eef2ff;
  --on-navy-muted: #a3b0dc;
  --good: #12a150;
  --ok: #e0a100;
  --warn: #ee7a1a;
  --bad: #d93636;
  --glow: rgba(31, 94, 255, .35);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 21, 48, .05);
  --shadow: 0 1px 2px rgba(14, 21, 48, .04), 0 12px 32px -14px rgba(14, 21, 48, .16);
  --shadow-lg: 0 2px 4px rgba(14, 21, 48, .04), 0 30px 60px -24px rgba(14, 21, 48, .28);
  --tabbar-h: 0px;
  /* Kept for motion.css */
  --paper-2: var(--surface);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
/* Keyboard users can jump past the menu: the link shows once it has focus */
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mob-only { display: none !important; }

/* ---------- Eyebrow pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.pill b { background: var(--blue); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: .02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 16px 24px; min-height: 52px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(31, 94, 255, .6);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--blue-hi); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(31, 94, 255, .6); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn.soft { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.soft:hover { border-color: #c9d3ee; background: var(--surface); }
.btn.dark { background: var(--ink); box-shadow: 0 8px 20px -10px rgba(14, 21, 48, .6); }
.btn.dark:hover { background: #222c55; }
.btn.white { background: #fff; color: var(--ink); box-shadow: none; }
.btn.white:hover { background: #eef2ff; }
.btn.sm { padding: 11px 18px; min-height: 42px; font-size: 15px; }

/* ---------- Desktop header: floating glass pill ---------- */
header.site {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 40;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  pointer-events: none; margin-top: 12px;
}
header.site .bar {
  pointer-events: auto; max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid rgba(228, 232, 243, .9); box-shadow: var(--shadow);
}
/* Only the rounded bar reacts to scrolling; the full-width header area stays see-through */
header.site, header.site.scrolled { background: transparent; box-shadow: none; }
header.site.scrolled .bar { box-shadow: var(--shadow-lg); background: rgba(255, 255, 255, .9); }
.brand { display: block; width: 118px; flex: none; }
.brand img { display: block; width: 100%; height: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
  padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.menu a:hover { background: var(--blue-50); color: var(--ink); }
.menu a.on { color: var(--blue); background: var(--blue-50); }

/* Tablets: fewer menu links so the bar stays on one line */
@media (min-width: 761px) and (max-width: 1040px) {
  .menu a[href$="#features"], .menu a[href$="#how"] { display: none; }
}

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- Section heads ---------- */
section { padding-block: 96px; }
.head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 640px; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.head p { color: var(--ink-2); font-size: 18.5px; }
.grad { background: linear-gradient(100deg, var(--blue) 10%, #5aa2ff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
label, .label { font-size: 15px; font-weight: 700; color: var(--ink); }
label .opt { color: var(--muted); font-weight: 500; }
input, select, textarea {
  font: 500 16px/1.4 var(--body); color: var(--ink);
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: 14px;
  padding: 15px 16px; width: 100%; min-height: 54px; transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #9aa2bf; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 5px rgba(31, 94, 255, .12); }
textarea { min-height: 130px; resize: vertical; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }
.field.invalid input, .field.invalid select { border-color: var(--bad); background: #fff6f6; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: var(--on-navy-muted); margin-top: 0; }
footer.site .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; padding-block: 56px 32px; }
footer.site img { width: 132px; height: auto; display: block; }
footer.site p { margin-top: 14px; max-width: 34ch; font-size: 15px; }
footer.site h2 { color: #fff; font-family: var(--body); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; }
footer.site ul a, footer.site .legal a { display: inline-block; padding-block: 9px; }
footer.site a { color: var(--on-navy); text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Progress bar sits above the floating header ---------- */
.progress { z-index: 50; }

/* ================= PHONES ================= */
@media (max-width: 760px) {
  :root { --tabbar-h: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body { font-size: 16px; }
  html { scroll-padding-top: 72px; }
  .desk-only { display: none !important; }
  .mob-only { display: revert !important; }

  /* Same floating rounded bar as desktop, sized for a phone */
  header.site { top: calc(env(safe-area-inset-top, 0px) + 8px); margin-top: 8px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  header.site .bar { padding: 6px 6px 6px 16px; gap: 12px; }
  .menu { display: none; }
  .brand { width: 104px; }
  header.site .btn.sm { padding: 10px 16px; min-height: 42px; font-size: 14.5px; }

  /* App-style tab bar */
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 14px;
    color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
    transition: color .2s, background .2s;
  }
  .tabbar a svg { width: 24px; height: 24px; transition: transform .25s cubic-bezier(.2,1.6,.4,1); }
  .tabbar a.on { color: var(--blue); background: var(--blue-50); }
  .tabbar a.on svg { transform: translateY(-1px) scale(1.08); }
  .tabbar a:active { background: var(--blue-100); }

  section { padding-block: 64px; }
  .head { margin-bottom: 32px; }
  .head h2 { font-size: clamp(30px, 8.6vw, 38px); }
  .head p { font-size: 16.5px; }
  .btn { width: 100%; }
  .btn.sm, .btn.inline { width: auto; }

  footer.site .wrap { grid-template-columns: 1fr 1fr; padding-block: 44px 24px; gap: 28px; }
  footer.site .about { grid-column: 1 / -1; }
}
