/* =========================================================================
   MohsBinder marketing site, single stylesheet.
   Base extracted and refined from docs/design-options/option-final.html
   (approved mockup, "El Registro" direction), extended per
   docs/plan-design-addendum.md paragraph 3 (final section structure) and
   paragraph 4/5 (animation and technical requirements).
   No em dash characters, no emoji, no pill badges, light only.
   ========================================================================= */

/* ── Font: Inter, self-hosted, variable, no Google Fonts at runtime ── */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ──
   Mockup token names (short) are the working set used throughout this file.
   The long-form aliases match the brand tokens transcribed literally from
   mohsbinder-app/web/src/styles/tokens.css and CLAUDE.md, kept in sync so an
   audit can diff either set against the source of truth. */
:root {
  /* mockup working tokens */
  --ink: #1A1A22;
  --ink2: #7A7A82;
  --bg: #F4F3F6;
  --surface: #FFFFFF;
  --primary: #7A6BAE;
  --deep: #6B5B95;
  --coral: #E89B8B;
  --border: #ECECEF;
  --border-strong: #D4D4D8;
  --lav: #EEEAF3;
  --peach: #FBE9E7;
  --mint: #DFF0E6;
  --amber: #FAEED2;
  --red: #F5DDD8;
  --success: #3D8B5C;
  --warning: #C68B2B;
  --danger: #B8463D;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 3px rgba(20,20,30,.04), 0 4px 12px rgba(20,20,30,.04);
  --shadow-lift: 0 6px 14px rgba(20,20,30,.06), 0 16px 36px rgba(20,20,30,.09);
  --ease: cubic-bezier(.2,.7,.3,1);

  /* literal brand token aliases (source of truth: mohsbinder-app tokens.css) */
  --bg-app: #F4F3F6;
  --bg-surface: #FFFFFF;
  --primary-deep: #6B5B95;
  --accent-peach: #E89B8B;
  --tint-lav: #EEEAF3;
  --tint-peach: #FBE9E7;
  --tint-mint: #DFF0E6;
  --tint-amber: #FAEED2;
  --tint-red: #F5DDD8;
  --text-primary: #1A1A22;
  --text-secondary: #7A7A82;
  --radius-card: 20px;
  --radius-button: 12px;
  --radius-icon-tile: 10px;
  --shadow-card: 0 1px 3px rgba(20,20,30,.04), 0 4px 12px rgba(20,20,30,.04);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* site layout tokens */
  --container: 1120px;
  --gap: 24px;
  --section-y: 96px;
}
@media (max-width: 720px) {
  :root { --section-y: 64px; }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: manipulation;
}
h1, h2, h3 { text-wrap: balance; }
section[id], div[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--tint { background: var(--tint-lav); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Skip link ── */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 12px 0; z-index: 50;
}
.skip:focus { left: 0; }

/* ── Focus visible on everything interactive ── */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(122,107,174,.45);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0;
  background: rgba(244,243,246,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  transition: box-shadow .3s var(--ease);
}
.nav.scrolled, .nav.is-scrolled { box-shadow: 0 6px 24px rgba(26,26,34,.08); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-in .logo img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 14px; font-weight: 500; color: var(--ink2); }
.nav-links a.nav-item { text-decoration: none; transition: color .2s var(--ease); }
.nav-links a.nav-item:hover { color: var(--ink); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-button);
  padding: 12px 22px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(107,91,149,.28); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: rgba(255,255,255,.75); color: var(--ink); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: #fff; box-shadow: 0 8px 20px rgba(26,26,34,.08); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
button.btn { border: none; cursor: pointer; font: inherit; font-weight: 600; width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* ── Hero ── */
.hero { position: relative; text-align: center; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  filter: saturate(.5) hue-rotate(8deg) brightness(1.07);
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,243,246,.94) 0%, rgba(244,243,246,.82) 38%, rgba(244,243,246,.55) 68%, var(--bg) 100%);
}
.hero-in { position: relative; z-index: 1; padding: 96px 24px 0; max-width: var(--container); margin: 0 auto; }
.hero h1 { font-size: clamp(46px,6vw,76px); line-height: 1; letter-spacing: -.038em; font-weight: 800; }
.hero h1 .strike { position: relative; color: #5A5A64; white-space: nowrap; }
.hero h1 .strike::after {
  content: "";
  position: absolute; left: -2%; right: -2%; top: 54%; height: 5px;
  background: var(--coral); border-radius: 3px;
  transform: rotate(-1.5deg); transform-origin: left center;
}
.hero .sub { font-size: 19px; line-height: 1.55; color: #4A4A55; max-width: 56ch; margin: 22px auto 30px; font-weight: 450; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.hero-trust {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .01em;
  color: var(--ink2);
  max-width: 60ch;
  margin: 0 auto 64px;
}

/* ── Paper to app composition ── */
.paper2app { display: grid; grid-template-columns: .9fr auto 1.35fr; gap: 28px; align-items: center; text-align: left; max-width: 1020px; margin: 0 auto -128px; }
.paper {
  background: #FDFDFB;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(58,45,90,.18);
  padding: 26px 24px;
  position: relative;
  transform: rotate(-1.6deg);
  transition: transform .5s var(--ease);
}
.paper:hover { transform: rotate(0deg); }
.paper::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(transparent 0 27px, #E8E6DF 27px 28px);
  border-radius: 6px;
  pointer-events: none;
}
.paper h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.paper .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--ink2); height: 28px; align-items: center; }
.paper .row b { color: var(--ink); font-weight: 600; }

