/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.025em;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============ Design tokens (light-mode replica) ============ */
:root {
  --background: 0 0% 98%;
  --foreground: 0 0% 20%;
  --card: 0 0% 96%;
  --primary: 0 0% 25%;
  --primary-foreground: 0 0% 98%;
  --muted: 0 0% 88%;
  --muted-foreground: 0 0% 45%;
  --border: 0 0% 85%;
  --radius: 0.75rem;

  /* Brand gradient */
  --brand-gradient: linear-gradient(90deg, #1cd4d4, #2f92de, #4c67e6);

  /* Accent colors used by primary buttons / brand */
  --accent-primary: #2f92de;
}

/* ============ Utilities ============ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cosmic-grid {
  background-image:
    linear-gradient(rgba(64, 64, 64, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 64, 64, 0.12) 1px, transparent 1px);
  background-size: 45px 45px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--muted-foreground) / 0.7);
  margin-bottom: 12px;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.04em; font-weight: 700; }
p { margin: 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { opacity: .9; }
.btn-outline {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--muted) / 0.5); }
.btn-lg { height: 48px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============ Nav ============ */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: 12px;
  transition: transform .5s ease, opacity .5s ease;
}
.nav-wrap.hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: all .4s ease;
}
@media (min-width: 768px) { .nav { padding: 8px 48px; } }
.nav.scrolled {
  background: hsl(var(--background) / 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: hsl(var(--border) / 0.4);
  box-shadow: 0 2px 12px -4px rgba(0,0,0,0.08);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 24px; }
.nav-tag {
  display: none;
  align-items: center;
  gap: 8px;
  background: hsl(var(--muted));
  color: hsl(var(--primary));
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}
@media (min-width: 768px) { .nav-tag { display: inline-flex; } }
.dot { position: relative; width: 6px; height: 6px; }
.dot::before, .dot::after {
  content: '';
  position: absolute; inset: 0;
  background: hsl(var(--primary));
  border-radius: 999px;
}
.dot::before { animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite; opacity: .75; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.nav-links { display: none; gap: 4px; align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 999px;
  transition: all .2s;
}
.nav-links a:hover { color: hsl(var(--foreground)); background: hsl(var(--muted) / 0.5); }
.nav-links a.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

.nav-burger {
  background: none; border: none; padding: 10px;
  color: hsl(var(--muted-foreground)); border-radius: 12px;
}
@media (min-width: 768px) { .nav-burger { display: none; } }

.mobile-menu {
  position: absolute; top: 70px; left: 16px; right: 16px;
  background: hsl(var(--background) / 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; text-align: center; padding: 12px; font-size: 17px; font-weight: 500; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 130px 24px 64px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 150px 48px 96px; } }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(64, 64, 64, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 64, 64, 0.12) 1px, transparent 1px);
  background-size: 45px 45px;
  opacity: .2;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; text-align: left; }
@media (min-width: 768px) { .hero-inner { text-align: center; } }
.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .hero h1 { font-size: 56px; } }
.hero .subtitle {
  font-size: 17px;
  color: hsl(var(--muted-foreground));
  max-width: 640px;
  margin: 0 0 16px;
}
@media (min-width: 768px) { .hero .subtitle { margin-left: auto; margin-right: auto; } }
.hero .audience {
  font-size: 13px;
  color: hsl(var(--muted-foreground) / 0.7);
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .hero-ctas { flex-direction: row; justify-content: center; }
}
.guarantees { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: hsl(var(--muted-foreground)); margin-bottom: 40px; }
@media (min-width: 768px) { .guarantees { justify-content: center; } }
.guarantees span { display: inline-flex; align-items: center; gap: 4px; }

.hero-mockup-wrap {
  position: relative;
  max-width: 1280px;
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
}

