/* ─────────────────────────────────────────────────────────────
   Healthee — /demo landing page (local working build)
   Fonts come from the shared /styles/fonts.css (licensed WOFF2).
   Colors, spacing, radii etc. mirror the Claude Design handoff.
   ───────────────────────────────────────────────────────────── */

:root {
  --font-display: 'Tiempos Headline', ui-serif, Georgia, serif;
  --font-sans: 'Founders Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --poppy: #fd5201;
  --poppy-pressed: #cb4101;
  --poppy-hover: #e84a01;
  --poppy-tint: #fff8f5;

  --text: #000000;
  --text-subtle: #6c6c6c;

  --surface: #ffffff;
  --surface-tonal: #f0f3f8;
  --border-muted: #e2e6ef;
  --error: #f23c3c;

  --r-field: 16px;
  --r-card: 32px;
  --r-pill: 999px;

  --shadow-card: 0 28px 64px rgba(0, 0, 0, 0.12);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--poppy-tint);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Scale the whole page down to match a browser at ~80% zoom, per Shira's
   request. `zoom` (not `transform: scale`) so layout actually reflows at
   the smaller size instead of just rendering shrunk with leftover space. */
body { zoom: 0.8; }
@media (max-width: 900px) {
  body { zoom: 1; }
}

a { color: var(--poppy); text-decoration: underline; }
a:hover { color: var(--poppy-pressed); }

/* ── Hero shell ──────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--poppy-tint);
  overflow: hidden;
}

.hero__texture { position: absolute; pointer-events: none; }
.hero__texture--bottom-left { left: -300px; bottom: -340px; width: 1080px; height: 1080px; }
.hero__texture--top-center  { left: 44%;   top: -140px;    width: 420px;  height: 420px; }

.hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 4vw, 72px);
  min-height: 100vh;
  max-width: 1640px;
  margin: 0 auto;
  padding: clamp(32px, 3.5vw, 56px) clamp(24px, 4.5vw, 80px);
}

/* ── Left column (pitch) ─────────────────────────────────── */

.pitch { flex: 1 1 620px; max-width: 1000px; display: flex; flex-direction: column; gap: clamp(24px, 2.6vw, 40px); }
.pitch__logo { width: clamp(160px, 14vw, 210px); height: auto; display: block; }
.pitch__head { display: flex; flex-direction: column; gap: clamp(16px, 1.4vw, 22px); }

.pitch__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 5.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  color: var(--text);
  text-wrap: pretty;
}
/* TODO(fonts): swap in Tiempos Headline Medium Italic (licensed WOFF2, pending
   from Shira) and switch this to font-style: italic. Poppy color only for now. */
.pitch__headline em { font-style: normal; color: var(--poppy); font-weight: 500; }

.pitch__subhead {
  margin: 0;
  font-weight: 400;
  font-size: clamp(21px, 1.9vw, 30px);
  line-height: 1.32;
  color: var(--text-subtle);
  max-width: 44ch;
  text-wrap: pretty;
}

/* ── Benefit list ────────────────────────────────────────── */

.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(14px, 1.2vw, 20px); }
.benefits li { display: flex; align-items: flex-start; gap: 16px; }
.benefits svg { flex: none; width: clamp(24px, 2vw, 30px); height: clamp(24px, 2vw, 30px); margin-top: 1px; color: var(--poppy); }
.benefits p { margin: 0; font-weight: 400; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.36; color: var(--text-subtle); }
.benefits b { color: var(--text); font-weight: 500; }

/* ── Trust bar ───────────────────────────────────────────── */

.trust { display: flex; flex-direction: column; gap: clamp(20px, 2vw, 28px); }
.trust__line { margin: 0; font-weight: 500; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.3; color: var(--text); }
.trust__logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px) clamp(20px, 2.4vw, 40px);
  align-items: center;
  max-width: 760px;
  margin-top: 10px;
}
.trust__logos img { width: 100%; object-fit: contain; opacity: 0.7; }
.trust__logos img[data-logo="instacart"],
.trust__logos img[data-logo="trinet"],
.trust__logos img[data-logo="builders-firstsource"],
.trust__logos img[data-logo="adp"],
.trust__logos img[data-logo="snap"]        { max-height: 30px; }
.trust__logos img[data-logo="siriusxm"],
.trust__logos img[data-logo="conair"],
.trust__logos img[data-logo="wix"]         { max-height: 26px; }
.trust__logos img[data-logo="workday"]     { max-height: 34px; }
.trust__logos img[data-logo="mayo-clinic"] { max-height: 46px; }

/* ── Form card ───────────────────────────────────────────── */

