/* Mercuri portfolio benefits — palette taken from mercuri.vc */
:root {
  color-scheme: light;
  --bg: #f5f5f3;          /* mercuri.vc accent (off-white) */
  --surface: #ffffff;
  --ink: #29292b;         /* mercuri.vc black */
  --ink-deep: #1c1c1d;    /* mercuri.vc dark accent */
  --muted: #6b6b6e;
  --line: #e3e3df;
  --line-strong: #cfcfca;
  --radius: 14px;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px; /* room for the request bar */
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- Header ---------- */
.masthead {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.brand { display: inline-block; }
.brand img {
  width: min(360px, 70vw);
  height: auto;
}

h1 {
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  color: var(--ink-deep);
}

.intro {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Grid ---------- */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .masthead { padding: 32px 16px 28px; }
  main { padding: 0 16px; }
  h1 { margin-top: 32px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 6px 24px rgba(28, 28, 29, .06); }
.card.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.logo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo img { width: 26px; height: 26px; object-fit: contain; }
.logo.wide img { width: 38px; height: 20px; }
.logo-fallback {
  font-weight: 700;
  font-stretch: 125%;
  font-size: 1.1rem;
  color: var(--ink);
}

.provider {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}

.offer {
  font-stretch: 112%;
  font-weight: 650;
  font-size: 1.22rem;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink-deep);
}

.desc {
  margin: 0 0 14px;
  color: var(--ink);
}

.terms {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.45;
  color: var(--muted);
}

.card-action { margin-top: auto; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.btn-primary { background: var(--ink-deep); color: #fff; border-color: var(--ink-deep); }
.btn-primary:hover:not(:disabled) { background: #000; }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink-deep); color: #fff; }

.btn-select { background: transparent; color: var(--ink); }
.btn-select .tick {
  width: 18px; height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  display: grid; place-items: center;
}
.btn-select .tick svg { width: 12px; height: 12px; opacity: 0; }
.btn-select[aria-pressed="true"] { background: var(--ink-deep); color: #fff; border-color: var(--ink-deep); }
.btn-select[aria-pressed="true"] .tick svg { opacity: 1; }

.card-action .btn { width: 100%; }

.arrow { font-size: 1rem; line-height: 1; }

/* ---------- Footer ---------- */
.page-foot {
  max-width: 1120px;
  margin: 64px auto 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.page-foot a { text-decoration: none; }
.page-foot a:hover { text-decoration: underline; }

/* ---------- Request bar ---------- */
.request-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line);
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
}
.request-inner {
  max-width: 1072px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.request-status { margin: 0; color: var(--muted); font-size: .95rem; }
.request-status #selected-count { color: var(--ink-deep); font-weight: 700; }
.request-msg {
  max-width: 1072px;
  margin: 10px auto 0;
  font-size: .88rem;
  color: var(--ink);
}
.request-msg a { font-weight: 600; }

@media (max-width: 620px) {
  .request-bar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .request-inner { gap: 12px; }
  .request-status { font-size: .85rem; white-space: nowrap; }
  .request-status .long { display: none; }
  .request-inner .btn { padding: 0 16px; font-size: .88rem; white-space: nowrap; }
}

.notice { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
