/* A quieter presentation of the existing Mis Finanzas design system. */
:root {
  --page: min(1200px, calc(100% - 48px));
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

.site-nav {
  border-bottom-color: var(--line);
  background: #080a09f5;
}

.nav-links a {
  font-size: 14px;
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: min(780px, 91svh);
  background: #080b09;
}

.hero::before {
  display: none;
}

.hero-stage {
  inset: var(--nav-height) 0 0;
  width: 100%;
  pointer-events: none;
}

.hero-device,
.hero-device-main {
  inset: auto max(6%, calc((100vw - 1180px) / 2)) -90px auto;
  width: min(36vw, 390px);
  aspect-ratio: 9 / 16;
  padding: 0;
  transform: none;
  border: 1px solid #3b433d;
  border-radius: 14px;
  background: #090b09;
  box-shadow: 0 26px 72px #0008;
}

.hero-device img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: contain;
}

.hero-content {
  min-height: min(780px, 91svh);
  padding-top: calc(var(--nav-height) + 76px);
  padding-bottom: 86px;
}

.hero-content > * {
  max-width: min(54%, 610px);
}

.hero h1 {
  font-size: clamp(64px, 6.4vw, 92px);
  line-height: 0.98;
}

.hero-lead {
  max-width: 550px;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
}

.hero-facts {
  gap: 4px 16px;
  margin-top: 26px;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #c9d2ca;
  font-size: 13px;
}

.hero-facts span::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.hero-next {
  left: max(24px, calc((100vw - 1200px) / 2));
  transform: none;
}

.band {
  padding-block: clamp(76px, 8vw, 120px);
}

.statement {
  background: var(--bg-raised);
}

.statement h2,
.section-heading h2,
.theme-copy h2,
.shortcuts-heading h2,
.continuity h2,
.detail-copy h2,
.faq h2,
.final-cta h2,
.reviews-heading h2 {
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.09;
}

.section-intro,
.section-heading > p,
.shortcuts-heading > p,
.theme-copy > p,
.continuity p,
.detail-copy > p {
  font-size: 17px;
  line-height: 1.62;
}

.section-heading,
.shortcuts-heading {
  align-items: end;
  margin-bottom: 48px;
}

.trust-row span,
.capability-group li,
.included li,
.screen-item figcaption span,
.shortcut-flow figcaption span,
.platform-note,
.review-disclosure {
  font-size: 14px;
  line-height: 1.55;
}

.screen-gallery {
  gap: 42px 28px;
}

.screen-item {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.screen-phone {
  width: min(100%, 300px);
  padding: 0;
  border: 1px solid #343a35;
  border-radius: 10px;
  box-shadow: 0 22px 54px #0007;
}

.screen-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 9px;
  object-fit: contain;
}

.screen-item:hover .screen-phone {
  transform: translateY(-3px);
}

.screen-item figcaption {
  margin-top: 18px;
  padding-top: 14px;
}

.screen-item figcaption strong {
  font-size: 18px;
}

.screen-item figcaption span {
  color: #bec6be;
}

.platform-card h3 {
  font-size: clamp(30px, 3vw, 40px);
}

.platform-summary,
.delivery-note p:last-child {
  font-size: 16px;
}

.faq-list summary,
.button {
  min-height: 48px;
}