.form-col { flex: 0 1 520px; display: flex; justify-content: flex-end; }

.form-card {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 2.6vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.6vw, 26px);
}

.form-card__head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.form-card__symbol { width: 34px; height: 34px; display: block; margin-bottom: 2px; }
.form-card__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 2.6vw, 42px); line-height: 1.08; color: var(--text); }
.form-card__sub { margin: 0; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.4; color: var(--text-subtle); }

.form-card__legal { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-subtle); text-align: center; }
.form-card__success { margin: 0; font-size: 15px; line-height: 1.4; color: var(--poppy); text-align: center; }
.form-card__success[hidden] { display: none; }

/* Hand-built form, posted directly via fetch() — see demo/index.html.
   Real inputs/select, so no iframe-injection workarounds needed. */
.demo-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.demo-form .field {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-field);
  background: var(--surface-tonal);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 250ms var(--ease-standard), background 250ms var(--ease-standard);
}
.demo-form select.field { appearance: auto; cursor: pointer; }
.demo-form .field::placeholder { color: var(--text-subtle); opacity: 1; }
.demo-form .field:focus { outline: none; border-color: var(--poppy); background: var(--surface); }
.demo-form .field[aria-invalid="true"] { border-color: var(--error); }
.demo-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card__error { margin: 0; font-size: 13px; line-height: 1.4; color: var(--error); text-align: center; }
.form-card__error[hidden] { display: none; }

.demo-form .btn-primary {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--poppy);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
  transition: background 150ms var(--ease-standard);
}
.demo-form .btn-primary:hover  { background: var(--poppy-hover); }
.demo-form .btn-primary:active { background: var(--poppy-pressed); }
.demo-form .btn-primary:focus-visible { outline: 2px solid var(--poppy); outline-offset: 3px; }
.demo-form .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.demo-form[hidden] { display: none; }

/* ── Responsive: hero ────────────────────────────────────── */

@media (max-width: 1100px) {
  .form-col { flex: 1 1 100%; justify-content: center; }
  .form-card { max-width: 620px; }
}
@media (max-width: 900px) {
  .hero__inner { min-height: 0; padding: 32px 20px 56px; align-items: flex-start; justify-content: flex-start; gap: 28px; }
  .hero__texture--top-center { display: none; }
  .trust__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; }

  /* Reorder so the form lands above the fold on mobile: unwrap .pitch so its
     children become direct flex items of .hero__inner (display: contents
     removes .pitch's own box but keeps the DOM/reading order unchanged —
     only the visual order below is affected), then push .trust to the end. */
  .pitch { display: contents; }
  .pitch__head, .benefits, .trust, .form-col { flex: 1 1 100%; }
  /* Left at flex: 0 0 auto (the default) so its own width rule still governs
     its size instead of being stretched to fill the row like its siblings. */
  .pitch__logo { flex: 0 0 auto; order: 1; }
  .pitch__head { order: 2; }
  .form-col    { order: 3; }
  .benefits    { order: 4; }
  .trust       { order: 5; }
}
@media (max-width: 520px) {
  .pitch__logo { width: 120px; }
  .pitch__headline { font-size: 42px; letter-spacing: -1px; }
  .pitch__subhead { font-size: 19px; }
  .benefits p { font-size: 17px; }
  .form-card { border-radius: 24px; padding: 24px 20px; }
  .trust__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─────────────────────────────────────────────────────────────
   Below-the-fold: testimonial + video section, ported verbatim
   from try.healthee.com's homepage (SECTION 3), same class names
   kept internally so the visual/behavior matches exactly.
   Source: /styles/style.css ".third" + video-control + swiper rules.
   ───────────────────────────────────────────────────────────── */

.orange-font { color: var(--poppy); }

.testimonial-section { background: #ffffff; }
.testimonial-section .inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 24px 100px;
  display: flex;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
}
.testimonial-section .left { width: 49%; flex: 1 1 420px; }
.testimonial-section .right { width: 46%; flex: 1 1 420px; }

.video-wrapper { position: relative; height: 100%; }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.video-control-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(253, 82, 1, 0.6); border: none; border-radius: 50%;
  width: 80px; height: 80px; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; z-index: 1;
}
.video-control-btn:hover { background: rgba(253, 82, 1, 0.8); }
.video-control-btn.is-active { top: 20px; left: auto; right: 20px; transform: none; width: 48px; height: 48px; }
.video-control-btn .play-icon { width: 48px; height: 48px; }
.video-control-btn.is-active .play-icon { width: 24px; height: 24px; }

