/* foxyhole.com only; the shared look is /shared/css/foxyhole.css. */
html { scroll-padding-top: 76px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* until /api/me answers, the hero buttons wait (a signed-in visitor would otherwise see Create account flash) */
body:not(.known) .hero-cta { visibility: hidden; }

/* --- hero ----------------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: center; padding-block: 56px 40px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: .98; }
.lede { margin: 18px 0 0; max-width: 58ch; color: var(--text-muted); font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-cta .fx-btn { height: 44px; padding: 0 20px; font-size: 15px; }
.hero-mark img { width: 100%; height: auto; display: block; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.stat { min-width: 120px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font: 800 28px/1 "Big Shoulders Display", system-ui, sans-serif; }
.stat span { color: var(--text-muted); font-size: 12.5px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 32px 24px; }
  .hero-mark { display: none; }
  /* signed in on a phone: the app buttons repeat the Apps cards, so the hero is just the greeting and the counts */
  .signed-in .hero { padding-block: 24px 4px; }
  .signed-in .hero-cta { display: none; }
  .signed-in .lede { display: none; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .stat { min-width: 0; padding: 10px 12px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 12px; }
}

/* --- sections ------------------------------------------------------------------------------- */
.section { padding-top: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 16px; }
.section-head h2 { font-size: 32px; }
.section-head p { margin: 0; }
#emailNotice:not(:empty) { margin-bottom: 8px; }

/* --- app cards ------------------------------------------------------------------------------ */
.apps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.app {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  padding: 22px 20px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); color: var(--text) !important; text-decoration: none;
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
}
.app::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.app[data-site="blueline"] { --c: var(--site-blueline); }
.app[data-site="baseline"] { --c: var(--site-baseline); }
.app[data-site="bettracker"] { --c: var(--site-bettracker); }
.app[data-site="jarvis"] { --c: var(--site-jarvis); }
.app[data-site="gridline"] { --c: var(--site-gridline); }
a.app:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, var(--border)); box-shadow: var(--shadow-lg); }
.app h3 { font-size: 28px; }
.app p { margin: 0; color: var(--text-muted); font-size: 14px; flex: 1; }
.app-sport { color: var(--c); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-go { margin-top: 12px; color: var(--c); font-weight: 600; font-size: 14px; }
.app.soon { opacity: .7; box-shadow: none; background: transparent; border-style: dashed; }
.app.soon .fx-badge { align-self: flex-start; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .app { transition: none; } a.app:hover { transform: none; } }

/* --- my picks ------------------------------------------------------------------------------- */
.picks-empty { display: grid; gap: 14px; justify-items: start; padding: 28px; }
.picks-empty h3 { font-size: 24px; }
.picks-empty p { margin: 0; color: var(--text-muted); max-width: 56ch; }
.picks-empty .row { display: flex; flex-wrap: wrap; gap: 8px; }
.picks-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--text-muted); font: 600 13px/1 "IBM Plex Sans", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg .n { margin-left: 5px; color: var(--text-muted); font-weight: 500; }
.picks-bar .manage { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.site-err { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--critical) 45%, var(--border)); color: var(--text); font-size: 14px; }

.day { margin-bottom: 18px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 8px; }
.day-head h3 { font-size: 20px; }
.day-head .muted { font-size: 13px; }
.day-head .today { color: var(--accent); }
.pick-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pick { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 12px 16px; border-top: 1px solid var(--border); }
.pick:first-child { border-top: 0; }
.pick-who { min-width: 0; }
.pick-who strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-who span { color: var(--text-muted); font-size: 13px; }
.pick-who .agree { color: var(--accent-2); font-weight: 600; }
.pick-price { text-align: right; }
.pick-price b { display: block; font: 600 15px/1.2 "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.pick-price b.plus { color: var(--good); }
.pick-price span { color: var(--text-muted); font-size: 12.5px; }
@media (max-width: 520px) {
  .pick { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .pick .fx-badge { grid-column: 1 / -1; justify-self: start; }
  .picks-bar .manage { margin-left: 0; }
}
.more { display: flex; justify-content: center; margin-top: 6px; }

/* loading placeholder */
.skel { height: 54px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: skel 1.2s linear infinite; margin-bottom: 8px; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
