/* ciento.com.co — "Muy pronto" page. Colours, radii, spacing and shadows come from
   tokens.css (generated from design-system/tokens.json); never hard-code a hex here. */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/onest-400.woff2) format("woff2");
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/onest-600.woff2) format("woff2");
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/onest-700.woff2) format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.brand {
  color: var(--brand);
}
.overline {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Layout (mobile first: the 390px artboard) ---------- */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: block;
  width: auto;
  height: 32px;
}
.badge {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 68px;
  margin-top: 42px;
}
.intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
h1 {
  margin: 0;
  font-size: 58px;
  line-height: 58px;
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.lede {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
}

/* ---------- Waitlist ---------- */

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}
.waitlist label {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}
.waitlist .row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.waitlist input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.waitlist input::placeholder {
  color: var(--ink-muted);
}
.waitlist input[aria-invalid="true"] {
  border: 2px solid var(--expense);
  padding: 0 17px;
}
.waitlist button {
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.waitlist button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.hint {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--expense);
}
.error svg {
  flex-shrink: 0;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.done {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--brand-tint);
  color: var(--ink);
}
.done svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--brand);
}
.done-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.done-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}
.done-body {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}
.done-body strong {
  color: var(--ink);
  font-weight: 600;
}

.waitlist[hidden],
.done[hidden],
.hint[hidden],
.error[hidden] {
  display: none;
}

.safe {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-muted);
}
.safe svg {
  flex-shrink: 0;
}

/* ---------- Visual: phone + stat card ---------- */

