/* ==========================================================================
   RivetFlo — design system
   Warm minimal: cream + steel navy + RivetFlo brand blue (from the logo).
   Headings: Space Grotesk. Body: Inter.
   ========================================================================== */

:root {
  --cream: #fbf7ef;
  --surface: #fffdf8;
  --sunken: #f3ecde;
  --hairline: #e7decb;
  --ink: #0b2540;
  --ink-strong: #081b30;
  --muted: #5b6577;
  --accent: #0b6fd6;
  --accent-deep: #0a58aa;
  --accent-soft: rgba(11, 111, 214, 0.08);
  --good: #1e9e6a;
  --navy: #0a1a2f;
  --navy-raise: #11253e;
  --navy-line: #20354f;
  --radius: 14px;
  --radius-lg: 20px;
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(11, 37, 64, 0.05), 0 2px 8px rgba(11, 37, 64, 0.04);
  --shadow: 0 1px 2px rgba(11, 37, 64, 0.06), 0 14px 34px rgba(11, 37, 64, 0.09);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 14px;
  color: var(--ink-strong);
}

h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }

p { margin: 0 0 14px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.kicker {
  font-family: var(--font-head);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 14px;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
  max-width: 560px;
}

.section { padding: 96px 0; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-sub { color: var(--muted); font-size: 17px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fffdf8;
  box-shadow: 0 1px 2px rgba(10, 88, 170, 0.3), 0 8px 20px rgba(11, 111, 214, 0.22);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(10, 88, 170, 0.3), 0 12px 26px rgba(11, 111, 214, 0.28);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: #ffffff; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }

/* ============ Nav ============ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.logo-img { height: 36px; width: auto; display: block; }

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 30%, #bfe3ff 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, var(--accent) 0 58%, transparent 60%),
    linear-gradient(145deg, #122c4a, var(--navy));
  border: 1px solid rgba(11, 37, 64, 0.2);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18);
}

.logo-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink-strong);
  letter-spacing: -0.02em;
}
.logo-word em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none !important;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink-strong); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 90px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 37, 64, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 64, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -240px;
  right: -200px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(11, 111, 214, 0.08), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}
.hero-proof li {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-proof li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---- Phone demo ---- */
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(400px, 100%);
}

.demo-tab {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.demo-tab:hover { color: var(--ink-strong); border-color: #d8cdb4; }
.demo-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
  box-shadow: 0 4px 12px rgba(11, 111, 214, 0.25);
}

.demo-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.demo-panel[hidden] { display: none; }

.wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
  flex: none;
}
.wave span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  height: 6px;
  animation: wave 1.05s infinite ease-in-out;
}
.wave span:nth-child(2) { animation-delay: 0.15s; }
.wave span:nth-child(3) { animation-delay: 0.3s; }
.wave span:nth-child(4) { animation-delay: 0.45s; }
.wave span:nth-child(5) { animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { height: 5px; opacity: 0.55; }
  50% { height: 16px; opacity: 1; }
}

.transcript-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 2px;
}

.phone {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--cream);
}

.phone-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 34% 30%, #bfe3ff 0 14%, transparent 15%),
    radial-gradient(circle, var(--accent) 0 62%, transparent 64%),
    var(--navy);
  border: 1px solid rgba(11, 37, 64, 0.15);
}

