/* ==========================================================================
   BreakTest.io — light & clean professional theme
   Primary: blue   Accent: gold (used sparingly)   Product bands: deep navy
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --navy: #0b1b2e;          /* dark product bands */
  --navy-2: #102540;

  /* lines + text */
  --border: #e3e8f0;
  --border-strong: #d3dbe6;
  --ink: #0d1b2e;           /* headings */
  --text: #3a4658;          /* body */
  --muted: #66738a;         /* secondary */

  /* brand */
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #eaf0ff;
  --gold: #c8901e;          /* accessible gold on light */
  --gold-bright: #f0c75f;   /* logo gold, for dark bands */
  --gold-soft: #fbf3df;

  /* status */
  --success: #15a05a;
  --warning: #c87f12;
  --danger: #dc2626;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 46, 0.06), 0 1px 3px rgba(13, 27, 46, 0.05);
  --shadow: 0 10px 30px rgba(13, 27, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 27, 46, 0.14);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

h3 {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

p { color: var(--text); }

.muted { color: var(--muted); }

/* ---------- layout helpers ---------- */
.wrap {
  margin: 0 auto;
  max-width: var(--maxw);
  padding-left: clamp(1.1rem, 4vw, 2rem);
  padding-right: clamp(1.1rem, 4vw, 2rem);
}

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p.lead { font-size: 1.08rem; color: var(--muted); margin: 0; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--text); }

