/* Tend Health — Landing page styles */

:root {
  --color-primary: #d4416f;
  --color-primary-dark: #a82d56;
  --color-primary-light: #e35a85;
  --color-accent: #f4a261;
  --color-text: #2a1a20;
  --color-text-muted: #7a606a;
  --color-bg: #ffffff;
  --color-bg-soft: #fdf5f8;
  --color-bg-cream: #fef0f3;
  --color-border: #f0dce4;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

/* HEADER */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 19px;
  color: var(--color-text);
}
.logo:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
}

.phone-link {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  text-decoration: none;
}

.btn-ghost {
  background: var(--color-primary);
  color: white;
  padding: 10px 18px;
  font-size: 14px;
}
.btn-ghost:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* HERO */

.hero {
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
  padding: 60px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  background: rgba(212, 65, 111, 0.10);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.eyebrow-light {
  background: rgba(255,255,255,0.18);
  color: white;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.lead {
  font-size: 19px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-meta, .waitlist-meta, .download-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ctas .btn { font-size: 16px; }

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  flex-wrap: wrap;
}

.waitlist-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: inherit;
  background: white;
}
.waitlist-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 65, 111, 0.15);
}

/* HERO VISUAL — PHONE MOCK */

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: 290px;
  height: 600px;
  background: #2a1a20;
  border-radius: 38px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-screen {
  background: var(--color-bg-soft);
  height: 100%;
  border-radius: 28px;
  padding: 44px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.phone-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 8px 4px 2px;
}
.phone-section-label:first-child { margin-top: 0; }

