/* =========================================================================
   VoiceCore Offer Page — Design System & Styles
   Mobile-first. Dark charcoal. Orange accent. Clean, restrained.
   ========================================================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─────────────────────────────────────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────────────────────────────────────── */
:root {
  /* Colour */
  --color-bg:            #111111;
  --color-bg-elevated:   #181818;
  --color-bg-card:       #1E1E1E;
  --color-bg-input:      #242424;
  --color-border:        #2E2E2E;
  --color-border-subtle: #252525;

  --color-text-primary:   #F2F1EF;
  --color-text-secondary: #8C8C8C;
  --color-text-muted:     #555555;
  --color-text-inverse:   #111111;

  --color-accent:         #F28C28;   /* VoiceCore orange */
  --color-accent-hover:   #E07B18;
  --color-accent-muted:   rgba(242, 140, 40, 0.12);
  --color-accent-muted2:  rgba(242, 140, 40, 0.06);

  --color-error:          #EF4444;
  --color-error-bg:       rgba(239, 68, 68, 0.08);
  --color-success:        #4ADE80;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   2.75rem;

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.55;
  --leading-loose:  1.7;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 680px;
  --container-max-wide: 800px;
  --container-pad: var(--space-5);

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   220ms ease;
  --transition-slow:   350ms ease;

  /* Minimum tap target */
  --tap-min: 48px;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4 {
  line-height: var(--leading-tight);
  font-weight: 700;
  color: var(--color-text-primary);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible — keyboard nav */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--wide {
  max-width: var(--container-max-wide);
}

section {
  padding-block: var(--space-16);
}

section + section {
  border-top: 1px solid var(--color-border-subtle);
}

/* ─────────────────────────────────────────────────────────────────────────
   SCROLL REVEAL
   ───────────────────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for sibling elements */
[data-reveal][data-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-delay="3"] { transition-delay: 240ms; }

/* ─────────────────────────────────────────────────────────────────────────
   SITE HEADER
   ───────────────────────────────────────────────────────────────────────── */
.site-header {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
  background-color: var(--color-bg);
}

.site-header .container {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand__logo {
  height: 28px;
  width: auto;
}

.brand__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────────────────── */
#section-hero {
  padding-block: var(--space-12) var(--space-10);
  border-top: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-accent);
}

#hero-headline {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

#hero-subhead {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 56ch;
}

/* ─────────────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-4) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  width: 100%;
  font-size: var(--text-lg);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 0 var(--color-accent-muted);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(242, 140, 40, 0.25);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Subtle pulse animation — stops after 3 cycles to avoid distraction */
@keyframes btn-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(242, 140, 40, 0.35); }
  70%  { box-shadow: 0 0 0 10px rgba(242, 140, 40, 0); }
  100% { box-shadow: 0 0 0 0   rgba(242, 140, 40, 0); }
}

.btn--primary {
  animation: btn-pulse 2s ease-out 1s 3;
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary { animation: none; }
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  width: 100%;
}

.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.btn--ghost {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  padding: 0;
  min-height: auto;
  font-size: var(--text-sm);
  text-decoration: underline;
  cursor: pointer;
}

.btn--ghost:hover {
  color: var(--color-text-primary);
}

/* ─────────────────────────────────────────────────────────────────────────
   VIDEO SECTION
   ───────────────────────────────────────────────────────────────────────── */
#section-video {
  padding-block: 0;
  border-top: none;
}

.video-outer {
  padding-block: var(--space-10);
  background: linear-gradient(
    180deg,
    var(--color-bg) 0%,
    var(--color-bg-elevated) 50%,
    var(--color-bg) 100%
  );
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;  /* 16:9 */
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

#video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* YouTube / Vimeo facade */
.video-facade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--color-bg-card);
}

.video-facade:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
  border-radius: var(--radius-lg);
}

.video-facade__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.video-facade__poster--blank {
  background: linear-gradient(135deg, #1A1A1A 0%, #242424 100%);
}

.video-facade__play {
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.video-facade:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play {
  transform: scale(1.08);
}

/* Placeholder */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: var(--color-bg-card);
}

.video-placeholder__icon { opacity: 0.7; }

.video-placeholder__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────────
   PAIN SECTION
   ───────────────────────────────────────────────────────────────────────── */
#section-pain .section-heading {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

#section-pain .section-sub {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
}

