/* =====================================================
   Timing Plus — Site CSS
   Uses tokens from tokens.css (colors_and_type.css)
   ===================================================== */

/* ----- NAV ----- */
.tp-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246,242,232,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.tp-nav__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 14px 32px;
    display: flex; align-items: center; gap: 32px;
}
.tp-nav__brand { display: flex; align-items: center; text-decoration: none; }
.tp-nav__brand img { display: block; height: 40px; width: auto; }
.tp-nav__links { display: flex; gap: 28px; margin-left: auto; }
.tp-nav__links a {
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    color: var(--fg); text-decoration: none;
}
.tp-nav__links a:hover { color: var(--pulse-500); }

/* ----- BUTTONS ----- */
.tp-btn {
    font-family: var(--font-body); font-weight: 700; font-size: 14px;
    color: #fff; background: var(--pulse-500);
    padding: 10px 18px; border-radius: 6px;
    text-decoration: none; display: inline-flex; align-items: center;
    border: none; cursor: pointer;
    transition: background var(--dur-2) var(--ease-sharp);
}
.tp-btn:hover { background: var(--pulse-700); color: #fff; text-decoration: none; }
.tp-btn:active { transform: scale(0.98); }
.tp-btn--lg { font-size: 16px; padding: 16px 26px; }
.tp-btn--ghost {
    background: transparent; color: var(--fg);
    border: 1px solid var(--border);
}
.tp-btn--ghost:hover { background: var(--track-100); color: var(--fg); }

/* ----- SHARED TYPE ----- */
.tp-eyebrow {
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--pulse-500); margin-bottom: 16px;
}
.tp-pulse { color: var(--pulse-500); }
.tp-h2 {
    font-family: var(--font-display); font-size: 64px; font-weight: 900;
    line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase;
    color: var(--fg); margin: 0;
}
.tp-h2--sm { font-size: 56px; }
.tp-link {
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    color: var(--pulse-500); text-decoration: none;
}
.tp-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ----- HERO ----- */
.tp-hero {
    position: relative; padding: 80px 32px 64px; overflow: hidden;
    background: var(--bg);
}
.tp-hero__pattern {
    position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M20 12 V28 M12 20 H28' stroke='%23FF4A2E' stroke-opacity='0.06' stroke-width='2' stroke-linecap='square'/></svg>");
}
.tp-hero__inner { position: relative; max-width: 1200px; margin: 0 auto; }
.tp-hero__h1 {
    font-family: var(--font-display);
    font-size: clamp(56px, 9vw, 120px);
    font-weight: 900; line-height: 0.92;
    letter-spacing: -0.025em; text-transform: uppercase;
    color: var(--fg); margin: 0; max-width: 1000px;
}
.tp-hero__lead {
    font-family: var(--font-body); font-size: 20px; line-height: 1.5;
    color: var(--fg-muted); margin: 32px 0 36px; max-width: 640px;
}
.tp-hero__actions {
    display: flex; gap: 14px; align-items: center;
    margin-bottom: 64px; flex-wrap: wrap;
}
.tp-hero__proof {
    display: grid; grid-template-columns: repeat(4, max-content);
    gap: 64px; padding-top: 24px;
    border-top: 4px solid var(--pulse-500);
}
.tp-hero__proof-item { display: flex; flex-direction: column; gap: 6px; }
.tp-hero__proof-v {
    font-family: var(--font-display); font-size: 48px; font-weight: 900;
    line-height: 1; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums; color: var(--fg);
}
.tp-hero__proof-l {
    font-family: var(--font-body); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted);
}

/* ----- SECTIONS ----- */
.tp-section { padding: 80px 32px; background: var(--bg); }
.tp-section__inner { max-width: 1200px; margin: 0 auto; }
.tp-section__head { margin-bottom: 48px; }

/* ----- SERVICES GRID ----- */
.tp-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tp-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 24px;
    display: flex; flex-direction: column; gap: 8px; min-height: 260px;
    transition: box-shadow var(--dur-2) var(--ease-sharp);
}
.tp-card:hover { box-shadow: var(--shadow-2); }
.tp-card__icon { color: var(--pulse-500); width: 28px; height: 28px; stroke-width: 1.75; }
.tp-card__tag {
    font-family: var(--font-display); font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--pulse-500); margin-top: 8px;
}
.tp-card__title {
    font-family: var(--font-display); font-size: 24px; font-weight: 800;
    line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase;
    color: var(--fg); margin: 4px 0;
}
.tp-card__body {
    font-family: var(--font-body); font-size: 14px; line-height: 1.5;
    color: var(--fg-muted); margin: 0; flex: 1;
}
.tp-card__rule { display: block; width: 32px; height: 3px; background: var(--pulse-500); margin-top: 8px; }