.card-reminder {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.card-reminder strong { display: block; font-size: 14px; }
.card-reminder small { color: var(--color-text-muted); font-size: 12px; }

.card-dot {
  width: 12px; height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.card-dot.blue { background: #5b8def; }
.card-dot.orange { background: var(--color-accent); }

.card-reminder .check {
  margin-left: auto;
  background: var(--color-primary);
  color: white;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.card-reminder.pending { opacity: 0.75; }

/* Worker card inside the phone */
.card-worker {
  background: white;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.card-worker-avatar {
  width: 38px; height: 38px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.card-worker-avatar.nurse { background: #5b8def; }
.card-worker-info { flex: 1; min-width: 0; }
.card-worker-info strong { font-size: 12px; display: block; }
.card-worker-info small { font-size: 10px; color: var(--color-text-muted); display: block; }
.card-worker-badges {
  display: flex; gap: 4px;
  margin-top: 3px;
}
.mini-badge {
  background: rgba(212, 65, 111, 0.12);
  color: var(--color-primary-dark);
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.card-worker-hire {
  background: var(--color-primary);
  color: white;
  border: 0;
  font-weight: 700;
  font-size: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex-shrink: 0;
}

/* FEATURES */

.features {
  padding: 40px 0 80px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

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

.feature-card {
  background: var(--color-bg-soft);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* SERVICES */

.services {
  padding: 60px 0 80px;
  background: var(--color-bg-cream);
}
.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 16px;
  margin: -16px 0 36px;
}

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

.service-card {
  background: white;
  padding: 24px 22px;
  border-radius: var(--radius-md);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-emoji { font-size: 32px; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 4px;
}
.service-icon ion-icon { font-size: 28px; }
.service-card h3 { font-size: 17px; font-weight: 800; }
.service-price { color: var(--color-primary); font-weight: 700; font-size: 14px; margin: 0; }
.service-desc { color: var(--color-text-muted); font-size: 13px; margin: 4px 0 12px; line-height: 1.4; }

.btn-sm {
  font-size: 13px;
  padding: 10px 18px;
  align-self: flex-start;
}

.services-cta {
  margin-top: 40px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.services-cta p {
  color: var(--color-text);
  font-size: 16px;
  margin-bottom: 16px;
}

/* SERVICE DETAIL PAGE */

.service-page { background: var(--color-bg-soft); min-height: calc(100vh - 200px); padding: 40px 0 80px; }
.service-hero-wrap { max-width: 900px; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--color-primary); font-weight: 600; font-size: 14px; }
.service-hero {
  display: flex; gap: 24px; align-items: flex-start;
  background: white; padding: 32px; border-radius: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.service-icon-big {
  width: 80px; height: 80px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; flex-shrink: 0;
}
.service-icon-big ion-icon { font-size: 44px; }
.service-hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.service-hero-rate { color: var(--color-primary); font-weight: 700; margin-bottom: 12px; }
.service-hero-short { color: var(--color-text-muted); font-size: 16px; margin-bottom: 18px; line-height: 1.5; }
.service-hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.service-detail-grid section {
  background: white; padding: 24px; border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.service-detail-grid h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.includes { list-style: none; padding: 0; }
.includes li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; font-size: 14px;
}
.includes ion-icon { color: var(--color-success, #3fa56b); font-size: 18px; flex-shrink: 0; }
.caveat { color: var(--color-text-muted); font-size: 13px; margin-top: 10px; }

.service-cta-card {
  background: var(--color-primary); color: white;
  padding: 28px; border-radius: 18px;
  text-align: center;
}
.service-cta-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.service-cta-card p { color: rgba(255,255,255,0.9); margin-bottom: 18px; }
.service-cta-card .btn { background: white; color: var(--color-primary); }

@media (max-width: 700px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-hero { padding: 24px; }
  .service-hero h1 { font-size: 1.7rem; }
}

/* BOOKING FORM PAGE */

.book-page { background: var(--color-bg-soft); min-height: calc(100vh - 200px); padding: 40px 0 80px; }
.book-wrap { max-width: 600px; }
.book-wrap h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.form-sub { color: var(--color-text-muted); margin-bottom: 28px; }

.booking-form {
  background: white;
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.booking-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 14px 0 6px;
}
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212,65,111,0.15);
}
.booking-form textarea { resize: vertical; min-height: 80px; }
.booking-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-block { width: 100%; margin-top: 20px; padding: 14px 22px; font-size: 15px; }

.hint { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }

.price-box {
  background: var(--color-bg-cream);
  border-radius: 14px;
  padding: 18px;
  margin-top: 22px;
}
.price-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: var(--color-text-muted); }
.price-total { font-size: 18px; font-weight: 800; color: var(--color-text); }
.price-divider { height: 1px; background: var(--color-border); margin: 8px 0; }
.price-fine { font-size: 12px; color: var(--color-text-muted); margin-top: 8px; font-style: italic; }

.stripe-element-wrap {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px;
}
.payment-disclaimer { font-size: 12px; color: var(--color-text-muted); margin-top: 8px; font-style: italic; }
.payment-error { color: var(--color-danger, #c84545); font-size: 13px; margin-top: 8px; min-height: 16px; }

.success-view { text-align: center; padding: 40px 20px; background: white; border-radius: 18px; box-shadow: var(--shadow-sm); }
.success-view h1 { font-size: 1.8rem; margin: 12px 0 12px; }
.success-view p { color: var(--color-text-muted); margin-bottom: 12px; }
.success-view a.btn { margin-top: 20px; }
.success-icon { font-size: 64px; color: var(--color-success, #3fa56b); }
.success-icon ion-icon { font-size: 64px; }

@media (max-width: 500px) {
  .booking-form .row { grid-template-columns: 1fr; }
}

/* HOW IT WORKS */

.how-it-works {
  background: var(--color-bg-cream);
  padding: 100px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}

.steps h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.steps p { color: var(--color-text-muted); font-size: 15px; }

/* WORKERS SECTION */

.workers {
  background: var(--color-primary);
  color: white;
  padding: 100px 0;
}

.workers-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.workers h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.workers .lead, .workers p { color: rgba(255,255,255,0.85); }

.checklist {
  list-style: none;
  margin: 24px 0 32px;
}
.checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: rgba(255,255,255,0.92);
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 18px;
}

.workers-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.worker-card {
  background: white;
  color: var(--color-text);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}
.worker-card.offset { transform: translateX(40px); }

.worker-avatar {
  width: 52px; height: 52px;
  background: var(--color-primary-light);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.worker-info strong { display: block; font-size: 15px; }
.worker-info small { color: var(--color-text-muted); font-size: 13px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.badge {
  display: inline-block;
  background: rgba(212, 65, 111, 0.1);
  color: var(--color-primary-dark);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

/* DOWNLOAD SECTION */

.download-section {
  padding: 100px 0;
  text-align: center;
  background: var(--color-bg-soft);
}

.download-section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0 0;
}
.download-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-text);
  color: white;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  min-width: 180px;
}
.download-btn:hover {
  text-decoration: none;
  background: var(--color-primary-dark);
}
.dl-small {
  font-size: 11px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dl-big {
  font-size: 18px;
  font-weight: 800;
}
.download-meta a { color: var(--color-primary); }

/* FOOTER */

.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}

.footer-brand strong {
  display: block;
  font-size: 19px;
  color: white;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 14px; margin-bottom: 12px; }
.footer-brand .small { font-size: 12px; color: rgba(255,255,255,0.55); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-links h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 6px 0;
}
.footer-links a:hover { color: white; }

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner,
  .workers-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content .lead,
  .workers-content .lead { margin-left: auto; margin-right: auto; }
  .hero .waitlist-form { margin-left: auto; margin-right: auto; }
  .checklist { text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; }

  .steps { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }

  .worker-card.offset { transform: none; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav .btn-ghost { display: inline-block; }
  .site-nav a:not(.btn-ghost) { display: none; }

  /* simple fallback — show only the CTA on tiny screens */
  .site-nav { display: flex; }
  .site-nav a:not(.btn-ghost) { display: none; }

  .footer-links { grid-template-columns: 1fr 1fr; }
}

/* ===== join-pro page ===== */
.form-section {
  font-size: 16px;
  margin: 28px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border, #eee);
  color: var(--color-primary, #d4416f);
  font-weight: 700;
}
.form-section:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 6px 0 16px;
}
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--color-border, #e2e2e7);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.1s, background 0.1s;
}
.checkbox-card ion-icon { color: var(--color-primary, #d4416f); font-size: 20px; }
.checkbox-card:has(input:checked) {
  border-color: var(--color-primary, #d4416f);
  background: rgba(212, 65, 111, 0.06);
}
.checkbox-card input { margin: 0; accent-color: var(--color-primary, #d4416f); }

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 16px;
}
.credential-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--color-border, #e2e2e7);
  border-radius: 10px;
  background: white;
}
.credential-icon ion-icon { font-size: 22px; color: var(--color-primary, #d4416f); }
.credential-title { font-weight: 600; font-size: 14px; }
.credential-title .req { color: #d33; font-weight: 500; font-size: 11px; margin-left: 4px; }
.credential-file { font-size: 12px; color: #6b6b75; margin-top: 2px; }
.credential-file.has-file { color: #155724; font-weight: 500; }
