/* ==================================================================== */
/* The public pages: landing, stories, for-companies.                    */
/*                                                                       */
/* The wizard is a two-column shell because filling a form is one task.  */
/* These are read, scrolled and shared, so they are full width and       */
/* stacked in bands — but every colour, radius and shadow below is       */
/* a variable defined in tamitos.css. Nothing new was invented here.     */
/* ==================================================================== */

body.page { height: auto; background: var(--surface); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  z-index: 20;
}
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-on { color: var(--ink); border-bottom-color: var(--cyan); }

/* ------------------------------------------------------------- the hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 72px var(--gutter) 60px;
  max-width: 1180px;
  margin: 0 auto;
}
.hero__text h1 {
  font-size: 48px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 14px 0 18px;
}
.hero__lede { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__fine { margin-top: 14px; font-size: 14px; color: var(--ink-faint); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

.hero__numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: var(--surface-muted);
  border-radius: var(--r-card);
  padding: 24px;
}
.hero__numbers .stat { background: var(--surface); border-radius: 14px; padding: 16px; }
.hero__numbers .stat--big { grid-column: 1 / -1; }
.hero__numbers .stat--big .stat__value { font-size: 38px; }

/* ------------------------------------------------------------- the bands */

.band { padding: 62px var(--gutter); }
.band--tint { background: var(--surface-muted); }
.band__inner { max-width: 1180px; margin: 0 auto; }
.band__aside {
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  border-radius: var(--r-card);
  padding: 18px 22px;
}
.band--tint .band__aside { background: var(--surface); }

.section-title { font-size: 28px; font-weight: 800; letter-spacing: -0.4px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-note { font-size: 14.5px; color: var(--ink-faint); margin-top: 6px; display: block; }
.link { font-weight: 700; font-size: 15px; color: var(--cyan-dark); text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }

.head { padding: 56px var(--gutter) 10px; }
.head__inner { max-width: 1180px; margin: 0 auto; }
.head h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.6px; }
.head p { margin-top: 12px; font-size: 17px; color: var(--ink-soft); max-width: 46em; line-height: 1.6; }
.head__numbers { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }

/* ------------------------------------------------------------- the steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps--four { grid-template-columns: repeat(4, 1fr); }
.steps li {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.band--tint .steps li { box-shadow: none; border: 1px solid var(--line); }
.steps__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.steps h3 { font-size: 18px; font-weight: 700; margin: 14px 0 8px; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ------------------------------------------------------------- the cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-2px); }
.card__cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card__cover--none { background: linear-gradient(135deg, var(--surface-muted), #e7e2f3); }
.card__body { padding: 18px 20px 20px; }
.card__who { font-size: 13px; font-weight: 700; color: var(--cyan-dark); }
.card__title { font-size: 18px; font-weight: 700; margin: 6px 0 8px; line-height: 1.3; }
.card__teaser {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  /* Two lines, so a long teaser cannot make one card taller than its row. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.bar__fill { background: linear-gradient(90deg, var(--cyan-dark), var(--cyan)); }
.card__money { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; font-size: 14px; }
.card__money strong { font-size: 17px; font-weight: 800; }
.card__money span { color: var(--ink-faint); }

.empty-note {
  margin-top: 20px;
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* -------------------------------------------------------- proof sections */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.partner {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
}
.partner__logo { max-height: 40px; max-width: 100%; object-fit: contain; }
.partner__name { font-size: 18px; font-weight: 800; }
.partner__meta { font-size: 13.5px; color: var(--ink-faint); font-weight: 600; }

.voices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.voice { display: flex; gap: 14px; align-items: center; }
.voice__photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.voice__name { font-weight: 700; font-size: 16px; }
.voice__name a { text-decoration: none; }
.voice__name a:hover { text-decoration: underline; }
.voice__role { font-size: 14px; color: var(--ink-soft); }

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.tile h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.tile p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---------------------------------------------------------------- giving */

/* The explanation sits beside the form rather than above it. A company
 * filling this in is spending somebody else's money and will want to read
 * where it goes while they type, not scroll back up for it. */
.give {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px;
  align-items: start;
}

.give__intro p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}
.give__intro .give__fine { font-size: 14px; color: var(--ink-faint); }

.give__form {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

/* The wizard's controls are translucent white on a coloured gradient. Here
 * they sit on white, so they take the muted fill instead — otherwise a field
 * is invisible until you click it. */
.give__form .field input,
.give__form .check { background: var(--surface-muted); }
.give__form .field input:focus { background: var(--surface); }

/* In the wizard the label lives inside the same box as the input, so the
 * euro sign clears it at 38px. Here the label is above the box. */
.give__form .money::after { top: 15px; }

.give__form .actions { margin-top: 22px; }
.give__secure { font-size: 12.5px; color: var(--ink-faint); line-height: 1.4; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--cyan); color: var(--ink); }
.chip.is-on { border-color: var(--cyan-dark); background: #e7f6fd; color: var(--ink); }

/* ------------------------------------------------------------- the ends */

.ends { padding: 20px var(--gutter) 70px; }
.ends__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.end {
  background: var(--surface-muted);
  border-radius: var(--r-card);
  padding: 34px;
}
.end--alt { background: linear-gradient(135deg, #eef8fd, #f2ecfd); }
.end--wide { grid-column: 1 / -1; text-align: center; }
.end--wide p { margin-left: auto; margin-right: auto; }
.end h3 { font-size: 22px; font-weight: 800; }
.end p { margin: 10px 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); max-width: 34em; }
.soon { font-size: 14.5px; color: var(--ink-faint); font-weight: 600; }

/* ------------------------------------------------------------- the foot */

.foot { border-top: 1px solid var(--line); padding: 40px var(--gutter) 26px; }
.foot__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.brand--quiet { opacity: .8; }
.foot__note { margin-top: 10px; font-size: 14px; color: var(--ink-soft); max-width: 30em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.foot__links a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__fine {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- phones */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 30px; }
  .hero__text h1 { font-size: 34px; }
  .steps, .steps--four { grid-template-columns: 1fr; }
  .ends__inner { grid-template-columns: 1fr; }
  .nav { gap: 14px; flex-wrap: wrap; }
  .nav__links { order: 3; width: 100%; margin-left: 0; }
  .band { padding: 44px 22px; }
  .hero, .head, .ends, .foot { padding-left: 22px; padding-right: 22px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .give { grid-template-columns: 1fr; gap: 26px; }
  .give__form { padding: 22px 18px; }
  /* The label and the button stop fighting for one line on a phone. */
  .give__form .actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .give__form .actions .btn { justify-content: center; }
  .give__secure { text-align: center; }
}
