/*
 * The product page (abunda.finance for someone new, and /es/). Plain CSS, no build step.
 * Every rule is scoped to .lp or to html[data-mode="landing"], so nothing here touches the app,
 * which shares index.html with the English page.
 */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/landing/bricolage-grotesque.woff2') format('woff2-variations');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}

html[data-mode="app"] #landing { display: none; }
html[data-mode="landing"] { color-scheme: light dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[data-mode="landing"] body { margin: 0; background: var(--lp-paper); }
html[data-mode="landing"] #app, html[data-mode="landing"] #modal-root, html[data-mode="landing"] #toast-root { display: none; }

html[data-mode="landing"] {
  --lp-paper: #eef0f6;
  --lp-raised: #ffffff;
  --lp-ink: #171a2e;
  --lp-soft: #50556b;
  --lp-line: rgba(23, 26, 46, 0.14);
  --lp-brand: #3b2fb3;       /* the app's own indigo */
  --lp-brand-ink: #ffffff;
  --lp-link: #3b2fb3;
  --lp-mark: #eda100;        /* the app's "kept" marigold, used once per section at most */
  --lp-field: #3b2fb3;       /* the coloured panels behind the hero picture and the price */
  --lp-field-ink: #ffffff;
  --lp-field-soft: #d6d3ff;
}
@media (prefers-color-scheme: dark) {
  html[data-mode="landing"] {
    --lp-paper: #10112a;
    --lp-raised: #191b3a;
    --lp-ink: #eeeefa;
    --lp-soft: #b3b6cf;
    --lp-line: rgba(238, 238, 250, 0.16);
    --lp-brand: #8f88ff;
    --lp-brand-ink: #10112a;
    --lp-link: #b2adff;
    --lp-field: #2a2190;
    --lp-field-soft: #c9c5ff;
  }
}

.lp {
  font-family: 'Bricolage Grotesque', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.0625rem; line-height: 1.55; color: var(--lp-ink);
  font-optical-sizing: auto;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
/* :where keeps this reset weaker than every rule below */
:where(.lp) :where(h1, h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; padding: 0; }
:where(.lp) :where(ol, ul) { list-style: none; }
.lp a { color: var(--lp-link); }
.lp img { display: block; max-width: 100%; height: auto; }
.lp :focus-visible { outline: 3px solid var(--lp-mark); outline-offset: 3px; border-radius: 6px; }

.lp-wrap { max-width: 74rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.lp-skip { position: absolute; left: -999rem; }
.lp-skip:focus { left: 1rem; top: 1rem; z-index: 10; padding: .6rem 1rem; background: var(--lp-raised); border-radius: 8px; }

/* type */
.lp h1, .lp h2 { font-stretch: 80%; font-weight: 700; letter-spacing: -0.022em; text-wrap: balance; }
.lp h1 { font-size: clamp(2.6rem, 7.4vw, 5.75rem); line-height: 0.96; }
.lp h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1; }
.lp h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.005em; }
.lp-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--lp-soft); max-width: 34rem; }
.lp-soft { color: var(--lp-soft); }
.lp-small { font-size: .925rem; }

/* buttons: the two things a visitor can do */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.lp a.lp-btn-buy { background: var(--lp-brand); color: var(--lp-brand-ink); }
.lp a.lp-btn-buy:hover { filter: brightness(1.12); }
.lp a.lp-btn-try { border-color: var(--lp-ink); color: var(--lp-ink); }
.lp a.lp-btn-try:hover { background: var(--lp-ink); color: var(--lp-paper); }
.lp-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* header */
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.lp a.lp-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--lp-ink); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.lp-brand img { width: 2rem; height: 2rem; border-radius: 9px; }
.lp-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2rem); font-size: 1rem; }
.lp .lp-nav a:not(.lp-btn) { color: var(--lp-ink); text-decoration: none; }
.lp .lp-nav a:not(.lp-btn):hover { text-decoration: underline; text-underline-offset: .25em; }
.lp-nav .lp-btn { min-height: 2.5rem; padding: .45rem 1rem; }
@media (max-width: 46rem) { .lp-nav a.lp-nav-extra { display: none; } }
/* English / Spanish switch */
.lp-lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--lp-line); border-radius: 999px; }
.lp .lp-nav .lp-lang a { min-width: 2.4rem; padding: .3rem .6rem; border-radius: 999px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--lp-soft); }
.lp .lp-nav .lp-lang a:hover { color: var(--lp-ink); text-decoration: none; }
.lp .lp-nav .lp-lang a[aria-current] { background: var(--lp-ink); color: var(--lp-paper); }
.lp a.lp-brand { flex: none; }
/* on a phone the header keeps the name and the language switch; "Try" is the button right below */
@media (max-width: 30rem) { .lp-nav a.lp-btn-try { display: none; } }

