/* The Golf Pattern - my.thegolfpattern.com, the logged-in pages (2026-11-15; brand 2026-12-05).
   Colours and type follow the marketing site (thegolfpattern.com): deep green, lime, cream; Inter + Space Grotesk
   (self-hosted, SIL Open Font Licence - see fonts/OFL-*.txt). */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-700.woff2") format("woff2"); }
:root {
  --bg: #f5f6f1; --surface: #ffffff; --surface-2: #eef3ec; --text: #13201a; --muted: #5a6b61;
  --line: #dce3da; --brand: #0f3d2e; --brand-ink: #ffffff; --brand-soft: #e3eedf; --lime: #c6f432;
  --good: #2e9e66; --close: #db8f23; --poor: #d14d47; --accent: #1e5a44;
  --radius: 18px; --shadow: 0 1px 2px rgba(15, 61, 46, .06), 0 8px 24px rgba(15, 61, 46, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a2a20; --surface: #0f3d2e; --surface-2: #174e3a; --text: #eef3ec; --muted: #a9bcb0;
    --line: #1e5a44; --brand: #c6f432; --brand-ink: #0a2a20; --brand-soft: #174e3a; --accent: #c6f432;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a2a20; --surface: #0f3d2e; --surface-2: #174e3a; --text: #eef3ec; --muted: #a9bcb0;
  --line: #1e5a44; --brand: #c6f432; --brand-ink: #0a2a20; --brand-soft: #174e3a; --accent: #c6f432;
  --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .logo, .big-num { font-family: "Space Grotesk", Inter, system-ui, sans-serif; text-wrap: balance; }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .01em; font-size: 18px; color: var(--text); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: var(--brand-ink); }
.nav .links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav .links a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav .links a.btn { color: var(--brand-ink); }
@media (max-width: 640px) { .nav .links .hide-sm { display: none; } }

/* buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn.danger { background: var(--poor); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { margin-top: 4px; }
.hint { color: var(--muted); font-size: 14px; }
.error { color: var(--poor); font-size: 14px; min-height: 1.2em; }

/* sections */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 680px; margin: 0 0 26px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow { color: var(--brand); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
section { padding: 44px 0; }
section h2 { font-size: clamp(26px, 4vw, 36px); margin: 6px 0 14px; letter-spacing: -0.01em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.band { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; gap: 28px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.footer { padding: 34px 0 50px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 30px; }
.footer a { color: var(--muted); margin-right: 16px; display: inline-block; margin-bottom: 6px; }

/* phone mock with the match */
.phone { max-width: 320px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 34px; padding: 22px 18px; box-shadow: var(--shadow); }
.big-num { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.pill { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.pill b { font-size: 16px; }
.good { color: var(--good); } .close { color: var(--close); } .poor { color: var(--poor); } .muted { color: var(--muted); }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row:last-child { border-bottom: 0; }

/* forms page */
.auth-box { max-width: 460px; margin: 40px auto; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 4px; }
.role-pick button { text-align: left; padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.role-pick button.on { border-color: var(--brand); background: var(--brand-soft); }
.role-pick b { display: block; font-size: 17px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* dashboards */
.dash { display: grid; gap: 16px; grid-template-columns: 300px 1fr; padding: 24px 0; }
/* a wide results table must scroll inside its card, not widen the page */
.dash > * { min-width: 0; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.list { display: flex; flex-direction: column; gap: 6px; }
.list button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.list button.on { border-color: var(--brand); background: var(--brand-soft); }
.badge { flex-shrink: 0; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--poor); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.note { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin: 8px 0; }
.note.pro { background: var(--brand-soft); }
.note .who { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.tabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.demo-banner { background: #fff4d6; color: #5a4300; text-align: center; padding: 8px 16px; font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demo-banner { background: #3a2f10; color: #f3e2b5; } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.chart { width: 100%; height: 160px; }
.code-box { font: 700 26px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; padding: 12px 16px; background: var(--surface-2); border-radius: 12px; display: inline-block; }
.hidden { display: none !important; }

/* training guides (2026-11-17) */
.article { max-width: 760px; }
.article h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 8px 0 14px; letter-spacing: -0.02em; }
.article h2 { font-size: clamp(22px, 3.4vw, 28px); margin: 34px 0 10px; }
.article p.lead { font-size: 19px; color: var(--muted); }
.article th, .article td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qa { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa summary { cursor: pointer; font-weight: 650; padding: 10px 0; list-style-position: inside; }
.qa > div { color: var(--text); padding: 0 0 10px; }
.qa > div p { margin: 0 0 10px; }
.qa code { font-size: 14px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

/* sign in with Apple (Apple's own look: black, or white in dark mode) */
.btn.apple { background: #000; color: #fff; border-color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.apple { background: #fff; color: #000; border-color: #fff; } }
:root[data-theme="dark"] .btn.apple { background: #fff; color: #000; border-color: #fff; }
.consent { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.consent .check { margin: 0; }
.consent p.hint { margin: 6px 0 0 28px; }
.select { user-select: all; }
/* phone width: keep the top bar and footer links on one line each */
.logo, .nav .links a, .footer a { white-space: nowrap; }
@media (max-width: 420px) {
  .nav .wrap { gap: 10px; }
  .nav .links { gap: 10px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
}