/* Checkmark drawn with an inline SVG data-URI mask, never the "check mark"
   character: that codepoint falls inside the anti-emoji grep range used in
   Fase 4.2 of the plan and would fail content audit. */
.paper .check {
  display: inline-block; width: 13px; height: 13px;
  border: 1.5px solid var(--ink2); border-radius: 3px;
  position: relative; top: 2px;
}
.paper .check.done { border-color: var(--ink); }
.paper .check.done::after {
  content: "";
  position: absolute; top: -1px; left: -1px;
  width: 13px; height: 13px;
  background-color: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 80%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 80%;
}
.blankline { display: inline-block; width: 44px; border-bottom: 1.5px solid #C9C7BE; height: 1em; }
.coffee { position: absolute; right: 18px; bottom: 14px; width: 54px; height: 54px; border-radius: 50%; border: 7px solid rgba(160,120,70,.18); }
.arrow { font-size: 34px; color: var(--deep); font-weight: 700; }
.browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(58,45,90,.26);
  overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 8px; background: #FAFAFB; border-bottom: 1px solid var(--border); padding: 11px 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.url { font-family: var(--mono); font-size: 11px; color: var(--ink2); background: var(--bg); border-radius: 8px; padding: 3px 12px; margin-left: 8px; }
.browser img { display: block; width: 100%; height: auto; }
.after-hero { padding-top: 300px; }

/* ── Problem band (six pains, flat cards, no large icons) ── */
.pains { padding-block: var(--section-y); }
.pains.after-hero { padding-top: 300px; }
.pains h2 { font-size: clamp(28px,3.2vw,38px); letter-spacing: -.02em; line-height: 1.15; font-weight: 700; max-width: 22ch; }
.pain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 36px; }
.pain {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--coral);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}
.pains-close {
  margin-top: 40px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
  max-width: 64ch;
}

/* ── Record chain: spine and rec sections ── */
.spine-layout { position: relative; }
.spine { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; }
.spine::before {
  content: "";
  position: absolute; left: 21px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(var(--border-strong) 60%, transparent 0) center / 1px 8px repeat-y;
}
.rec { position: relative; padding: 64px 0 64px 76px; }
.rec::before {
  content: "";
  position: absolute; left: 14px; top: 78px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-strong);
  transition: border-color .5s var(--ease);
  z-index: 1;
}
.rec.in::before { border-color: var(--primary); }
.rec::after {
  content: "";
  position: absolute; left: 10px; top: 74px;
  width: 23px; height: 23px; border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0; pointer-events: none;
}
.rec-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--deep); text-transform: uppercase; margin-bottom: 14px; }
.rec-eyebrow .hash { color: var(--ink2); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.rec h2 { font-size: clamp(28px,3.2vw,40px); letter-spacing: -.025em; line-height: 1.1; font-weight: 700; max-width: 18ch; }
.rec .body { font-size: 16px; line-height: 1.6; color: var(--ink2); margin-top: 16px; max-width: 48ch; }
.pull { border-left: 3px solid var(--coral); padding: 6px 0 6px 18px; margin-top: 22px; font-size: 15px; line-height: 1.55; color: var(--ink); font-weight: 500; max-width: 44ch; }
.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.shot img { display: block; width: 100%; height: auto; }
.fact { font-family: var(--mono); font-size: 12px; color: var(--deep); margin-top: 24px; }

/* ── Phone frame (getting-started-02, 390x844, the only vertical shot) ── */
.phone {
  max-width: 300px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.phone img { display: block; width: 100%; height: auto; }
.phone-caption { font-size: 14px; color: var(--ink2); text-align: center; margin-top: 16px; }

/* ── Module grid (six cards) ── */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 36px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.card .pad { padding: 18px 20px 20px; }
.card h3 { font-size: 15px; font-weight: 600; }
.card p { font-size: 13px; line-height: 1.5; color: var(--ink2); margin-top: 6px; }
.card .cite { font-family: var(--mono); font-size: 11px; color: var(--primary); margin-top: 10px; }
.modules-footnote { margin-top: 28px; font-size: 14px; color: var(--ink2); }

/* ── Lead capture form ── */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field-req { color: var(--coral); margin-left: 2px; }
.field input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-button);
  padding: 11px 14px;
  font: inherit; font-size: 14px;
  background: #fff;
  transition: border-color .2s var(--ease);
}
.field input:hover { border-color: var(--primary); }
.field input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-full { grid-column: 1 / -1; }

