/* Diapago landing v3. Brand A "Dia marcado". Quiet, institutional, minimal. 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 {
  /* colour */
  --teal: #0D5C57;        /* white on teal 7.8:1 */
  --teal-deep: #0A4A46;   /* white on teal-deep 10:1 */
  --teal-tint: #DCE9E6;   /* on teal-deep >= 7:1 */
  --marigold: #E2A42A;    /* marks only, never text */
  --sand: #EEE7D7;
  --canvas: #F6F5F0;
  --ink: #16161A;
  --ink-2: #4A4A52;       /* secondary text, >= 7:1 on canvas, sand and white */
  --rule: #DAD6CB;
  --field: #6E6E76;       /* input border, >= 3:1 on white (1.4.11) */
  --white: #FFFFFF;
  --error: #A3261B;       /* >= 6:1 on white */
  --error-tint: #FBEAE7;

  /* type */
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-display: clamp(2.75rem, 1.2rem + 4.6vw, 5.25rem);
  --fs-statement: clamp(1.875rem, 1rem + 3.4vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  --fs-h2-big: clamp(2.25rem, 1.2rem + 4vw, 4.5rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* space and shape */
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2.5rem);
  --space-section: clamp(4.5rem, 2.5rem + 7vw, 9rem);
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-surface: 0 1px 2px rgba(22, 22, 26, 0.05), 0 24px 48px -28px rgba(22, 22, 26, 0.22);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-draw: 1100ms;
}

*, *::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, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-weight: 400; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; padding: 0.75rem 1rem; background: var(--ink); color: var(--white); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 0.75rem; }

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

.h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.h2--big { font-size: var(--fs-h2-big); letter-spacing: -0.04em; line-height: 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.75rem;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-pill);
  background: var(--teal); color: var(--white);
  font: 600 1.0625rem/1.2 var(--font);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), border-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--sm { min-height: 44px; padding: 0 1.25rem; font-size: var(--fs-small); }
.btn--quiet { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.btn--quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }

/* HEADER */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 80px; }
.brand { display: inline-flex; border-radius: 6px; }
.brand img { width: 125px; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-link { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); text-decoration: none; padding-block: 0.75rem; transition: color var(--t-fast) var(--ease-out); }
.nav-link:hover { color: var(--ink); }
@media (max-width: 520px) { .nav-link { display: none; } }

/* HERO */
.hero {
  display: grid; gap: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(3rem, 1.5rem + 5vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
}
.hero h1 {
  font-size: var(--fs-display); font-weight: 600;
  line-height: 0.98; letter-spacing: -0.045em;
  max-width: 16ch;
}
.lead { margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); }
.cta-demo { font-weight: 600; display: inline-block; padding-block: 0.75rem; }

/* the bill: one product moment, drawn in HTML so it stays sharp and light */
.bill {
  align-self: center;
  width: 100%; max-width: 26rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-surface);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.bill-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.bill-kind { font-weight: 600; }
.bill-ref { font-size: var(--fs-xs); color: var(--ink-2); }
.bill-rows { display: grid; }
.bill-rows > div { display: flex; justify-content: space-between; align-items: baseline; padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
.bill-rows dt { color: var(--ink-2); font-size: var(--fs-small); }
.bill-amt { font-size: 1.25rem; color: var(--ink); }
.bill-actions { display: flex; justify-content: flex-end; gap: 0.6rem; padding-top: 1.25rem; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--fs-small); }
.chip--ghost { border: 1px solid var(--rule); color: var(--ink-2); }
.chip--primary { background: var(--teal); color: var(--white); box-shadow: 0 0 0 4px var(--canvas), 0 0 0 6px var(--marigold); }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem); column-gap: clamp(3rem, 5vw, 5rem); align-items: center; }
  .bill { justify-self: end; }
}

