/* ============================================================
   DRP-OS Website · Render Fix-Up (additive overlay)
   Loaded AFTER /assets/style.css — fills missing class defs.
   Reversible: remove the <link> in includes/header.php.
   ============================================================ */

/* ---------- CARDS (80 uses across the site) ---------- */
.card {
  background: #ffffff;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--ink-20, #d6d6d6);
}

/* ---------- FORM FIELDS (signup, contact, notify) ---------- */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-70, #4a4a4a);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #1a1a1a);
  background: #fafafa;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent, #fb923c);
  background: #ffffff;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-30, #b8b8b8);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- FEATURES GRID + CARDS (features.php) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: #ffffff;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.feature-card:hover {
  border-color: var(--ink-20, #d6d6d6);
  transform: translateY(-2px);
}
.feature-card h4 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-70, #4a4a4a);
  margin: 0;
}

/* ---------- FEATURE-SECTION + CATEGORY HEADERS ---------- */
.feature-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--ink-05, #f4f4f4);
}
.feature-section:last-of-type { border-bottom: none; }

.category-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.category-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 22px; font-weight: 500;
  background: linear-gradient(135deg, #fb923c 0%, #f472b6 100%);
  color: #fff;
  border-radius: 12px;
  flex-shrink: 0;
}
.category-meta { flex: 1; }
.category-meta h3 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 28px; font-weight: 500;
  margin: 0 0 4px;
}
.category-meta p {
  font-size: 14px; color: var(--ink-50, #888);
  margin: 0;
}
.category-count {
  font-size: 12px; font-weight: 500;
  color: var(--ink-50, #888);
  background: var(--ink-05, #f4f4f4);
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}

/* ---------- MODULE PILLS (clinic/gym/both badges) ---------- */
.module-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.module-pill.clinic { background: #dbeafe; color: #1e40af; }
.module-pill.gym    { background: #dcfce7; color: #166534; }
.module-pill.both   { background: #f3e8ff; color: #6b21a8; }

/* ---------- PILL (footer "soon"/"beta" mini-badges) ---------- */
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 4px;
}
.pill-soon { background: #fef3c7; color: #92400e; }
.pill-beta { background: #dbeafe; color: #1e40af; }

/* ---------- FOOTER GRID (footer.php) ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- EYEBROW (small label above headings) ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent, #fb923c);
  margin-bottom: 12px;
}

/* ---------- DISPLAY (hero-size heading helper) ---------- */
.display {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ---------- ALERTS ---------- */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* ---------- BADGE (general purpose) ---------- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink-05, #f4f4f4);
  color: var(--ink-70, #4a4a4a);
  letter-spacing: 0.3px;
}

/* ---------- CONTACT PAGE CHANNELS ---------- */
.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
  margin-bottom: 12px;
}
.contact-channel:hover {
  border-color: var(--accent, #fb923c);
  transform: translateY(-1px);
}
.channel-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-05, #f4f4f4);
  color: var(--ink, #1a1a1a);
  border-radius: 10px;
  flex-shrink: 0;
  font-weight: 600;
}
.channel-info { flex: 1; }
.channel-info h3 {
  font-size: 15px; font-weight: 600;
  margin: 0 0 4px;
}
.channel-info p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-70, #4a4a4a);
  margin: 0;
}
.channel-link {
  font-weight: 500;
  color: var(--accent, #fb923c);
}

/* ---------- BUTTON SIZE/COLOR VARIANTS ---------- */
.btn-lg, .btn-large {
  padding: 14px 28px;
  font-size: 15px;
}
.btn-accent {
  background: var(--accent, #fb923c);
  color: #ffffff;
  border: 1px solid var(--accent, #fb923c);
}
.btn-accent:hover {
  background: #ea7c1e;
  border-color: #ea7c1e;
}

/* ---------- CTA BANDS ---------- */
.cta-buttons, .cta-band-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- CONTACT FORM WRAPPER ---------- */
.contact-form {
  background: #ffffff;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 12px;
  padding: 32px;
}
.form-subtitle {
  font-size: 14px;
  color: var(--ink-50, #888);
  margin-bottom: 20px;
}
.form-textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #1a1a1a);
  background: #fafafa;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 8px;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}
.form-textarea:focus {
  border-color: var(--accent, #fb923c);
  background: #ffffff;
}

/* ---------- FAQ ---------- */
.faq {
  border-bottom: 1px solid var(--ink-10, #eaeaea);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  font-size: 20px;
  color: var(--ink-50, #888);
  transition: transform 0.15s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-70, #4a4a4a);
}

/* ---------- CHECK MARKS in feature lists ---------- */
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.check::before {
  content: '✓';
  color: var(--accent, #fb923c);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- FILTER TABS ---------- */
.filter-tab {
  display: inline-block;
  padding: 8px 16px;
  margin-right: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-70, #4a4a4a);
  background: transparent;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-tab:hover {
  border-color: var(--ink-30, #b8b8b8);
}
.filter-tab.active {
  background: var(--ink, #1a1a1a);
  color: #ffffff;
  border-color: var(--ink, #1a1a1a);
}

/* ---------- BACKWARDS-COMPAT for bare input/textarea/select in cards
   (catches signup.php where inputs have NO .form-input class) ---------- */
.card input[type="text"],
.card input[type="email"],
.card input[type="tel"],
.card input[type="password"],
.card input[type="number"],
.card input:not([type]),
.card textarea,
.card select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #1a1a1a);
  background: #fafafa;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.card input:focus,
.card textarea:focus,
.card select:focus {
  border-color: var(--accent, #fb923c);
  background: #ffffff;
}

/* ---------- Restore consistent .nav-cta spacing ---------- */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================================
   v2 · product.php pricing + feature blocks
   ============================================================ */

/* ---------- PRODUCT PRICING GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- PRODUCT CARD (each pricing tier) ---------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.product-card:hover {
  border-color: var(--ink-30, #b8b8b8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.08);
}
.product-card h3 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.product-card .tagline {
  font-size: 13px;
  color: var(--ink-50, #888);
  margin: 0 0 14px;
  line-height: 1.45;
}
.product-card ul li {
  line-height: 1.45;
}

/* ---------- PRODUCT FEATURE BLOCKS (below pricing) ---------- */
.feature-cat-head {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 24px;
  font-weight: 500;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-10, #eaeaea);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-cell {
  padding: 4px 0;
}
.feature-cell h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-cell p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-70, #4a4a4a);
  margin: 0;
}

/* ---------- PILL VARIANTS ---------- */
.pill-live {
  background: #dcfce7;
  color: #166534;
}

/* ---------- SECTION + SECTION HEAD ---------- */
.section {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}
.section-head h2 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-head h2 em {
  font-style: italic;
  background: linear-gradient(135deg, #fb923c 0%, #f472b6 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p {
  font-size: 16px;
  color: var(--ink-70, #4a4a4a);
  margin: 0;
  line-height: 1.6;
}

/* ---------- TEXT-CENTER helper used by product.php ---------- */
.text-center { text-align: center; }

/* ============================================================
   v3 · product.php hero section fixes
   ============================================================ */

/* Push hero down so nothing sits behind sticky nav.
   The product page first <section> has padding:60px but the
   nav is sticky at ~60px so badge ends up clipped. */
.site-nav + section,
section:first-of-type {
  padding-top: 120px !important;
}

/* The product badge — make sure it's visible & has breathing room.
   Inline style already gives it bg+color, but make text more visible. */
section .container > div[style*="inline-flex"][style*="border-radius: 100px"] {
  margin-top: 0;
  letter-spacing: 0.3px;
}

/* Hero CTA spacing */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.mt-32 { margin-top: 32px; }

/* Lede paragraph under hero h1 */
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-70, #4a4a4a);
  max-width: 600px;
}