.faq-list details p {
  font-size: 15px;
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 40px, 760px);
  }

  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu[open] summary {
    border-color: var(--green);
  }

  .mobile-menu-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding: 10px max(20px, calc((100vw - 760px) / 2)) 18px;
    border-bottom: 1px solid var(--line-strong);
    background: var(--bg-raised);
    box-shadow: 0 24px 45px #0005;
  }

  .mobile-menu-links a {
    display: flex;
    align-items: center;
    min-height: 50px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
  }

  .mobile-menu-links a:hover,
  .mobile-menu-links a:focus-visible {
    color: var(--green);
  }

  .hero-content > * {
    max-width: min(50%, 440px);
  }

  .hero h1 {
    font-size: clamp(50px, 7vw, 68px);
  }

  .hero-device,
  .hero-device-main {
    right: 4%;
    bottom: -40px;
    width: min(43vw, 340px);
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100% - 32px);
  }

  .site-nav {
    padding-inline: 16px;
  }

  .mobile-menu-links {
    grid-template-columns: 1fr;
    padding-inline: 22px;
  }

  .hero {
    position: relative;
    display: block;
    height: max(520px, calc(100svh - 56px));
    min-height: 0;
  }

  .hero-content {
    min-height: 0;
    padding-top: calc(var(--nav-height) + 34px);
    padding-bottom: 0;
  }

  .hero-content > * {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(42px, 11vw, 52px);
    line-height: 1.03;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
    margin-top: 14px;
  }

  .hero-facts span {
    min-height: 26px;
    padding: 0;
    justify-content: flex-start;
    color: #d0d9d1;
    font-size: 12px;
    text-align: left;
  }

  .hero-stage {
    position: absolute;
    z-index: 1;
    inset: 0;
    height: 100%;
    opacity: 1;
  }

  .hero-device,
  .hero-device-main {
    inset: 440px auto auto 50%;
    width: min(64vw, 275px);
    height: auto;
    transform: translateX(-50%);
    border-radius: 10px;
  }

  .hero-device img {
    border-radius: 9px;
  }

  .band {
    padding-block: 72px;
  }

  .statement h2,
  .section-heading h2,
  .theme-copy h2,
  .shortcuts-heading h2,
  .continuity h2,
  .detail-copy h2,
  .faq h2,
  .final-cta h2,
  .reviews-heading h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .section-intro,
  .section-heading > p,
  .shortcuts-heading > p,
  .theme-copy > p,
  .continuity p,
  .detail-copy > p {
    font-size: 16px;
  }

  .screen-gallery {
    gap: 38px;
  }

  .screen-item {
    padding: 0;
  }

  .screen-phone {
    width: min(100%, 320px);
  }

  .screen-item figcaption {
    max-width: 320px;
  }

  .platform-summary,
  .delivery-note p:last-child {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 13px;
  }

  .site-nav {
    padding-inline: 10px;
  }

  .nav-controls {
    gap: 4px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-facts span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-item:hover .screen-phone {
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Landing polish (2026-10): one shape scale, clearer purchase path,
   consistent kickers and visible keyboard focus. Brand tokens unchanged.
   Shapes: interactive controls are pills, cards 20px, inner tiles 12px.
------------------------------------------------------------------- */
:root {
  --radius-card: 20px;
  --radius-tile: 12px;
  --focus: #7cf0a0;
}

html[data-theme="light"] { --focus: #117b35; }
.hero, .band-contrast { --focus: #7cf0a0; }
.band-light { --focus: #117b35; }

/* Focus ring stays visible on green buttons and on every surface. */
:where(a, button, summary):focus-visible,
.theme-toggle:focus-visible,
.language-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Display type: tighter tracking, as large sans headlines need. */
.hero h1,
.statement h2, .section-heading h2, .theme-copy h2, .shortcuts-heading h2,
.continuity h2, .detail-copy h2, .faq h2, .final-cta h2, .reviews-heading h2,
.platform-card h3, .delivery-note h3 {
  letter-spacing: -0.025em;
}

.hero h1 { letter-spacing: -0.035em; }

/* Kickers keep their own style inside copy blocks whose paragraph rules matched them. */
.band p.section-kicker {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.continuity p.section-kicker { color: var(--green); }
html[data-theme="light"] .continuity p.section-kicker { color: var(--green-strong); }
.band-light p.section-kicker { color: #117b35; }

/* Buttons and chips: pill shape. */
.button,
.demo-toggle,
.mode-list span {
  border-radius: 999px;
}

.button { padding-inline: 24px; }

.button-primary {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--green) 26%, transparent);
}

/* Cards and tiles. */
.platform-card,
.delivery-note,
.review-card,
.theme-demo,
.device-map,
.platform-dialog {
  border-radius: var(--radius-card);
}

.shortcut-flow figure,
.shortcut-options > div,
.drive-core,
.device-node,
.demo-payment {
  border-radius: var(--radius-tile);
}

.screen-phone,
.hero-device,
.hero-device-main { border-radius: 18px; }
.screen-phone img,
.hero-device img { border-radius: 17px; }
.detail-screen img { border-radius: var(--radius-tile); }

/* Hero: a soft brand glow anchors the product shot. */
.hero::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  inset: auto;
  top: 8%;
  right: max(-10%, calc((100vw - 1500px) / 2));
  width: min(70vw, 900px);
  height: auto;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(49, 213, 102, 0.16), rgba(49, 213, 102, 0.05) 55%, transparent);
  pointer-events: none;
}

.hero-facts span:first-child {
  color: #f4f7f3;
  font-weight: 650;
}

/* Statement: kicker on its own row so the headline gets a readable measure. */
.statement-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  row-gap: 28px;
  align-items: end;
}

.statement-grid .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

/* Offers: matching rows across both cards on wide screens. */
.platform-card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.platform-card::before {
  inset: 0 0 auto 0;
  width: auto;
  height: 3px;
}

.platform-price strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

@media (min-width: 981px) {
  .platform-grid {
    grid-template-rows: repeat(6, auto);
    column-gap: 18px;
    row-gap: 0;
  }

  .platform-card {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    min-height: 0;
  }

  .platform-card h3 { align-self: end; }
  .platform-actions { align-self: end; }
}

/* Purchase steps. */
.delivery-note {
  display: block;
  padding: clamp(24px, 3vw, 36px);
}

.delivery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
}

.delivery-head h3 { margin-bottom: 0; }

.purchase-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.purchase-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 4px 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  background: var(--bg);
}

.purchase-steps strong { align-self: center; font-size: 16px; }

