/* Crewnify Marketing Site: shared styles. Tokens live in tokens.css. */

/* ── Base resets (base.css from export) ── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--text-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  margin: 0;
}
h1 { font-size: var(--text-h1); line-height: var(--leading-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: var(--text-h5); }
h6 { font-size: var(--text-h6); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text-primary); }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── Icons (inline SVG spans) ── */
.icon { display: inline-flex; color: currentColor; flex-shrink: 0; width: 24px; height: 24px; }
.icon svg { width: 100%; height: 100%; }
.icon--18 { width: 18px; height: 18px; }
.icon--20 { width: 20px; height: 20px; }
.icon--26 { width: 26px; height: 26px; }
.icon--32 { width: 32px; height: 32px; }

/* ── Buttons (Button.jsx) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  border-radius: var(--radius-button);
  font-family: var(--font-body); font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  padding: 0.625rem 1.5rem; font-size: 1rem;
  background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: var(--btn-primary-bg);
}
.btn:hover { background: var(--btn-primary-bg-hover); border-color: var(--btn-primary-bg-hover); color: var(--btn-primary-text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--secondary { background: transparent; color: var(--btn-secondary-text); border-color: var(--btn-secondary-border); }
.btn--secondary:hover { background: var(--color-white-10); border-color: var(--btn-secondary-border); color: var(--btn-secondary-text); }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }

/* ── Inputs (Input.jsx) + textarea ── */
.input, .textarea {
  width: 100%; min-height: 2.75rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-hairline-soft);
  background: transparent; color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body); font-size: 1rem;
  outline: none; transition: all 0.2s ease-in-out;
}
.input:hover, .textarea:hover { background: var(--color-white-10); }
.textarea { border-color: var(--border-hairline); padding: 0.625rem 0.875rem; font-size: 0.95rem; resize: vertical; min-height: 80px; }
.input::placeholder, .textarea::placeholder { color: var(--text-tertiary); }

/* ── Card (Card.jsx) ── */
.card {
  border: 1px solid var(--border-hairline);
  background: var(--surface-card); color: var(--text-primary);
  border-radius: var(--radius-card); overflow: hidden;
  padding: 1.5rem; font-family: var(--font-body);
}

/* ── Layout helpers (section rhythm from pages) ── */
.section { padding: 7rem 5%; max-width: var(--container-max); margin: 0 auto; }
.kicker { font-weight: 600; margin-bottom: 16px; font-size: 15px; }
.stack-md { display: grid; }
.field-label { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: block; }

