/* ─────────────────────────────────────────────────────────────────────────
   Vinza — marketing site

   The palette runs from the product's own cyan into a deeper petrol ink, so
   the site and the app read as one thing. Amber is the single accent and is
   spent almost entirely on the agenda: the one place the page raises its
   voice is the place that shows what the product does.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --ink:        #06272E;   /* petrol near-black — the hero ground */
  --ink-soft:   #0C3B45;
  --paper:      #FBFDFD;   /* cool white, biased toward the accent */
  --paper-warm: #F1F7F7;
  --teal:       #0E7C86;   /* the brand */
  --cyan:       #22D3EE;   /* booked time */
  --amber:      #F2A413;   /* the accent, used sparingly */
  /* Measured, not picked by eye: the first choice (#5B7B80) came to 4.48:1 on
     the paper and failed the 4.5 floor by two hundredths, which is invisible
     to look at and fails every muted paragraph on the page. This clears both
     grounds — 5.11 on paper, 4.81 on the warm band. */
  --muted:      #527276;
  --line:       #D6E4E5;

  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --body:    'Instrument Sans', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --measure: 62ch;
  --radius: 14px;
  --shell: min(1180px, 100% - 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

.shell { width: var(--shell); margin-inline: auto; }

/* Section rhythm lives in ONE place. Nothing else sets vertical padding on a
   section, so no two rules can quietly fight over the gap between them. */
.band { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.band-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: var(--measure);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 39, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
  color: var(--paper);
}

.wordmark {
  /* A link, so it meets the 44px floor like every other one. Inline-flex with
     a minimum height rather than padding, so the text sits where it did. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { color: var(--amber); }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.85rem;
  border-radius: 9px;
  font-size: 0.95rem;
  text-decoration: none;
  color: rgba(251, 253, 253, 0.82);
  transition: background-color 140ms ease, color 140ms ease;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.09); color: var(--paper); }

.nav-toggle { display: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding-inline: 1.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-solid { background: var(--amber); color: var(--ink); }
.btn-solid:hover { background: #ffb62e; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.55); }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0a6870; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(34, 211, 238, 0.16), transparent 58%),
    radial-gradient(90% 70% at 8% 100%, rgba(242, 164, 19, 0.10), transparent 60%),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.3rem);
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero-lede {
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  color: rgba(251, 253, 253, 0.74);
  max-width: 44ch;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: rgba(251, 253, 253, 0.5);
}

/* ── The signature: a day filling up ────────────────────────────────────────
   The product's own artifact, not a generic dashboard mockup. Blocks land in
   sequence because that is what the owner actually watches happen. */

.agenda {
  background: rgba(251, 253, 253, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.agenda-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.agenda-day { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.agenda-meta { font-family: var(--mono); font-size: 0.72rem; color: rgba(251, 253, 253, 0.55); }

.agenda-row {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  align-items: stretch;
  gap: 0.75rem;
  min-height: 46px;
  padding-block: 0.28rem;
}

.agenda-time {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: rgba(251, 253, 253, 0.58);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.agenda-block {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.3;
  border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.agenda-block strong { font-weight: 600; }
.agenda-block small {
  color: rgba(251, 253, 253, 0.6);
  font-size: 0.78rem;
}

/* Time nobody is working. Hatched, so it can never read as time somebody
   booked — the same rule the product itself follows. */
.agenda-closed {
  border-left-color: rgba(255, 255, 255, 0.16);
  background:
    repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, 0.05) 0 6px,
      transparent 6px 12px);
  color: rgba(251, 253, 253, 0.42);
  font-size: 0.8rem;
}

/* The one block the page is really about, so it has to survive its own
   background. Amber at low alpha over a teal-tinted ground composites toward
   olive — it stopped reading as amber at all — so the fill is stronger, the
   edge is drawn explicitly, and the label is a lighter tint of the accent
   rather than the accent itself. */
.agenda-new {
  border-left-color: var(--amber);
  /* A warm base UNDER the tint, not a tint alone. Amber over the hero's teal
     ground composites toward olive at any opacity — the ground's blue channel
     survives the blend — so raising the alpha only made it a stronger olive.
     Laying the amber over its own dark base is what makes it read as amber. */
  background:
    linear-gradient(rgba(242, 164, 19, 0.28), rgba(242, 164, 19, 0.28)),
    #2A1F08;
  box-shadow: inset 0 0 0 1px rgba(242, 164, 19, 0.32);
}

.tag {
  align-self: flex-start;
  margin-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFC85C;
}

/* The one orchestrated moment on the page. */
.lands { opacity: 0; animation: land 620ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes land {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* ── The other half, in the hero ────────────────────────────────────────────
   The agenda shows the day you run; this shows how someone who has never heard
   of you finds you. Both halves in one glance, which is the page's argument. */

.hero-visual { display: grid; gap: 0.9rem; }

.proof {
  background: rgba(251, 253, 253, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem 1rem;
}

.proof-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 253, 253, 0.45);
  margin-bottom: 0.7rem;
}

/* The stage is sized by the tallest slide and the slides are stacked on top of
   one another, so the panel never changes height as they cycle — a card that
   resizes under the cursor is the thing that makes a carousel feel cheap. */
.proof-stage { display: grid; }
.proof-stage > .slide { grid-area: 1 / 1; }

.slide {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.7, 0.3, 1);
  pointer-events: none;
}
.slide.is-active { opacity: 1; transform: none; }

.slide-thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.34), rgba(14, 124, 134, 0.5));
}

.slide-body { display: grid; min-width: 0; }
.slide-body strong { font-size: 0.92rem; font-weight: 600; }
.slide-body small {
  font-size: 0.76rem;
  color: rgba(251, 253, 253, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  font-size: 0.84rem;
  color: #FFC85C;
}
.rating b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rating em { font-style: normal; color: rgba(251, 253, 253, 0.5); }

/* No score, so no star and no number — a sentence in the body face, the same
   rule the product follows. */
.rating-none {
  color: rgba(251, 253, 253, 0.5);
  font-size: 0.78rem;
}

.proof-dots { display: flex; gap: 0.3rem; margin-top: 0.85rem; }
.proof-dots i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 400ms ease, width 400ms ease;
}
.proof-dots i.is-on { width: 22px; background: var(--amber); }

/* ── Features, as two tracks ────────────────────────────────────────────────
   Not a card grid: the product genuinely has two halves — the day you run and
   the clients who arrive into it — and the layout says so. */

.tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 3rem;
}

.track-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.75rem;
}
.track-head h3 { font-size: 1.5rem; }
.track-head span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}