.purchase-steps li > span:last-child {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.purchase-steps b { color: var(--text); white-space: nowrap; }

.purchase-step-number {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] .purchase-step-number { color: var(--green-strong); }

/* Drive map: show the copy travelling between devices. */
.device-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.device-links path {
  fill: none;
  stroke: var(--green);
  stroke-opacity: 0.45;
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
}

.drive-core {
  z-index: 1;
  border-color: color-mix(in srgb, var(--green) 45%, var(--line-strong));
}

.device-node { z-index: 1; }

/* Reviews: the featured quote no longer floats in an empty box. */
.review-card-featured { min-height: 0; }
.review-card-featured blockquote { margin: 22px 0 18px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; }

/* Support line: label and links share one baseline. */
.support-line { align-items: center; }
.support-line strong { display: inline-flex; align-items: center; min-height: 44px; }

/* Mobile purchase bar. */
.buy-bar { display: none; }

@media (max-width: 680px) {
  .buy-bar {
    position: fixed;
    z-index: 90;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-raised) 94%, transparent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    transition: transform 280ms var(--ease-entry), opacity 200ms var(--ease-micro);
  }

  .buy-bar[hidden] { display: none; }

  .buy-bar.is-visible {
    transform: none;
    opacity: 1;
  }

  .buy-bar p {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.2;
  }

  .buy-bar strong { font-size: 16px; font-variant-numeric: tabular-nums; }
  .buy-bar p span { color: var(--muted); font-size: 12px; }
  .buy-bar .button { min-height: 44px; padding: 10px 18px; font-size: 14px; box-shadow: none; }

  .site-footer { padding-bottom: 96px; }

  .purchase-steps { grid-template-columns: 1fr; }
  .delivery-head .button { width: 100%; }
  .statement-grid { grid-template-columns: 1fr; }
  .statement-grid .section-kicker { margin-bottom: 0; }
  .hero::before { top: 46%; right: -40%; width: 140vw; }
  .hero-facts span:first-child { grid-column: 1 / -1; }
}

@media (min-width: 681px) and (max-width: 980px) {
  .purchase-steps { grid-template-columns: 1fr; }
  .statement-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Commercial pass (2026-10): value headline, persistent buy CTA,
   mid-page offer and stronger offer cards.
------------------------------------------------------------------- */
.nav-buy {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
  box-shadow: none;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(54px, 5.4vw, 82px);
  line-height: 1;
}

.hero-accent {
  color: var(--green);
}

.button-large {
  min-height: 56px;
  padding-inline: 30px;
  font-size: 17px;
}

.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 0;
  color: #c9d2ca;
  font-size: 13px;
}

.hero-assurance span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-assurance span::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

.hero-facts span:first-child { color: #c9d2ca; font-weight: 400; }

.hero-device-back { display: none; }

@media (min-width: 1280px) {
  .hero-device-back {
    display: block;
    z-index: 2;
    right: calc(max(6%, (100vw - 1180px) / 2) + 250px);
    bottom: 8%;
    width: 290px;
    opacity: 0.5;
    filter: saturate(0.8);
  }

  .hero-device-main { z-index: 3; }
}

/* Mid-page offer. */
.offer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: 48px;
  padding: 26px 30px;
  border: 1px solid color-mix(in srgb, var(--green) 40%, var(--line));
  border-radius: var(--radius-card);
  background: linear-gradient(120deg, var(--green-soft), transparent 70%), var(--surface);
}

.offer-strip p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.offer-strip strong { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.015em; }
.offer-strip span { color: var(--muted); font-size: 15px; }

/* Offer cards: lift and brand glow on hover/focus. */
.platform-card {
  transition: transform 220ms var(--ease-micro), border-color 220ms var(--ease-micro), box-shadow 220ms var(--ease-micro);
}

.platform-card:hover,
.platform-card:focus-within {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--green) 14%, transparent);
}

.ios-card:hover,
.ios-card:focus-within {
  border-color: color-mix(in srgb, var(--blue) 50%, var(--line));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--blue) 16%, transparent);
}

@media (hover: hover) {
  .platform-card:hover { transform: translateY(-4px); }
}

.platform-price strong { font-size: clamp(44px, 4vw, 54px); }

@media (max-width: 980px) {
  .hero h1 { font-size: clamp(46px, 7vw, 64px); }
}

@media (max-width: 680px) {
  .nav-buy { display: none; }
  .hero h1 { max-width: none; font-size: clamp(40px, 11vw, 48px); line-height: 1.04; }
  .hero-actions .button-large { grid-column: 1 / -1; min-height: 54px; font-size: 16px; }
  .hero-assurance { font-size: 12px; gap: 4px 14px; }
  .hero-facts span:first-child { grid-column: auto; }
  .offer-strip { padding: 22px; }
  .offer-strip .button { width: 100%; }
  .platform-price strong { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .platform-card:hover { transform: none; }
}

.button-large { white-space: nowrap; }

/* Mobile hero: copy first, product shot below it in normal flow (no overlap). */
@media (max-width: 680px) {
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-content { padding-bottom: 8px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .button-secondary { min-height: 48px; }
  .hero-facts { display: none; }

  .hero-stage {
    position: relative;
    inset: auto;
    order: 2;
    height: 400px;
    margin-top: 24px;
    overflow: hidden;
  }

  .hero-device,
  .hero-device-main {
    inset: 0 auto auto 50%;
    width: min(70vw, 280px);
  }
}
