/* The Clubhouse kit, as the app wears it from build 309 (Preview/styles.css,
   the block headed "v309 — THE CLUBHOUSE KIT"). One typeface, a cream page,
   white cards on a soft shadow, pills in a tinted track, one orange. The
   colours below are the app's tokens, copied, not approximated. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Outfit-variable.woff2") format("woff2");
}

:root {
  --page: #f7f5f0;
  --surface: #ffffff;
  --tile: #f1efe8;
  --hairline: #e2e0d9;
  --divider: #f1efe8;
  --ink: #1f2420;
  --ink-soft: #4a504b;
  --muted: #7a7f78;
  --faint: #a2a6a1;
  --accent: #e8763a;
  --accent-soft: #ffb28a;
  --accent-deep: #c25a24;
  --accent-ink: #c25a24;
  --accent-bg: #ffe1cf;
  --peach-ink: #8a4a2a;
  --good: #246b45;  --good-bg: #dcebe0;
  --warn: #8a5a1c;  --warn-bg: #fbead6;
  --bad: #a4402b;   --bad-bg: #f7dfd7;
  --fill: #1f2420;
  --fill-text: #ffffff;
  --seg: #f1efe8; --seg-on: #ffffff;
  --shadow: 0 1px 0 rgba(31, 36, 32, .04), 0 8px 24px rgba(31, 36, 32, .05);
  --tool-shadow: 0 4px 14px rgba(31, 36, 32, .06);
  --on-shadow: 0 4px 14px rgba(31, 36, 32, .08);
  --scrim: rgba(31, 36, 32, .42);
  --card-radius: 20px;
  --font: "Outfit", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: max(24px, env(safe-area-inset-left));
  --gutter-r: max(24px, env(safe-area-inset-right));
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #161917; --surface: #1f2420; --tile: #2a2f2b; --hairline: #343a35; --divider: #2a2f2b;
    --ink: #f3f1ea; --ink-soft: #c9cec8; --muted: #9aa09b; --faint: #767b76;
    --accent-deep: #ff9d6b; --accent-ink: #ffb28a; --accent-bg: #3d2a20; --peach-ink: #ffb28a;
    --good: #8fd4a9; --good-bg: #1f3328; --warn: #f0c27a; --warn-bg: #3a2f1f; --bad: #f2a08c; --bad-bg: #3a2322;
    --fill: #f3f1ea; --fill-text: #161917;
    --seg: #2a2f2b; --seg-on: #343a35;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --tool-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    --on-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #161917; --surface: #1f2420; --tile: #2a2f2b; --hairline: #343a35; --divider: #2a2f2b;
  --ink: #f3f1ea; --ink-soft: #c9cec8; --muted: #9aa09b; --faint: #767b76;
  --accent-deep: #ff9d6b; --accent-ink: #ffb28a; --accent-bg: #3d2a20; --peach-ink: #ffb28a;
  --good: #8fd4a9; --good-bg: #1f3328; --warn: #f0c27a; --warn-bg: #3a2f1f; --bad: #f2a08c; --bad-bg: #3a2322;
  --fill: #f3f1ea; --fill-text: #161917;
  --seg: #2a2f2b; --seg-on: #343a35;
  --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --tool-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  --on-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (max-width: 640px) {
  :root { --gutter: max(16px, env(safe-area-inset-left)); --gutter-r: max(16px, env(safe-area-inset-right)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.55;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type. Titles 800 with tight tracking, body 500–600, kickers 12.5px/700 in sentence case. Nothing in capitals. */