.visual {
  --device: var(--ink);
  --s: 0.8; /* phone content scale */
  --frame-r: 53px;
  --screen-r: 43px;
  position: relative;
  height: 460px;
  border-radius: 28px;
  background: var(--brand-tint);
  overflow: hidden;
}
.blob {
  position: absolute;
  top: 24px;
  right: -24px;
  width: 120px;
  height: 80px;
  border-radius: 22px;
  background: var(--accent);
}
.lines {
  display: none;
}
.phone {
  position: absolute;
  left: 36px;
  top: 56px;
  padding: 12px;
  border-radius: var(--frame-r);
  background: var(--device);
  box-shadow:
    0 40px 80px rgba(21, 32, 27, 0.25),
    0 8px 24px rgba(21, 32, 27, 0.14);
}
.screen {
  position: relative;
  width: calc(390px * var(--s));
  height: calc(844px * var(--s));
  border-radius: var(--screen-r);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
}
.island {
  position: absolute;
  top: calc(11px * var(--s));
  left: 50%;
  width: calc(118px * var(--s));
  height: calc(34px * var(--s));
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: var(--device);
}
.stat {
  position: absolute;
  left: 150px;
  top: 270px;
  padding: 16px 19px;
  border-radius: 17px;
  background: var(--surface-raised);
  box-shadow: 0 20px 48px rgba(21, 32, 27, 0.18);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-label {
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
}
.stat-amount {
  font-size: 28px;
  line-height: 33px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-chip {
  align-self: flex-start;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  background: var(--warning-tint);
  color: var(--warning);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.stat-chip svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* The Flujo screen, drawn at 390 × 844 and scaled into the phone. */
.app {
  width: 390px;
  height: 844px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  background: var(--surface);
  font-size: 16px;
  line-height: 24px;
}
.app-body {
  padding: 52px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-title {
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
}
.app .tile {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.banner-text b {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}
.banner-text span {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.pill-brand {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--on-brand);
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.flow {
  padding: 16px 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pills,
.arrows {
  display: flex;
  gap: 6px;
}
.arrows {
  gap: 4px;
}
.pill {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 14px;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pill svg {
  color: var(--ink-muted);
}
.arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.arrow.off {
  color: var(--border-strong);
}
.flow .overline {
  font-size: 12px;
  line-height: 16px;
}
.flow .overline.brand {
  color: var(--brand);
}
.net {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.amount-hero {
  font-size: 34px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.totals > div {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.totals > div > span:last-child {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.t-inc {
  color: var(--income);
}
.t-exp {
  color: var(--expense);
}
.t-inv {
  color: var(--investment);
}
.bars,
.months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
}
.bars {
  height: 96px;
  align-items: end;
}
.bar {
  height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  opacity: 0.35;
}
.bar.on {
  opacity: 1;
}
.bar i {
  flex: 1;
  max-width: 12px;
  border-radius: 4px 4px 0 0;
  background: var(--income);
}
.bar i + i {
  background: var(--expense);
}
.bar.future {
  opacity: 0.6;
}
.bar.future i {
  max-width: none;
  height: 24px;
  border: 1.5px dashed var(--border-strong);
  border-bottom: 0;
  background: transparent;
}
.months {
  text-align: center;
  font-size: 11px;
  line-height: 14px;
  color: var(--ink-muted);
  margin-top: -4px;
}
.months .on {
  font-weight: 700;
  color: var(--ink);
}
.legend {
  display: flex;
  gap: 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.legend .inc {
  background: var(--income);
}
.legend .exp {
  background: var(--expense);
}
.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 4px;
}
.list-head b {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}
.list-head span {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.day {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
  margin-bottom: -6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.rows {
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.txn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.txn + .txn {
  border-top: 1px solid var(--border);
}
.txn-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.txn-text b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.txn-text span {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.txn-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- How it works ---------- */

.steps {
  margin-top: 32px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex: 1;
}
.step-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.step-title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}
.step-body {
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-muted);
}

.foot {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.foot a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Very narrow phones: keep the headline on two lines without overflowing. */
@media (max-width: 359px) {
  h1 {
    font-size: 50px;
    line-height: 52px;
  }
  .stat {
    left: auto;
    right: 12px;
  }
}

/* ---------- Desktop (the 1440px artboard) ---------- */

@media (min-width: 1120px) {
  .page {
    max-width: 1440px;
    padding: 48px 96px 36px;
    min-height: 100vh;
  }
  .logo {
    height: 44px;
  }
  .badge {
    padding: 10px 22px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.01em;
  }

  .hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-top: 36px;
  }
  .intro {
    flex: 0 1 620px;
    gap: 28px;
    margin-top: 48px;
  }
  h1 {
    font-size: clamp(84px, 7.5vw, 108px);
    line-height: 0.963;
  }
  .lede {
    max-width: 540px;
    font-size: 22px;
    line-height: 34px;
  }
  .waitlist .row {
    flex-direction: row;
  }
  .waitlist input {
    flex: 1;
    width: auto;
  }
  .safe {
    font-size: 16px;
    line-height: 24px;
  }

  .visual {
    --s: 1;
    --frame-r: 66px;
    --screen-r: 54px;
    flex: 0 0 552px;
    height: 620px;
    border-radius: 32px;
  }
  .blob {
    top: 36px;
    right: -28px;
    width: 176px;
    height: 112px;
    border-radius: 28px;
  }
  .lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 56px;
    left: 32px;
  }
  .lines i {
    display: block;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--brand);
  }
  .phone {
    left: 98px;
    top: 128px;
  }
  .stat {
    left: 284px;
    top: 330px;
    padding: 20px 24px;
    border-radius: 22px;
    gap: 4px;
  }
  .stat-label {
    font-size: 13px;
    line-height: 18px;
  }
  .stat-amount {
    font-size: 36px;
    line-height: 42px;
  }
  .stat-chip {
    padding: 6px 12px;
    font-size: 15px;
    line-height: 20px;
  }
  .stat-chip svg {
    width: 16px;
    height: 16px;
  }

  .steps {
    margin-top: 52px;
    padding: 32px 40px;
  }
  .steps ol {
    flex-direction: row;
    gap: 40px;
  }

  .foot {
    margin-top: auto;
    padding-top: 50px;
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Oscuro: `ink` turns light, so the phone keeps a dark frame with a hairline edge. */
@media (prefers-color-scheme: dark) {
  .visual {
    --device: var(--surface-sunken);
  }
  .phone {
    box-shadow:
      inset 0 0 0 1px var(--border),
      0 40px 80px rgba(0, 0, 0, 0.5);
  }
}
