/* WisePunt subscriber app — UI mocks
   Extends landing brand tokens. Mobile-first. */

:root {
  --ink: #0B1410;
  --ink-2: #0F1C16;
  --ink-3: #15241C;
  --ink-4: #1A2E24;
  --brass: #C6A45A;
  --brass-soft: #D4B87A;
  --brass-dim: rgba(198, 164, 90, 0.14);
  --brass-glow: rgba(198, 164, 90, 0.22);
  --cream: #E8EDE8;
  --sage: #7A9A86;
  --sage-dim: rgba(122, 154, 134, 0.18);
  --muted: #9AADA3;
  --line: rgba(232, 237, 232, 0.08);
  --line-strong: rgba(232, 237, 232, 0.14);
  --danger-soft: #A87868;
  --ok: #7A9A86;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.28);
  --max: 720px;
  --max-wide: 960px;
  --font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --nav-h: 60px;
  --bottom-nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--cream);
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(198, 164, 90, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(122, 154, 134, 0.05), transparent 50%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brass-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: var(--radius-xs);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Layout —— */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

.app-shell--auth {
  padding-bottom: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2rem, var(--max-wide));
}

.main {
  flex: 1;
  padding: 1.25rem 0 2rem;
}

/* —— Sample banner —— */
.sample-banner {
  background: var(--brass-dim);
  border-bottom: 1px solid rgba(198, 164, 90, 0.25);
  color: var(--brass-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.4rem 1rem;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 20, 16, 0.88);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.65rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  text-decoration: none;
}

.logo:hover {
  color: var(--cream);
}

.logo__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.topbar__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.topbar__nav a:hover {
  color: var(--cream);
}

.topbar__nav a.is-active {
  color: var(--ink);
  background: var(--brass);
  font-weight: 620;
}

.topbar__nav a.is-active:hover {
  color: var(--ink);
  background: var(--brass-soft);
}

.badge-plan {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--sage-dim);
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .topbar__nav {
    display: flex;
  }
  .badge-plan {
    display: inline-flex;
  }
  .app-shell {
    padding-bottom: 0;
  }
  .bottom-nav {
    display: none !important;
  }
}

/* —— Bottom nav (mobile) —— */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  background: rgba(11, 20, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.bottom-nav a svg {
  width: 22px;
  height: 22px;
}

.bottom-nav a.is-active {
  color: var(--brass);
}

.bottom-nav a:hover {
  color: var(--brass-soft);
}

/* —— Page header —— */
.page-head {
  margin-bottom: 1.35rem;
}

.page-head__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.page-head__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.back-link:hover {
  color: var(--brass-soft);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 620;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brass);
  color: var(--ink) !important;
}

.btn--primary:hover {
  background: var(--brass-soft);
  color: var(--ink) !important;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(232, 237, 232, 0.22);
  color: var(--cream) !important;
}

.btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass-soft) !important;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* —— Forms —— */
.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
}

.field__hint {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--sage);
}

.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--ink-3);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder {
  color: var(--sage);
}

.input:hover {
  border-color: rgba(232, 237, 232, 0.22);
}

.input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-dim);
}

/* —— Cards —— */
.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card--pad {
  padding: 1.25rem 1.2rem;
}

.card--interactive {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.card--interactive:hover {
  border-color: rgba(198, 164, 90, 0.35);
  color: inherit;
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.card--interactive:focus-visible {
  outline-offset: 4px;
}

/* —— Alert cards —— */
.alert-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.alert-card {
  padding: 1.1rem 1.15rem;
}

.alert-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.alert-card__meeting {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage);
}

.alert-card__time {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brass-soft);
  font-variant-numeric: tabular-nums;
}

.alert-card__horse {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--cream);
}

.alert-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage);
}

.stat__value {
  font-size: 0.95rem;
  font-weight: 620;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.stat__value--brass {
  color: var(--brass-soft);
}

.alert-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chip--brass {
  background: var(--brass-dim);
  color: var(--brass-soft);
}

.chip--sage {
  background: var(--sage-dim);
  color: var(--sage);
}

.alert-card__cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brass-soft);
}

.feed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.feed-meta__count {
  font-size: 0.85rem;
  color: var(--muted);
}

.feed-meta__count strong {
  color: var(--cream);
  font-weight: 620;
}

/* —— Pick detail —— */
.pick-hero {
  margin-bottom: 1.15rem;
}

.pick-hero__meeting {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
}

.pick-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.7rem, 4.5vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pick-hero__race {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 560px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric {
  padding: 1rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.metric__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--sage);
}

.metric__value {
  font-size: 1.2rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.metric__value--brass {
  color: var(--brass-soft);
}

.metric--highlight {
  border-color: rgba(198, 164, 90, 0.35);
  background: linear-gradient(160deg, rgba(198, 164, 90, 0.1), var(--ink-3) 70%);
}

.section-card {
  padding: 1.2rem 1.15rem;
  margin-bottom: 0.85rem;
}

.section-card h2 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 620;
  color: var(--cream);
}

