/* ============ tokens ============ */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f3f1ec;
  --bg-dark: #0f1419;
  --surface: #ffffff;
  --ink: #0f1419;
  --ink-soft: #4a5360;
  --ink-mute: #7c8694;
  --line: #e6e2d8;
  --accent: #2046ff;
  --accent-soft: #e7ecff;
  --accent-deep: #16329a;
  --green: #0c8a4b;
  --green-soft: #d6f1e1;
  --amber: #b6731a;
  --amber-soft: #fbeacb;
  --red: #c0392b;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(15,20,25,.06);
  --shadow-md: 0 6px 24px -8px rgba(15,20,25,.18);
  --shadow-lg: 0 24px 60px -20px rgba(15,20,25,.25);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  background: rgba(251,250,247,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 7px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 14px;
}
.brand-name { font-size: 17px; }
.brand-dot { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ============ hero ============ */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -120px;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 18px;
}
.eyebrow.center { display: block; text-align: center; }
.eyebrow.light { color: var(--accent-soft); }
.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero-accent {
  display: block;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 30px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 560px;
}
.hero-meta strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.hero-meta span {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* hero dashboard mock */
.hero-visual {
  position: relative;
}
.dash {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(.4deg);
}
.dash-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #fafaf7;
  border-bottom: 1px solid var(--line);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.dash-title {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
}
.dash-body { padding: 24px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
}
.stat-label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-bottom: 4px;
  font-weight: 500;
}
.stat-value {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stat-trend {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}
.dash-chart {
  background: linear-gradient(to bottom, var(--bg-alt), transparent);
  border-radius: var(--r-md);
  padding: 8px;
  margin-bottom: 18px;
}
.dash-chart svg { width: 100%; height: 80px; }
.dash-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.dash-list li {
  font-size: 13px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  color: var(--ink-soft);
}
.dash-list em { color: var(--green); font-style: normal; font-weight: 600; }
.pill {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-blue { background: var(--accent-soft); color: var(--accent-deep); }

/* ============ compatibility strip ============ */
.logo-strip {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.compat { text-align: center; }
.compat-line {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
  font-family: 'Fraunces', serif;
  letter-spacing: -0.005em;
}

/* ============ sections ============ */
.section {
  padding: 100px 0;
}
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--bg); }
.section-dark .section-title,
.section-dark .roi-text { color: var(--bg); }
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 1rem + 2.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 auto 14px;
  max-width: 820px;
}
.section-title.light { color: var(--bg); }
.section-sub {
  text-align: center;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-sub.left { text-align: left; margin-left: 0; }

/* ============ problem grid ============ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-stat {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ steps ============ */
.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
}
.step-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .15em;
  display: inline-block;
  margin-bottom: 12px;
}
.steps h3 {
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.steps p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
}

/* ============ demo ============ */
.demo {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .demo { grid-template-columns: 1fr; max-width: 460px; }
}
.phone {
  background: var(--ink);
  border-radius: 28px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  height: 580px;
  display: flex;
  flex-direction: column;
}
.phone-head {
  text-align: center;
  padding: 6px 0 14px;
  border-bottom: 1px solid #2a3038;
  color: #b9c1cb;
}
.phone-bar {
  display: block;
  width: 50px; height: 4px;
  background: #2a3038;
  border-radius: 4px;
  margin: 0 auto 14px;
}
.phone-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.phone-time {
  display: block;
  font-size: 11.5px;
  color: #6c7480;
  margin-top: 2px;
}
.chat {
  flex: 1;
  overflow-y: auto;
  padding: 18px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  animation: bubble-in .4s var(--ease) forwards;
}
.bubble-them {
  align-self: flex-start;
  background: #2a3038;
  color: #f0f1f3;
  border-bottom-left-radius: 6px;
}
.bubble-us {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble-time {
  font-size: 10.5px;
  color: #6c7480;
  align-self: center;
  margin: 4px 0;
  opacity: 0;
  animation: bubble-in .4s var(--ease) forwards;
}
@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

.timeline h3 {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
  margin: 0 0 22px;
}
.timeline ul {
  list-style: none;
  padding: 0; margin: 0 0 24px;
  border-left: 2px solid var(--line);
}
.tl-event {
  position: relative;
  padding: 0 0 22px 22px;
  opacity: 0.25;
  transition: opacity .4s var(--ease);
}
.tl-event::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px; height: 12px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: all .3s var(--ease);
}
.tl-event.active {
  opacity: 1;
}
.tl-event.active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-time {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 600;
  letter-spacing: .04em;
}
.tl-text {
  display: block;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.tl-event.active .tl-text { color: var(--ink); }

/* ============ ROI ============ */
.roi-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 820px) { .roi-grid { grid-template-columns: 1fr; gap: 36px; } }
.roi-text {
  font-size: 17px;
  color: #c4cbd4;
  margin: 18px 0;
}
.roi-text strong { color: #fff; }
.roi-calc {
  background: #1a2128;
  border: 1px solid #2a3038;
  border-radius: var(--r-lg);
  padding: 28px;
}
.roi-calc h3 {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8c95a1;
}
.roi-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  color: #c4cbd4;
  border-bottom: 1px solid #2a3038;
}
.roi-row strong { color: #fff; font-weight: 600; }
.roi-row:last-child { border-bottom: 0; }
.roi-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--accent) !important;
  font-size: 17px;
}
.roi-total strong {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--accent);
}
.roi-disclaimer {
  margin: 16px 0 0;
  font-size: 12px;
  color: #6c7480;
  font-style: italic;
}

/* ============ pricing ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; max-width: 420px; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
}
.price-card-featured {
  border: 2px solid var(--ink);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.price-badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 10px;
  border-radius: 999px;
}
.price-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: .02em;
}
.price {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.price span {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-left: 4px;
}
.price-sub {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.price-card ul {
  list-style: none;
  padding: 0; margin: 0;
}
.price-card li {
  padding: 8px 0 8px 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  color: var(--green);
  font-weight: 700;
}

/* ============ audit form ============ */
.audit-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 820px) { .audit-wrap { grid-template-columns: 1fr; } }
.audit-copy .section-title { text-align: left; }
.audit-bullets {
  list-style: none;
  padding: 0; margin: 24px 0 0;
}
.audit-bullets li {
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.audit-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 16px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.audit-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.audit-form input,
.audit-form select,
.audit-form textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.audit-form input:focus,
.audit-form select:focus,
.audit-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.audit-form textarea { resize: vertical; }
.form-fine {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-mute);
  text-align: center;
}
.form-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fdecea;
  border: 1px solid #f5c2b7;
  border-radius: var(--r-md);
  color: var(--red);
  font-size: 13.5px;
}
.form-success {
  text-align: center;
  padding: 24px 8px;
}
.form-success-icon {
  width: 56px; height: 56px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-weight: 700;
}
.form-success h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.form-success p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 10px;
}
.form-success-fine {
  font-size: 12.5px !important;
  color: var(--ink-mute) !important;
  margin-top: 16px !important;
}

/* ============ footer ============ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer .brand-mark + .brand-name { margin-left: 6px; }
.footer-tag {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-mute);
}
.footer-meta a:hover { color: var(--ink); }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
