/* ================================================================
   Drip Golf — application styles.
   Consumes tokens.css. Zero raw hex values live in this file.
   ================================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.serif {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 3vw, 2.4rem);
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.eyebrow::before { content: "\25C6"; font-size: 0.55rem; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------------- top bar ---------------- */
.announce {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.76rem;
  text-align: center;
  padding: 0.6rem 1rem;
  letter-spacing: 0.02em;
}
.announce b { color: var(--cream); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: var(--s-2); }
.nav-brand img { height: 34px; width: auto; }
.nav-brand span {
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
}
.nav-links { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); }

/* Visible to screen readers, invisible to everyone else. Used by extLink() to
   say "opens in a new tab" out loud, since the arrow glyph next to it is
   aria-hidden and announces nothing. NOT `display:none` -- that would hide it
   from assistive tech too, which is the entire opposite of the point. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.nav-links a.active { color: var(--ink); border-bottom-color: var(--sage); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover  { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: translateY(0); }
.btn-ghost  { background: transparent; color: var(--ink); }
.btn-sage   { background: var(--sage); border-color: var(--sage); color: var(--cream); }
/* The inverse of .btn, for use on an ink-coloured surface. Without it the
   default button is ink-on-ink and reads as bare text -- which is exactly how
   the "popular" pricing tier's CTA rendered before this existed. */
.btn-cream  { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn-sm     { padding: 0.42rem 0.85rem; font-size: 0.78rem; }
.btn-block  { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------------- cards & surfaces ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-4);
  box-shadow: var(--shadow-sm);
}
.card-flat { box-shadow: none; }

.grid { display: grid; gap: var(--s-3); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.row { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.stack-sm { display: flex; flex-direction: column; gap: var(--s-2); }

.section { padding: var(--s-6) 0; }
.section-tight { padding: var(--s-5) 0; }

/* ---------------- forms ---------------- */
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 0.9rem;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field-hint { font-size: 0.74rem; color: var(--muted); }

.alert {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  border: 1px solid var(--line);
  background: var(--cream-2);
}
.alert-error { background: var(--tier-reach-bg); border-color: var(--rust); color: var(--rust); }
.alert-ok    { background: var(--tier-likely-bg); border-color: var(--sage); color: var(--sage-deep); }

/* ---------------- auth screens ---------------- */
.auth-wrap {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: var(--s-5) 0;
}
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: var(--s-1); }
.auth-switch { font-size: 0.84rem; color: var(--muted); }
.auth-switch button {
  background: none; border: none; padding: 0;
  color: var(--sage); font-weight: 600; cursor: pointer;
  text-decoration: underline;
}
.demo-hint {
  background: var(--cream-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: var(--s-2) var(--s-3);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.demo-hint code {
  background: var(--card);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.76rem;
}

/* ---------------- hero ---------------- */
.hero { padding: var(--s-6) 0 var(--s-5); }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin: var(--s-3) 0; }
.hero p.lede {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 56ch;
}
.hero-actions { margin-top: var(--s-4); }

.feature-card { display: flex; flex-direction: column; gap: var(--s-2); }
.feature-card .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--sage);
}
.feature-card h3 { font-size: 1.06rem; font-weight: 600; }
.feature-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------------- pricing tiers ----------------
   .tier layers onto .card rather than restating it: the surface, radius,
   padding and shadow are already correct there, so only the things a plan
   actually adds (price, perk list, the inverted "popular" treatment) live
   here. The old marketing page shipped a bespoke .tiers grid and a
   `.tier .btn { width: 100% }` rule; both were duplicates of .grid-2 and
   .btn-block, so they did not survive the move. */
.tier { display: flex; flex-direction: column; }
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* The inverted card. Alpha is taken off the brand token with color-mix so
   this stays honest to tokens.css's "no raw hex outside this file" rule --
   the old page hard-coded rgba(244,239,230,0.6), which is var(--cream) in a
   disguise that no longer updates when the brand does. */
.tier.popular { background: var(--ink); color: var(--cream); position: relative; }
.tier.popular .price small,
.tier.popular li { color: color-mix(in srgb, var(--cream) 75%, transparent); }
.tier.popular li::before { color: var(--cream); }

.tier.popular::before {
  content: "Most Loved";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: var(--s-1) var(--s-3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier .name { font-weight: 500; font-size: 1.35rem; }
.tier .price {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: var(--s-2) 0 var(--s-1);
}
.tier .price small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

/* flex-grow on the list is what keeps both buttons on the same baseline when
   one plan has seven perks and the other has five. */
.tier ul { list-style: none; margin: var(--s-4) 0; padding: 0; flex-grow: 1; }
.tier li {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: var(--s-1) 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.tier li::before { content: "\2713"; font-weight: 600; flex-shrink: 0; }

/* ---------------- stat tiles ---------------- */
.stat {
  background: var(--cream-2);
  border-radius: var(--radius-sm);
  padding: var(--s-3);
  text-align: center;
}
.stat .val { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.stat .lbl {
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* The profile-page styles that used to live here (.profile-head, .avatar,
   .tabs, .kv) went out with js/views/profile.js. The public page is a separate
   deployment now and ships its own CSS; keeping a second, drifting copy of its
   look in here would be styling a page this app does not render. */

table.data { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.data th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--s-2);
  border-bottom: 1px solid var(--line);
}
table.data td { padding: var(--s-2); border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--cream-2); }

/* ---------------- fit score ---------------- */
.fit-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: center;
}
@media (max-width: 620px) { .fit-hero { grid-template-columns: 1fr; } }

.dial { position: relative; width: 150px; height: 150px; }
.dial svg { transform: rotate(-90deg); }
.dial .dial-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}
.dial circle { fill: none; stroke-linecap: round; }
.dial .track { stroke: var(--cream-2); }
.dial .fill  { transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1); }

