/* ============================================================================
   CareHub — design system v2
   Original styles for carehubaus.com · blue brand drawn from the CareHub app
   ============================================================================ */

:root {
  /* Brand blues (from the CareHub logo + app) */
  --brand:        #1f6bf2;
  --brand-strong: #1158e8;
  --brand-deep:   #0d47c0;
  --brand-grad:   linear-gradient(135deg, #3f8dfb 0%, #1158e8 100%);
  --navy:         #0b1f4e;
  --navy-deep:    #081637;
  --app-grad:     linear-gradient(135deg, #16306e 0%, #2563eb 100%);

  /* Surfaces */
  --bg:        #ffffff;
  --bg-tint:   #f4f8ff;
  --bg-soft:   #f8fafd;
  --card:      #ffffff;
  --line:      #e3eaf6;
  --line-soft: #edf2fb;

  /* Text */
  --ink:       #0e1c36;
  --ink-soft:  #3c4a63;
  --muted:     #64748b;

  /* Status (match the app) */
  --green:  #22c55e;
  --green-soft: #e8f9ef;
  --amber:  #f59e0b;
  --amber-soft: #fef3c7;
  --red:    #ef4444;
  --red-soft: #fee2e2;
  --blue-soft: #e3edfe;

  /* Shape & depth */
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14,28,54,.05), 0 2px 8px rgba(14,28,54,.04);
  --shadow:    0 12px 32px -12px rgba(15,70,190,.16);
  --shadow-lg: 0 32px 64px -24px rgba(11,31,78,.28);
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand); }