.track-b .track-head { border-bottom-color: var(--amber); }

/* Each feature carries a small diagram of its own mechanism, not an icon.
   A calendar glyph next to "agenda" says nothing the heading did not; three
   columns with blocks at different heights says what the agenda IS. The tile
   is tinted by track, so the two halves stay legible at a glance. */
.feature {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: none; padding-top: 0; }

.feature h4 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}
.feature p { color: var(--muted); font-size: 0.97rem; }

.tile {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(14, 124, 134, 0.07);
  border: 1px solid rgba(14, 124, 134, 0.16);
}
.track-b .tile {
  background: rgba(242, 164, 19, 0.09);
  border-color: rgba(242, 164, 19, 0.24);
}

.tile svg { display: block; }
.tile .stroke { stroke: var(--teal); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tile .fill   { fill: var(--teal); }
.tile .faint  { fill: var(--teal); opacity: 0.22; }
.tile .hatch  { stroke: var(--teal); opacity: 0.4; stroke-linecap: round; }

.track-b .tile .stroke { stroke: #B57A06; }
.track-b .tile .fill   { fill: #B57A06; }
.track-b .tile .faint  { fill: #B57A06; opacity: 0.24; }
.track-b .tile .hatch  { stroke: #B57A06; opacity: 0.45; }

/* Revealed once, when the feature is actually reached. Staggered by child so
   each diagram assembles in the order its mechanism happens — the blocks land,
   the steps advance, the visits accumulate. */
.anim > * {
  opacity: 0;
  transform: translateY(4px);
}
.tile.is-in .anim > * {
  opacity: 1;
  transform: none;
  transition: opacity 380ms ease, transform 380ms cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 85ms);
}

/* Bars and columns grow from their base rather than sliding, because that is
   what a filling day and an accumulating history actually do. */
.grow > * {
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: bottom;
}
.tile.is-in .grow > * {
  opacity: 1;
  transform: none;
  transition: opacity 300ms ease, transform 460ms cubic-bezier(0.2, 0.8, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

@media (max-width: 560px) {
  .feature { grid-template-columns: 60px minmax(0, 1fr); gap: 0.9rem; }
  .tile { width: 60px; height: 60px; border-radius: 10px; }
  .tile svg { width: 40px; height: 40px; }
}

/* ── Pricing ────────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
}

.plan-featured {
  border-color: var(--ink);
  box-shadow: 0 18px 44px rgba(6, 39, 46, 0.12);
}

.plan-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.plan-badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--ink);
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
}

.plan-price {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.plan-price span {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.plan-for { color: var(--muted); font-size: 0.95rem; }

.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.plan-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.6rem;
  font-size: 0.95rem;
  align-items: start;
}
.plan-list svg { margin-top: 0.35rem; color: var(--teal); flex-shrink: 0; }

.plan .btn { margin-top: auto; }

.price-note {
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Closing call ───────────────────────────────────────────────────────── */

.close-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.close-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.close-band p { color: rgba(251, 253, 253, 0.7); max-width: 48ch; margin-inline: auto; }
.close-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
.foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Short labels miss the floor on WIDTH, not height — "Inicio" came to 36px
     wide. Centred, so the extra width is invisible on longer ones. */
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}
.foot a:hover { color: var(--teal); text-decoration: underline; }

/* ── Long-form pages ────────────────────────────────────────────────────── */

.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }
.prose h2 {
  font-size: 1.35rem;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.15rem; display: grid; gap: 0.5rem; margin: 1rem 0 0; }
.prose a { color: var(--teal); }

.stamp {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.notice {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--amber);
  background: var(--paper-warm);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

/* ── Focus, always visible ──────────────────────────────────────────────── */

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Narrow ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tracks { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9px;
    color: var(--paper);
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lands { animation: none; opacity: 1; }
  .btn:active { transform: none; }
  /* The diagrams are content, not decoration, so they are shown outright
     rather than left in their pre-reveal state. */
  .anim > *, .grow > * { opacity: 1; transform: none; transition: none; }
  /* The carousel does not advance on its own: content moving under someone who
     asked for less motion is the case the setting exists for. The first card
     stands, and the dots say there are more. */
  .slide { transition: none; }
}
