/* Funnel pages, shared styles.
   Brand look from day1dollar.com (green and gold on warm paper, deep emerald hero), rebuilt for speed:
   system fonts only, no web fonts, no images in CSS, every text style at 16 px or more,
   every link and button at least 48 px tall. */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #33433b;
  background: #fbfaf6;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
body > main, body > .hero { flex: 1 0 auto; }
body > .site-head, body > .site-foot { flex-shrink: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: #0f1f17; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1rem; }
a { color: #066b46; text-underline-offset: 3px; }
a:hover { color: #055239; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #f59e0b; outline-offset: 3px; border-radius: 4px;
}
strong { color: #0f1f17; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 780px; }

/* Off-screen elements: the trap link and the honeypot. Never visible, never focusable. */
.oml-offscreen { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- Brand bar ---- */
.site-head { padding: 14px 0; }
.site-head--dark { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.brand__text { font-size: 1.2rem; font-weight: 800; color: #0f1f17; letter-spacing: -0.02em; }
.brand__text span { color: #078a5a; }
.site-head--dark .brand__text { color: #ffffff; }
.site-head--dark .brand__text span { color: #34d399; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 14px 28px; border: 0; border-radius: 14px;
  font: inherit; font-size: 1.125rem; font-weight: 800; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
}
.btn-primary { color: #04261a; background: linear-gradient(135deg, #34d399 0%, #10b981 45%, #078a5a 100%); box-shadow: 0 12px 28px -12px rgba(7, 138, 90, .55); }
.btn-primary:hover { color: #04261a; filter: brightness(1.05); }
.btn-gold { color: #3a2400; background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d98a04 100%); box-shadow: 0 12px 28px -12px rgba(245, 158, 11, .6); }
.btn-gold:hover { color: #3a2400; filter: brightness(1.05); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .8; cursor: progress; }

/* ---- Eyebrow ---- */
.eyebrow { display: block; margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: #066b46; }
.hero .eyebrow { color: #6ee7b7; }

/* ---- Pre-frame: a short note ---- */
.note-page { padding: 8px 0 40px; }
.note {
  background: #ffffff; border: 1px solid #e6eae2; border-radius: 20px;
  padding: clamp(22px, 5vw, 44px); box-shadow: 0 4px 18px -6px rgba(6, 20, 13, .12);
}
.note h1 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
.note .lead { font-size: 1.15rem; color: #0f1f17; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.fit__box { border-radius: 16px; padding: 18px 20px; background: #f2f6f1; border: 1px solid #e6eae2; }
.fit__box--no { background: #fbfaf6; }
.fit__box h2 { font-size: 1.15rem; margin-bottom: 10px; }
.fit__box ul { margin: 0; padding-left: 1.2em; }
.fit__box li { margin-bottom: 8px; }
.fit__box li:last-child { margin-bottom: 0; }
.origin { border-left: 4px solid #f59e0b; padding: 4px 0 4px 16px; margin: 24px 0; }
.origin h2 { font-size: 1.15rem; margin-bottom: 6px; }
.origin p { margin: 0; }
.next { margin-top: 28px; text-align: center; }
.next p { margin-bottom: 14px; color: #0f1f17; font-weight: 600; }

/* ---- Opt-in hero ---- */
.hero {
  color: #eaf6ef;
  background: radial-gradient(70% 60% at 15% 0%, rgba(16, 185, 129, .22) 0%, transparent 60%),
              radial-gradient(60% 55% at 90% 10%, rgba(245, 158, 11, .16) 0%, transparent 60%),
              linear-gradient(160deg, #06140d 0%, #0a2117 55%, #0e2c1f 100%);
  padding: 0 0 36px;
}
.hero h1 { color: #ffffff; margin-bottom: 14px; }
.optin {
  display: grid; gap: 14px 18px; align-items: start;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "h1 h1"
    "cover sub"
    "form form"
    "consent consent"
    "story story"
    "inside inside";
}
.optin__eyebrow { grid-area: eyebrow; margin: 0; }
.optin__h1 { grid-area: h1; margin: 0; }
.optin__sub { grid-area: sub; }
.optin__story { grid-area: story; }
.optin__form { grid-area: form; }
.optin__consent { grid-area: consent; }
.optin__aside { display: contents; }
.optin__cover { grid-area: cover; margin: 0; }
.optin__inside { grid-area: inside; }
.optin__cover img { width: 100%; border-radius: 6px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.sub { margin: 0 0 8px; font-size: 1.125rem; color: rgba(234, 246, 239, .92); }
.trust { margin: 0; font-size: 1rem; color: #fcd34d; font-weight: 600; }
.story { margin: 0; color: rgba(234, 246, 239, .9); }

.field-label { display: block; margin: 0 0 6px; font-weight: 700; color: #ffffff; }
.field-row { display: grid; gap: 10px; }
.field-row input[type="email"] {
  width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 12px;
  border: 2px solid #d3dacd; background: #ffffff; color: #0f1f17; font: inherit; font-size: 1.0625rem;
}
.field-row input[type="email"][aria-invalid="true"] { border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(252, 165, 165, .35); }
.field-error { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff1f1; color: #8a1c1c; font-weight: 600; }
.field-error[hidden] { display: none; }
.ts-box:empty { display: none; }
.ts-box { margin-top: 10px; }

.consent { font-size: 1rem; line-height: 1.55; color: rgba(234, 246, 239, .9); }
.consent p { margin: 0 0 6px; }
.consent p:last-child { margin-bottom: 0; }
.consent a { color: #6ee7b7; font-weight: 700; padding: 15px 0; }
.consent a:hover { color: #a7f3d0; }
.consent__who { color: #ffffff; }

.inside { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 18px 20px; }
.inside h2 { color: #ffffff; font-size: 1.15rem; margin-bottom: 10px; }
.inside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.inside li { position: relative; padding-left: 30px; color: rgba(234, 246, 239, .92); }
.inside li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: #10b981; box-shadow: inset 0 0 0 4px #0a2117;
}

/* ---- Read page (the plan's web version) ---- */
.doc-page { padding: 8px 0 40px; }
.doc { background: #ffffff; border: 1px solid #e6eae2; border-radius: 20px; padding: clamp(22px, 5vw, 48px); }
.doc__title { margin-bottom: 6px; }
.doc__sub { font-size: 1.15rem; color: #0f1f17; font-weight: 600; margin-bottom: 20px; }
.plan-box { border-radius: 16px; padding: 16px 20px; margin: 0 0 18px; background: #f2f6f1; border: 1px solid #e6eae2; }
.plan-box h2, .plan-box h3 { font-size: 1.15rem; margin-bottom: 6px; }
.plan-box p:last-child, .plan-box ul:last-child, .plan-box ol:last-child { margin-bottom: 0; }
.plan-box--warn { background: #fffbeb; border-color: #fcd34d; }
.plan-step { margin: 30px 0 0; }
.plan-step h2 { border-bottom: 2px solid #10b981; padding-bottom: 8px; }
.plan-step .time { font-weight: 700; color: #066b46; }
.plan-template { margin: 0 0 18px; padding: 16px 20px; border-radius: 14px; border: 2px dashed #6ee7b7; background: #f8fdf9; color: #0f1f17; }
.plan-steps-list li, .plan-check li { margin-bottom: 8px; }
.plan-check { list-style: none; padding: 0; }
.plan-check li { position: relative; padding-left: 34px; }
.plan-check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px;
  border: 2px solid #078a5a; border-radius: 5px; background: #ffffff;
}
.terms dt { font-weight: 800; color: #0f1f17; }
.terms dd { margin: 0 0 10px; }

/* ---- Small pages: on its way, bridge, link expired, 404 ---- */
.card-page { padding: 8px 0 48px; }
.card { background: #ffffff; border: 1px solid #e6eae2; border-radius: 20px; padding: clamp(22px, 5vw, 44px); text-align: center; }
.card p { max-width: 560px; margin-left: auto; margin-right: auto; }
.card .btn { margin-top: 8px; }
.reco { margin: 28px auto 0; max-width: 560px; text-align: left; border-top: 1px solid #e6eae2; padding-top: 22px; }
.reco h2 { font-size: 1.2rem; }
.disclosure { font-weight: 600; color: #0f1f17; }

/* ---- Legal page ---- */
.legal-page { padding: 8px 0 48px; }
.legal-toc { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.legal-toc a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px; background: #f2f6f1; font-weight: 600; text-decoration: none; }
.legal-toc a:hover { background: #eaf1e9; }

/* ---- Footer: the one small legal line ---- */
.site-foot { background: #06140d; color: rgba(234, 246, 239, .82); padding: 18px 0 22px; font-size: 1rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0 0 4px -10px; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; padding: 0 10px; color: #d7ece1; font-weight: 600; text-decoration: none; }
.site-foot nav a:hover { color: #6ee7b7; text-decoration: underline; }
.site-foot p { margin: 0; }

/* ---- Wider screens ---- */
@media (min-width: 900px) {
  .hero { padding: 0 0 56px; }
  .optin {
    gap: 14px 48px;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: auto auto auto auto auto auto 1fr;
    grid-template-areas:
      "eyebrow aside"
      "h1 aside"
      "sub aside"
      "story aside"
      "form aside"
      "consent aside"
      "rest aside";
  }
  .optin__aside { display: block; grid-area: aside; }
  .optin__cover { width: 255px; margin: 0 auto 18px; }
  .optin__inside { margin-top: 0; }
}
@media (max-width: 640px) {
  .fit { grid-template-columns: 1fr; }
  .btn { width: 100%; padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