/* ============ Gmail mockup ============ */
.gmail-mockup {
  width: 100%;
  max-width: 390px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(216,216,216,.5);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  overflow: hidden;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
}
.gmail-row { display: flex; align-items: center; min-height: 50px; padding: 0 16px; }
.gmail-divider { height: 1px; background: #e0e0e0; }
.gmail-row .label { font-size: 16px; color: #888; }
.gmail-row .value { font-size: 16px; color: #222; padding: 13px 0; }
.gmail-row input {
  border: none; outline: none; font-size: 16px; color: #222;
  width: 100%; padding: 13px 4px; background: transparent;
  font-family: inherit;
}
.gmail-body {
  padding: 14px 16px;
  font-size: 16px;
  color: #222;
  white-space: pre-wrap;
  line-height: 1.5;
}
.gmail-attachments { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.gmail-att {
  display: flex; align-items: center; gap: 8px;
  background: #f1f3f4; border-radius: 8px;
  padding: 4px 10px;
}
.gmail-att .pdf-tag {
  width: 20px; height: 20px; background: #d93025; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: #fff; font-size: 7px; font-weight: bold;
}
.gmail-att .name {
  font-size: 12px; color: #202124;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}

/* ============ Sections ============ */
.section {
  padding: 50px 0;
  position: relative;
}
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section.center { text-align: center; }
.section h2 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .section h2 { font-size: 36px; } }
.section .lede {
  color: hsl(var(--muted-foreground));
  max-width: 640px;
  margin-bottom: 40px;
}
.section.center .lede { margin-left: auto; margin-right: auto; }

/* ============ Cards grid ============ */
.grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: hsl(var(--card) / 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 24px;
}
.card .icon-box {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: hsl(var(--muted));
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary));
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card .step-num { font-size: 11px; font-family: monospace; color: hsl(var(--muted-foreground) / 0.5); display: block; margin-bottom: 10px; }
.card .sub { font-size: 13px; color: hsl(var(--accent-primary)); font-weight: 500; margin: 4px 0 8px; }
.card p { font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ============ ROI calculator ============ */
.roi-card {
  background: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 28px;
}
@media (min-width: 768px) { .roi-card { padding: 36px; } }
.roi-sliders { display: grid; gap: 28px; margin: 28px 0; }
@media (min-width: 768px) { .roi-sliders { grid-template-columns: 1fr 1fr; } }
.slider-row { display: flex; flex-direction: column; gap: 10px; }
.slider-label { display: flex; justify-content: space-between; font-size: 14px; }
.slider-label .v { font-weight: 600; color: hsl(var(--foreground)); }
.slider-label .k { color: hsl(var(--muted-foreground)); }
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: hsl(var(--muted));
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: hsl(var(--primary)); cursor: pointer; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: hsl(var(--primary)); cursor: pointer; border: 2px solid #fff;
}
.roi-results { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 768px) { .roi-results { grid-template-columns: repeat(3, 1fr); } }
.roi-pill { border-radius: 12px; padding: 16px; text-align: center; border: 1px solid; }
.roi-pill .k { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.roi-pill .v { font-size: 22px; font-weight: 700; }
.roi-pill.red { background: rgba(254, 226, 226, .5); border-color: #fecaca; }
.roi-pill.red .k { color: #f87171; } .roi-pill.red .v { color: #dc2626; }
.roi-pill.purple { background: rgba(243, 232, 255, .5); border-color: #e9d5ff; }
.roi-pill.purple .k { color: #c084fc; } .roi-pill.purple .v { color: #9333ea; }
.roi-pill.green { background: rgba(209, 250, 229, .5); border-color: #a7f3d0; }
.roi-pill.green .k { color: #34d399; } .roi-pill.green .v { color: #059669; }
.roi-foot { text-align: center; font-size: 14px; color: hsl(var(--muted-foreground)); margin-top: 20px; }

/* ============ Comparison table ============ */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / 0.5); }
table { width: 100%; min-width: 600px; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 18px; font-size: 14px; border-bottom: 1px solid hsl(var(--border)); }
th { font-weight: 600; color: hsl(var(--foreground)); }
td { color: hsl(var(--muted-foreground)); }
td.first, th.first { color: hsl(var(--foreground)); font-weight: 500; }
th.sofia, td.sofia { background: hsl(var(--primary) / 0.05); color: hsl(var(--foreground)); font-weight: 500; }
tr:last-child td { border-bottom: none; }

/* ============ Demo two cols ============ */
.demo-doc {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; border: 1px solid hsl(var(--border)); border-radius: 10px;
  background: hsl(var(--background) / 0.5); margin-bottom: 10px;
}
.demo-doc:hover { background: hsl(var(--background) / 0.8); }
.demo-doc-left { display: flex; gap: 12px; align-items: center; }
.demo-doc-icon { width: 36px; height: 36px; border-radius: 8px; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); display: flex; align-items: center; justify-content: center; }
.demo-doc .name { font-size: 14px; font-weight: 500; }
.demo-doc .file { font-size: 12px; color: hsl(var(--muted-foreground)); }
.email-box { padding: 16px; border: 1px solid hsl(var(--primary) / 0.2); background: hsl(var(--primary) / 0.05); border-radius: 12px; }
.email-box .lbl { font-size: 11px; font-weight: 500; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.email-box .row { display: flex; gap: 12px; align-items: center; }
.email-box .addr { font-family: monospace; font-size: 17px; font-weight: 600; flex: 1; word-break: break-all; }
.steps { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.step { display: flex; gap: 12px; }
.step-bullet { width: 24px; height: 24px; border-radius: 50%; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step p { font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ============ Pricing ============ */
.plan { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 14px; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / 0.5); }
.plan.featured { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.05); box-shadow: 0 10px 30px -10px rgba(0,0,0,.15); }
.plan-head { display: flex; justify-content: space-between; align-items: center; }
.plan-badge { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.plan.featured .plan-badge { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.plan-price { margin: 14px 0; }
.plan-price .v { font-size: 28px; font-weight: 700; }
.plan-price .p { font-size: 13px; color: hsl(var(--muted-foreground)); margin-left: 4px; }
.plan-desc { font-size: 14px; color: hsl(var(--muted-foreground)); margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.plan ul li { display: flex; gap: 8px; font-size: 14px; align-items: flex-start; }
.plan ul li svg { color: hsl(var(--primary)); flex-shrink: 0; margin-top: 2px; }
.plan-guarantee { font-size: 12px; text-align: center; color: hsl(var(--muted-foreground)); margin-top: 8px; }
.pricing-foot { text-align: center; font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 32px; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 768px; margin: 0 auto; }
.faq-item { background: hsl(var(--card) / 0.5); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 0 24px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: hsl(var(--muted-foreground)); transition: transform .2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 0 18px; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* ============ Testimonials ============ */
.t-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 14px; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / 0.5); }
.t-quote { font-style: italic; font-size: 14px; color: hsl(var(--foreground)); line-height: 1.6; }
.t-q-mark { font-size: 30px; color: hsl(var(--muted-foreground) / 0.3); line-height: 1; }
.t-foot { display: flex; flex-direction: column; gap: 10px; }
.t-divider { height: 1px; background: hsl(var(--border) / 0.5); }
.t-badge { display: inline-block; align-self: flex-start; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.t-author { font-weight: 600; font-size: 14px; }
.t-role { font-size: 12px; color: hsl(var(--muted-foreground)); }

/* ============ Final CTA ============ */
.final-cta {
  position: relative;
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(64, 64, 64, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 64, 64, 0.12) 1px, transparent 1px);
  background-size: 45px 45px; opacity: .2;
}
.final-cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { color: hsl(var(--muted-foreground)); margin-bottom: 28px; }
.final-cta .hero-ctas { margin-bottom: 16px; }

/* ============ Footer ============ */
footer { border-top: 1px solid hsl(var(--border) / 0.5); padding: 40px 24px; text-align: center; }
footer .brand { font-weight: 600; margin-bottom: 8px; }
footer .meta { font-size: 12px; color: hsl(var(--muted-foreground)); margin-bottom: 12px; }
footer .links { display: flex; justify-content: center; gap: 16px; font-size: 12px; color: hsl(var(--muted-foreground)); }
footer .links a:hover { color: hsl(var(--foreground)); }

/* logo bar */
.logo-bar { padding: 40px 0; border-bottom: 1px solid hsl(var(--border) / 0.5); text-align: center; }
.logo-bar .eyebrow { margin-bottom: 24px; }
.logo-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@media (min-width: 768px) { .logo-list { gap: 40px; } }
.logo-list span { font-size: 13px; font-weight: 600; color: hsl(var(--muted-foreground) / 0.5); letter-spacing: .04em; }
@media (min-width: 768px) { .logo-list span { font-size: 16px; } }