.testimonial-section .swiper,
.testimonial-section .swiper-wrapper,
.testimonial-section .swiper-slide { height: 100%; }
.testimonial-section .swiper { position: relative; }
.swiper-navigation-icon { display: none !important; }
.testimonial-section .swiper-button-prev,
.testimonial-section .swiper-button-next {
  --swiper-navigation-sides-offset: 20px;
  position: absolute; z-index: 10; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  top: 50%; bottom: auto; margin-top: 0;
}
.testimonial-section .swiper-button-prev { left: 20px; right: auto; transform: translateY(-50%); }
.testimonial-section .swiper-button-next { right: 20px; left: auto; transform: translateY(-50%); }
.testimonial-section .swiper-button-prev:hover,
.testimonial-section .swiper-button-next:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); transform: translateY(-50%) scale(1.05); }
.testimonial-section .swiper-button-prev::after,
.testimonial-section .swiper-button-next::after {
  content: ''; width: 9px; height: 9px; border-top: 2px solid #1a1a1a; border-right: 2px solid #1a1a1a;
}
.testimonial-section .swiper-button-next::after { transform: rotate(45deg); margin-right: 3px; }
.testimonial-section .swiper-button-prev::after { transform: rotate(-135deg); margin-left: 3px; }

.slide {
  background: #FFEDE5; padding: 40px 44px; border-radius: 24px; height: 100%;
  box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between;
}
.testimonial-section .right .slide-upper { display: flex; margin-bottom: 100px; }
.testimonial-section .right .slide-upper img { width: 48px; height: 48px; margin-right: 28px; }
.testimonial-section .right .slide-upper h6 { font-size: 24px; font-family: var(--font-sans); font-weight: 400; line-height: 1.3; }
.slide-bottom, .user-info { display: flex; align-items: center; }
.rate {
  font-family: var(--font-display); font-weight: 500; font-size: 42px; letter-spacing: -1px;
  margin-right: 70px; display: flex; align-items: center;
}
.rate::before { content: url('/media/star.png'); display: flex; margin-right: 8px; }
.initials {
  background: linear-gradient(135deg, #FFB999, #FD5201); border-radius: 100px;
  width: 42px; height: 42px; display: flex; justify-content: center; align-items: center;
  color: #fff; font-weight: 700; font-size: 14px; margin-right: 12px;
}
.name { font-weight: 700; font-size: 20px; }
.desc { font-size: 18px; margin-top: 4px; }

@media (max-width: 768px) {
  .testimonial-section .inner-container { padding: 65px 20px 55px; flex-direction: column; }
  .testimonial-section .left, .testimonial-section .right { width: 100%; }
  .testimonial-section .left { margin-bottom: 40px; }
}
@media (max-width: 580px) {
  .testimonial-section .inner-container { padding: 50px 20px; }
  .testimonial-section .right .slide-upper h6 { font-size: 20px; }
}

/* ─────────────────────────────────────────────────────────────
   Page-ending footer, ported verbatim from try.healthee.com's
   homepage footer (same class names, same rules).
   Source: /styles/style.css footer section + responsive rules.
   ───────────────────────────────────────────────────────────── */

.site-footer .inner-container {
  max-width: 1270px;
  margin: 0 auto;
  padding: 44px 24px 30px;
  border-top: 1px solid #D4D4D4;
}
.site-footer .footer-top { display: flex; align-items: baseline; }
.site-footer .footer-top p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 50px;
  color: var(--poppy);
  margin-left: 30px;
}
.site-footer .footer-bottom { display: flex; align-items: center; margin: 40px 0 0; }
.site-footer .footer-bottom nav ul { margin-left: 10px; display: flex; list-style: none; padding: 0; }
.site-footer .copyright,
.site-footer .footer-bottom nav ul li a { color: #404040; text-decoration: none; font-family: var(--font-sans); }
.site-footer .footer-bottom nav ul li a { font-size: 16px; letter-spacing: 0; }
.site-footer .footer-bottom nav ul li { padding: 0; margin-right: 0; }
.site-footer .footer-bottom nav ul li::after { content: '|'; margin: 0 4px; }
.site-footer .footer-bottom nav ul li:last-child::after { content: ''; }

@media (max-width: 768px) {
  .site-footer .footer-top, .site-footer .footer-bottom { flex-direction: column; align-items: center; }
  .site-footer .footer-top .logo, .site-footer .footer-bottom .copyright { margin-bottom: 30px; }
  .site-footer .footer-top p { text-align: center; line-height: 34px; margin: 0; }
}
@media (max-width: 580px) {
  .site-footer .footer-top p { font-size: 22px; }
}
@media (max-width: 420px) {
  .site-footer .footer-top p { font-size: 20px; line-height: 28px; }
}