/* ---------- badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.badge-primary { background: var(--primary-soft); color: var(--primary-strong); border: 1px solid #d6e2ff; }
.badge-gold { background: var(--gold-soft); color: var(--gold); border: 1px solid #efdcae; }
.badge-free { background: #e7f7ee; color: var(--success); border: 1px solid #c7ecd6; }
.badge-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.97rem;
  padding: 0.72rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28); }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); box-shadow: 0 10px 22px rgba(37, 99, 235, 0.34); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary-strong); }
.btn-ghost:hover { background: var(--primary-soft); box-shadow: none; }
.btn-on-dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,0.16); }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 66px;
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 0.6rem clamp(1.1rem, 4vw, 2rem);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.18rem; color: var(--ink); text-decoration: none; }
.brand img { height: 32px; width: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; }
.nav-links a {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--primary-strong); }
.header-cta { display: flex; align-items: center; gap: 0.6rem; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-copy { max-width: 38rem; }
.hero .lead { color: var(--muted); margin-bottom: 1.7rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--muted); }
.hero-note strong { color: var(--ink); }

/* trust / logo strip */
.trust { padding: 1.6rem 0; border-top: 1px solid var(--border); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; justify-content: center; }
.trust span { color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.trust b { color: var(--ink); }

/* ---------- media frames (drop screenshots / GIFs / video here) ---------- */
.media-frame { margin: 0; }
.media {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.media img, .media video { width: 100%; height: auto; display: block; }
.media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* placeholder shown until a real asset is dropped in */
.media-ph {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, #f3f6fc 0%, #eaf0fb 100%);
  color: var(--muted);
}
.media-ph.ratio-wide { aspect-ratio: 16 / 9; }
.media-ph.ratio-square { aspect-ratio: 4 / 3; }
.media-ph .ph-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-sm);
  color: var(--primary); font-size: 1.4rem;
}
.media-ph .ph-label { font-weight: 800; color: var(--ink); font-size: 1rem; }
.media-ph .ph-hint { font-size: 0.82rem; }
.media-ph[data-type="video"] { background: linear-gradient(135deg, #0b1b2e 0%, #163358 100%); color: #c7d4e8; }
.media-ph[data-type="video"] .ph-label { color: #fff; }
.media-ph[data-type="video"] .ph-icon { background: var(--primary); color: #fff; }
.media-ph[data-type="gif"] .ph-icon { color: var(--gold); }

.media-caption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* mock browser chrome around a screenshot */
.media.browser::before {
  content: "";
  display: block;
  height: 34px;
  background: #f1f4f9;
  border-bottom: 1px solid var(--border);
  background-image:
    radial-gradient(circle, #e2574c 4px, transparent 4.5px),
    radial-gradient(circle, #f1bf42 4px, transparent 4.5px),
    radial-gradient(circle, #4caf68 4px, transparent 4.5px);
  background-repeat: no-repeat;
  background-position: 16px center, 34px center, 52px center;
}

/* ---------- product split (BreakTest vs Enterprise) ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  overflow: hidden;
}
.product-card .top-accent { position: absolute; inset: 0 0 auto 0; height: 4px; }
.product-card.free .top-accent { background: var(--success); }
.product-card.enterprise { background: linear-gradient(180deg, #0b1b2e, #102540); border-color: #102540; color: #c7d4e8; }
.product-card.enterprise .top-accent { background: linear-gradient(90deg, var(--gold-bright), var(--gold)); }
.product-card h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.product-card.enterprise h3 { color: #fff; }
.product-card .price-tag { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin: 0.2rem 0 1rem; }
.product-card.enterprise .price-tag { color: var(--gold-bright); }
.product-card p { margin-bottom: 1.1rem; }
.product-card.enterprise p { color: #aebdd4; }
.product-card ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.6rem; }
.product-card li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; }
.product-card li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.product-card.enterprise li::before { color: var(--gold-bright); }
.product-card .card-cta { margin-top: auto; }

/* ---------- feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.feature {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature .ficon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-strong);
  font-size: 1.25rem; margin-bottom: 0.9rem;
}
.feature.accent .ficon { background: var(--gold-soft); color: var(--gold); }
.feature p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.feature a.flink { color: var(--primary-strong); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.feature a.flink:hover { text-decoration: underline; }

/* ---------- alternating media+copy rows ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-copy ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.split-copy li { position: relative; padding-left: 1.7rem; }
.split-copy li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* ---------- dark band (product spotlight) ---------- */
.band-dark {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(37,99,235,0.25), transparent 60%), var(--navy);
  color: #c7d4e8;
  border-top: 1px solid #0a1626;
  border-bottom: 1px solid #0a1626;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: var(--gold-bright); }
.band-dark p { color: #aebdd4; }
.band-dark .feature { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); box-shadow: none; }
.band-dark .feature p { color: #9fb0c9; }
.band-dark .feature .ficon { background: rgba(37,99,235,0.2); color: #93b4ff; }
.band-dark .feature.accent .ficon { background: rgba(240,199,95,0.16); color: var(--gold-bright); }
.band-dark .feature:hover { border-color: rgba(255,255,255,0.22); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.band-dark .stat { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--ink); line-height: 1; }
.band-dark .stat strong { color: #fff; }
.stat span { display: block; margin-top: 0.45rem; font-size: 0.88rem; color: var(--muted); }
.band-dark .stat span { color: #9fb0c9; }

/* ---------- comparison callout ---------- */
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ladder .step { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow-sm); border-top: 3px solid var(--primary); }
.ladder .step:nth-child(1) { border-top-color: var(--success); }
.ladder .step:nth-child(2) { border-top-color: var(--gold); }
.ladder .step:nth-child(3) { border-top-color: var(--primary); }
.ladder .step .tier { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ladder .step h3 { margin: 0.3rem 0 0.4rem; }
.ladder .step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.price-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.price-card .price { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--ink); line-height: 1; margin: 0.4rem 0 1rem; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.price-card li { position: relative; padding-left: 1.5rem; font-size: 0.94rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
.price-table { border-collapse: collapse; width: 100%; min-width: 720px; }
.price-table th, .price-table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
.price-table thead th { background: var(--bg-soft); color: var(--ink); font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; }
.price-table tbody th { color: var(--ink); font-weight: 800; }
.price-table tbody tr:last-child td, .price-table tbody tr:last-child th { border-bottom: none; }
.price-table tbody tr.featured { background: var(--primary-soft); }
.price-table .pop { color: var(--primary-strong); font-weight: 700; font-size: 0.78rem; }

.pricing-note { margin-top: 1.2rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- two-column lists ---------- */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.list-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.list-card ul { margin: 0.6rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.55rem; color: var(--text); }
.list-card code { background: var(--bg-alt); border-radius: 6px; padding: 0.06rem 0.35rem; font-size: 0.88em; color: var(--ink); }

/* ---------- changes / filter list ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.filter-button { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.filter-button:hover { border-color: var(--primary); color: var(--primary-strong); }
.filter-button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.change-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.change-list article { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.change-list article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.change-list article.is-hidden { display: none; }
.change-list .tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary-strong); background: var(--primary-soft); border-radius: 999px; padding: 0.2rem 0.6rem; margin-bottom: 0.7rem; }
.change-list code { background: var(--bg-alt); border-radius: 6px; padding: 0.06rem 0.35rem; font-size: 0.88em; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta {
  background: radial-gradient(900px 400px at 50% -30%, rgba(255,255,255,0.12), transparent 60%), linear-gradient(120deg, var(--primary-strong), #3b5bd9 60%, #4f46e5);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.88); max-width: 40rem; margin: 0 auto 1.6rem; }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #9fb0c9; border-top: 1px solid #0a1626; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #9fb0c9; font-size: 0.9rem; max-width: 24rem; margin-top: 0.8rem; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.8rem; }
.footer-col a { display: block; color: #9fb0c9; text-decoration: none; font-size: 0.92rem; padding: 0.25rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; color: #7d8ca6; }

/* ---------- page hero (interior pages) ---------- */
.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero .wrap { max-width: 820px; }
.page-hero p.lead { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .products, .cols2, .price-cards { grid-template-columns: 1fr; }
  .feature-grid, .change-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .feature-grid, .change-list, .stats, .ladder { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row { width: 100%; }
  .hero .btn, .cta .btn { flex: 1 1 auto; }
}
