/* Diapago landing v2. Brand A "Dia marcado". Visual-first, minimalist. No build step, no external requests. */

@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Brand A tokens */
  --teal: #0D5C57;        /* white on teal 7.82:1 */
  --teal-deep: #0A4A46;
  --teal-tint: #DCE9E6;
  --marigold: #E2A42A;    /* marks only, never text */
  --sand: #EEE7D7;
  --canvas: #F6F5F0;
  --ink: #16161A;
  --ink-2: #4A4A52;       /* secondary text, >= 7:1 on canvas and sand */
  --rule: #DAD6CB;
  --field: #6E6E76;       /* input border, >= 3:1 on white (1.4.11) */
  --host: #E4E5E8;
  --white: #FFFFFF;
  --error: #A3261B;       /* >= 6:1 on white and canvas */

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-h1: clamp(2.25rem, 1.35rem + 3.6vw, 3.75rem);
  --fs-statement: clamp(2rem, 1.1rem + 3.9vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.8125rem;

  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2.5rem);
  --space-section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --maxw: 1200px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-step: 900ms;        /* flow step-through: one step every 900ms, 4 steps < 5s (WCAG 2.2.2) */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.text-link, .footer-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.text-link:hover, .footer-links a:hover { text-decoration-color: currentColor; color: var(--teal); }

.caption { font-family: var(--mono); font-size: var(--fs-mono); line-height: 1.55; color: var(--ink-2); }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.statement { font-size: var(--fs-statement); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem;
  border: 2px solid var(--teal);
  border-radius: var(--radius-pill);
  background: var(--teal); color: var(--white);
  font: 600 1.0625rem/1 var(--font);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn:active { transform: scale(0.98); }
.btn--block { width: 100%; }
.btn--lg { min-height: 60px; padding: 0 2.25rem; font-size: 1.25rem; }
.btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; border-radius: 6px; }
.brand img { width: 125px; }
.header-cta { font-weight: 600; color: var(--teal); text-decoration: none; padding: 0.75rem 0; border-bottom: 2px solid var(--marigold); line-height: 1; }
.header-cta:hover { color: var(--teal-deep); }

/* HERO */
.hero {
  padding-top: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
  padding-bottom: clamp(2rem, 1.25rem + 2.5vw, 3rem);
}
.hero h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; max-width: 15ch; }
.hero-sub { margin-top: 1.1rem; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); max-width: 40ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2rem; }
.cta-demo { font-weight: 600; display: inline-block; padding-block: 0.75rem; }
.hero .caption { margin-top: 1.25rem; }
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 4vw, 5rem); align-items: center; }
  .hero h1 { font-size: clamp(3rem, 1.6rem + 3.4vw, 4.5rem); }
  .hero-sub { margin-top: 0; }
  .hero .cta-row { margin-top: 1.5rem; }
}

.host {
  background: var(--host);
  border-radius: var(--radius);
  display: grid; place-items: center;
  padding: clamp(1.25rem, 0.5rem + 3vw, 3rem) clamp(1rem, 0.25rem + 2.5vw, 2.5rem);
}
.host img { border-radius: 6px; box-shadow: 0 1px 2px rgba(22, 22, 26, 0.06), 0 12px 32px -12px rgba(22, 22, 26, 0.18); }
figcaption { margin-top: 0.75rem; font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-2); }