/* ── Navbar (Shell.jsx Navbar) ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-page);
  border-bottom: 1px solid var(--border-hairline-soft);
}
.site-header__inner {
  max-width: var(--container-max); margin: 0 auto; padding: 1rem 5%;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo img { height: 22px; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 15px; color: var(--text-secondary); }
.nav-links a.active, .nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.mobile-menu-btn { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--text-primary); }
.mobile-menu {
  display: none; max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease;
  flex-direction: column;
}
.mobile-menu.open { max-height: 320px; border-top: 1px solid var(--border-hairline-soft); }
.mobile-menu a { font-size: 16px; padding: 16px 5%; color: var(--text-secondary); }
.mobile-menu a.active { color: var(--text-primary); }
.mobile-menu__cta { padding: 8px 5% 20px; }

/* ── Footer (Shell.jsx Footer) ── */
.site-footer { padding: 4.5rem 5%; }
.site-footer__inner { max-width: var(--container-max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-grid img { height: 22px; }
.footer-col h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; font-family: var(--font-body); line-height: var(--leading-body); letter-spacing: normal; }
.footer-col__links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.footer-col__links a { cursor: pointer; }
.footer-newsletter p.lead { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.footer-newsletter .form-col { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.footer-newsletter .fineprint { font-size: 12px; color: var(--text-tertiary); }
.footer-bottom {
  border-top: 1px solid var(--border-hairline); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-secondary); flex-wrap: wrap; gap: 12px;
}
.footer-bottom__links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom__links a { cursor: pointer; }
.footer-bottom .icon { color: var(--text-secondary); }
.footer-bottom .icon:hover { color: var(--text-primary); }

/* ── Dialogs (Dialog.jsx) ── */
.dialog-overlay {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--color-neutral-7), transparent 10%);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.dialog-overlay.open { display: flex; }
.dialog {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  max-width: 34rem; width: 90%;
  color: var(--text-primary); font-family: var(--font-body);
  max-height: 86vh; display: flex;
}
.dialog__scroll { width: 100%; max-height: 80vh; overflow-y: auto; }
.dialog__close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--text-primary);
  opacity: 0.6; cursor: pointer; font-size: 1.25rem; line-height: 1; z-index: 1;
}
.dialog__close:hover { opacity: 1; }
.dialog-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }
.dialog-desc { font-size: 0.9rem; color: var(--text-secondary); }
.dialog form .form-stack { display: flex; flex-direction: column; gap: 16px; }
.dialog .agree-row { display: flex; gap: 10px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.dialog .agree-row input { margin-top: 3px; }
.dialog .radio-row { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.dialog .form-error { display: none; color: var(--color-blossom-3); font-size: 13px; }
.dialog .form-error.show { display: block; }

/* Cookie settings dialog rows */
.cookie-rows { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.cookie-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  padding-bottom: 16px; border-bottom: 1px solid var(--border-hairline);
}
.cookie-row__label { font-weight: 600; margin-bottom: 4px; }
.cookie-row__desc { font-size: 13px; color: var(--text-secondary); }
.cookie-row label { display: flex; align-items: center; flex-shrink: 0; cursor: pointer; }
.cookie-row label.locked { cursor: default; opacity: 0.5; }
.cookie-row input { width: 18px; height: 18px; }

/* ── Legal article pages ── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 5rem 5% 7rem; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 8px; }
.legal-page .legal-updated { color: var(--text-tertiary); font-size: 14px; margin-bottom: 40px; font-style: italic; }
.legal-page h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal-page h3 { font-size: 1.15rem; margin: 24px 0 8px; font-weight: 600; }
.legal-page h4 { font-size: 1rem; margin: 18px 0 6px; font-weight: 600; }
.legal-page p { color: var(--text-secondary); margin: 0 0 12px; font-size: 1rem; }
.legal-page ul { color: var(--text-secondary); margin: 0 0 12px; padding-left: 22px; font-size: 1rem; }
.legal-page li { margin-bottom: 4px; }
.legal-page strong { color: var(--text-primary); }
.legal-page a { color: var(--text-primary); text-decoration: underline; }

/* ── Page-specific bits ── */
.hero-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.newsletter-block { max-width: 380px; }
.newsletter-block .form-col { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.newsletter-fineprint { font-size: var(--text-tiny); color: var(--text-tertiary); }
.newsletter-success { font-size: var(--text-tiny); color: var(--text-primary); display: none; }
.newsletter-error { font-size: var(--text-tiny); color: var(--color-blossom-3); display: none; margin-top: 8px; }
.icon-row { display: flex; gap: 16px; }
.icon-row-list { display: flex; flex-direction: column; gap: 16px; }
.check-row { display: flex; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.timeline-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  border-left: 1px solid var(--border-hairline);
  padding-left: 24px; margin-left: 24px; padding-bottom: 32px; position: relative;
}
.timeline-step__icon { position: absolute; left: -24px; background: var(--surface-page); padding: 4px 0; }
.timeline-step__body { grid-column: 1 / 3; margin-left: 40px; }
.resp-table { max-width: 640px; margin: 0 auto; border: 1px solid var(--border-hairline); border-radius: var(--radius-card); overflow: hidden; }
.resp-table__row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-hairline); }
.resp-table__row:last-child { border-bottom: none; }
.resp-table__row--head { font-weight: 700; }
.resp-table__cell--c { text-align: center; }
.resp-table__cell--c .icon { vertical-align: middle; }
.banned-user { position: relative; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.banned-user .icon { width: 12.4px; height: 12.4px; }
.banned-user svg.ring { position: absolute; inset: 0; width: 20px; height: 20px; }

/* ── Responsive (from dc.html inline CSS) ── */
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .stack-md { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .nav-links { display: none !important; }
  .nav-actions .btn { display: none; }
  .mobile-menu-btn { display: flex !important; }
  .mobile-menu { display: flex !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr !important; }
  .demographics-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .store-buttons { flex-direction: column !important; align-items: stretch !important; }
  .newsletter-row { grid-template-columns: 1fr !important; }
}

/* ── Post-launch tweaks (2026-08-11) ── */
.newsletter-fineprint a { text-decoration: underline; }
@media (max-width: 900px) {
  .home-beyond { padding-bottom: 1.5rem; }
  .home-founder { padding-top: 1.5rem; }
}

/* Centered page intro (About, 404): width is capped on the content, not on the
   padded section, so the headline no longer gets squeezed on very wide screens. */
.page-intro { text-align: center; }
.page-intro > * { max-width: 46rem; margin-left: auto; margin-right: auto; }
.page-intro h1 { text-wrap: balance; }
