/* ==========================================================================
   Earn Two Ways landing page
   Self-contained stylesheet. No framework dependency.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --mist: #f3f6f4;
  --mist-deep: #e6ede9;
  --ink: #1f2933;
  --ink-soft: #52606d;
  --line: #d8e0db;

  --pine: #0b6e4f;
  --pine-dark: #085640;
  --pine-tint: #dff1e8;

  --cobalt: #2f55d4;
  --cobalt-tint: #e4eafc;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);

  --shadow-card: 0 18px 50px -20px rgba(11, 110, 79, 0.28), 0 2px 6px rgba(31, 41, 51, 0.06);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  max-width: 22ch;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--pine); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap-narrow { max-width: 820px; }

.center { text-align: center; }
.center h2 { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
  z-index: 100;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--pine);
  color: #fff;
}
.btn-primary:hover { background: var(--pine-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Top bar and wordmark
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.wordmark-mark {
  display: inline-grid;
  gap: 4px;
  width: 22px;
}
.wordmark-mark i {
  display: block;
  height: 6px;
  border-radius: 3px;
}
.wordmark-mark i:first-child {
  background: var(--cobalt);
  width: 22px;
}
.wordmark-mark i:last-child {
  background: var(--pine);
  width: 16px;
  margin-left: 6px;
}

@media (max-width: 640px) {
  .topbar-cta { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
}

.hero-streams {
  position: absolute;
  top: -80px;
  right: -14%;
  width: min(60vw, 720px);
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.stream {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.42;
}
.stream-blue { stroke: var(--cobalt); }
.stream-green { stroke: var(--pine); }

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.hero-title {
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 3.9rem);
  line-height: 1.06;
  max-width: 14ch;
  margin-bottom: 0.45em;
}

.hero-lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 1.4em;
}

.proof {
  list-style: none;
  margin: 0 0 clamp(24px, 3vw, 36px);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
}
.proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof svg {
  width: 20px;
  height: 20px;
  fill: var(--pine);
  flex: none;
}

/* Video placeholder */
.video {
  margin: 0;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #22303c;
  box-shadow: 0 24px 60px -28px rgba(31, 41, 51, 0.45);
}
.video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-frame.is-missing {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(47, 85, 212, 0.55), transparent 60%),
    radial-gradient(110% 90% at 85% 90%, rgba(11, 110, 79, 0.6), transparent 60%),
    #22303c;
}
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.35) 100%);
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.video-play svg {
  width: 34px;
  height: 34px;
  fill: var(--pine);
  margin-left: 4px;
}

.video-tag {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.video-caption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Opt-in card */
.hero-side {
  position: sticky;
  top: 88px;
}

.optin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: var(--shadow-card);
}

.optin-title {
  font-size: 1.5rem;
  margin-bottom: 0.35em;
}

.optin-intro {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1.2em;
}

.optin-after {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.optin-after li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}
.optin-after li:last-child { margin-bottom: 0; }
.optin-after li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--pine);
  border-bottom: 2px solid var(--pine);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.optin-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field input:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 4px rgba(11, 110, 79, 0.15);
}
.field.has-error input {
  border-color: #c0392b;
}

.field-error {
  margin: 0;
  min-height: 0;
  font-size: 0.85rem;
  color: #c0392b;
  font-weight: 600;
}
.field-error:empty { display: none; }

.form-note {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Sections and shared layouts
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-mist {
  background: var(--mist);
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}
.section-head h2 { margin-left: auto; margin-right: auto; }
.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split-text p { max-width: 58ch; }

.photo {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--mist-deep);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-tall { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 4 / 3; }
.photo.is-missing {
  background:
    linear-gradient(135deg, var(--cobalt-tint) 0%, var(--mist) 50%, var(--pine-tint) 100%);
}

/* "Sound familiar" statements */
.statements {
  margin: 0 0 1.5em;
  display: grid;
  gap: 18px;
}
.statements > div {
  padding-left: 18px;
  border-left: 3px solid var(--pine);
}
.statements > div:nth-child(2) { border-left-color: var(--cobalt); }
.statements dt {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.statements dd {
  margin: 0;
  color: var(--ink-soft);
}

.pull {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--pine-dark);
}

/* Two ways */
.ways {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
}

.way {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-l);
}
.way-blue { background: var(--cobalt-tint); }
.way-green { background: var(--pine-tint); }

