/* outpacetheoffice.com. Colours are the app's (apps/mobile/src/ui/theme.ts, features/fx/palette.ts). */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-condensed-800-latin.woff2) format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0d0e10;
  --glass: #1a1b1e;
  --raised: #232428;
  --border: #2e3035;
  --text: #f4f4f2;
  --muted: #a3a3a1;
  --faint: #8e8f93;
  --lime: #b6ff3b;
  --on-lime: #0b1a08;
  --bad: #ff4d4d;
  --dock: #ff8a1f;
  --posture: #3b82f6;
  --push: #d9a066;
  --markup: #ef4444;
  --swipe: #8b5cf6;
  --recognition: #f5c042;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--body); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--lime); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; text-wrap: pretty; }
h2, h3 { text-wrap: balance; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 8px; }

/* Type */
.display, h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; }
h1 { font-size: clamp(46px, 6.2vw, 84px); line-height: 0.92; margin: 0 0 22px; }
h2 { font-size: clamp(36px, 4.8vw, 60px); line-height: 0.95; margin: 0 0 16px; }
h3 { font-size: 19px; line-height: 1.25; margin: 0 0 6px; }
.lime { color: var(--lime); }
.kicker { display: inline-block; font: 800 15px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 36em; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(13, 14, 16, 0.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav .brand img { height: 30px; width: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--muted); text-decoration: none; font: 800 16px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--text); }
@media (max-width: 900px) { .nav ul { display: none; } .nav .badge { margin-left: auto; } }
@media (max-width: 420px) { .nav .brand img { height: 24px; } .nav .badge { padding: 8px 12px; font-size: 12px; } }