/* hero */
.lp-hero { padding-top: clamp(2rem, 6vw, 5rem); }
.lp-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem 3rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.lp-hero-buy { display: grid; gap: .7rem; justify-items: end; text-align: right; }
.lp-hero-buy .lp-actions { justify-content: flex-end; }
@media (max-width: 54rem) {
  .lp-hero-row { grid-template-columns: 1fr; }
  .lp-hero-buy { justify-items: start; text-align: left; }
  .lp-hero-buy .lp-actions { justify-content: flex-start; }
}
.lp-stage { margin-top: clamp(2rem, 5vw, 3.5rem); background: var(--lp-field); border-radius: clamp(14px, 2vw, 26px); padding: clamp(.75rem, 3.2vw, 2.75rem) clamp(.75rem, 3.2vw, 2.75rem) 0; overflow: hidden; }
.lp-stage img { width: 100%; border-radius: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0 0; box-shadow: 0 30px 80px rgba(8, 6, 50, 0.45); }
.lp-caption { margin-top: .8rem; }

/* sections */
.lp-section { padding-top: clamp(4.5rem, 10vw, 8.5rem); }
.lp-section > .lp-wrap > h2 { max-width: 20ch; }
.lp-section > .lp-wrap > h2 + .lp-lead { margin-top: 1.1rem; }

/* three steps: a real sequence, so it is numbered and joined by one line */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3.25rem); border-top: 2px solid var(--lp-ink); counter-reset: step; }
.lp-steps li { position: relative; padding-top: 1.4rem; counter-increment: step; }
.lp-steps li::before { content: ''; position: absolute; top: -2px; left: 0; width: 3.5rem; height: 2px; background: var(--lp-mark); }
.lp-steps li::after { content: counter(step); display: block; order: -1; }
.lp-steps li { display: flex; flex-direction: column; gap: .5rem; }
.lp-steps li::after { font-stretch: 80%; font-weight: 700; font-size: 2.75rem; line-height: 1; color: var(--lp-soft); font-variant-numeric: tabular-nums; margin-bottom: .35rem; }
.lp-steps p { color: var(--lp-soft); max-width: 30ch; }
@media (max-width: 50rem) { .lp-steps { grid-template-columns: 1fr; } .lp-steps p { max-width: 46ch; } }

/* the four questions: a list on the left that swaps the picture on the right */
.lp-ask { display: grid; grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: start; margin-top: clamp(2rem, 4vw, 3.25rem); }
.lp-ask-list { display: grid; gap: .25rem; }
.lp-ask-list button {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 1.3rem; font-weight: 600; line-height: 1.25;
  padding: .8rem 0 .8rem 1.1rem; border: 0; border-left: 3px solid var(--lp-line); background: none; color: var(--lp-soft); cursor: pointer;
}
.lp-ask-list button:hover { color: var(--lp-ink); }
.lp-ask-list button[aria-selected="true"] { color: var(--lp-ink); border-left-color: var(--lp-brand); }
.lp-ask-panel p { max-width: 44rem; margin-bottom: 1.25rem; font-size: 1.125rem; }
.lp-ask-panel h3 { margin-bottom: .4rem; }
.lp-ask-panel img { border-radius: 14px; border: 1px solid var(--lp-line); }
.lp-ask-panel + .lp-ask-panel { margin-top: 3rem; }
.lp-js .lp-ask-panel + .lp-ask-panel { margin-top: 0; }
.lp-js .lp-ask-panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lp:not(.lp-js) .lp-ask { grid-template-columns: 1fr; }
.lp:not(.lp-js) .lp-ask-list { display: none; }
@media (max-width: 54rem) {
  .lp-ask { grid-template-columns: 1fr; }
  .lp-ask-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 0; padding-bottom: .25rem; }
  .lp-ask-list button { font-size: 1.05rem; padding: .6rem 1rem; border-left: 0; border-bottom: 3px solid var(--lp-line); white-space: nowrap; }
  .lp-ask-list button[aria-selected="true"] { border-bottom-color: var(--lp-brand); }
}

/* what is in it */
.lp-has { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3.25rem); }
.lp-has p { color: var(--lp-soft); margin-top: .4rem; max-width: 34ch; }
@media (max-width: 60rem) { .lp-has { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .lp-has { grid-template-columns: 1fr; } }

/* price */
.lp-price { margin-top: clamp(4.5rem, 10vw, 8.5rem); background: var(--lp-field); color: var(--lp-field-ink); border-radius: clamp(14px, 2vw, 26px); padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4.5rem); }
.lp-price h2 { max-width: 22ch; }
.lp-price .lp-lead { color: var(--lp-field-soft); margin-top: 1.1rem; }
.lp-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin: clamp(2rem, 4vw, 3rem) 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.lp-terms dt { color: var(--lp-field-soft); font-size: .95rem; }
.lp-terms dd { font-size: 1.4rem; font-weight: 650; line-height: 1.2; margin-top: .2rem; }
@media (max-width: 40rem) { .lp-terms { grid-template-columns: 1fr; } }
.lp .lp-price a.lp-btn-buy { background: #ffffff; color: #2a2190; }
.lp .lp-price a.lp-btn-try { border-color: #ffffff; color: #ffffff; }
.lp .lp-price a.lp-btn-try:hover { background: #ffffff; color: #2a2190; }
.lp-price .lp-small { color: var(--lp-field-soft); margin-top: 1.1rem; max-width: 40rem; }

/* footer */
.lp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 2.5rem; padding-bottom: 3rem; color: var(--lp-soft); font-size: .95rem; }
.lp-foot ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

@media (prefers-reduced-motion: reduce) { html[data-mode="landing"] { scroll-behavior: auto; } }
