/* ==========================================================================
   7even Sports — Design exploration foundation
   Shared tokens, phone frame, and primitives used by every mockup page.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;1,600;1,700;1,800;1,900&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  /* Brand */
  --gold: #D4A017;
  --gold-hi: #E8B83A;
  --gold-lo: #B8860B;
  --gold-ink: #1A1300;          /* text on gold */
  --gold-wash: rgba(212, 160, 23, 0.12);
  --gold-line: rgba(212, 160, 23, 0.35);

  /* Surfaces (dark) */
  --bg: #000000;
  --bg-1: #0B0B0C;              /* screen bg alt */
  --s-1: #121213;               /* card */
  --s-2: #1A1A1C;               /* raised / input */
  --s-3: #232326;               /* pressed / chip */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Text */
  --t-1: #F5F5F4;
  --t-2: #A3A3A8;
  --t-3: #6B6B70;

  /* Semantic */
  --ok: #22C55E;
  --err: #EF4444;
  --live: #FF3B30;

  /* Tier */
  --tier-free: #8A8A8F;
  --tier-basic: #D4A017;
  --tier-pro: #3B82F6;

  /* Type */
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Geist", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Placeholder photography (Unsplash — swap for real 7even community shots) */
  --img-group-run: url("https://images.unsplash.com/photo-1552674605-db6ffd4facb5?w=900&q=70");
  --img-track: url("https://images.unsplash.com/photo-1502904550040-7534597429ae?w=900&q=70");
  --img-sprint: url("https://images.unsplash.com/photo-1461896836934-ffe607ba8211?w=900&q=70");
  --img-road: url("https://images.unsplash.com/photo-1571008887538-b36bb32f4571?w=900&q=70");
  --img-stairs: url("https://images.unsplash.com/photo-1476480862126-209bfaa8edc8?w=900&q=70");
  --img-trail: url("https://images.unsplash.com/photo-1530143311094-34d807799e8f?w=900&q=70");
  --img-football: url("https://images.unsplash.com/photo-1579952363873-27f3bade9f55?w=900&q=70");
  --img-court: url("https://images.unsplash.com/photo-1554068865-24cecd4e34b8?w=900&q=70");
  --img-boxing: url("https://images.unsplash.com/photo-1549719386-74dfcbf7dbed?w=900&q=70");
  --img-beach: url("https://images.unsplash.com/photo-1612872087720-bb876e2e67d1?w=900&q=70");
  --img-gym: url("https://images.unsplash.com/photo-1594737625785-a6cbdabd333c?w=900&q=70");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

/* ==========================================================================
   Presentation page (the canvas around the phones)
   ========================================================================== */