/* Badge and buttons */
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); color: var(--text); font: 800 14px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(182, 255, 59, 0.8); }
.badge.lg { padding: 15px 24px; font-size: 16px; }
.link-arrow { color: var(--text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: "\2192"; color: var(--lime); transition: transform 0.15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Sections */
section { padding: clamp(64px, 8vw, 104px) 0; }
.section-head { max-width: 880px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.rule { border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* Hero */
.hero { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(182, 255, 59, 0.10), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.hero .phone { justify-self: center; width: min(360px, 100%); height: auto; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phone { width: min(340px, 88%); }
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--glass); border: 1px solid var(--border); border-radius: 20px; padding: 26px 24px 28px; position: relative; }
.steps li::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 22px; right: 24px; font: 800 22px/1 var(--display); color: var(--faint); }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }
.icon-tile { width: 56px; height: 56px; border-radius: 14px; background: var(--raised); border: 1px solid rgba(255, 255, 255, 0.07); display: grid; place-items: center; margin-bottom: 22px; }
.icon-tile img, .icon-tile svg { width: 40px; height: 40px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Items */
/* 10 items: 5 x 2 wide, 2 x 5 mid, 1 column on phones. No 3- or 4-up, which strands a card. */
.items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1100px) { .items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .items { grid-template-columns: 1fr; } }
.item { --tint: var(--dock); background: var(--glass); border: 1px solid var(--border); border-radius: 18px; padding: 20px 18px 22px; display: flex; flex-direction: column; }
.item .icon-tile { margin: 0 0 18px; border-color: color-mix(in srgb, var(--tint) 45%, transparent); background: color-mix(in srgb, var(--tint) 8%, var(--raised)); }
.item h3 { margin: 6px 0 10px; font-size: 18px; }
.item q { color: var(--text); font-size: 15px; line-height: 1.45; quotes: "\201C" "\201D"; }
.item p { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.item > div:last-child { display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
@media (max-width: 1100px) { .item { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; } .item .icon-tile { grid-row: span 3; } .item h3 { margin-top: 4px; } }
.item[data-class="posture"] { --tint: var(--posture); }
.item[data-class="push"] { --tint: var(--push); }
.item[data-class="markup"] { --tint: var(--markup); }
.item[data-class="swipe"] { --tint: var(--swipe); }
.item[data-class="recognition"] { --tint: var(--recognition); }
.item .class { font: 800 12px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--tint) 78%, #fff); }

/* Organisers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.points li { padding-left: 34px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--lime); border-right-color: transparent; transform: rotate(-45deg); }
.points p { color: var(--muted); margin: 0; }
.mock { display: grid; gap: 16px; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.invite small { display: block; color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.invite .code { font: 800 clamp(48px, 6vw, 64px)/1 var(--display); letter-spacing: 0.08em; margin: 8px 0 12px; }
.invite .race { color: var(--muted); margin: 0; }
.settings { padding: 8px 24px; }
.settings dl { margin: 0; display: grid; grid-template-columns: 1fr auto; }
.settings dt, .settings dd { padding: 13px 0; border-bottom: 1px solid var(--border); margin: 0; }
.settings dt { color: var(--muted); }
.settings dd { color: var(--text); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.settings dt:nth-last-of-type(1), .settings dd:last-of-type { border-bottom: 0; }
.off { color: var(--faint) !important; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--glass); border: 1px solid var(--border); border-radius: 22px; padding: 32px; position: relative; }
.plan.pass { border-color: rgba(182, 255, 59, 0.6); background: linear-gradient(180deg, rgba(182, 255, 59, 0.05), transparent 40%), var(--glass); }
.plan .tag { position: absolute; top: -13px; right: 24px; background: var(--lime); color: var(--on-lime); font: 800 13px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.plan .name { font: 800 22px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.plan .price { font: 800 64px/1 var(--display); margin: 14px 0 4px; }
.plan.pass .price { color: var(--lime); }
.plan .per { color: var(--muted); margin: 0 0 22px; }
.plan ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.plan li { padding-left: 28px; position: relative; color: var(--text); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--lime); border-bottom: 2.5px solid var(--lime); transform: rotate(-45deg); }
.fine { color: var(--faint); font-size: 15px; margin: 24px auto 0; max-width: 920px; text-align: center; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 100px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; } }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 800 30px/1 var(--display); color: var(--lime); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 46em; }

/* Closing band */
.closing { text-align: center; position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(182, 255, 59, 0.12), transparent 70%); }
.closing .mark { width: 120px; margin: 0 auto 28px; }
.closing h2 { font-size: clamp(44px, 6.4vw, 84px); }
.closing .lede { margin: 0 auto 32px; }

/* Footer */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 40px 0 56px; color: var(--faint); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer .made { display: flex; align-items: center; gap: 14px; }
.footer .made img { width: 28px; height: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover, .footer a[aria-current] { color: var(--text); }

/* Placeholder CJ still has to decide. Every one must be replaced before launch. */
mark { background: rgba(182, 255, 59, 0.18); color: var(--lime); border-radius: 4px; padding: 0 4px; }

/* Text pages: support, privacy, terms */
.page { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.65; }
.prose h1 { font-size: clamp(44px, 6vw, 68px); margin-bottom: 12px; }
.prose h2 { font: 800 26px/1.1 var(--display); letter-spacing: 0.04em; margin: 44px 0 10px; color: var(--lime); }
.prose h3 { font-size: 17px; margin: 24px 0 6px; }
.prose p, .prose li { color: #d6d6d2; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose strong { color: var(--text); }
.prose .meta { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
.prose .summary { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 6px 22px; margin: 28px 0; }
.prose .summary li { color: var(--text); }
.prose .draft { background: #2a2210; color: #f5c042; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 28px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--raised); }
.prose th { color: var(--faint); font-weight: 600; }
.prose td { color: #d6d6d2; }
.prose > footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--raised); color: var(--faint); font-size: 14px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 28px 0 8px; }
.prose .lede { color: var(--muted); }
.prose h2[id] { scroll-margin-top: 96px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 8px; padding: 0; }
.topics a { background: var(--glass); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; color: var(--text); text-decoration: none; font-size: 15px; }
.topics a:hover { border-color: var(--lime); }
.contact a.mail { font: 800 clamp(24px, 3.4vw, 34px)/1 var(--display); letter-spacing: 0.02em; color: var(--lime); text-decoration: none; word-break: break-all; }

/* 404 */
.lost { min-height: calc(100vh - 69px - 130px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost img { width: 132px; margin: 0 auto 28px; opacity: 0.9; }
.lost .lede { margin-left: auto; margin-right: auto; }
