/* InPlayTime: one-page site. System fonts only, no external requests.
   Navy is the primary (text, header, links); orange is accent only and never text on a light background
   (orange on white is 3.06:1: fine for borders and rules, not for text). See tools/contrast.mjs. */
:root {
  --navy: #0b2545;
  --navy-deep: #071a33;
  --ink: #16202e;
  --muted: #4b5768;
  --surface: #f4f7fb;
  --line: #dde3ec;
  --orange: #f26a1b;
  --wrap: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 1.0625rem/1.65 var(--font); color: var(--ink); background: #fff; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 4.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.6rem 1rem; background: var(--navy); color: #fff; z-index: 10; border-radius: 0 0 6px 6px; }
.skip:focus { top: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; color: var(--navy); }
.mark { width: 1.9rem; height: 1.9rem; flex: none; }
nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
nav a { white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.5rem 0; display: inline-block; }
nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Hero */
.hero { padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.75rem; }
.eyebrow::before { content: ""; width: 2.25rem; height: 3px; background: var(--orange); border-radius: 2px; flex: none; }
.nw { white-space: nowrap; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); letter-spacing: -0.03em; margin-top: 1.25rem; font-weight: 800; max-width: 18ch; }
.lede { font-size: clamp(1.2rem, 2.6vw, 1.55rem); line-height: 1.5; max-width: 40ch; margin-top: 1.75rem; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.5rem; }

.btn { display: inline-block; background: var(--orange); color: var(--navy); font-weight: 700; text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: 8px; line-height: 1.2; min-height: 44px; transition: background-color 0.15s, transform 0.15s; }
.btn:hover { background: #ff7a2e; text-decoration: none; transform: translateY(-1px); }
.link-arrow { font-weight: 600; text-decoration: none; padding: 0.6rem 0; }
.link-arrow::after { content: " →"; color: var(--navy); }
.link-arrow:hover { text-decoration: underline; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--surface); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.35rem); letter-spacing: -0.02em; font-weight: 800; }
h2::after { content: ""; display: block; width: 2.5rem; height: 4px; background: var(--orange); border-radius: 2px; margin-top: 0.9rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
.intro { font-size: 1.2rem; max-width: 48ch; margin-top: 1.5rem; }

.cards { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card { border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; padding: 1.6rem 1.6rem 1.75rem; background: #fff; }
.card p { margin-top: 0.6rem; color: var(--muted); }


/* How we work: numbered points */
.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.75rem 3rem; grid-template-columns: 1fr; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 2px solid var(--orange); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 1rem; background: #fff; }
.steps p { margin-top: 0.35rem; color: var(--muted); }

/* Founder */
.founder { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; }
.founder-body { max-width: 46rem; }
.founder-body p { font-size: 1.1rem; }
.founder-body p + p { margin-top: 0.6rem; }
.founder-body .name { color: var(--navy); font-weight: 700; }


/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact h2 { color: #fff; }
.contact p { font-size: 1.2rem; margin-top: 1.5rem; max-width: 44ch; }
.email-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.contact .email-actions { margin-top: 2rem; }
.email-text, .email-text a { color: #fff; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #fff; padding: 1.75rem 0; font-size: 0.92rem; }
.site-footer p + p { margin-top: 0.5rem; }
.site-footer .legal { color: #fff; max-width: 60rem; }

@media (min-width: 48rem) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 15rem 1fr; align-items: start; }
}
@media (max-width: 40rem) {
  .wrap { padding: 0 1.25rem; }
  .bar { flex-direction: column; align-items: flex-start; gap: 0.1rem; padding-top: 0.85rem; padding-bottom: 0.35rem; }
  nav ul { gap: 0 0.85rem; flex-wrap: wrap; }
  nav a { font-size: 0.9rem; }
  .site-header { position: static; }
  .eyebrow { flex-direction: column; align-items: flex-start; gap: 0.75rem; letter-spacing: 0.07em; }
  .eyebrow .sep { display: none; }
  .eyebrow .nw { display: block; }
  .btn { width: 100%; text-align: center; }
  .contact .btn { width: auto; }
}