/* PROBLEM: two streams meet a fixed date */
.problem { padding-block: var(--space-section); }
.squeeze {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); max-width: 56rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 0;
}
.lane { grid-column: 1; padding-block: 0.9rem; }
.lane + .lane { border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.lane-label { font-size: var(--fs-lead); margin-bottom: 0.75rem; }
.stream {
  position: relative;
  display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.75rem);
  padding-right: 1.25rem;
}
.stream::before { /* the track the money travels on */
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent);
}
.stream::after { /* arrowhead into the date */
  content: ""; position: absolute; right: 2px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2);
  transform: rotate(45deg);
}
.coin, .note { position: relative; z-index: 1; display: grid; place-items: center; font-family: var(--mono); flex: none; }
.coin {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--canvas); border: 2px solid var(--ink-2); color: var(--ink);
  font-size: 0.875rem;
}
.note {
  height: 2.5rem; padding: 0 0.75rem; border-radius: 6px;
  background: var(--teal); color: var(--white);
  font-size: 0.875rem;
}
.pin {
  grid-column: 2; grid-row: 1 / span 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  border-left: 4px solid var(--marigold);
  text-align: center;
}
.pin-cal { width: clamp(44px, 6vw, 72px); height: auto; }
.pin-label { margin-top: 0.6rem; font-weight: 700; font-size: var(--fs-lead); line-height: 1.1; }
.pin-sub { font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-2); }

@media (max-width: 520px) {
  .coin--x, .note--x { display: none; }
}

/* HOW IT WORKS: stepped flow */
.how { background: var(--sand); padding-block: clamp(2rem, 1.25rem + 2.5vw, 3.25rem) clamp(3rem, 2rem + 4vw, 6rem); }
.how-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.flow {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  display: grid; gap: 0;
  counter-reset: none;
}
.step { position: relative; display: grid; align-content: start; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.25rem; align-items: center; padding-bottom: 2rem; }
.step:last-child { padding-bottom: 0; }
.art {
  aspect-ratio: 160 / 112;
  background: var(--white);
  border: 2px solid transparent;
  box-shadow: 0 1px 2px rgba(22, 22, 26, 0.05);
  border-radius: var(--radius);
  display: grid; place-items: center;
}
.art svg { width: 100%; height: 100%; }
.step-cap { font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.step-n {
  display: inline-grid; place-items: center;
  width: 1.9rem; height: 1.9rem; margin-right: 0.6rem;
  border-radius: 50%; background: var(--teal); color: var(--white);
  font: 400 0.8125rem/1 var(--mono);
  vertical-align: 0.15em;
}
/* connector: vertical on small screens */
.step:not(:last-child)::after {
  content: ""; position: absolute;
  left: 5.5rem; bottom: 0.25rem; height: 1.5rem; margin-left: -1px;
  border-left: 2px dashed var(--ink-2);
}

@media (min-width: 860px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.75rem, 2.5vw, 2.5rem); }
  .step { grid-template-columns: none; align-items: start; gap: 1rem; padding-bottom: 0; }
  .step-n { display: grid; margin: 0 0 0.6rem; }
  .step:not(:last-child)::after { /* horizontal arrow across the gap, centred on the art */
    left: 100%; bottom: auto; top: 0;
    margin: 35% 0 0; /* % margins resolve against width: art is 112/160 of the width tall, so 35% is its middle */
    height: 0; width: clamp(1.75rem, 2.5vw, 2.5rem);
    border-left: 0; border-top: 2px dashed var(--ink-2);
  }
}

/* step-through: emphasis only, never hides a step. Runs once (~3.6s), only when motion is OK and the flow is in view. */
@media (prefers-reduced-motion: no-preference) {
  .flow.is-on .art { animation: step-on calc(var(--t-step) * 1.6) var(--ease-out) both; }
  .flow.is-on .step:nth-child(2) .art { animation-delay: var(--t-step); }
  .flow.is-on .step:nth-child(3) .art { animation-delay: calc(var(--t-step) * 2); }
  .flow.is-on .step:nth-child(4) .art { animation-delay: calc(var(--t-step) * 3); }
}
@keyframes step-on {
  0%, 100% { border-color: transparent; transform: none; }
  30%, 60% { border-color: var(--teal); transform: translateY(-4px); }
}

.notes { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.notes li {
  font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink);
  padding: 0.45rem 0.8rem; border-radius: var(--radius-sm);
  background: var(--canvas); border: 1px solid var(--rule);
}
.notes .note-fx { border-color: var(--marigold); box-shadow: inset 4px 0 0 var(--marigold); }

