/* Pulse Systems site styles */

:root {
  --bg: #0B0B0C;
  --bg-alt: #111113;
  --card: #151517;
  --line: #232327;
  --border: #2A2A2E;
  --text: #F4F4F2;
  --grey-1: #C9C9CD;
  --grey-2: #A3A3A8;
  --grey-3: #8A8A90;
  --accent: #3BE37F;
  --warn: #FF9F43;
  --max: 1180px;
  --gutter: 24px;
  --section-pad: 96px;
  --header-h: 72px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: #FFFFFF; }

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

h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); }
.section--banded { border-bottom: 1px solid var(--line); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Shared type ---------- */

.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin-bottom: 40px;
}

.h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.08;
  font-weight: 800;
}

.lead { font-size: 18px; color: var(--grey-1); }
.muted { color: var(--grey-1); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  padding: 16px 24px;
  border-radius: 999px;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--accent { background: var(--accent); color: var(--bg); font-weight: 800; }
.btn--accent:hover { background: #5BEA95; color: var(--bg); }

.btn--ghost { color: var(--text); border: 1.5px solid #4A4A50; padding: 14.5px 24px; }
.btn--ghost:hover { border-color: var(--text); }

.btn--dark { background: var(--bg); color: var(--text); font-weight: 800; }
.btn--dark:hover { background: #000; color: #FFFFFF; }

.btn--sm { font-size: 15px; padding: 11px 18px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo svg { flex: none; }
.logo-text { font-weight: 800; letter-spacing: 0.14em; font-size: 15px; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.nav a:not(.btn) { text-decoration: none; color: var(--grey-1); }
.nav a:not(.btn):hover { color: var(--text); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-sub { font-size: 20px; color: var(--grey-1); max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }

.hero-note { font-size: 14px; color: var(--grey-2); }

.hero-visual {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* Phone frame with example texts */

.phone-demo {
  width: 100%;
  max-width: 360px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-demo-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey-2);
}

.phone {
  width: 100%;
  background: #000;
  border: 8px solid #26262A;
  border-radius: 44px;
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1E1E22;
}

.phone-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #3A3A40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-name { font-size: 13px; }

.phone-time {
  text-align: center;
  font-size: 11px;
  color: var(--grey-3);
}
.phone-time + .bubble { margin-top: 0; }
.bubble + .phone-time { padding-top: 4px; }

.bubble {
  align-self: flex-start;
  max-width: 84%;
  background: #2C2C30;
  border-radius: 20px 20px 20px 6px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.4;
}
.bubble p + p { margin-top: 2px; }
.bubble-title { font-weight: 700; }
.bubble-alert { font-weight: 700; color: var(--warn); }

.phone-input {
  margin-top: 8px;
  border: 1px solid #2C2C30;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  color: #7C7C82;
}

.phone-demo figcaption { font-size: 12px; color: var(--grey-3); }

/* ---------- Missed-call calculator ---------- */

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
}

.calc-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  min-width: 0;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.calc-note { font-size: 14px; color: var(--grey-2); }

.slider { display: flex; flex-direction: column; gap: 12px; }

.slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.slider-head label { font-weight: 700; font-size: 16px; line-height: 1.3; }

.slider-value {
  flex: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Range input: accent fill up to the thumb (--fill set by script.js) */
.slider input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill), #34343A var(--fill));
}
.slider input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #34343A;
}
.slider input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 999px;
  background: var(--text);
  border: 3px solid var(--accent);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--text);
  border: 3px solid var(--accent);
}
.slider input[type="range"]:focus-visible { outline: none; }
.slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(59, 227, 127, 0.35); }
.slider input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(59, 227, 127, 0.35); }

.period { display: flex; flex-direction: column; gap: 10px; }
.period-label { font-weight: 700; font-size: 16px; }

.period-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.period-btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--grey-1);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.period-btn:hover { color: var(--text); }
.period-btn[aria-pressed="true"] { background: var(--accent); color: var(--bg); }

