:root {
  color-scheme: light;
  --ink: #111827;
  --body: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --surface: #ffffff;
  --accent: #1f5f57;
  --accent-dark: #163f3a;
  --accent-soft: #eaf3f1;
  --accent-soft-line: #cfe4e0;
  --cta: #15854f;
  --cta-dark: #0f6b3e;
  --success: #166534;
  --success-soft: #f0fdf4;
  --info: #1e429f;
  --info-soft: #eff6ff;
  --warning: #92400e;
  --warning-soft: #fffbeb;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 1px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 12px 24px -8px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 32px 64px -20px rgba(17, 24, 39, 0.24);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: inherit; color: var(--ink); letter-spacing: -0.02em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.brand, nav { display: flex; align-items: center; gap: 20px; }
.brand {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
nav { font-size: 14.5px; font-weight: 600; color: var(--body); }
nav a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: color 150ms ease, border-color 150ms ease; }
nav a:hover { color: var(--accent); }
.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--cta);
  box-shadow: var(--shadow-sm);
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.nav-cta:hover { background: var(--cta-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.nav-ctas { display: flex; align-items: center; gap: 10px; }
.nav-cta-email { background: var(--info); }
.nav-cta-email:hover { background: #16337d; }
.nav-cta-whatsapp { background: #1fa855; }
.nav-cta-whatsapp:hover { background: #17843f; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero */
.page-hero {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(26px, 3.4vw, 44px) clamp(20px, 5vw, 56px);
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero.center { text-align: center; }
.page-hero.center h1 { margin: 0 auto; }
.page-hero.center .lede { margin-left: auto; margin-right: auto; }

/* Single-viewport centered hero */
.hero-single {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 63px);
  padding: 32px clamp(20px, 6vw, 72px);
  overflow: hidden;
}
.hero-center { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }
.eyebrow.center { margin: 0 auto 18px; justify-content: center; }
.hero-slideshow-single { min-height: clamp(140px, 22vw, 210px); display: flex; flex-direction: column; justify-content: center; }

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide-bg {
  position: absolute;
  inset: -10%;
  opacity: 0;
  transition: opacity 1200ms ease;
  background: var(--bg);
}
.hero-slide-bg.is-active { opacity: 1; }
.hero-slide-bg[data-slide-bg="0"] { background:
  radial-gradient(560px circle at 12% 18%, rgba(31, 95, 87, 0.11), transparent 60%),
  radial-gradient(480px circle at 88% 78%, rgba(30, 66, 159, 0.07), transparent 55%), var(--bg); }
.hero-slide-bg[data-slide-bg="1"] { background:
  radial-gradient(560px circle at 85% 15%, rgba(30, 66, 159, 0.09), transparent 60%),
  radial-gradient(480px circle at 10% 85%, rgba(31, 95, 87, 0.08), transparent 55%), var(--bg); }
.hero-slide-bg[data-slide-bg="2"] { background:
  radial-gradient(560px circle at 20% 80%, rgba(146, 64, 14, 0.08), transparent 60%),
  radial-gradient(480px circle at 80% 20%, rgba(31, 95, 87, 0.08), transparent 55%), var(--bg); }
.hero-slide-bg[data-slide-bg="3"] { background:
  radial-gradient(560px circle at 80% 85%, rgba(31, 95, 87, 0.10), transparent 60%),
  radial-gradient(480px circle at 15% 15%, rgba(146, 64, 14, 0.06), transparent 55%), var(--bg); }
.hero-slide-bg[data-slide-bg="4"] { background:
  radial-gradient(560px circle at 15% 25%, rgba(30, 66, 159, 0.08), transparent 60%),
  radial-gradient(480px circle at 85% 75%, rgba(31, 95, 87, 0.09), transparent 55%), var(--bg); }
.hero-slide-bg[data-slide-bg="5"] { background:
  radial-gradient(560px circle at 82% 20%, rgba(31, 95, 87, 0.12), transparent 60%),
  radial-gradient(480px circle at 12% 80%, rgba(30, 66, 159, 0.06), transparent 55%), var(--bg); }
.hero-slide-bg[data-slide-bg="6"] { background:
  radial-gradient(560px circle at 18% 82%, rgba(30, 66, 159, 0.10), transparent 60%),
  radial-gradient(480px circle at 82% 18%, rgba(146, 64, 14, 0.06), transparent 55%), var(--bg); }

.page-hero h1, .section h2, .split-section h2, .contact h2, .two-col h2 {
  margin: 0;
  line-height: 1.06;
  font-weight: 800;
}
.page-hero h1 { max-width: 900px; font-size: clamp(36px, 5.4vw, 62px); }
.lede { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }

.hero-slide-title-single, .hero-slide-sub { animation: hero-fade-in 550ms ease; }
.hero-slide-title-single {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  font-size: clamp(28px, 4.6vw, 52px);
  white-space: nowrap;
}
.hero-slide-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 19px);
  white-space: nowrap;
}
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions.center { justify-content: center; }
.button.large { min-height: 54px; padding: 14px 30px; font-size: 16.5px; border-radius: 999px; }

.hero-controls { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; }
.hero-controls.center { justify-content: center; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 30px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease;
}
.hero-dot:hover { background: var(--accent-soft-line); }
.hero-dot.is-active { background: var(--accent); }
.hero-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.hero-arrow:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.button.primary { color: #fff; background: var(--cta); box-shadow: var(--shadow-sm); }
.button.primary:hover { background: var(--cta-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.button.primary.large { box-shadow: 0 10px 24px -8px rgba(21, 133, 79, 0.45); }
.button.primary.large:hover { box-shadow: 0 14px 30px -8px rgba(21, 133, 79, 0.5); }
.button.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.button.email { color: #fff; background: var(--info); box-shadow: var(--shadow-sm); }
.button.email:hover { background: #16337d; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.button.whatsapp { color: #fff; background: #1fa855; box-shadow: var(--shadow-sm); }
.button.whatsapp:hover { background: #17843f; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.button.full { width: 100%; }
.pricing-contact-actions { display: grid; gap: 12px; margin-bottom: 22px; }

/* Hero panel mock */
.hero-panel, .cards article, .audience-cards a, .contact-box, .quiet-card, .open-source-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.hero-panel { overflow: hidden; }
.window-bar { display: flex; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.metric-grid div { padding: 22px; border-right: 1px solid var(--line); background: var(--surface); }
.metric-grid div:last-child { border-right: 0; }
.metric-grid strong { display: block; font-size: 28px; color: var(--ink); font-weight: 800; }
.metric-grid span, .mock-table span, .feature-list li, .cards p, .audience-cards p, .contact p, .contact li, .two-col p { color: var(--muted); }
.mock-table div { display: grid; grid-template-columns: 1.15fr 0.65fr 1fr; gap: 14px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.mock-table div:first-child { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-soft); }
.mock-table div:last-child { border-bottom: 0; }
.pill { display: inline-flex; justify-content: center; width: fit-content; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.green { color: var(--success); background: var(--success-soft); }
.blue { color: var(--info); background: var(--info-soft); }
.amber { color: var(--warning); background: var(--warning-soft); }

/* Sections */
.section, .split-section, .contact {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) clamp(20px, 5vw, 56px);
}
.section-head { max-width: 780px; margin-bottom: 24px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-row.small { gap: 8px; }
.tag {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
}
.tag-row.small .tag { padding: 5px 11px; font-size: 12.5px; }
.text-link { display: inline-block; color: var(--accent); font-weight: 700; font-size: 15px; }
.text-link:hover { text-decoration: underline; }

/* Pricing */
.pricing-cards { margin-bottom: 24px; }
.pricing-card { display: flex; flex-direction: column; }
.pricing-month { display: inline-block; width: fit-content; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.pricing-card h3 { margin: 0 0 10px; font-size: 19px; }
.pricing-card p { flex: 1; margin: 0 0 18px; color: var(--body); font-size: 15px; }
.pricing-amount { font-size: 26px; font-weight: 800; color: var(--ink); }
.pricing-unit { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.pricing-total { max-width: 1320px; margin: 0 auto; padding: 18px clamp(20px, 5vw, 56px); border-top: 1px dashed var(--line-strong); font-size: 16px; color: var(--body); }
.pricing-total strong { color: var(--ink); font-size: 19px; }

/* Compact below-hero strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.strip-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.strip-label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.strip-links { display: flex; flex-wrap: wrap; gap: 18px 22px; }
.section h2, .split-section h2, .contact h2 { max-width: 800px; font-size: clamp(30px, 4vw, 48px); }
.cards { display: grid; gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards article, .audience-cards a, .contact-box, .quiet-card, .open-source-note { padding: 28px; }
.cards h3, .audience-cards h3, .contact-box .label, .quiet-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.cards p, .audience-cards p { margin: 0; font-size: 15px; }
.audience-cards a { display: block; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; border-top: 3px solid var(--accent); }
.audience-cards a:nth-child(2) { border-top-color: var(--success); }
.audience-cards a:nth-child(3) { border-top-color: var(--warning); }
.audience-cards a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.audience-cards span { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 700; font-size: 14px; }

.two-col, .split-section, .contact { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.two-col h2 { max-width: 700px; margin-bottom: 16px; font-size: clamp(28px, 3.6vw, 44px); }
.two-col p, .split-section p { max-width: 660px; margin: 0; font-size: 17px; }
.split-section { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); font-size: 15px; }
.feature-list span { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.feature-list.wide { grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* Tabs */
.tabs-section { max-width: 1080px; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 0 auto 36px; }
.tab-btn {
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.tab-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.tab-btn-spreadsheet.is-active { background: var(--cta); color: #fff; box-shadow: 0 10px 24px -8px rgba(21, 133, 79, 0.4); }
.tab-btn-developer.is-active { background: var(--info); color: #fff; box-shadow: 0 10px 24px -8px rgba(30, 66, 159, 0.4); }
.tab-btn-spreadsheet:not(.is-active):hover { border-color: var(--cta); color: var(--cta); }
.tab-btn-developer:not(.is-active):hover { border-color: var(--info); color: var(--info); }

/* Multi-tab industry strip */
.tabs.tabs-multi { justify-content: flex-start; gap: 8px; margin-bottom: 30px; }
.tabs-multi .tab-btn {
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--body);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}
.tabs-multi .tab-btn:hover { transform: none; box-shadow: none; border-color: var(--accent); color: var(--accent); }
.tabs-multi .tab-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.industry-columns { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.industry-columns h3 { margin: 0 0 14px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.industry-columns .feature-list li { border-left-color: var(--accent); }
.tab-panel[hidden] { display: none; }
.tab-intro { max-width: 720px; margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.tab-intro.band-note { margin: 22px 0 0; font-size: 15px; }

.dev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 28px; }
.dev-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.dev-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.dev-card p { margin: 0; color: var(--body); font-size: 14.5px; }
.dev-card code, .tab-intro code, .open-source-note code { padding: 1px 5px; border-radius: 5px; background: var(--bg-soft); font-size: 0.92em; }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.open-source-note { margin-top: 28px; background: var(--accent-soft); border-color: var(--accent-soft-line); box-shadow: none; }
.open-source-note p { margin: 0; color: var(--body); font-size: 16px; }
.open-source-note strong { color: var(--ink); }

.quiet-card { background: var(--bg-soft); box-shadow: none; }
.quiet-card p { font-size: 15px; }

.contact { background: linear-gradient(160deg, var(--ink), var(--accent-dark)); color: #fff; }
.contact .eyebrow { color: #9fd4c8; }
.contact .eyebrow::before { background: #9fd4c8; }
.contact h2 { color: #fff; }
.contact p, .contact li { color: #cbd5e1; }
.contact-box { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-lg); }
.contact-box ul { margin: 0 0 22px; padding-left: 20px; }
.contact-box .label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.site-footer a { font-weight: 700; color: var(--accent); }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .split-section, .two-col, .contact, .cards.two, .cards.three, .cards.four, .feature-list.wide, .dev-grid, .industry-columns { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .hero-single { min-height: auto; padding: 48px clamp(20px, 6vw, 72px) 40px; }
  .hero-slide-title-single, .hero-slide-sub { white-space: normal; }
  .strip { flex-direction: column; align-items: flex-start; }
}