.meter { display: flex; flex-direction: column; gap: var(--s-1); }
.meter-top { display: flex; justify-content: space-between; font-size: 0.8rem; }
.meter-top b { font-weight: 600; }
.meter-bar { height: 7px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.meter-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: var(--sage);
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.pill-likely { background: var(--tier-likely-bg); color: var(--sage-deep); border-color: var(--tier-likely); }
.pill-target { background: var(--tier-target-bg); color: var(--tier-target); border-color: var(--tier-target); }
.pill-reach  { background: var(--tier-reach-bg);  color: var(--tier-reach);  border-color: var(--tier-reach); }
.pill-plain  { background: var(--cream-2); color: var(--ink-soft); border-color: var(--line); }

.school-row {
  display: grid;
  /* logo | score | name+meta | tier pill */
  grid-template-columns: 42px 54px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.school-row:hover { border-color: var(--sage); transform: translateX(2px); }
.school-row.open { border-color: var(--sage); }
.school-score {
  font-family: var(--font-display);
  font-size: 1.55rem;
  text-align: center;
  line-height: 1;
}
.school-name { font-weight: 600; font-size: 0.97rem; }
.school-meta { font-size: 0.76rem; color: var(--muted); }

.school-detail {
  border: 1px solid var(--sage);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--cream-2);
  padding: var(--s-3);
  margin-top: -6px;
}

/* Single-input school search replaced the multi-select filter form. Same
   visual treatment as `.field input` so it does not read as a new species
   of control, but full-width because it is the only thing in the card. */
.search-input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 0.95rem;
}
.search-input:focus { outline: 2px solid var(--sage); outline-offset: 1px; }

.tier-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-4) 0 var(--s-2);
}
.tier-head h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.tier-head .count { font-size: 0.78rem; color: var(--muted); }

/* ---------------- misc ---------------- */
.empty {
  text-align: center;
  padding: var(--s-5);
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

.footer {
  border-top: 1px solid var(--line);
  padding: var(--s-4) 0;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: var(--s-6);
}

.banner-demo {
  background: var(--tier-target-bg);
  border: 1px solid var(--tier-target);
  color: var(--tier-target);
  border-radius: var(--radius-sm);
  padding: var(--s-2) var(--s-3);
  font-size: 0.78rem;
  margin-bottom: var(--s-3);
}

/* ---------------- dual dashboard ----------------
   Two equal columns: what coaches SEE on the left, where the golfer is GOING
   on the right. auto-fit collapses it to one column under ~700px, so there is
   no separate mobile rule to keep in sync. */
.dual {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}
.dual > .card { display: flex; flex-direction: column; gap: var(--s-3); }
/* Pushes the button row to the bottom so both panels end on the same line. */
.dual .panel-foot { margin-top: auto; }

/* ---- live preview of the golfer's own page ---- */
.site-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream);
}
/* The frame renders at 250% and is scaled to 40%, so the preview shows a
   desktop-width layout rather than the mobile breakpoint a narrow iframe would
   otherwise trigger. */