body.board {
  font-family: var(--f-body);
  background: #F4F3EF;
  color: #141414;
  min-height: 100vh;
}
.board-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 40px;
  background: rgba(244, 243, 239, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-size: 13px;
}
.board-top a { color: #141414; text-decoration: none; opacity: .6; }
.board-top a:hover { opacity: 1; }
.board-top .crumb-sep { opacity: .3; }
.board-top .spacer { flex: 1; }
.board-top .nav-pn { display: flex; gap: 8px; }
.board-top .nav-pn a {
  opacity: 1; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12); background: #fff;
}
.board-head { padding: 48px 40px 8px; max-width: 1400px; margin: 0 auto; }
.board-head .eyebrow {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #8B6914; font-weight: 600;
}
.board-head h1 {
  font-family: var(--f-display); font-weight: 800; font-style: italic;
  font-size: 56px; line-height: 1; letter-spacing: -.01em; margin: 10px 0 14px;
  text-transform: uppercase;
}
.board-head p.lede { max-width: 760px; font-size: 16px; line-height: 1.55; color: #3d3d3d; }
.board-head .refs { margin-top: 14px; font-size: 13px; color: #6b6b6b; }
.board-head .refs a { color: #141414; }

.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(390px, 1fr));
  gap: 40px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 1320px) { .options { grid-template-columns: repeat(2, minmax(390px, 1fr)); } }
@media (max-width: 880px)  { .options { grid-template-columns: 1fr; justify-items: center; } }

.option { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.option-meta { width: 390px; min-height: 310px; }
.option-meta .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.option-meta .tag b {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #141414; color: var(--gold); font-family: var(--f-display); font-size: 16px; font-style: italic;
}
.option-meta h2 { font-size: 20px; font-weight: 600; margin: 10px 0 6px; letter-spacing: -.01em; }
.option-meta p { font-size: 14px; line-height: 1.55; color: #4a4a4a; }
.option-meta ul { margin: 10px 0 0 18px; font-size: 13px; line-height: 1.6; color: #4a4a4a; }
.option-meta .tradeoff { margin-top: 10px; font-size: 13px; color: #7a7a7a; }
.option-meta .tradeoff strong { color: #141414; font-weight: 600; }

/* ==========================================================================
   Phone frame — 390 × 844 (iPhone 15/16)
   ========================================================================== */
.phone {
  position: relative;
  width: 390px; height: 844px;
  border-radius: 54px;
  background: var(--bg);
  color: var(--t-1);
  font-family: var(--f-body);
  font-size: 15px;
  overflow: hidden;
  box-shadow:
    0 0 0 10px #0d0d0d,
    0 0 0 11px #2a2a2a,
    0 40px 80px -20px rgba(0,0,0,.45),
    0 20px 40px -20px rgba(0,0,0,.35);
  flex-shrink: 0;
}
.phone.tall { height: auto; min-height: 844px; } /* for scroll-length previews */
.phone .screen {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
}
.phone .screen::-webkit-scrollbar { display: none; }
.phone .screen.has-tabbar { padding-bottom: 96px; }

/* Status bar */
.sb {
  height: 54px; padding: 18px 30px 0 36px;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  position: relative; z-index: 20;
}
.sb .sb-r { display: flex; gap: 6px; align-items: center; padding-top: 2px; }
.sb svg { display: block; }
.sb.abs { position: absolute; top: 0; left: 0; right: 0; }
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 124px; height: 36px; border-radius: 20px; background: #000; z-index: 30;
}
.home-ind {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 136px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.85); z-index: 60;
}
.home-ind.dark { background: rgba(0,0,0,.8); }

/* Tab bar */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  height: 88px; padding: 10px 18px 0;
  display: flex; justify-content: space-around; align-items: flex-start;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.tabbar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 500; color: var(--t-3); width: 64px;
}
.tabbar .tab.on { color: var(--gold); }
.tabbar .tab svg { width: 24px; height: 24px; }
/* Floating pill tab bar variant */
.tabbar.float {
  left: 16px; right: 16px; bottom: 26px; height: 64px; padding: 0 8px;
  border-radius: 32px; align-items: center;
  background: rgba(24,24,26,.9); border: 1px solid var(--line-2);
}
.tabbar.float .tab { font-size: 10px; }

/* ==========================================================================
   Primitives
   ========================================================================== */
.px { padding-left: 20px; padding-right: 20px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.grow { flex: 1; }

/* Type */
.display { font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.005em; line-height: .92; }
.num { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.h1 { font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.h2 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.body { font-size: 15px; line-height: 1.45; color: var(--t-1); }
.sub { font-size: 13px; color: var(--t-2); line-height: 1.4; }
.cap { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--t-3); }
.gold { color: var(--gold); }
.muted { color: var(--t-2); }
.faint { color: var(--t-3); }
.mono { font-family: var(--f-mono); }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; border-radius: var(--r-md);
  font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  border: 0; cursor: pointer; width: 100%;
}
.btn.gold { background: var(--gold); color: var(--gold-ink); }
.btn.white { background: #fff; color: #000; }
.btn.ghost { background: transparent; color: var(--t-1); border: 1px solid var(--line-2); }
.btn.dark { background: var(--s-2); color: var(--t-1); }
.btn.pill { border-radius: var(--r-pill); }
.btn.sm { height: 38px; font-size: 14px; border-radius: 10px; width: auto; padding: 0 16px; }
.btn.sm.pill { border-radius: 999px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--s-2); color: var(--t-1); flex-shrink: 0;
}
.icon-btn.glass { background: rgba(0,0,0,.45); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.12); }
.icon-btn svg { width: 20px; height: 20px; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--t-2); }
.input {
  height: 54px; border-radius: var(--r-md); background: var(--s-1);
  border: 1px solid var(--line); padding: 0 16px;
  display: flex; align-items: center; gap: 10px; color: var(--t-1); font-size: 16px;
}
.input.focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash); }
.input .ph { color: var(--t-3); }
.input svg { width: 18px; height: 18px; color: var(--t-3); flex-shrink: 0; }

/* Chips / segmented */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--t-2);
  background: var(--s-1); border: 1px solid var(--line);
}
.chip.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); font-weight: 600; }
.chip.on-w { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--s-1); border: 1px solid var(--line); }
.seg > div { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--t-2); }
.seg > .on { background: var(--s-3); color: var(--t-1); font-weight: 600; }
.seg.gold > .on { background: var(--gold); color: var(--gold-ink); }

/* Tabs (underline) */
.utabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.utabs > div { padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--t-3); position: relative; }
.utabs > .on { color: var(--t-1); font-weight: 600; }
.utabs > .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); border-radius: 2px; }

