/* Tokens mirror Trainer/Assets.xcassets: TrainerCobalt, TrainerCoral, TrainerSignalInk, TrainerChromeSurface. */
:root {
  color-scheme: light dark;
  --cobalt: #0750bd;
  --coral: #ff6344;
  --claude: #d97757;
  --bg: #f2f2f7;
  --surface: #fdfeff;
  --inset: #f2f4f8;
  --text: #07111f;
  --muted: #5d6573;
  --line: rgba(7, 17, 31, .08);
  --accent: var(--cobalt);
  --error: #c4321a;
  --ring: #fdfeff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --surface: #171b23;
    --inset: #222834;
    --text: #f3f5f9;
    --muted: #98a1b0;
    --line: rgba(255, 255, 255, .09);
    --accent: #4a8cf5;
    --error: #ff7a61;
    --ring: #171b23;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-align: center;
}

.sheet {
  width: 100%; max-width: 420px; overflow: hidden;
  border-radius: 32px; background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 30px 70px -30px rgba(7, 17, 31, .45);
}

.hero { position: relative; height: 200px; }
.hero-art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--surface) 98%);
}

.pair {
  position: absolute; left: 50%; bottom: -36px; z-index: 1; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
}
.tile {
  width: 64px; height: 64px; border-radius: 15px; display: grid; place-items: center;
  box-shadow: 0 0 0 4px var(--ring), 0 10px 24px rgba(7, 17, 31, .28);
}
.claude { background: var(--claude); color: #fff; }
.link {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--muted); box-shadow: 0 0 0 1px var(--line);
}

.body { padding: 52px 24px 24px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
h1 { margin: 0; font-size: 26px; line-height: 1.18; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
.lede { margin: 10px auto 0; max-width: 32ch; font-size: 16px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.lede b { color: var(--text); font-weight: 600; }
.loading { font-size: 16px; color: var(--muted); padding: 8px 0 12px; }
.error { font-size: 16px; line-height: 1.45; color: var(--error); font-weight: 600; padding: 8px 0 12px; }

.list {
  list-style: none; margin: 24px 0 0; padding: 4px 16px; text-align: left;
  border-radius: 18px; background: var(--inset);
}
.list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; }
.list li + li { border-top: 1px solid var(--line); }
.list b { display: block; font-size: 15px; font-weight: 600; }
.list span:not(.glyph) { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.glyph { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.glyph.blue { background: var(--cobalt); }
.glyph.coral { background: var(--coral); }
.glyph.gray { background: #8e8e93; }

.details { margin: 12px 0 0; padding: 0 16px; border-radius: 18px; background: var(--inset); font-size: 14px; text-align: left; }
.details div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; }
.details div + div { border-top: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; border: 0; border-radius: 14px;
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
button:active:not(:disabled) { transform: scale(.98); }
button:hover:not(:disabled) { opacity: .9; }
button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.approve { background: var(--cobalt); color: #fff; }
.deny { background: transparent; color: var(--accent); min-height: 44px; }
.apple { background: #000; color: #fff; }
.apple svg { margin-top: -3px; }
@media (prefers-color-scheme: dark) { .apple { background: #fff; color: #000; } }
button:disabled { opacity: .45; cursor: default; }

.foot { margin-top: 16px; font-size: 12px; color: var(--muted); }
.hidden { display: none; }

@media (min-width: 600px) { .hero { height: 220px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