/* ----- STAT BAR ----- */
.tp-statbar {
    position: relative; background: var(--track-900);
    color: var(--track-50); padding: 80px 32px; overflow: hidden;
}
.tp-statbar__pattern {
    position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M20 12 V28 M12 20 H28' stroke='%23FFFFFF' stroke-opacity='0.06' stroke-width='2' stroke-linecap='square'/></svg>");
}
.tp-statbar__inner {
    position: relative; max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
.tp-statbar__h2 {
    font-family: var(--font-display); font-size: 80px; font-weight: 900;
    line-height: 0.9; letter-spacing: -0.025em; text-transform: uppercase;
    color: var(--track-50); margin: 0;
}
.tp-statbar__p {
    font-family: var(--font-body); font-size: 18px; line-height: 1.5;
    color: var(--track-300); max-width: 480px; margin-top: 24px;
}
.tp-statbar__right { display: flex; flex-direction: column; }
.tp-stat { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-top: 1px solid var(--track-700); }
.tp-stat__v { font-family: var(--font-mono); font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--track-50); line-height: 1; }
.tp-stat__l { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--track-300); }

/* ----- EVENTS ----- */
.tp-events__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.tp-events { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.tp-event-row {
    display: grid; grid-template-columns: 80px 1fr 220px 100px 24px;
    gap: 24px; align-items: center; padding: 20px 4px;
    border-bottom: 1px solid var(--border);
    text-decoration: none; color: inherit;
    transition: background var(--dur-1) var(--ease-sharp);
}
.tp-event-row:hover { background: var(--track-100); }
.tp-event-row__day { font-family: var(--font-display); font-size: 32px; font-weight: 900; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.tp-event-row__month { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pulse-500); margin-top: 4px; }
.tp-event-row__cat { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 4px; }
.tp-event-row__name { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.005em; text-transform: uppercase; color: var(--fg); line-height: 1.1; }
.tp-event-row__count { font-family: var(--font-mono); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg); }
.tp-event-row__unit { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-left: 6px; }
.tp-event-row__arr { font-size: 18px; color: var(--fg-muted); }

/* ----- BADGES ----- */
.tp-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tp-badge--live { color: #fff; background: var(--chip-500); padding: 5px 10px; border-radius: 999px; }
.tp-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.tp-badge--results { color: var(--pulse-500); }
.tp-badge--upcoming { color: var(--fg-muted); }

/* ----- CONTACT ----- */
.tp-contact { padding: 96px 32px; background: var(--track-100); }
.tp-contact__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.tp-contact__h2 { font-family: var(--font-display); font-size: 80px; font-weight: 900; line-height: 0.92; letter-spacing: -0.025em; text-transform: uppercase; color: var(--fg); margin: 0; }
.tp-contact__p { font-family: var(--font-body); font-size: 18px; line-height: 1.5; color: var(--fg-muted); max-width: 480px; margin-top: 24px; }
.tp-contact__details { display: flex; gap: 48px; margin-top: 32px; padding-top: 24px; border-top: 4px solid var(--pulse-500); }
.tp-contact__detail { display: flex; flex-direction: column; gap: 6px; }
.tp-contact__detail-l { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.tp-contact__detail-v { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--fg); text-decoration: none; }
.tp-contact__sent { background: var(--track-0); border: 1px solid var(--border); border-radius: 12px; padding: 48px 32px; text-align: center; }
.tp-contact__sent-icon { font-size: 40px; color: var(--chip-500); margin-bottom: 16px; }
.tp-contact__sent h3 { font-family: var(--font-display); font-size: 28px; font-weight: 800; text-transform: uppercase; color: var(--fg); margin: 0 0 8px; }
.tp-contact__sent p { color: var(--fg-muted); margin: 0; }

/* ----- FORM ----- */
.tp-form { background: var(--track-0); border: 1px solid var(--border); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.tp-form__field { display: flex; flex-direction: column; gap: 6px; }
.tp-form__label { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--fg); letter-spacing: 0.04em; text-transform: uppercase; }
.tp-form__input { font-family: var(--font-body); font-size: 15px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--track-0); color: var(--fg); outline: none; width: 100%; transition: border-color var(--dur-1) var(--ease-sharp); box-sizing: border-box; }
.tp-form__input:focus { border-color: var(--pulse-500); }
.tp-form__textarea { min-height: 120px; resize: vertical; }

/* ----- FOOTER ----- */
.tp-footer { background: var(--track-900); color: var(--track-300); padding: 56px 32px 24px; }
.tp-footer__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--track-700); }
.tp-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tp-footer__brand img { display: block; }
.tp-footer__tag { font-family: var(--font-body); font-size: 12px; color: var(--track-400); }
.tp-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tp-footer__col { display: flex; flex-direction: column; gap: 10px; }
.tp-footer__col-head { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pulse-500); margin-bottom: 4px; }
.tp-footer__link { font-family: var(--font-body); font-size: 13px; color: var(--track-300); text-decoration: none; }
.tp-footer__link:hover { color: var(--track-50); }
.tp-footer__bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; display: flex; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--track-500); }
