/* Adelante's showcase page (solojade.com/adelante/, /es/adelante/), in Adelante's
   own look ("Forward", blue): ../adelante/docs/brand.md. The tokens are the app's
   (frontend/public/css/style.css). No JavaScript; light and dark follow the device. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/adelante/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/adelante/fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #F3F6FB; --surface: #FFFFFF; --ink: #0F172A; --muted: #4B5B73; --line: #D9E0EC; --hair: #ECF0F6;
  --accent: #1D4ED8; --brand: #1D4ED8; --on-brand: #FFFFFF; --income: #047857;
  --hero: #1D4ED8; --tint: #DCE7FB; --tint-ink: #1E3A8A;
  --sol: #F2A93B; --sol-soft: #FDF1DC; --sol-ink: #7A4B00;
  --frame: #0B1220; --shadow: rgba(15, 23, 42, .22);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(16px, 5vw, 56px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F172A; --surface: #1A2436; --ink: #E8EDF7; --muted: #94A3B8; --line: #2A3650; --hair: #222D44;
    --accent: #8AB4FF; --brand: #4C8DFF; --on-brand: #0B1220; --income: #34D399;
    --hero: #1E3A8A; --tint: #1C2B4A; --tint-ink: #A9C7FF;
    --sol: #F2B552; --sol-soft: #3A2E17; --sol-ink: #F6CD86;
    --frame: #020611; --shadow: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F172A; --surface: #1A2436; --ink: #E8EDF7; --muted: #94A3B8; --line: #2A3650; --hair: #222D44;
  --accent: #8AB4FF; --brand: #4C8DFF; --on-brand: #0B1220; --income: #34D399;
  --hero: #1E3A8A; --tint: #1C2B4A; --tint-ink: #A9C7FF;
  --sol: #F2B552; --sol-soft: #3A2E17; --sol-ink: #F6CD86;
  --frame: #020611; --shadow: rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(var(--gut), env(safe-area-inset-left, 0px)); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: max(14px, env(safe-area-inset-top, 0px)) 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand span { font: 800 24px/1 var(--display); letter-spacing: -.03em; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--ink); background: var(--surface); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; padding-block: clamp(20px, 5vw, 64px) clamp(36px, 6vw, 72px); }
.hero-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--sol-soft); color: var(--sol-ink); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sol); }
h1 { font: 800 clamp(40px, 7vw, 68px)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; max-width: 13ch; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 22px; border-radius: 16px; font: 700 16px/1 var(--body); text-decoration: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.quiet { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.phones { position: relative; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 1 / 1.38; }
.phone { position: absolute; width: 58%; border-radius: 13% / 6.2%; background: var(--frame); padding: 2.4%; box-shadow: 0 40px 60px -32px var(--shadow); }
.phone img { border-radius: 11% / 5.2%; overflow: hidden; }
.phone.a { left: 0; top: 6%; z-index: 2; transform: rotate(-4deg); animation: rise 1s .15s var(--ease) both; }
.phone.b { right: 0; top: 0; z-index: 1; transform: rotate(5deg); animation: rise 1s .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; translate: 0 36px; } }

/* features */
.features { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { background: var(--surface); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font: 700 20px/1.2 var(--display); letter-spacing: -.01em; }
.card p { color: var(--muted); }
.card .num { font: 800 15px/1 var(--display); color: var(--accent); }
.web { padding-block: clamp(44px, 7vw, 80px) 0; display: flex; flex-direction: column; gap: 18px; }
.web h2, .plans h2 { font: 800 clamp(28px, 4.4vw, 40px)/1.08 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.web p { color: var(--muted); max-width: 52ch; }
.browser { border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 60px -40px var(--shadow); }
.browser .bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.browser img { width: 100%; aspect-ratio: 1400 / 820; object-fit: cover; object-position: top; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }

.trust { margin-top: clamp(44px, 7vw, 80px); background: var(--hero); color: #FFFFFF; border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr; gap: 14px 40px; }
.trust h2 { font: 800 clamp(26px, 3.6vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
.trust p { opacity: .9; max-width: 50ch; }

.plans { padding-block: clamp(44px, 7vw, 80px); display: flex; flex-direction: column; gap: 18px; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.plan { background: var(--surface); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font: 800 24px/1 var(--display); display: flex; align-items: center; gap: 10px; }
.plan.pro { box-shadow: inset 0 0 0 2px var(--sol); }
.badge { font: 800 12px/1 var(--body); letter-spacing: .06em; background: var(--sol); color: #10231C; padding: 5px 8px; border-radius: 7px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--income); border-bottom: 2.5px solid var(--income); transform: rotate(-45deg); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 24px max(24px, env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 14.5px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.05fr .95fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: .9fr 1.1fr; align-items: center; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
}
/* pictures that follow the theme */
.for-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .for-dark { display: block; } :root:not([data-theme="light"]) .for-light { display: none; } }
:root[data-theme="dark"] .for-dark { display: block; }
:root[data-theme="dark"] .for-light { display: none; }

/* the light/dark switch (/assets/site.js; hidden when the script doesn't run) */
.tt { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; align-items: center; justify-content: center; }
.can-theme .tt { display: inline-flex; }
.tt:hover { color: var(--ink); background: var(--surface); }
.tt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tt .moon { fill: currentColor; stroke: none; }
.tt .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tt .sun { display: block; } :root:not([data-theme="light"]) .tt .moon { display: none; } }
:root[data-theme="dark"] .tt .sun { display: block; }
:root[data-theme="dark"] .tt .moon { display: none; }

/* site.js: sections that fade up into view */
.rise-in { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rise-in.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