/* HOW IT WORKS: one timeline, three stops, the middle one is the marked day */
.how { background: var(--sand); padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.flow { --marker: 44px; position: relative; display: grid; gap: 2.25rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.stop { position: relative; display: grid; grid-template-columns: var(--marker) minmax(0, 1fr); column-gap: 1.25rem; align-items: start; align-content: start; }
.dot, .dot-cal { grid-row: 1 / span 2; width: var(--marker); height: var(--marker); position: relative; z-index: 1; }
.dot { display: grid; place-items: center; }
.dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sand); border: 2px solid var(--teal); }
.stop-when { font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--ink-2); padding-top: 0.15rem; }
.stop-what { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; max-width: 22ch; margin-top: 0.35rem; }
.stop--marked .stop-when { color: var(--teal); }
/* the track, vertical on small screens */
.flow::before {
  content: ""; position: absolute;
  left: calc(var(--marker) / 2 - 1px); top: calc(var(--marker) / 2); bottom: calc(var(--marker) / 2);
  border-left: 2px solid color-mix(in srgb, var(--teal) 55%, transparent);
  transform-origin: top;
  transition: transform var(--t-draw) var(--ease-out);
}
@media (min-width: 860px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
  .stop { grid-template-columns: none; row-gap: 1.25rem; }
  .dot, .dot-cal { grid-row: auto; }
  .stop-what { margin-top: -0.75rem; }
  .flow::before {
    left: calc(var(--marker) / 2); right: 0; top: calc(var(--marker) / 2 - 1px); bottom: auto;
    border-left: 0; border-top: 2px solid color-mix(in srgb, var(--teal) 55%, transparent);
    transform-origin: left;
  }
}
/* draws once when the flow scrolls into view (the inline script adds .is-on). Static when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  .flow:not(.is-on)::before { transform: scale(0); }
  .flow .stop { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .flow:not(.is-on) .stop { opacity: 0.35; transform: translateY(6px); }
  .flow.is-on .stop:nth-child(2) { transition-delay: 350ms; }
  .flow.is-on .stop:nth-child(3) { transition-delay: 700ms; }
}

/* WHY: one editorial statement, offset from the left edge */
.why { padding-block: var(--space-section) clamp(3rem, 2rem + 3vw, 5rem); }
.statement { font-size: var(--fs-statement); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; color: color-mix(in srgb, var(--ink-2) 92%, var(--canvas)); max-width: 24ch; }
.statement .ink { color: var(--ink); }
.why-sub { margin-top: 1.5rem; font-size: var(--fs-lead); color: var(--ink-2); max-width: 38ch; }

/* WHO: hairline rows, no cards */
.who { padding-bottom: var(--space-section); }
.who-list { border-top: 1px solid var(--ink); }
.who-list > div { display: grid; gap: 0.35rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.who-list dt { font-weight: 600; font-size: var(--fs-lead); letter-spacing: -0.01em; }
.who-list dd { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 860px) {
  .who-list > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; padding-block: 1.75rem; }
}

/* WAITLIST */
.join { background: var(--teal-deep); color: var(--white); padding-block: var(--space-section); }
.join :focus-visible { outline-color: var(--white); }
.join-card :focus-visible { outline-color: var(--teal); }
.join-inner { display: grid; gap: 2.5rem; align-items: start; }
.join-sub { margin-top: 1.25rem; font-size: var(--fs-lead); line-height: 1.45; color: var(--teal-tint); max-width: 30ch; }
.join-contact { margin-top: 2rem; font-size: var(--fs-small); color: var(--teal-tint); }
.join-contact a { color: var(--white); font-weight: 600; overflow-wrap: anywhere; display: inline-block; padding-block: 0.5rem; }

.join-card { color: var(--ink); background: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); }
.form { display: grid; gap: 1.15rem; }
.field-pair { display: grid; gap: 1.15rem; }
@media (min-width: 520px) { .field-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.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);
  transition: border-color var(--t-fast) var(--ease-out);
}
.field input:hover, .field select:hover { border-color: var(--ink); }
.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.1rem 0 0; accent-color: var(--teal); }
.field--check label { font-weight: 400; line-height: 1.5; }
.field--check .field-err { grid-column: 2; }
.field-hint { font-size: var(--fs-xs); 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: var(--fs-xs); line-height: 1.55; 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: var(--error-tint); 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); column-gap: clamp(3rem, 6vw, 7rem); }
  .join-copy { position: sticky; top: 2rem; }
}

/* FOOTER */
.site-footer { padding-block: clamp(3rem, 2.25rem + 2vw, 4rem) clamp(2rem, 1.5rem + 2vw, 3rem); font-size: var(--fs-small); color: var(--ink-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.footer-brand p { font-weight: 600; color: var(--ink); }
.footer-brand .footer-note { font-weight: 400; color: var(--ink-2); }
.footer-brand .footer-note::before { content: "\00B7"; margin-right: 0.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.footer-links a { display: inline-block; padding-block: 0.6rem; text-decoration: none; overflow-wrap: anywhere; transition: color var(--t-fast) var(--ease-out); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }

@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; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-brand .footer-note { flex-basis: 100%; padding-left: calc(28px + 0.75rem); }
  .footer-brand .footer-note::before { content: none; }
}

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

/* PRIVACY NOTICE page */
.notice { padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) var(--space-section); }
.notice-body { max-width: 40rem; display: grid; gap: 1.1rem; color: var(--ink-2); }
.notice-body p:first-child { color: var(--ink); font-size: var(--fs-lead); line-height: 1.45; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.notice-body p:nth-child(2) { color: var(--ink); font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; margin-top: 1rem; }
.notice-body a { color: var(--ink); overflow-wrap: anywhere; }