/* Cards */
.card { background: var(--s-1); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card.pad { padding: 16px; }
.hair { height: 1px; background: var(--line); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Photo */
.photo { background-color: #1a1a1a; background-size: cover; background-position: center; position: relative; }
.photo.shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%); }
.photo > * { position: relative; z-index: 1; }

/* Avatar */
.av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #3a3020, #1c1c1c); color: var(--gold);
  border: 1px solid var(--line-2); background-size: cover; background-position: center;
}
.av.sm { width: 28px; height: 28px; font-size: 11px; }
.av.lg { width: 72px; height: 72px; font-size: 24px; }
.av.xl { width: 96px; height: 96px; font-size: 32px; }
.av-stack { display: flex; }
.av-stack .av { margin-left: -8px; border: 2px solid var(--bg); }
.av-stack .av:first-child { margin-left: 0; }

/* Badges / pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--s-3); color: var(--t-2);
}
.pill.gold { background: var(--gold-wash); color: var(--gold); }
.pill.solid-gold { background: var(--gold); color: var(--gold-ink); }
.pill.live { background: rgba(255,59,48,.15); color: #FF6259; }
.pill.on-photo { background: rgba(0,0,0,.6); backdrop-filter: blur(8px); color: #fff; }
.pill.ok { background: rgba(34,197,94,.14); color: #4ADE80; }
.pill.pro { background: rgba(59,130,246,.15); color: #60A5FA; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Progress */
.bar { height: 6px; border-radius: 3px; background: var(--s-3); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

/* Map placeholder (dark stylized) */
.map {
  position: relative; overflow: hidden; background: #0e1114;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map svg.roads { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Bottom sheet */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--s-1); border-top-left-radius: 28px; border-top-right-radius: 28px;
  border-top: 1px solid var(--line-2);
}
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 0; }
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: 44; }

/* Sticky CTA footer */
.cta-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 14px 20px 34px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.92) 28%);
}

/* Buttons that are also pills keep their button fill */
.btn.pill.gold { background: var(--gold); color: var(--gold-ink); }
.btn.pill.dark { background: var(--s-2); color: var(--t-1); }
.btn.pill { height: 54px; font-size: 16px; padding: 0 20px; }
.btn.sm.pill { height: 38px; font-size: 14px; padding: 0 16px; }

/* ==========================================================================
   Prototype layer (see assets/proto.js)
   ========================================================================== */
.phone .state {
  position: absolute; inset: 0; z-index: 70;
  background: var(--bg); color: var(--t-1);
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(28px);
  transition: opacity .22s ease, transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s;
}
.phone .state::-webkit-scrollbar { display: none; }
.phone .state[data-anim="up"] { transform: translateY(36px); }
.phone .state[data-anim="fade"] { transform: none; }
.phone .state.on {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .22s ease, transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s;
}
/* Overlay states: transparent, animate their sheet/dialog instead */
.phone .state.overlay { background: transparent; transform: none; overflow: hidden; }
.phone .state.overlay > .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s ease; }
.phone .state.overlay.on > .scrim { opacity: 1; }
.phone .state.overlay > .sheet { transform: translateY(104%); transition: transform .36s cubic-bezier(.2,.8,.2,1); }
.phone .state.overlay.on > .sheet { transform: none; }
.phone .state.overlay > .dialog {
  position: absolute; left: 24px; right: 24px; top: 50%; z-index: 46;
  transform: translateY(-46%) scale(.96); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
  background: var(--s-1); border: 1px solid var(--line-2); border-radius: 26px; padding: 22px;
}
.phone .state.overlay.on > .dialog { transform: translateY(-50%) scale(1); opacity: 1; }

/* Clickable things */
.phone [data-go], .phone [data-toast], .phone [data-swap] { cursor: pointer; }
.phone.p-hint [data-go], .phone.p-hint [data-toast], .phone.p-hint [data-swap] {
  outline: 2px solid rgba(212,160,23,.9); outline-offset: 2px;
  animation: p-hint 1.1s ease forwards;
}
@keyframes p-hint { 0%, 60% { outline-color: rgba(212,160,23,.9); } 100% { outline-color: rgba(212,160,23,0); } }

/* Toast inside the phone */
.p-toast {
  position: absolute; left: 50%; top: 58px; z-index: 95;
  transform: translate(-50%, -16px); opacity: 0;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 11px 16px 11px 13px; border-radius: 999px;
  background: rgba(30,30,32,.96); border: 1px solid var(--line-2);
  color: var(--t-1); font: 600 14px var(--f-body);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.p-toast svg { color: var(--gold); }
.p-toast.in { transform: translate(-50%, 0); opacity: 1; }

/* Flow chips under a phone (presentation canvas, light) */
.p-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.p-flow {
  width: 390px; min-height: 66px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; align-content: flex-start; justify-content: center;
  font-family: var(--f-body);
}
.p-flow .p-lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8B6914; margin-right: 4px; }
.p-chip {
  height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(0,0,0,.14); background: rgba(255,255,255,.7);
  font: 500 12.5px var(--f-body); color: #333;
}
.p-chip:hover { border-color: #141414; }
.p-chip.on { background: #141414; color: #fff; border-color: #141414; }

/* Home indicator always sits above prototype states */
.phone .home-ind { z-index: 100; }