.way-mark {
  display: block;
  width: 44px;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 22px;
}
.way-blue .way-mark { background: var(--cobalt); }
.way-green .way-mark { background: var(--pine); }

.way h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  margin-bottom: 0.5em;
}
.way p {
  color: var(--ink-soft);
  margin: 0;
}

.way-plus {
  align-self: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink);
}

.ways-note {
  max-width: 56ch;
  margin: clamp(26px, 3vw, 40px) auto 22px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* AI adoption pictogram */
.adoption {
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.adoption-people {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  margin-bottom: 22px;
}
.person {
  width: clamp(36px, 5vw, 52px);
  height: auto;
  fill: var(--mist-deep);
}
.person.is-on { fill: var(--cobalt); }

.adoption-stat {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.adoption-label {
  font-weight: 600;
  margin-bottom: 14px;
}
.adoption-source {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Check list */
.checks {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checks li {
  position: relative;
  padding-left: 36px;
  color: var(--ink-soft);
}
.checks li strong {
  color: var(--ink);
  font-weight: 800;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pine-tint);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.45em;
  width: 10px;
  height: 5px;
  border-left: 2.5px solid var(--pine);
  border-bottom: 2.5px solid var(--pine);
  transform: rotate(-45deg);
}

/* Steps (a true sequence) */
.steps {
  list-style: none;
  margin: 1.4em 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
  position: relative;
}
.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  position: relative;
}
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: -26px;
  width: 2px;
  background: var(--line);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pine);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}
.steps h3 {
  font-size: 1.2rem;
  margin: 8px 0 6px;
}
.steps p {
  color: var(--ink-soft);
  margin: 0;
}

/* FAQ */
.faq {
  margin-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--pine);
  border-bottom: 2px solid var(--pine);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq details p {
  margin: 0 0 22px;
  padding-right: 44px;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* Final CTA */
.final {
  background: linear-gradient(180deg, var(--paper) 0%, var(--pine-tint) 100%);
}
.final .split-text p { margin-bottom: 1.4em; }
.optin-form-compact {
  max-width: 460px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.wordmark-footer {
  font-size: 1.05rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.disclaimer {
  max-width: 90ch;
  line-height: 1.55;
}
.copyright { margin: 14px 0 0; }

/* --------------------------------------------------------------------------
   Sticky mobile CTA
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 220ms ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 641px) {
  .sticky-cta { display: none; }
}

/* --------------------------------------------------------------------------
   Hero reveal (one orchestrated moment on load)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal-1 { transition-delay: 60ms; }
.reveal-2 { transition-delay: 180ms; }
.reveal-3 { transition-delay: 320ms; }
body.is-ready .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .faq summary::after, .sticky-cta, .field input { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-side {
    position: static;
  }
  .hero-streams {
    width: 90vw;
    right: -30%;
    top: -60px;
    opacity: 0.7;
  }
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }
  .split-reverse .split-text { order: 1; }
  .split-reverse .photo,
  .split-reverse .adoption { order: 2; }
  .photo-tall { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .ways {
    grid-template-columns: 1fr;
  }
  .way-plus {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .hero-title { max-width: none; }
  .video-play {
    width: 64px;
    height: 64px;
  }
  .video-play svg {
    width: 26px;
    height: 26px;
  }
  .video-tag { display: none; }
  .optin-card { padding: 20px; }
  .final { padding-bottom: 96px; }
}