.section-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-card p:last-child {
  margin-bottom: 0;
}

.kv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.kv-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.92rem;
}

.kv-list__k {
  color: var(--sage);
}

.kv-list__v {
  color: var(--cream);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.risk-note {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(168, 120, 104, 0.1);
  border: 1px solid rgba(168, 120, 104, 0.28);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.risk-note__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--danger-soft);
  margin-top: 0.1rem;
}

.why-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.why-list li {
  margin-bottom: 0.45rem;
}

.why-list li:last-child {
  margin-bottom: 0;
}

/* —— Auth / login —— */
.auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.auth-card {
  width: min(100% - 2rem, 420px);
  padding: 2rem 1.5rem;
}

@media (min-width: 480px) {
  .auth-card {
    padding: 2.25rem 2rem;
  }
}

.auth-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-card__logo img {
  height: 40px;
  width: auto;
}

.auth-card h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-card__lede {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-sent {
  text-align: center;
}

.auth-sent__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--brass-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
}

.auth-sent__icon svg {
  width: 24px;
  height: 24px;
}

.auth-sent h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.35rem;
}

.auth-sent p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-sent__email {
  color: var(--cream);
  font-weight: 620;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--sage);
}

.auth-footer a {
  color: var(--sage);
}

.is-hidden {
  display: none !important;
}

/* —— Empty state —— */
.empty {
  text-align: center;
  padding: 3rem 1.25rem;
}

.empty__visual {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  background: var(--sage-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
}

.empty__visual svg {
  width: 32px;
  height: 32px;
}

.empty h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.empty p {
  margin: 0 auto 0.75rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.empty__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 500;
}

.empty__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.8;
}

/* —— Settings —— */
.settings-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.settings-tabs::-webkit-scrollbar {
  display: none;
}

.settings-tab {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.settings-tab:hover {
  color: var(--cream);
  border-color: rgba(232, 237, 232, 0.25);
}

.settings-tab.is-active {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.settings-panel {
  display: none;
}

.settings-panel.is-active {
  display: block;
}

.settings-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 620;
}

.settings-panel__intro {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.toggle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row__text {
  min-width: 0;
}

.toggle-row__label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream);
}

.toggle-row__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--sage);
}

/* Switch */
.switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--ink-4);
  border: 1px solid var(--line-strong);
  transition: background 0.2s, border-color 0.2s;
}

.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s, background 0.2s;
}

.switch input:checked + .switch__track {
  background: var(--brass-dim);
  border-color: rgba(198, 164, 90, 0.45);
}

.switch input:checked + .switch__track .switch__thumb {
  transform: translateX(18px);
  background: var(--brass);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.billing-card {
  padding: 1.2rem 1.15rem;
}

.billing-card__plan {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.billing-card__name {
  margin: 0 0 0.25rem;
  font-weight: 620;
  font-size: 1.05rem;
}

.billing-card__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 560;
  color: var(--brass-soft);
  letter-spacing: -0.02em;
}

.billing-card__price span {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sage);
}

.billing-card__status {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.billing-card__status strong {
  color: var(--sage);
  font-weight: 620;
}

/* —— Index / gallery —— */
.gallery-hero {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.gallery-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--brass-dim);
  color: var(--brass-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

.gallery-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
}

.gallery-hero p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
}

.screen-grid {
  display: grid;
  gap: 0.85rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .screen-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.screen-tile {
  display: block;
  padding: 1.25rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.screen-tile:hover {
  border-color: rgba(198, 164, 90, 0.4);
  color: inherit;
  transform: translateY(-2px);
}

.screen-tile__num {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}

.screen-tile h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 620;
}

.screen-tile p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.screen-tile__file {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sage);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ia-notes {
  margin: 0 0 2.5rem;
  padding: 1.35rem 1.25rem;
}

.ia-notes h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 620;
}

.ia-notes ol,
.ia-notes ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.ia-notes li {
  margin-bottom: 0.4rem;
}

.ia-notes li:last-child {
  margin-bottom: 0;
}

.ia-notes code {
  font-size: 0.82em;
  color: var(--brass-soft);
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.25rem; }

/* —— Odds / terms caveat (alerts + pick detail) —— */
.odds-caveat {
  display: flex;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  margin: 0 0 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(122, 154, 134, 0.12);
  border: 1px solid rgba(122, 154, 134, 0.32);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.odds-caveat__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brass-soft);
  margin-top: 0.1rem;
}

.odds-caveat strong {
  color: var(--cream);
  font-weight: 620;
}

.feed-caveat {
  margin-bottom: 1rem;
}