.kicker { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.kicker.accent { color: var(--accent-ink); }
.h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -.03em; line-height: 1; text-wrap: balance; }
.h2 { font-size: clamp(27px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.h3 { font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.lead { color: var(--ink-soft); font-size: 17px; font-weight: 500; line-height: 1.6; text-wrap: pretty; }

/* Parts */
.card { background: var(--surface); border-radius: var(--card-radius); box-shadow: var(--shadow); color: var(--ink); }
.label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.label small { font-weight: 600; }
.tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--tile); }
.tile .t-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.tile .t-value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.tile .t-sub { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 3px 10px; border-radius: 999px; background: var(--tile); color: var(--ink-soft); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.accent { background: var(--accent-bg); color: var(--accent-ink); }
.pill.solid { background: var(--accent); color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; font-size: 15.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--tile); color: var(--ink); }
.btn.ghost:hover { background: var(--hairline); color: var(--ink); }
.btn.sm { height: 40px; padding: 0 16px; border-radius: 13px; font-size: 14px; }
.btn.tint { background: var(--accent-bg); color: var(--accent-ink); }
.btn:disabled { background: var(--tile); color: var(--faint); cursor: default; transform: none; }

/* A round white tool, 44px, on a soft shadow */
.tool { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--tool-shadow); cursor: pointer; transition: transform .15s, color .15s; }
.tool:hover { transform: translateY(-1px); }
.tool.on { color: var(--accent); }

/* Pills in a tinted track (the app's header tabs) */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 20px; background: var(--seg); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; margin: 0; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; text-decoration: none; cursor: pointer; transition: color .15s, background .15s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab[aria-selected="true"], .tab[aria-current="true"] { background: var(--seg-on); color: var(--ink); font-weight: 800; box-shadow: var(--on-shadow); }
.tab .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--tile); color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.tab[aria-selected="true"] .count { background: var(--accent-bg); color: var(--accent-ink); }

/* A segmented control for two to four choices */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; border-radius: 14px; background: var(--seg); }
.seg > button { position: relative; height: 38px; min-width: 76px; margin: 0; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: color .15s, background .15s; }
.seg > button::after { content: ""; position: absolute; left: 0; right: 0; top: -3px; bottom: -3px; }
.seg > button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); font-weight: 800; box-shadow: var(--on-shadow); }

/* A list row: 56px, a title and a small line, a value or a chevron on the right */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; border-top: 1px solid var(--divider); text-align: left; }
.row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; }
.row-main strong { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.row-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.row-value { flex: none; font-size: 14.5px; font-weight: 800; }
.chev { flex: none; color: var(--faint); }

/* The scoreboard panel: two to four numbers in a white card */
.board { overflow: hidden; }
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 96px; padding: 14px 8px; text-align: center; }
.cell + .cell { border-left: 1px solid var(--divider); }
.cell-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.cell-value { font-size: clamp(24px, 3.3vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.cell-value small { font-size: .6em; font-weight: 700; color: var(--muted); }
.cell.accent .cell-value { color: var(--accent); }
.cell.good .cell-value { color: var(--good); }
.cell-sub { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; padding: 10px 16px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.board-foot b { color: var(--ink); font-weight: 800; }
@media (max-width: 640px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell { min-height: 84px; }
  .cell:nth-child(odd) { border-left: 0; }
  .cell:nth-child(n+3) { border-top: 1px solid var(--divider); }
}

/* The club's two colours on the diagonal */
.swatch { flex: none; width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--c1, #2b3f6b) 50%, var(--c2, #c26d3d) 50%); }

/* A phone: the screenshot carries its own status bar; the bezel is thin and radii follow its width */
.phone-w { container-type: inline-size; width: 100%; }
.phone { --r: 40px; --b: 5px; padding: var(--b); border-radius: var(--r); background: #0a0b0a; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 30px 60px -24px rgba(31, 36, 32, .45); }
.phone img { width: 100%; height: auto; aspect-ratio: 402 / 874; border-radius: calc(var(--r) - var(--b)); background: #f7f5f0; }
@supports (width: 1cqw) { .phone { --r: 14.6cqw; --b: 1.9cqw; } }

/* Top bar: the page colour, the mark, pills, a round tool */
.top { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--page) 86%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); transition: box-shadow .25s; }
.top.stuck { box-shadow: 0 1px 0 var(--hairline); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brand b i { font-style: normal; color: var(--accent); }
.top .right { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* Social handles */
.social { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
.social a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink-soft); font-weight: 700; }
.social a:hover { color: var(--accent-ink); text-decoration: none; }

/* Footer */
.foot { margin-top: clamp(56px, 7vw, 96px); padding: 28px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); color: var(--muted); font-size: 13px; font-weight: 600; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--ink-soft); }
.foot-note { flex-basis: 100%; padding-top: 12px; border-top: 1px solid var(--divider); line-height: 1.6; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