h1,h2,h3,h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a, button { -webkit-tap-highlight-color: transparent; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-deep); color: #c6d4ef; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #9fb2d6; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 16px;
}
.section--navy .eyebrow { color: #7fb0ff; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 660px; line-height: 1.7; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .14s ease, box-shadow .22s ease, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand-grad); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(17,88,232,.55);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 30px -8px rgba(17,88,232,.65); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn--white { background: #fff; color: var(--brand-deep); }
.btn--white:hover { color: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(0,0,0,.35); }
.btn--lg { padding: 17px 32px; font-size: 1.07rem; border-radius: 14px; }
.btn svg { flex: none; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.link-arrow::after { content: "→"; transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.32rem; color: var(--ink); letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a { display: block; color: var(--ink-soft); font-weight: 600; font-size: .97rem; padding: 9px 14px; border-radius: 9px; }
.nav-links a:hover { color: var(--brand-strong); background: var(--bg-tint); }
.nav-links a.active { color: var(--brand-strong); }
.has-menu > a::after { content: " ▾"; font-size: .7em; opacity: .65; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-menu:hover .dropdown, .has-menu.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; flex-direction: column; gap: 1px; padding: 11px 13px; border-radius: 10px; }
.dropdown a b { color: var(--ink); font-size: .95rem; }
.dropdown a span { color: var(--muted); font-weight: 500; font-size: .82rem; }
.dropdown a:hover b { color: var(--brand-strong); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .text-link { font-weight: 700; color: var(--ink); padding: 9px 14px; border-radius: 9px; font-size: .97rem; }
.nav-actions .text-link:hover { color: var(--brand-strong); background: var(--bg-tint); }
.nav-actions .btn { padding: 11px 20px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 3px; transition: .25s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 540px at 82% -10%, rgba(63,141,251,.14), transparent 62%),
    radial-gradient(700px 420px at -8% 50%, rgba(17,88,232,.07), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { color: var(--green); flex: none; }

/* Floating chips around hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; color: var(--ink);
  z-index: 3; animation: floaty 6s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }
.float-chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.dot--green { background: var(--green-soft); color: #16a34a; }
.dot--blue  { background: var(--blue-soft);  color: var(--brand-strong); }
.dot--amber { background: var(--amber-soft); color: #b45309; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Phone mockup (recreates the real CareHub app) ---------- */
.phone {
  width: 320px; background: #0c1322; border-radius: 44px; padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
  flex: none;
}
.phone-screen { background: #f4f6fa; border-radius: 34px; overflow: hidden; position: relative; }
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; background: #0c1322; border-radius: 12px; z-index: 5;
}
/* App top bar */
.app-top {
  background: var(--app-grad); color: #fff;
  display: flex; align-items: center; gap: 9px; padding: 36px 14px 11px;
  font-weight: 800; font-size: .95rem;
}
.app-top .burger { width: 16px; display: grid; gap: 3px; }
.app-top .burger i { height: 2px; background: rgba(255,255,255,.9); border-radius: 2px; display:block; }
.app-top img { width: 24px; height: 24px; border-radius: 6px; }
.app-top .spacer { flex: 1; }
.app-top .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: grid; place-items: center; font-size: .62rem; font-weight: 800;
}
/* App gradient hero card */
.app-hero { background: var(--app-grad); color: #fff; padding: 14px 16px 18px; border-radius: 0 0 22px 22px; }
.app-hero h5 { margin: 0 0 2px; font-size: 1.18rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.app-hero p { margin: 0 0 12px; font-size: .76rem; color: rgba(255,255,255,.75); }
.app-stats { display: flex; gap: 8px; }
.app-stat {
  flex: 1; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 9px 6px; text-align: center;
}
.app-stat b { display: block; font-size: 1.15rem; font-weight: 800; }
.app-stat span { font-size: .56rem; letter-spacing: .08em; opacity: .8; font-weight: 700; }
/* App body & cards */
.app-body { padding: 12px 12px 0; display: grid; gap: 10px; }
.app-card { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 2px 10px rgba(14,28,54,.06); font-size: .78rem; }
.app-card h6 { margin: 0 0 4px; font-size: .88rem; font-weight: 800; color: var(--ink); }
.app-card .sub { color: var(--muted); font-size: .7rem; }
.app-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.app-row:last-child { border-bottom: 0; }
.app-row .grow { flex: 1; min-width: 0; }
.app-row b { font-size: .78rem; color: var(--ink); display: block; }
.app-row small { color: var(--muted); font-size: .66rem; }
/* Pills (match app status colours) */
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .62rem; font-weight: 700; line-height: 1.5; }
.pill--blue  { background: var(--blue-soft);  color: var(--brand-strong); }
.pill--green { background: var(--green-soft); color: #15803d; }
.pill--amber { background: var(--amber-soft); color: #b45309; }
.pill--red   { background: var(--red-soft);   color: #b91c1c; }
/* App warning banner */
.app-warn {
  background: var(--amber-soft); border: 1px solid #fde68a; border-radius: 12px;
  padding: 10px 12px; font-size: .7rem; color: #92400e; font-weight: 600;
}
.app-warn b { display: block; font-size: .76rem; color: #78350f; }
/* Doc rows */
.doc-x, .doc-ok { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .72rem; flex: none; }
.doc-x { background: var(--red-soft); color: #dc2626; }
.doc-ok { background: var(--green-soft); color: #16a34a; }
.upload-btn { background: var(--blue-soft); color: var(--brand-strong); font-size: .64rem; font-weight: 700; padding: 5px 11px; border-radius: 8px; flex: none; }
/* Green clock-in button */
.app-clockbtn {
  background: var(--green); color: #fff; text-align: center; font-weight: 800; font-size: .95rem;
  border-radius: 12px; padding: 13px; box-shadow: 0 8px 18px -6px rgba(34,197,94,.5);
}
/* App bottom tab bar */
.app-tabs {
  display: flex; justify-content: space-around; background: #fff; margin-top: 12px;
  padding: 9px 4px 14px; border-top: 1px solid var(--line-soft); font-size: .58rem; font-weight: 600; color: #8d99ae;
}
.app-tabs span { display: grid; justify-items: center; gap: 3px; }
.app-tabs svg { width: 17px; height: 17px; }
.app-tabs .on { color: var(--brand-strong); position: relative; }
.app-tabs .on::before { content: ""; position: absolute; top: -10px; width: 26px; height: 3px; border-radius: 3px; background: var(--brand-strong); }

/* ---------- Browser mockup (office console) ---------- */
.browser {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; width: 100%;
}
.browser-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  background: #f4f7fd; border-bottom: 1px solid var(--line);
}
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser-bar .dots i:nth-child(1){ background: #fda4af; } .browser-bar .dots i:nth-child(2){ background: #fcd34d; } .browser-bar .dots i:nth-child(3){ background: #86efac; }
.browser-bar .url {
  flex: 1; max-width: 320px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; font-size: .72rem; color: var(--muted); padding: 5px 12px; font-weight: 600;
}
.browser-body { padding: 18px; }

/* Console widgets used inside .browser */
.con-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.con-head b { font-size: .92rem; }
.con-head .pill { font-size: .64rem; }
.tile-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--bg-tint); border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 12px; }
.tile b { display: block; font-size: 1.18rem; color: var(--brand-deep); letter-spacing: -0.02em; }
.tile span { font-size: .66rem; color: var(--muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
/* Roster timeline */
.roster { display: grid; gap: 7px; }
.roster-row { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: center; }
.roster-row .who { display: flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; color: var(--ink); }
.avatar-sm { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .56rem; font-weight: 800; background: var(--blue-soft); color: var(--brand-deep); flex: none; }
.roster-row .lane { position: relative; height: 26px; background: var(--bg-soft); border-radius: 8px; }
.shift-block {
  position: absolute; top: 3px; bottom: 3px; border-radius: 6px;
  background: var(--brand-grad); color: #fff; font-size: .58rem; font-weight: 700;
  display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden;
}
.shift-block--green { background: linear-gradient(135deg,#34d399,#16a34a); }
.shift-block--amber { background: linear-gradient(135deg,#fbbf24,#d97706); }
.shift-block--outline { background: #fff; border: 1.5px dashed var(--brand); color: var(--brand-strong); }
/* Heatmap */
.heatmap { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.heatmap i { aspect-ratio: 1; border-radius: 4px; background: var(--blue-soft); display: block; }
.heatmap .h1 { background: #dbeafe; } .heatmap .h2 { background: #93c5fd; } .heatmap .h3 { background: #3b82f6; } .heatmap .h4 { background: #1d4ed8; }
.heatmap .warn { background: var(--amber); } .heatmap .bad { background: var(--red); }
/* Mini bars */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 86px; }
.bars i { flex: 1; background: var(--blue-soft); border-radius: 6px 6px 2px 2px; display: block; position: relative; }
.bars i.hl { background: var(--brand-grad); }
/* Budget progress */
.budget { display: grid; gap: 9px; }
.budget-row { font-size: .7rem; font-weight: 700; color: var(--ink); }
.budget-row .track { height: 8px; background: var(--bg-soft); border-radius: 6px; margin-top: 4px; overflow: hidden; }
.budget-row .fill { height: 100%; border-radius: 6px; background: var(--brand-grad); }
.budget-row .fill--amber { background: linear-gradient(90deg,#fbbf24,#d97706); }
.budget-row .meta { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; font-size: .64rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfdffc; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--brand-strong);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card h3 { margin-bottom: 9px; font-size: 1.18rem; }
.card p { margin: 0; font-size: .97rem; color: var(--muted); }
.card .link-arrow { margin-top: 16px; font-size: .93rem; display: inline-flex; }

/* Persona cards */
.persona {
  position: relative; overflow: hidden; padding: 34px 30px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 60%, var(--bg-tint));
  transition: transform .2s, box-shadow .25s, border-color .2s; display: block;
}
.persona:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfdffc; }
.persona .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-grad); color: #fff; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 10px 20px -8px rgba(17,88,232,.5); }
.persona h3 { color: var(--ink); }
.persona p { color: var(--muted); font-size: .97rem; }
.persona .link-arrow { font-size: .94rem; }

/* Feature checklist */
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-list li { position: relative; padding-left: 34px; margin-bottom: 13px; color: var(--ink-soft); }
.feature-list li b { color: var(--ink); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%231158e8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}

/* Split rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row + .feature-row { margin-top: 104px; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row .visual { display: flex; justify-content: center; }

/* Journey strip (end-to-end) */
.journey { display: grid; grid-template-columns: repeat(7,1fr); gap: 0; position: relative; counter-reset: jstep; }
.journey::before { content: ""; position: absolute; top: 26px; left: 8%; right: 8%; border-top: 2px dashed #c4d6f8; }
.jstep { position: relative; text-align: center; padding: 0 8px; }
.jstep .n {
  counter-increment: jstep; width: 52px; height: 52px; margin: 0 auto 14px;
  background: #fff; border: 2px solid #c4d6f8; color: var(--brand-strong);
  border-radius: 16px; display: grid; place-items: center; position: relative; z-index: 1;
}
.jstep b { display: block; font-size: .92rem; color: var(--ink); margin-bottom: 3px; }
.jstep span { font-size: .8rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Metrics band ---------- */
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; text-align: center; }
.metrics .m b { display: block; font-size: 2.7rem; font-weight: 800; letter-spacing: -0.035em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metrics .m span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.section--navy .metrics .m b { background: linear-gradient(135deg,#8db9ff,#4f8cff); -webkit-background-clip: text; background-clip: text; }
.section--navy .metrics .m span { color: #8fa3c8; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px;
}
.quote-card .stars { color: var(--amber); font-size: .95rem; letter-spacing: 2px; }
.quote-card blockquote { margin: 0; font-size: 1.04rem; line-height: 1.65; color: var(--ink-soft); font-weight: 500; flex: 1; }
.quote-card .who { display: flex; align-items: center; gap: 13px; }
.quote-card .who .avatar-sm { width: 44px; height: 44px; font-size: .85rem; border-radius: 13px; background: var(--brand-grad); color: #fff; }
.quote-card .who b { display: block; color: var(--ink); font-size: .95rem; }
.quote-card .who span { color: var(--muted); font-size: .84rem; }

/* ---------- Pricing ---------- */
.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 44px; font-weight: 700; font-size: .95rem; color: var(--muted); }
.toggle-wrap .save { background: var(--green-soft); color: #15803d; font-size: .76rem; padding: 4px 11px; border-radius: 999px; font-weight: 800; }
.bill-toggle { position: relative; width: 56px; height: 30px; background: var(--brand-grad); border-radius: 999px; border: 0; cursor: pointer; }
.bill-toggle i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform .22s ease; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.bill-toggle[aria-checked="true"] i { transform: translateX(26px); }
.toggle-wrap .lbl.on { color: var(--ink); }
.price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative;
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price-card.featured::after {
  content: "Most popular"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  padding: 6px 16px; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}
.price-card h3 { font-size: 1.22rem; margin-bottom: 4px; }
.price-card .for { color: var(--muted); font-size: .87rem; margin: 0 0 18px; min-height: 42px; }
.price-card .price { font-size: 2.7rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.price-card .price small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card .per { color: var(--muted); font-size: .8rem; margin: 6px 0 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-card li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--ink-soft); font-size: .9rem; }
.price-card li.muted-li { color: #9aa7bd; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 6px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%231158e8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}
.price-card li b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; margin-bottom: 12px; background: #fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #cfdffc; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); padding: 19px 0; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--brand); font-weight: 300; line-height: 1; transition: transform .22s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1763ef 0%, #0d47c0 60%, #0b2e86 100%);
  border-radius: 28px; padding: 72px 56px; text-align: center; color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07);
}
.cta-band::before { width: 380px; height: 380px; top: -190px; right: -110px; }
.cta-band::after { width: 260px; height: 260px; bottom: -130px; left: -70px; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 32px; position: relative; }
.cta-band .hero-cta { justify-content: center; position: relative; margin-bottom: 0; }
.cta-band .note { margin-top: 18px; font-size: .87rem; color: rgba(255,255,255,.7); position: relative; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31,107,242,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.flash { padding: 15px 18px; border-radius: 12px; background: var(--green-soft); color: #15803d; font-weight: 600; margin-bottom: 18px; display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #93a6cb; padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: #93a6cb; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-about { font-size: .94rem; color: #7d92bb; max-width: 320px; line-height: 1.7; }
.footer-bottom { margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.09); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .87rem; color: #6a7fa9; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding: 76px 0 56px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 420px at 85% -20%, rgba(63,141,251,.13), transparent 62%),
    linear-gradient(180deg, #fbfdff, #fff);
}
.page-hero .lead { margin-left: auto; margin-right: auto; }

/* ---------- Reveal on scroll ----------
   Animation is opt-in: main.js adds .anim to <html> only when JS + IO are
   available. Without JS everything is simply visible. */
html.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
html.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.anim .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
}

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.maxw-head { max-width: 720px; margin: 0 auto 56px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .feature-row { grid-template-columns: 1fr; gap: 48px; }
  .feature-row.reverse .feature-text { order: 0; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4, .price-grid { grid-template-columns: repeat(2,1fr); }
  .journey { grid-template-columns: repeat(4,1fr); row-gap: 36px; }
  .journey::before { display: none; }
  .metrics { grid-template-columns: repeat(2,1fr); gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-grid { gap: 40px; }

  /* Mobile type scale: smaller, calmer headings that wrap cleanly */
  h1 { font-size: clamp(1.95rem, 8.4vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.16; }
  h2 { font-size: clamp(1.45rem, 6.6vw, 1.8rem); line-height: 1.2; }
  h3 { font-size: 1.18rem; }
  .lead { font-size: 1.04rem; line-height: 1.65; }
  .eyebrow { font-size: .7rem; letter-spacing: .09em; }
  .hero-note { gap: 10px 16px; font-size: .84rem; }

  /* Full-width, thumb-friendly CTAs */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 11px; }
  .hero-cta .btn { width: 100%; }

  /* Mobile menu: big tap targets, no clutter, scrolls if long */
  .nav { flex-wrap: wrap; height: auto; min-height: 74px; }
  .nav-toggle { display: block; order: 2; }
  .nav-links { display: none; order: 3; }
  .nav-actions { display: none; order: 4; }
  .nav.open { padding-bottom: 20px; }
  .nav.open .nav-links, .nav.open .nav-actions { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .nav.open .nav-links { border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 4px; max-height: calc(100vh - 200px); overflow-y: auto; }
  .nav.open .nav-links a { font-size: 1.04rem; padding: 13px 14px; border-radius: 10px; }
  .nav.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav.open .dropdown a { padding: 11px 14px; }
  .nav.open .dropdown a span { display: none; }
  .nav.open .has-menu > a::after { content: ""; }
  .nav.open .nav-actions { margin-top: 12px; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
  .nav.open .nav-actions .btn, .nav.open .nav-actions .text-link { width: 100%; text-align: center; justify-content: center; padding: 13px 20px; }

  .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
  .grid { gap: 18px; }
  .card { padding: 24px 22px; }
  .persona { padding: 28px 24px; }
  .feature-row { gap: 36px; }
  .feature-row + .feature-row { margin-top: 64px; }
  .feature-list li { margin-bottom: 11px; font-size: .97rem; }
  .journey { grid-template-columns: repeat(2,1fr); gap: 26px 12px; }
  .jstep span { font-size: .76rem; }
  .metrics .m b { font-size: 2.1rem; }
  .cta-band { padding: 44px 24px; border-radius: 20px; }
  .float-chip { display: none; }

  /* Mockups: scaled to fit comfortably with breathing room */
  .phone { width: 268px; border-radius: 38px; }
  .phone-screen { border-radius: 30px; }
  .browser { border-radius: 16px; }
  .browser-body { padding: 14px; }
  .browser-bar .url { font-size: .66rem; }
  .tile { padding: 9px 10px; }
  .tile b { font-size: 1rem; }
  .tile span { font-size: .58rem; }
  .roster-row { grid-template-columns: 70px 1fr; gap: 7px; }
  .roster-row .who { font-size: .64rem; }
  .con-head b { font-size: .84rem; }

  .quote-card { padding: 24px 22px; }
  .price-card { padding: 26px 20px; }
  .form-card { padding: 26px 18px; }
  .page-hero { padding: 48px 0 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .grid-4, .price-grid, .metrics, .footer-grid, .journey { grid-template-columns: 1fr; }
}
