/* ==========================================================================
   Broadcastly — stylesheet
   Change the palette in one place: the :root block below.
   ========================================================================== */

:root {
  --bg: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-soft: #dcfce7;
  --card: #ffffff;
  --line: #e2e8f0;
  --radius: 14px;
  --radius-sm: 11px;
  --maxw: 1180px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .08);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Small uppercase labels — eyebrows, tags, table headers, contact labels.
   These used to be monospace, which reads as generic tech/AI branding. Same
   family as everything else now, separated by weight and letter-spacing. */
.label-type {
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keeps anchored sections clear of the sticky nav */
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Form controls don't inherit the page font by default. */
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- layout primitives ---------------------------------------------------- */

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

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* For sections with exactly four cards, so the last one doesn't sit alone
   on a second row. Narrower minimum lets all four share the widest row. */
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, .28);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-sm { padding: 11px 20px; font-size: .94rem; }

/* --- nav ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  font-size: .98rem;
}
.nav-links a:hover { color: var(--accent-dark); }

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

.nav-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- hero ----------------------------------------------------------------- */

.hero {
  padding: 90px 0 84px;
  text-align: center;
}

.badge {
  display: inline-block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #bbf7d0;
  padding: 9px 20px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.2rem, 1.1rem + 4.6vw, 4rem);
  max-width: 19ch;
  margin: 0 auto 26px;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  max-width: 62ch;
  margin: 0 auto 38px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* --- stat strip ----------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat { padding: 26px 18px; }
.stat + .stat { border-left: 1px solid var(--line); }

.stat-value {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  margin-bottom: 2px;
}

.stat-label {
  font-size: .84rem;
  color: var(--muted);
}

/* --- cards ---------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }

.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

/* --- sender option cards -------------------------------------------------- */

.senders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}

.sender {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sender.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

.sender-tag {
  position: absolute;
  top: -12px;
  left: 34px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  padding: 6px 14px;
  border-radius: 999px;
}

.sender h3 { font-size: 1.4rem; margin-bottom: 8px; }

.sender-for {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 18px;
}

.sender > p { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }

.ticks {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 11px;
  flex-grow: 1;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: .97rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* --- comparison table ----------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: .96rem;
}

caption {
  text-align: left;
  padding: 22px 26px 0;
  font-weight: 700;
  font-size: 1.05rem;
}

th, td {
  text-align: left;
  padding: 15px 26px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-family: var(--font);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

tbody th { font-weight: 600; width: 30%; }
td { color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* --- steps ---------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* --- FAQ ------------------------------------------------------------------ */

.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
details[open] { border-color: #cbd5e1; }

summary {
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  list-style: none;
  font-size: 1.02rem;
}
summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-dark);
  line-height: 1;
}
details[open] summary::after { content: "\2013"; }

details > div {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: .99rem;
}
details > div p + p { margin-top: 12px; }

/* --- contact -------------------------------------------------------------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.contact-card .icon { margin: 0 auto 16px; }

.contact-card .label {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-card .value {
  font-weight: 700;
  font-size: 1.02rem;
  word-break: break-word;
}

.contact-cta { text-align: center; }

.contact-note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 18px;
}

/* --- footer --------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: .94rem;
}
.footer-links a:hover { color: var(--ink); }

.footer-legal {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
}

/* --- long-form pages (privacy / terms) ------------------------------------ */

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 0 96px;
}

.doc h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  margin-bottom: 12px;
}

.doc .updated {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 44px;
}

.doc h2 {
  font-size: 1.35rem;
  margin: 44px 0 14px;
}

.doc p, .doc li { color: #334155; }
.doc p + p { margin-top: 14px; }

.doc ul { margin: 14px 0; padding-left: 22px; }
.doc li { margin-bottom: 9px; }

.doc a { color: var(--accent-dark); }

.crumbs {
  font-size: .9rem;
  color: var(--muted);
  padding-top: 34px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* --- scroll reveal -------------------------------------------------------- */

/* Gated on .js (set by an inline script in <head>) so that with JavaScript
   disabled or broken the content stays visible instead of fading to nothing. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 76px 0; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }

  .nav-actions .btn { display: none; }

  .hero { padding: 60px 0 64px; }
  .hero-cta .btn { width: 100%; max-width: 340px; }
  .sender, .card, .step { padding: 26px; }
  .sender-tag { left: 26px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