.phone-meta { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.phone-meta strong { font-size: 14.5px; color: var(--ink-strong); }
.phone-status { font-size: 12.5px; color: var(--muted); }

.phone-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(11, 111, 214, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  flex: none;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 18px 24px;
  min-height: 360px;
}

.msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.msg.show { opacity: 1; transform: translateY(0); }

.msg-in {
  align-self: flex-start;
  background: var(--sunken);
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 5px;
  color: var(--ink);
}

.msg-out {
  align-self: flex-end;
  background: linear-gradient(135deg, #0a58aa, #1191f5);
  border-bottom-right-radius: 5px;
  color: #f2f9ff;
  box-shadow: 0 4px 12px rgba(11, 111, 214, 0.2);
}

.chat-event {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #15724d;
  background: rgba(30, 158, 106, 0.09);
  border: 1px solid rgba(30, 158, 106, 0.3);
  border-radius: 999px;
  padding: 7px 14px;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.chat-event.show { opacity: 1; transform: translateY(0); }

.event-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--good);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.typing {
  align-self: flex-end;
  display: none;
  gap: 5px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(11, 111, 214, 0.18);
  border-radius: 16px;
  border-bottom-right-radius: 5px;
}
.typing.show { display: inline-flex; }
.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.1s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes blink {
  0%, 70%, 100% { opacity: 0.25; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

.demo-caption { font-size: 13.5px; color: var(--muted); text-align: center; }

/* ============ Integration strip ============ */
.strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--sunken);
  padding: 34px 0;
}

.strip-label {
  text-align: center;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 18px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-row li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  opacity: 0.75;
  white-space: nowrap;
}

/* ============ Cards ============ */
.card-grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* rivet corner dots */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0e7d3, #d4c8ab 70%);
  top: 10px;
}
.card::before { left: 10px; }
.card::after { right: 10px; }

.card-icon { font-size: 26px; margin-bottom: 14px; line-height: 1; }

.card p { color: var(--muted); font-size: 15px; margin: 0; }

.card.feature:hover { border-color: rgba(11, 111, 214, 0.35); }

/* ============ Problem section ============ */
.section-problem { background: var(--cream); }

/* ============ Platform section ============ */
.section-platform {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.section-platform .card { background: var(--cream); }

/* ============ Steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fffdf8;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(11, 111, 214, 0.25);
}

.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ============ Agents ============ */
.section-agents {
  background: var(--sunken);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.agent {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.agent:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(11, 111, 214, 0.35); }

.agent-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(11, 111, 214, 0.25);
  border-radius: 6px;
  padding: 3px 9px;
  margin-bottom: 14px;
}

.agent h3 { font-size: 16.5px; margin-bottom: 8px; }
.agent p { color: var(--muted); font-size: 14px; margin: 0; }

/* ============ Industries ============ */
.industry h3 { color: var(--accent-deep); }
.industry-custom { border-style: dashed; border-color: #d8cdb4; background: transparent; box-shadow: none; }
.industry-custom h3 { color: var(--ink-strong); }

/* ============ Custom builds ============ */
.section-custom {
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(11, 111, 214, 0.05), transparent 60%),
    var(--surface);
  border-top: 1px solid var(--hairline);
}

.custom-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 15.5px;
}
.check-list li strong { color: var(--ink-strong); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #fffdf8;
  background: var(--accent);
}

.custom-panel {
  background: var(--navy);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  box-shadow: var(--shadow);
}

.panel-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--navy-line);
  color: #c3cfdd;
}
.panel-line:last-child { border-bottom: 0; }
.panel-key { color: #7e90a5; }
.panel-live { color: #3ddc84; }

/* ============ Outcomes (dark navy band) ============ */
.section-outcomes {
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
}
.section-outcomes h2 { color: #f5f8fb; }
.section-outcomes .kicker { color: #5fb2ff; }

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.outcome {
  background: var(--navy-raise);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.outcome strong {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: #5fb2ff;
  letter-spacing: -0.02em;
}
.outcome span { color: #b9c6d4; font-size: 14.5px; }

/* ============ CTA / form ============ */
.section-cta {
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(11, 111, 214, 0.07), transparent 65%),
    var(--cream);
}

.cta-inner { max-width: 720px; text-align: center; }
.cta-inner .section-sub { margin-bottom: 36px; }

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.lead-form label { display: flex; flex-direction: column; gap: 7px; }
.lead-form label span { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.lead-form input,
.lead-form textarea {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink-strong);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 111, 214, 0.14);
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #a8b0bb; }

.lead-form .btn { margin-top: 6px; }

.form-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.form-note.sent { color: var(--good); font-weight: 600; }

/* ============ Footer (dark navy) ============ */
.footer { background: var(--navy); padding: 60px 0 0; }

.footer .logo-word { color: #f5f8fb; }
.footer .logo-word em { color: #5fb2ff; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 44px;
}

.footer-tag { color: #8fa0b3; font-size: 14.5px; margin-top: 14px; max-width: 280px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-links h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7e90a5;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: #c3cfdd;
  font-size: 14.5px;
  margin-bottom: 10px;
  text-decoration: none !important;
}
.footer-links a:hover { color: #ffffff; }

.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--navy-line);
  padding-top: 22px;
  padding-bottom: 26px;
  color: #8fa0b3;
  font-size: 13.5px;
}
.footer-base a { color: #c3cfdd; }

/* ============ Page hero (subpages) ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero .hero-inner { align-items: center; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); }

.breadcrumb {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink-strong); }

/* ============ Pricing ============ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.tier-featured {
  border-color: rgba(11, 111, 214, 0.45);
  box-shadow: var(--shadow);
}

.tier-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fffdf8;
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

.tier h3 { font-size: 21px; margin-bottom: 6px; }
.tier-for { color: var(--muted); font-size: 14px; min-height: 42px; margin-bottom: 18px; }

.tier-price {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier-price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier-price-note { font-size: 13px; color: var(--muted); margin: 6px 0 22px; }

.tier-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tier-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink);
}
.tier-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
}
.tier-list li.tier-incl {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 0;
  margin-top: 4px;
}
.tier-list li.tier-incl::before { content: none; }

.tier .btn { width: 100%; }

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 26px;
}

/* Founders Club */
.founders-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9a6b00;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.tier-onboarding { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.tier-lock {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #9a6b00;
  margin-top: 12px;
}

.founders-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.founders-strip .card { padding: 20px; }
.founders-strip h3 { font-size: 15px; margin-bottom: 6px; }
.founders-strip p { font-size: 13.5px; }

@media (max-width: 1020px) {
  .founders-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .founders-strip { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 4px 22px;
}
.faq summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink-strong);
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  flex: none;
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }

/* ============ Testimonials (hidden until real quotes exist) ============ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0 0 16px; font-size: 15.5px; color: var(--ink); }
.quote cite { font-style: normal; font-size: 13.5px; color: var(--muted); }

/* ============ Form status + Turnstile ============ */
.form-status {
  display: none;
  text-align: center;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
}
.form-status.ok { display: block; background: rgba(30, 158, 106, 0.1); border: 1px solid rgba(30, 158, 106, 0.35); color: #15724d; }
.form-status.err { display: block; background: rgba(209, 67, 67, 0.08); border: 1px solid rgba(209, 67, 67, 0.3); color: #a83232; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.turnstile-slot { display: flex; justify-content: center; min-height: 0; }

/* ============ Pricing teaser (home) ============ */
.teaser-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.teaser {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.teaser h3 { font-size: 17px; margin-bottom: 6px; }
.teaser p { color: var(--muted); font-size: 14px; margin: 0; }

.center { text-align: center; }

/* ============ Reveal on scroll (only hidden when JS is running) ============ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .msg, .chat-event { transition: none; }
  .wave span { animation: none; height: 10px; }
}

/* ============ Legal pages ============ */
.legal-main { max-width: 820px; margin: 0 auto; padding: 60px 24px 90px; }
.legal-main h1 { font-size: clamp(32px, 4.5vw, 46px); }
.legal-main h2 { font-size: 22px; margin-top: 38px; }
.legal-main p, .legal-main li { color: #3d4a5c; font-size: 15.5px; }
.legal-main ul { padding-left: 22px; }
.legal-updated {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(11, 111, 214, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 72px 0 70px; }
  .hero-demo { order: 2; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .custom-inner { grid-template-columns: 1fr; gap: 40px; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .tier-grid, .quote-grid, .teaser-row { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .teaser-row { margin-bottom: 30px; }
}

@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .cols-3, .agent-grid, .steps, .outcome-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }

  .logo-img { height: 30px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    padding: 10px 24px 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; }
  .nav-links a:last-child { border-bottom: 0; }
}