.strip {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
}
.strip li, .strip figure { display: flex; flex-direction: column; min-width: 0; }
.strip figure { flex: 1; }
.host--card { flex: 1; min-height: 200px; padding: 1.25rem 1rem; }
.host--card img { width: 100%; max-width: max-content; }
@media (max-width: 959px) {
  .strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 78%);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-bottom: 0.75rem;
  }
  .strip li { scroll-snap-align: start; }
}

/* WAITLIST */
.join { background: var(--teal); color: var(--white); padding-block: var(--space-section); }
.join-copy :focus-visible, .join-more :focus-visible { outline-color: var(--white); }
.join .statement { font-size: clamp(2.5rem, 1.4rem + 5vw, 5.5rem); }
.join-inner { display: grid; gap: 2.5rem; align-items: start; }
.join-sub { margin-top: 1rem; font-size: var(--fs-lead); color: var(--teal-tint); }
.merchant-line {
  margin-top: 1.5rem; max-width: 34rem;
  padding: 0.9rem 1rem; border-radius: var(--radius-sm);
  background: var(--canvas); color: var(--ink); border-left: 4px solid var(--marigold);
  font-size: var(--fs-small); line-height: 1.5;
}
.join-links { margin-top: 1.75rem; color: var(--white); display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.join-links .text-link { font-weight: 600; display: inline-block; padding-block: 0.75rem; }
.contact-ask { margin-top: 1rem; font-size: var(--fs-small); color: var(--teal-tint); }
.contact-ask a { color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.join .text-link:hover { color: var(--white); }

.join-card { color: var(--ink); background: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); box-shadow: 0 1px 2px rgba(22, 22, 26, 0.05), 0 18px 40px -24px rgba(22, 22, 26, 0.25); }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 1rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input[type="email"], .field input[type="text"], .field select {
  width: 100%; min-height: 48px; padding: 0 0.9rem;
  border: 1.5px solid var(--field); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
  font: 400 1.0625rem/1.2 var(--font);
}
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field--check { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.75rem; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 0.15rem 0 0; accent-color: var(--teal); }
.field--check label { font-weight: 400; font-size: var(--fs-small); line-height: 1.5; }
.field--check .field-err { grid-column: 2; }
.field-hint { font-size: 0.8125rem; color: var(--ink-2); }
.field-err { color: var(--error); font-size: var(--fs-small); font-weight: 600; }
.field-err::before { content: "! "; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.privacy { font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }
.privacy a { color: var(--ink); overflow-wrap: anywhere; }
.wl-status:empty { display: none; }
.wl-status { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--canvas); font-weight: 600; }
.form[hidden] + .wl-status { margin-top: 0; }
.wl-status.is-ok { background: var(--teal-tint); color: var(--teal-deep); }
.wl-status.is-ok::before { content: "\2713  "; }
.wl-status.is-err { background: #FBEAE7; color: var(--error); }
.wl-status:focus-visible { outline-offset: 2px; }

@media (min-width: 960px) {
  .join-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto 1fr; column-gap: clamp(2.5rem, 5vw, 6rem); row-gap: 0; }
  .join-card { grid-column: 2; grid-row: 1 / span 2; }
  .join-more { grid-column: 1; grid-row: 2; }
}

/* FOOTER */
.site-footer { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); font-size: var(--fs-small); border-top: 1px solid var(--rule); }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand img { width: 150px; border-radius: 6px; }
.footer-brand p { margin-top: 0.75rem; font-weight: 600; }
.footer-legal { display: grid; gap: 0.5rem; color: var(--ink-2); max-width: 36rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.footer-links a { display: inline-block; padding-block: 0.5rem; overflow-wrap: anywhere; }
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); align-items: start; }
  .footer-links { flex-direction: column; gap: 0.25rem; }
}

@media (max-width: 640px) {
  .cta-row { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .cta-row .btn { width: 100%; }
  .cta-demo { text-align: center; }
  .btn { white-space: normal; padding-block: 0.6rem; line-height: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow .art { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .btn:active { transform: none; }
}
