/* Team8 Studios site. System fonts only (the CSP allows no outside fonts). */
:root {
  --bg: #f6f5ef; --surface: #ffffff; --ink: #24362e; --muted: #66736b; --line: #e3e3d9;
  --accent: #3d7659; --coral: #ed9277;
  --t8-bg: #eaf1ea; --ac-bg: #072b30; --ac-ink: #e8f3f1; --ac-muted: #a3c0bc; --lime: #c2ff00;
  --phone: #ffffff; --phone-line: #ecece4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141c18; --surface: #1c2621; --ink: #e9eee9; --muted: #9eaba3; --line: #2c3832;
    --accent: #7cc19c; --t8-bg: #18241e; --phone: #1f2a24; --phone-line: #2e3a33;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.01em; text-decoration: none; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; font-size: 15px; color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.top nav a:hover { color: var(--ink); background: var(--line); }

/* hero */
.hero { padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(48px, 8vw, 88px); }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
h1 { margin: 0; max-width: 17ch; text-wrap: balance; font-size: clamp(38px, 7vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.lede { max-width: 34em; margin: 20px 0 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.hero-apps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: transform .15s; }
.mini:hover { transform: translateY(-2px); }
.mini img { border-radius: 10px; }
.mini span { display: grid; font-size: 13px; color: var(--muted); line-height: 1.3; }
.mini b { font-size: 16px; color: var(--ink); }

/* app sections */
.app { padding: clamp(56px, 9vw, 100px) 0; scroll-margin-top: 60px; }
.app-team8 { background: var(--t8-bg); }
.app-arena { background: var(--ac-bg); color: var(--ac-ink); }
.app-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-head img { border-radius: 16px; box-shadow: 0 6px 18px rgb(0 0 0 / .12); }
h2 { margin: 0; font-size: clamp(30px, 4.5vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
.tag { margin: 2px 0 0; font-weight: 600; color: var(--accent); }
.app-arena .tag { color: var(--lime); }
.app-copy > p { margin: 0; max-width: 34em; font-size: 17px; }
.feats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.feats li { position: relative; padding-left: 26px; color: var(--muted); }
.feats li b { color: var(--ink); font-weight: 650; }
.feats li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.app-arena .feats li { color: var(--ac-muted); }
.app-arena .feats li b { color: var(--ac-ink); }
.app-arena .feats li::before { background: var(--lime); }

/* store buttons: placeholders until the apps are in the stores */
.get { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store { display: grid; min-width: 158px; padding: 9px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 18px; line-height: 1.15; opacity: .55; cursor: not-allowed; user-select: none; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.app-arena .store { background: var(--ac-ink); color: var(--ac-bg); }
.web { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 0 !important; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; }
@media (prefers-color-scheme: dark) { .app-team8 .btn { color: #10201a; } }
.btn:hover { filter: brightness(1.08); }
.app-arena .btn { background: var(--lime); color: var(--ac-bg); }
.pill { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; border: 1px solid currentColor; opacity: .65; }

/* phone illustrations */
.phone { justify-self: center; width: min(280px, 100%); aspect-ratio: 9 / 18; padding: 12px; border-radius: 40px; background: #1b2420; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .35); }
.screen { height: 100%; border-radius: 30px; padding: 22px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.s-team8 { background: var(--phone); color: var(--ink); }
.s-arena { background: #0c3a40; color: var(--ac-ink); }
.s-bar { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 15px; margin-bottom: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.g { background: var(--coral); } .dot.l { background: var(--lime); }
.s-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--phone-line); font-size: 13px; }
.s-card div { display: grid; line-height: 1.3; }
.s-card i { font-style: normal; color: var(--muted); font-size: 12px; }
.ev { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c); }
.tick { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; }
.tick.off { background: none; border: 2px solid var(--phone-line); }
.s-avatars { display: flex; margin-top: auto; padding-left: 8px; }
.s-avatars span { width: 36px; height: 36px; margin-left: -8px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 14px; border: 3px solid var(--phone); }
.slots { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 6px; align-items: center; font-size: 11px; color: var(--ac-muted); }
.slots i { height: 30px; border-radius: 8px; background: rgb(255 255 255 / .07); }
.slots i.b { background: rgb(255 255 255 / .2); }
.slots i.me { background: var(--lime); }
.s-card.a { margin-top: auto; border-color: rgb(255 255 255 / .12); justify-content: space-between; }
.s-card.a i { color: var(--ac-muted); }
.go { padding: 6px 12px; border-radius: 9px; background: var(--lime); color: var(--ac-bg); font-weight: 750; }

/* footer */
.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; }

@media (max-width: 760px) {
  .app-in { grid-template-columns: 1fr; }
  .phone { width: min(240px, 72%); }
  .top nav a { padding: 8px 6px; }
}
@media (max-width: 330px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mini { transition: none; } }