.pain-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

.pain-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-accent-muted2);
  color: var(--color-accent);
}

.pain-item__icon svg {
  width: 18px;
  height: 18px;
}

.pain-item__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  padding-top: 0.2em;
}

/* ─────────────────────────────────────────────────────────────────────────
   CAPABILITIES SECTION
   ───────────────────────────────────────────────────────────────────────── */
#section-capabilities .section-heading {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}

.capabilities-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.capability-card {
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-accent);
}

.capability-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent-muted);
  color: var(--color-accent);
}

.capability-card__icon svg {
  width: 20px;
  height: 20px;
}

.capability-card__heading {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.capability-card__body {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
}

/* ─────────────────────────────────────────────────────────────────────────
   LEAD FORM SECTION
   ───────────────────────────────────────────────────────────────────────── */
#section-form {
  scroll-margin-top: var(--space-6);
}

.form-section-heading {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.form-section-sub {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-8);
}

/* Form card */
.form-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Field group */
.field-group {
  margin-bottom: var(--space-5);
}

.field-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.field-label .required-mark {
  color: var(--color-accent);
  margin-left: var(--space-1);
}

.field-label .optional-mark {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: var(--text-xs);
  margin-left: var(--space-2);
}

/* Inputs */
.field-input,
.field-select,
.field-textarea {
  display: block;
  width: 100%;
  min-height: var(--tap-min);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--color-text-muted);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.15);
}

/* Error state */
.field-input[aria-invalid="true"],
.field-select[aria-invalid="true"],
.field-textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-input[aria-invalid="true"]:focus,
.field-select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Select arrow */
.field-select-wrap {
  position: relative;
}

.field-select-wrap::after {
  content: '';
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-text-secondary);
  pointer-events: none;
}

/* Textarea */
.field-textarea {
  min-height: 96px;
  resize: vertical;
}

/* Field error message */
.field-error {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-error);
  line-height: var(--leading-normal);
}

/* Honeypot — visually hidden */
.field-group--honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Two-column for tablet+ */
@media (min-width: 560px) {
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .field-row .field-group {
    margin-bottom: 0;
  }
}

/* Consent */
.form-consent {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-5);
}

/* Submit button wrapper */
.form-submit-wrapper {
  margin-top: var(--space-2);
}

/* Submit error */
.form-submit-error {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-error-bg);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-error);
}

/* Success state */
.form-success {
  padding: var(--space-10) var(--space-6);
  text-align: center;
}

.form-success__icon {
  width: 52px;
  height: 52px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
}

.form-success__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.form-success__body {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
  max-width: 40ch;
  margin-inline: auto;
}

/* Booking link */
.booking-link-container {
  margin-top: var(--space-6);
}

/* ─────────────────────────────────────────────────────────────────────────
   DEMO PHONE SECTION
   ───────────────────────────────────────────────────────────────────────── */
#demo-phone-section {
  text-align: center;
}

.demo-phone__label {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.demo-phone__sub {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────
   SECTION HEADINGS — shared utility
   ───────────────────────────────────────────────────────────────────────── */
.section-heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

/* ─────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────── */
.site-footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.footer-brand {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────
   DIVIDER
   ───────────────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border-subtle);
  border: none;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE — Desktop / Wider Screens
   ───────────────────────────────────────────────────────────────────────── */
@media (min-width: 640px) {

  #hero-headline {
    font-size: var(--text-4xl);
  }

  #hero-subhead {
    font-size: var(--text-xl);
  }

  .pain-list {
    gap: var(--space-3);
  }

  .capabilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

@media (min-width: 768px) {

  :root {
    --container-pad: var(--space-8);
  }

  #section-hero {
    padding-block: var(--space-16) var(--space-12);
  }

  #hero-headline {
    font-size: var(--text-5xl);
  }

  .capabilities-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-5);
  }

  .site-footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   PRINT
   ───────────────────────────────────────────────────────────────────────── */
@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, #section-video, #demo-phone-section { display: none; }
  #hero-headline { color: black; font-size: 24pt; }
}
