/* 4mor marketing site
   Light theme: peach. Dark theme: midnight blue.
   Color tokens sampled from the 4mor app UI.
   No third-party font or analytics requests.

   Legal typography (106.004 caps line):
   - Text is already uppercase in the HTML source. Do not rely on
     text-transform: uppercase to meet the requirement.
   - font-size must stay at or above 16px / 12pt on every viewport,
     including mobile. Do not reduce .notice-background-check in a
     media query, with viewport units, or by scaling the root font.
*/

:root {
  color-scheme: light;
  --bg: #FFF1E6;
  --bg-elevated: #FFE4D1;
  --text: #2B1A12;
  --text-muted: #5C3B2B;
  --accent: #B8432C;
  --accent-hover: #8B2E1C;
  --on-accent: #FFFFFF;
  --border: #E8C8B0;
  --notice-bg: #FFE8D8;
  --notice-border: #2B1A12;
  --input-bg: #FFFFFF;
  --draft-bg: #2B1A12;
  --draft-text: #FFF1E6;
  --focus: #8B2E1C;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --content: 42rem;
  --wide: 68rem;
  --header-h: 4rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1430;
  --bg-elevated: #13204A;
  --text: #EEF2FF;
  --text-muted: #B8C3E6;
  --accent: #F2C14E;
  --accent-hover: #FFD36A;
  --on-accent: #0B1430;
  --border: #2A3A72;
  --notice-bg: #13204A;
  --notice-border: #EEF2FF;
  --input-bg: #0B1430;
  --draft-bg: #F2C14E;
  --draft-text: #0B1430;
  --focus: #F2C14E;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1430;
    --bg-elevated: #13204A;
    --text: #EEF2FF;
    --text-muted: #B8C3E6;
    --accent: #F2C14E;
    --accent-hover: #FFD36A;
    --on-accent: #0B1430;
    --border: #2A3A72;
    --notice-bg: #13204A;
    --notice-border: #EEF2FF;
    --input-bg: #0B1430;
    --draft-bg: #F2C14E;
    --draft-text: #0B1430;
    --focus: #F2C14E;
  }
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.draft-banner {
  margin: 0;
  padding: 0.45rem 1.25rem;
  background: var(--draft-bg);
  color: var(--draft-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

main {
  flex: 1 0 auto;
  width: min(100%, var(--wide));
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  max-width: var(--content);
  margin: 0 auto 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.lede {
  margin: 0;
  font-size: 1.1875rem;
  color: var(--text-muted);
  max-width: 38rem;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 auto 3rem;
  max-width: var(--wide);
  padding: 0;
  list-style: none;
}

.benefits li,
.card,
.form-card,
.step,
.faq-item {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
}

.benefits h2,
.section-title,
.form-card h2,
.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.benefits p,
.step p,
.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

.section {
  max-width: var(--content);
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.1rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 750;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  line-height: 1;
}

.step h3 {
  margin: 0;
  font-size: 1.05rem;
  grid-column: 2;
}

.step p {
  grid-column: 2;
}

.form-card {
  max-width: var(--content);
  margin: 0 auto 3rem;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--border);
}

.form-card h2 {
  font-size: 1.75rem;
}

.form-card .hint {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

label {
  display: block;
  font-weight: 650;
  margin: 0 0 0.4rem;
}

input[type="email"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}

input[type="email"]:focus {
  border-color: var(--focus);
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  outline-offset: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-block {
  width: 100%;
  margin-top: 0.25rem;
}

.city-line {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-status {
  margin: 0.85rem 0 0;
  font-weight: 650;
  min-height: 1.3em;
}

.collection-notice {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.collection-notice a {
  font-weight: 650;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}

.check-field input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
}

.check-field label {
  display: block;
  margin: 0;
  font-weight: 550;
  line-height: 1.45;
  cursor: pointer;
}

.legal-draft-banner {
  margin: 0;
  padding: 0.7rem 1.25rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-align: center;
}

.legal-draft-banner--page {
  display: block;
  max-width: 40rem;
  margin: 0 0 1.25rem;
  border-radius: 12px;
  text-align: left;
}

/* ---- Shared Texas safety notices ---------------------------------------
   Must remain visible: no accordions, tooltips, links-to-elsewhere, or
   any rule that collapses, truncates, clips, or hides this block.
   ------------------------------------------------------------------------- */

.safety-notices {
  display: block;
  visibility: visible;
  opacity: 1;
  overflow: visible;
  height: auto;
  max-height: none;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0 1.1rem;
  padding: 1.2rem 1.15rem 1.3rem;
  background: var(--notice-bg);
  border: 2px solid var(--notice-border);
  border-radius: 16px;
  color: var(--text);
}

.safety-notices__label {
  display: block;
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.safety-notices p {
  display: block;
  visibility: visible;
  opacity: 1;
  overflow: visible;
  height: auto;
  max-height: none;
  margin: 0 0 0.9rem;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-overflow: unset;
  color: var(--text);
}

.safety-notices p:last-child {
  margin-bottom: 0;
}

/*
  106.004 caps line.
  The live string is typed in uppercase in the source (and in
  content/safety-notices.en.json). The final text from Forge must
  already be in caps, or a decision is needed — do not depend on
  text-transform alone. This line is pending lawyer approval.
  Minimum 16px / 12pt at every width, including 390px mobile.
*/
.notice-background-check {
  font-weight: 700;
  font-size: 16px;
  font-size: max(16px, 12pt);
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0.01em;
}

.notice-plain-language,
.notice-106-006 {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
}

.page-safety .safety-notices {
  margin: 1.5rem 0 0;
  padding: 1.5rem 1.4rem 1.6rem;
}

.page-safety .notice-background-check {
  /* Slightly above the legal floor for the dedicated /safety page.
     Still never below 16px / 12pt. */
  font-size: 18px;
  font-size: max(18px, 16px, 12pt);
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq-item h3 {
  font-size: 1.05rem;
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer nav,
.footer-inner {
  width: min(100%, var(--wide));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  /* Tighten layout only. Do not reduce .notice-background-check
     font-size — legal floor is 16px / 12pt at this width. */
  main {
    padding: 1.75rem 1rem 3rem;
  }

  .site-header,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ---- Waitlist-only additions (do not change the Texas notice rules above) ---- */

.lang-switch {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-weight: 650;
  font-size: 0.875rem;
}

.lang-switch a {
  color: var(--text);
  text-decoration: none;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
}

.lang-switch a[aria-current="page"] {
  background: var(--bg-elevated);
  color: var(--accent);
}

.lang-switch a:hover {
  color: var(--accent);
}

select,
input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.5rem;
}

select:focus,
input[type="text"]:focus {
  border-color: var(--focus);
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  outline-offset: 1px;
}

.field-hint {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.field-error {
  margin: 0 0 0.85rem;
  color: var(--accent-hover, #8B2E1C);
  font-weight: 650;
  font-size: 0.95rem;
}

html[data-theme="dark"] .field-error,
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .field-error {
    color: #FFD36A;
  }
}

.form-success {
  margin: 0;
}

.form-success h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.turnstile-slot {
  margin: 0 0 1rem;
  min-height: 65px;
}

.turnstile-placeholder {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.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;
}


.opening-soon {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