.calc-output {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-big {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.calc-jobs { margin-top: 8px; font-size: 18px; color: var(--grey-1); }

.chart-title { font-size: 14px; color: var(--grey-2); margin-bottom: 8px; }

.chart-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}
.chart-wrap svg { display: block; width: 100%; height: 100%; overflow: visible; }

.chart-grid line { stroke: #2A2A2E; stroke-width: 1; }
.chart-grid text,
.chart-x text {
  fill: var(--grey-2);
  font-family: var(--mono);
  font-size: 11px;
}
.chart-bar {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.15s ease;
}
.chart-hit { fill: transparent; cursor: pointer; }
.chart-bars.is-hovering .chart-bar { opacity: 0.45; }
.chart-bars.is-hovering .chart-bar.is-active { opacity: 1; }
.chart-total {
  fill: var(--text);
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.chart-tip {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap;
  pointer-events: none;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.chart-axis-label {
  margin-top: 4px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey-2);
}

.calc-disclaimer {
  margin-top: 20px;
  font-size: 14px;
  color: var(--grey-2);
  max-width: 720px;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step h3 { font-weight: 800; font-size: 21px; }
.step p { color: var(--grey-1); }

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ---------- Try it band ---------- */

.try {
  background: var(--accent);
  color: var(--bg);
}

.try-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.try-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.try .label { color: var(--bg); }
.try h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.05;
  font-weight: 900;
}
.try p { font-size: 18px; font-weight: 700; max-width: 560px; }

.btn--big {
  font-size: clamp(22px, 2.6vw, 32px);
  padding: 20px 30px;
  white-space: nowrap;
}

/* ---------- What she does ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.feature {
  border-top: 2px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature h3 { font-weight: 800; font-size: 19px; }
.feature p { color: var(--grey-1); }

.plans {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.plan {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan h3 { font-weight: 900; font-size: 22px; }
.plan h3 span { color: var(--accent); }
.plan p { color: var(--grey-1); }

.plans-note { flex: 1 1 100%; color: var(--grey-2); font-size: 15px; }

/* ---------- Getting started ---------- */

.start-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.start-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.start-num { font-family: var(--mono); font-weight: 500; color: var(--accent); }
.start-step h3 { font-weight: 800; font-size: 19px; }
.start-step p { color: var(--grey-1); }

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

.faq-wrap { max-width: 900px; }
.faq-wrap .section-head { margin-bottom: 28px; }

.faq-list { border-bottom: 1px solid var(--border); }

.faq {
  border-top: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #FFFFFF; }
.faq summary:focus-visible { outline-offset: 4px; }

.faq-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px solid #4A4A50;
  border-radius: 999px;
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon { border-color: var(--accent); }
.faq[open] .faq-icon::after { transform: rotate(0deg); }

.faq-answer {
  color: var(--grey-1);
  padding: 0 44px 22px 0;
}

/* Smooth open/close where the browser supports it */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
  }
  .faq[open]::details-content { height: auto; }
}

/* ---------- Book ---------- */

.book-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.book-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.book-copy h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.04;
  font-weight: 900;
}

.text-link {
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  text-decoration: none;
}
.text-link:hover { color: #5BEA95; text-decoration: underline; }

.booking {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 100%;
}
.booking iframe { display: block; max-width: 100%; }
.booking br { display: none; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--grey-2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-col a { color: var(--grey-1); }
.footer-col a.plain { text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-name { font-weight: 800; letter-spacing: 0.14em; color: var(--text); }

/* ---------- Policy pages ---------- */

.policy {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px var(--gutter) 96px;
}
.policy h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 10px;
}
.policy .updated { color: var(--grey-2); font-size: 15px; margin-bottom: 32px; }
.policy h2 { font-size: 22px; font-weight: 800; margin: 36px 0 10px; }
.policy p, .policy li { color: var(--grey-1); font-size: 17px; }
.policy p + p { margin-top: 12px; }
.policy ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.policy strong { color: var(--text); }
.policy ul + p { margin-top: 16px; }
.policy a { color: var(--accent); }
.policy a[href^="tel:"] { white-space: nowrap; }

/* ---------- Phones ---------- */

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; padding: 15px 18px; font-size: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section-pad: 56px; }

  .hero { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero-copy { gap: 18px; }
  .hero-sub { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .section-head { margin-bottom: 28px; }
  .steps { gap: 12px; }

  .calc-grid { gap: 12px; }
  .calc-panel { padding: 20px 18px; }
  .calc-controls { gap: 22px; }
  .slider-head label { font-size: 15px; }
  .calc-jobs { font-size: 16px; }
  .chart-wrap { height: 210px; }
  .calc-actions .btn { flex: 1 1 100%; }
  .step { padding: 20px; gap: 8px; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .step h3 { font-size: 19px; }
  .step p { flex: 1 1 100%; }
  .step-num { width: 36px; height: 36px; font-size: 15px; }

  .try-inner { padding-top: 52px; padding-bottom: 52px; gap: 22px; }
  .try p { font-size: 17px; }
  .try .btn--big { width: 100%; }

  /* Tight two-column grid of short items */
  .features { grid-template-columns: 1fr 1fr; gap: 20px 14px; margin-bottom: 28px; }
  .feature { padding-top: 12px; gap: 4px; }
  .feature h3 { font-size: 16px; line-height: 1.25; }
  .feature p { font-size: 14px; line-height: 1.4; }
  .plans { padding: 22px 20px; gap: 20px; }

  .start-steps { grid-template-columns: 1fr; gap: 0; }
  .start-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    row-gap: 2px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
  }
  .start-step:last-child { border-bottom: 1px solid var(--border); }
  .start-num { grid-row: span 2; padding-top: 2px; }
  .start-step h3 { font-size: 17px; }
  .start-step p { font-size: 15px; }

  .faq summary { font-size: 17px; padding: 18px 0; }
  .faq-answer { padding: 0 0 18px; }

  .book-inner { gap: 32px; }
  .booking { flex-basis: 100%; }

  .policy { padding-top: 48px; padding-bottom: 64px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