/* Honeypot: kept in the accessibility tree and the tab order removed via
   tabindex, positioned off-screen. Never display:none, some bots skip
   hidden fields entirely and this needs to stay fillable by them. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tint-red);
  color: var(--danger);
  font-size: 15px;
  line-height: 1.5;
}
.form-error.is-visible { display: block; }
.form-privacy { font-size: 13px; color: var(--ink2); margin-top: 14px; }

/* ── Micro FAQ ── */
.faq { margin-top: 56px; }
.faq-title { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.form-submit { width: 100%; }
.faq-item + .faq-item { margin-top: 24px; }
.faq-q { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.faq-a { font-size: 15px; line-height: 1.6; color: var(--ink2); max-width: 62ch; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 72px; }
.foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); flex-wrap: wrap; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ── Lightbox (progressive enhancement, opened from data-lightbox images) ── */
img[data-lightbox] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,20,30,.72);
  display: none; place-items: center; padding: 32px;
}
.lightbox.is-open { display: grid; }
.lightbox__img { max-width: min(1280px,94vw); max-height: 88vh; border-radius: 12px; box-shadow: 0 24px 64px rgba(20,20,30,.28); }
.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px;
  background: #fff; color: var(--ink);
  border: none; border-radius: 12px;
  display: grid; place-items: center;
  cursor: pointer;
}

/* ── Thanks page ── */
.thanks { padding: 96px 0 120px; text-align: center; }
.thanks-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 48px 40px;
}
.thanks-check { width: 56px; height: 56px; border-radius: 50%; background: var(--tint-mint); margin: 0 auto 24px; position: relative; }
.thanks-check::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 26px; height: 26px;
  background-color: var(--deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 80%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 80%;
}
.thanks-card h1 { font-size: clamp(28px,4vw,40px); letter-spacing: -.02em; line-height: 1.15; font-weight: 700; margin-bottom: 16px; }
.thanks-card p { font-size: 16px; line-height: 1.6; color: var(--ink2); margin-bottom: 28px; max-width: 52ch; margin-inline: auto; }
.thanks-card .btn { display: inline-flex; width: auto; }

/* ── Motion: transform/opacity only, disabled under reduced motion ── */
.reveal { opacity: 0; transform: translateY(26px); }
.in > .reveal, .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .26s; }
  .rise { animation: rise .8s var(--ease) both; }
  .rise.d1 { animation-delay: .1s; }
  .rise.d2 { animation-delay: .2s; }
  .rise.d3 { animation-delay: .34s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  .hero-photo img { animation: kenburns 26s ease-in-out infinite alternate; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
  .rec.in::after { animation: ping .9s var(--ease) 1 both; }
  @keyframes ping { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }
  .strike-anim .strike::after {
    transform: scaleX(0) rotate(-1.5deg);
    animation: strikedraw .6s .9s var(--ease) forwards;
  }
  @keyframes strikedraw { to { transform: scaleX(1) rotate(-1.5deg); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rise { opacity: 1; transform: none; animation: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .split, .cta-card { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: repeat(2,1fr); }
  .rec { padding-left: 52px; }
  .paper2app { grid-template-columns: 1fr; margin-bottom: -60px; }
  .arrow { transform: rotate(90deg); text-align: center; }
  .after-hero { padding-top: 170px; }
  .pains.after-hero { padding-top: 170px; }
  .nav-links a.nav-item { display: none; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pain-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .cta-card { padding: 28px 24px; }
  .thanks-card { padding: 32px 24px; }
}
