/* Pulsewidth base styles */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #0f0f0f;
  --text-muted: #666666;
  --border: #e5e5e5;
  --accent: #665a54;
  --accent-hover: color-mix(in srgb, var(--accent) 80%, white);
  --text-on-accent: #f5f5f5;
  --footer-bg: #0f0f0f;
  --footer-text: #f5f5f5;
  --footer-text-muted: #999999;
  --footer-border: #262626;
  --max-width: 1100px;
  --section-padding: clamp(4.5rem, 9vw, 7.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

/* Header */
header {
  flex-shrink: 0;
  background: var(--footer-bg);
}

header a:focus-visible {
  outline-color: var(--footer-text);
}

.site-logo {
  display: block;
  transition: opacity 0.15s ease;
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo:active {
  opacity: 0.6;
}

.site-logo img {
  height: 100px;
  max-height: 100%;
  width: auto;
  display: block;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading p {
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Focus states */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Hero */
.hero {
  padding-top: calc(var(--section-padding) + 1.5rem);
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 760px;
}

.hero h1 {
  text-wrap: balance;
}

.hero .subheadline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-cta {
  margin-top: 0.5rem;
}

.hero-demo-line {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

.hero-demo-line .label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.hero-demo-line .phone-number {
  color: var(--accent);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-block;
}

.hero-demo-line .phone-number:hover {
  color: var(--accent-hover);
}

.hero-demo-line .recording-note {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

/* What It Does */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.5rem;
}

.capability {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.capability .icon {
  width: 28px;
  height: 28px;
  color: var(--text);
}

.capability p {
  font-size: 1rem;
  color: var(--text);
}

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step .step-number {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.step h3 {
  margin-top: 0.25rem;
}

.step p {
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  max-width: 420px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-card .price {
  font-size: 1.75rem;
  font-weight: 600;
}

.pricing-card p {
  color: var(--text);
}

.pricing-fine-print {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Social Proof (hidden at launch) */
.hidden {
  display: none;
}

.social-proof-grid {
  display: grid;
  gap: 2.5rem;
}

.quote-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.quote-block cite {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.stat-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.stat-callout .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-callout .stat-label {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.5rem 1rem;
  margin: 0 -1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.0625rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.15s ease;
}

.faq-item summary:hover {
  background: var(--surface);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  max-width: 640px;
}

/* Booking */
.booking-section .section-heading {
  margin-bottom: 2.5rem;
}

.booking-embed {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cal-embed-inline {
  width: 100%;
  min-height: 400px;
}

.booking-email {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
}

.booking-email a {
  color: var(--text);
  text-decoration: underline;
}

.booking-email a:hover {
  color: var(--text-muted);
}

/* Footer */
footer {
  flex-shrink: 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 2rem;
}

footer a:focus-visible {
  outline-color: var(--footer-text);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
}

.footer-wordmark {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-email a,
.footer-links a {
  color: var(--footer-text-muted);
  text-decoration: none;
}

.footer-links a {
  font-size: 0.9375rem;
}

.footer-email a:hover,
.footer-links a:hover {
  color: var(--footer-text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
}

.footer-easter-egg {
  flex-shrink: 0;
  display: block;
  opacity: 0.15;
  transition: opacity 0.15s ease;
}

.footer-easter-egg:hover {
  opacity: 1;
}

.footer-easter-egg img {
  height: 100px;
  width: auto;
  display: block;
  transition: filter 0.15s ease;
}

.footer-easter-egg:hover img {
  filter: invert(1);
}

.footer-fine-print {
  color: var(--footer-text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Legal pages */
.legal-page main {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.legal-page main .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.legal-page .effective-date {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 3rem;
  display: block;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-page main p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-page main a {
  color: var(--text);
}

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.legal-page .back-link:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 640px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-easter-egg img {
    height: 32px;
  }
}

@media (min-width: 1100px) {
  .capabilities-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface: #1c1c1c;
    --text: #efefef;
    --text-muted: #999999;
    --border: #2a2a2a;
    --accent: #b8aca7;
    --accent-hover: color-mix(in srgb, var(--accent) 80%, black);
    --text-on-accent: #ffffff;
  }
}
