/* Caddie, the landing page. Same ground and the same square-cut look as the app; colours from brand.css. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root { color-scheme: dark; --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif; --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; --pad: max(20px, env(safe-area-inset-left, 0px)); --wide: 1120px; }
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--night); color: var(--chalk); font: 400 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums lining-nums; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 650; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(46px, 9.5vw, 104px); line-height: 0.98; padding-bottom: 0.06em; }
h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; }
h3 { font: 650 20px/1.2 var(--display); letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--flag); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--chalk); color: var(--night); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--mist); }
.up { color: var(--green); }
.down { color: var(--red); }
.fine { font-size: 14px; color: var(--mist); max-width: 62ch; }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; color: var(--chalk); max-width: 34ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; background: var(--chalk); color: var(--night); border: 1px solid var(--chalk); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer; font-family: inherit; }
.btn:hover { background: #fff; }
.btn-line { background: transparent; color: var(--chalk); border-color: var(--line); }
.btn-line:hover { background: var(--turf); border-color: var(--mist); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }

.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--pad); padding-top: max(12px, env(safe-area-inset-top, 0px)); background: var(--night); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.mark { width: 28px; height: 28px; flex: none; }
.mark .pin { fill: var(--flag); }
.nav-links { display: none; gap: 26px; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--mist); }
.nav-links a:hover { color: var(--chalk); }

main { display: flex; flex-direction: column; }
.hero, .band, .foot { padding-left: var(--pad); padding-right: var(--pad); }
.hero { display: grid; gap: 36px; padding-top: 44px; padding-bottom: 56px; max-width: var(--wide); width: 100%; margin: 0 auto; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-show { display: grid; gap: 14px; align-content: start; }
.card { border: 1px solid var(--line); background: var(--turf); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--mist); }
.dot { width: 8px; height: 8px; background: var(--flag); }
.setup-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coin { font: 700 26px/1 var(--display); letter-spacing: -0.02em; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.tag.long { color: var(--green); border-color: var(--green); }
.tag.short { color: var(--red); border-color: var(--red); }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.levels > div { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.levels > div + div { border-left: 1px solid var(--line); }
.levels span { font-size: 12px; color: var(--mist); font-weight: 600; }
.levels b { font-size: 16px; }
.live p { font-size: 15px; }
#live-body { display: flex; flex-direction: column; gap: 12px; }
.graded-top { display: flex; gap: 14px; align-items: center; }
.graded-top > div { display: flex; flex-direction: column; gap: 2px; }
.grade { width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid var(--chalk); font: 800 32px/1 var(--display); flex: none; }
.parts { display: flex; flex-direction: column; }
.parts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.parts .weak span, .parts .weak b { color: var(--gold); }

.band { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line); display: grid; gap: 30px; }
.band > *, .foot > * { max-width: var(--wide); width: 100%; margin-left: auto; margin-right: auto; }
.three { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.three article { background: var(--night); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.three p, .rules span, .faq p { color: var(--mist); }
.split { align-items: start; }
.split > div:first-child { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.rules { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rules li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules b { font: 650 20px/1.2 var(--display); }
.bagdemo dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
.bagdemo dt { color: var(--mist); }
.bagdemo dd { font-weight: 700; text-align: right; }
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ca code { font: 600 15px/1.3 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; border: 1px solid var(--line); padding: 10px 12px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 780px; margin-left: auto; margin-right: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 650 19px/1.25 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mist); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; max-width: 62ch; }
.end { justify-items: start; }
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; }
.foot nav { display: flex; gap: 22px; font-weight: 600; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
  .three { grid-template-columns: repeat(3, 1fr); }
  .three article { padding: 32px 28px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split > * { margin: 0; max-width: none; }
  .band.split { padding-left: max(var(--pad), calc((100vw - var(--wide)) / 2)); padding-right: max(var(--pad), calc((100vw - var(--wide)) / 2)); }
  .band { padding-top: 96px; padding-bottom: 96px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-show .card { animation: settle 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-show .card + .card { animation-delay: 0.12s; }
  @keyframes settle { from { transform: translateY(14px); opacity: 0; } }
  .dot { animation: blink 1.6s steps(2, jump-none) infinite; }
  @keyframes blink { to { opacity: 0.25; } }
}