.site-thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 250%;
  height: 250%;
  border: 0;
  transform: scale(0.4);
  transform-origin: 0 0;
  pointer-events: none;
}
.thumb-url {
  position: absolute;
  left: var(--s-2);
  bottom: var(--s-2);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

/* ---- the single best-fit recommendation ---- */
/* The tile is now a container, not an <a>: it holds the whole-tile link to
   #/fit AND a separate outbound link to the coach. Two calls-to-action on
   one tile is intentional -- "see the whole list" and "reach out to this
   coach" are different verbs and a golfer should be able to choose. */
.top-pick {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.top-pick:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.top-pick-link {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  text-decoration: none;
  color: inherit;
}
.top-pick-head { display: flex; align-items: center; gap: var(--s-3); }
.top-pick-body { min-width: 0; flex: 1; }
.top-pick-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.top-pick-score { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
/* The one pick gets a bigger badge than a list row would. */
.top-pick .logo-slot, .top-pick .monogram { width: 64px; height: 64px; font-size: 1.3rem; }

/* ---- stat versus block ----
   Head-to-head comparison used for rank, GPA and SAT. Whichever stat, the
   layout is always the same: golfer's number on the left, benchmark on the
   right, verdict phrase underneath, tinted sage / rust / gold by direction.
   "Ahead" always means "golfer is doing better", regardless of whether the
   underlying stat rewards lower (rank) or higher (GPA, SAT) values. */
.stat-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.stat-versus-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
.stat-versus-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.stat-versus-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 500;
}
.stat-versus-vs {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}
.stat-versus-phrase {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
  padding-top: var(--s-2);
  border-top: 1px dashed var(--line);
}
/* A subtle tint so "ahead" and "behind" read at a glance without shouting. */
.stat-versus[data-direction="ahead"]  { background: var(--tier-likely-bg); border-color: var(--tier-likely); }
.stat-versus[data-direction="behind"] { background: var(--tier-reach-bg);  border-color: var(--tier-reach); }
.stat-versus[data-direction="level"]  { background: var(--tier-target-bg); border-color: var(--tier-target); }

/* Compact version used inside the dashboard top-pick tile. */
.stat-versus-sm { padding: var(--s-2) var(--s-3); gap: var(--s-2); }
.stat-versus-sm .stat-versus-num { font-size: 1.25rem; }
.stat-versus-sm .stat-versus-label { font-size: 0.6rem; letter-spacing: 0.12em; }
.stat-versus-sm .stat-versus-phrase { display: none; }

/* When several versus blocks stack on a card, they share a container that
   lays them out in a grid on wide screens and stacks them on mobile. Rank
   sits full-width up top; GPA and SAT share the row below. */
.versus-stack { display: grid; gap: var(--s-2); }
.versus-stack-academics {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
@media (min-width: 640px) {
  .versus-stack-academics { grid-template-columns: 1fr 1fr; }
}

/* ---- head coach contact card ----
   The coach's name and contact details, shown in place. Bordered on the
   summary card + dashboard tile ("prominent"); a plain divided block inside
   a row detail ("subtle") so a long list does not turn into a wall of boxes. */
.coach-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-top: var(--s-2);
  min-width: 0;
}
.coach-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

/* Headshot over initials: the photo covers the letters and removes itself on
   error, revealing them. Cropped from the top because athletics headshots are
   portrait with the face in the upper third. */
.coach-photo {
  position: relative;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--line);
}
.coach-card-subtle .coach-photo { width: 56px; height: 56px; }
.coach-photo-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
}
.coach-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.coach-card-prominent .coach-photo { background: var(--cream); }
.coach-card-prominent {
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream-2);
}
.coach-card-subtle {
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.coach-card-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.coach-card-name { font-size: 1rem; }
.coach-card-title { font-size: 0.8rem; }
.coach-card-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin-top: 0.25rem;
  font-size: 0.86rem;
}
.coach-card-contact a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.coach-card-verified { font-size: 0.68rem; color: var(--muted); margin-top: 0.2rem; }

/* Inline rank pair used inside a school-row's meta area. Same info as the
   full block, sized to sit next to the score without stealing the row. */
.school-versus {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.school-versus b { font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; }
.school-versus-lbl {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.2rem;
}
.school-versus-vs { font-style: italic; color: var(--muted); }

.thumb-meta { display: block; font-size: 0.68rem; color: var(--muted); }

/* ---- logo over monogram ----
   The monogram is a real element underneath, not a CSS background: when the
   <img> deletes itself on error the letters are simply revealed, with no
   second code path and no flash of a broken-image icon. */
.logo-slot {
  position: relative;
  flex: none;
  display: block;
  width: 42px;
  height: 42px;
}
.logo-slot .monogram { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  background: var(--card);
  /* `contain`, never `cover`: a crest cropped to fill a square is a mangled
     trademark, and these marks are not ours to crop. */
  object-fit: contain;
  padding: 4px;
}

.monogram {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.monogram-likely { background: var(--tier-likely-bg); color: var(--tier-likely); }
.monogram-target { background: var(--tier-target-bg); color: var(--tier-target); }
.monogram-reach  { background: var(--tier-reach-bg);  color: var(--tier-reach); }

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

/* ---------------- sign-up survey ---------------- */
.survey-card { width: min(560px, 100%); }
.survey-card h1 { font-size: 1.9rem; }
.survey-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--cream-2);
  overflow: hidden;
}
.survey-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sage);
  transition: width 0.25s ease;
}
.survey-count { font-size: 0.78rem; margin-top: calc(-1 * var(--s-2)); }
.survey-step { border: 0; padding: 0; margin: 0; min-width: 0; }
/* .stack-sm sets display:flex, which beats the [hidden] attribute. */
.survey-step[hidden] { display: none; }
.survey-title { font-size: 1.25rem; padding: 0; }
.survey-blurb { font-size: 0.86rem; margin-bottom: var(--s-2); }
.survey-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.survey-wide { grid-column: 1 / -1; }
.survey-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage); color: var(--cream);
  font-family: var(--font-display); font-size: 1.3rem;
}
.survey-review {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-3);
  margin: 0;
}
.survey-review dd { margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.survey-bio { white-space: pre-line; line-height: 1.6; }

/* The mock dashboard's stand-in for the live site frame: same card slot, the
   golfer's answers instead of an iframe of a site they do not have yet. */
.mock-page {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--s-3);
}
.mock-page-name { display: block; font-size: 1.25rem; }
.mock-page-dt,
.survey-review dt {
  font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
