/* racetiming.com.au - the MS Timing RACEDAYS SUITE sales site (TRACKDAY / RACEDAY / RALLYDAY / KARTDAY / BIKEDAY).
   Same look as the programs themselves: LIGHT, bright, splashy race-day; Barlow Condensed italic caps + Inter; electric blue
   #0066FF; speed stripes + chequers. Each system keeps its own colours (KARTDAY red/blue, BIKEDAY purple/teal, RALLYDAY black/red).
   Only the trackside-TV screenshots are black - that's how the boards really look. */
:root {
  --page: #F5F8FF; --card: #fff; --line: #DCE4F5; --ink: #14213D; --muted: #5A6785; --soft: #334155;
  --blue: #0066FF; --blue-d: #0052CC; --blue-t: #E6F0FF; --pink: #FF2D87; --cyan: #00C2FF; --sun: #FFD60A; --kerb: #E10600; --lime: #84CC16;
  /* the page's system accent (overridden per system below) */
  --a: #0066FF; --a2: #00C2FF; --a3: #FF2D87; --at: #E6F0FF;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
body.sys-trackday { --a: #0066FF; --a2: #00C2FF; --a3: #FF2D87; --at: #E6F0FF; }
body.sys-raceday  { --a: #E10600; --a2: #14213D; --a3: #FFD60A; --at: #FFE8E8; }
body.sys-rallyday { --a: #E10600; --a2: #0B0B0F; --a3: #FFB800; --at: #FFE8E8; }
body.sys-kartday  { --a: #E10600; --a2: #1F4FE0; --a3: #FFC400; --at: #FFE8E7; }
body.sys-bikeday  { --a: #6D28D9; --a2: #14B8A6; --a3: #FACC15; --at: #F1EAFE; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 Inter, system-ui, "Segoe UI", sans-serif; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1; margin: 0; letter-spacing: .01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.grad { background: linear-gradient(90deg, var(--a), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; }
.muted { color: var(--muted); }

/* ---------------- header: the suite brand + a tab per system */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 58px; max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font: italic 800 23px var(--display); text-transform: uppercase; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--blue); }
.brand small { font: 600 11px Inter, sans-serif; letter-spacing: .12em; color: var(--muted); align-self: center; margin-left: 2px; }
.stripes { display: inline-flex; gap: 3px; } .stripes i { width: 7px; height: 22px; transform: skewX(-14deg); border-radius: 2px; }
.stripes i:nth-child(1) { background: var(--blue); } .stripes i:nth-child(2) { background: var(--pink); } .stripes i:nth-child(3) { background: var(--cyan); }
.tabs { margin-left: auto; display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: var(--ink); font: italic 800 17px var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.tabs a img { width: 22px; height: 22px; }
.tabs a:hover { background: var(--blue-t); text-decoration: none; }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs a.cta { background: var(--blue); color: #fff; } .tabs a.cta:hover { background: var(--blue-d); }
.rainbow { height: 4px; background: linear-gradient(90deg, var(--blue) 0 33%, var(--pink) 33% 50%, var(--lime) 50% 75%, var(--cyan) 75%); }
body[class*="sys-"] .rainbow { background: linear-gradient(90deg, var(--a) 0 40%, var(--a3) 40% 60%, var(--a2) 60%); }
@media (max-width: 1100px) { .brand small { display: none; } .tabs a span { display: none; } .tabs a { padding: 6px 7px; } .tabs a img { width: 28px; height: 28px; } }
@media (max-width: 560px) { .tabs a img { width: 30px; height: 30px; } .tabs a { padding: 4px 3px; } }
@media (max-width: 560px) { .brand .bn { display: none; } }

/* ---------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: italic 800 20px var(--display); text-transform: uppercase; letter-spacing: .02em; padding: 10px 20px; border-radius: 10px; border: 0; cursor: pointer; background: var(--a); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--a); box-shadow: inset 0 0 0 2px var(--a); }
.btn.sun { background: var(--sun); color: #14213D; }
.chequer { height: 12px; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 12px 12px; opacity: .85; }

/* ---------------- system page hero */
.hero { position: relative; overflow: hidden; padding: 46px 0 40px; background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--a3) 22%, transparent), transparent 60%),
  radial-gradient(800px 500px at -10% 110%, color-mix(in srgb, var(--a2) 18%, transparent), transparent 60%),
  linear-gradient(160deg, #F2F6FF, #fff 55%, #FFF5FA); }
.hero::after { content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 260px; transform: skewX(-14deg);
  background: linear-gradient(90deg, transparent 0 20px, var(--a) 20px 44px, transparent 44px 60px, var(--a3) 60px 84px, transparent 84px 100px, var(--a2) 100px 124px, transparent 124px); opacity: .9; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; }
.hero .logo { width: 86px; height: 84px; margin-bottom: 8px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
.kicker { display: inline-block; font: 700 12px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--a); background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.hero h1 { font-size: clamp(42px, 6.6vw, 82px); margin: 10px 0; }
.hero h1 b { color: var(--a); }
.hero p.lead { font-size: 19px; color: var(--soft); margin: 0 0 20px; max-width: 34em; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.shots { position: relative; }
.frame { background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(20,33,61,.22); overflow: hidden; border: 1px solid var(--line); }
.frame .bar { height: 22px; background: #F1F4FA; display: flex; gap: 5px; align-items: center; padding: 0 9px; }
.frame .bar i { width: 8px; height: 8px; border-radius: 50%; background: #D3DAE8; }
.hero .frame.main { transform: perspective(1400px) rotateY(-8deg) rotateX(2deg); }
.phone { border-radius: 22px; border: 6px solid #0B1430; overflow: hidden; box-shadow: 0 18px 40px rgba(20,33,61,.35); background: #0B1430; }
.hero .phone { position: absolute; width: 25%; left: 3%; bottom: -16%; }
.tv { border-radius: 8px; border: 7px solid #0B1430; box-shadow: 0 18px 40px rgba(20,33,61,.35); overflow: hidden; background: #000; }
.hero .tv { position: absolute; width: 46%; right: -4%; top: -14%; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; } .hero::after { display: none; }
  .hero .shots { margin: 40px 6% 56px 14%; } .hero .frame.main { transform: none; }
}

/* dark strip of selling points */
.strip { background: #0B1430; color: #fff; }
.strip .wrap { display: flex; gap: 10px 28px; flex-wrap: wrap; justify-content: center; padding: 14px 16px; font: italic 800 20px var(--display); text-transform: uppercase; letter-spacing: .03em; }
.strip span::before { content: "\25B6"; color: var(--a3); font-size: 12px; margin-right: 8px; vertical-align: 2px; }

section { padding: 56px 0; }
.tint { background: #fff; }
.head { text-align: center; max-width: 780px; margin: 0 auto 28px; }
.head h2 { font-size: clamp(34px, 5vw, 54px); }
.head p { color: var(--muted); font-size: 18px; margin: 10px 0 0; }

/* numbered flow */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: s; }
.flow div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px 12px; position: relative; border-top: 5px solid var(--c, var(--a)); }
.flow div::before { counter-increment: s; content: counter(s); position: absolute; right: 10px; top: 4px; font: italic 800 34px var(--display); color: var(--c, var(--a)); opacity: .25; }
.flow h3 { font-size: 22px; margin-bottom: 4px; }
.flow p { margin: 0; font-size: 14px; color: #475569; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }

/* feature cards */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; position: relative; overflow: hidden; }
.feat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: var(--c, var(--at)); opacity: .6; }
.feat .ic { font-size: 28px; line-height: 1; }
.feat h3 { font-size: 24px; margin: 8px 0 6px; }
.feat p { margin: 0; color: #475569; font-size: 15px; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; margin-bottom: 52px; }
.split.rev { grid-template-columns: 1.2fr 1fr; } .split.rev .txt { order: 2; }
.split h2 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 10px; }
.split p { color: var(--soft); font-size: 17px; margin: 0 0 10px; }
.split ul { padding-left: 0; list-style: none; margin: 12px 0 0; }
.split li { padding: 5px 0 5px 28px; position: relative; }
.split li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 10px; transform: skewX(-14deg); background: var(--a); border-radius: 2px; }
.split .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev .txt { order: 0; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery figcaption { font: italic 800 18px var(--display); text-transform: uppercase; margin-top: 8px; }
.gallery figcaption small { display: block; font: 400 13px Inter, sans-serif; text-transform: none; color: var(--muted); }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* colour banner (like kartsmart.net's money box) */
.banner { background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 60%, #fff) 55%, var(--a2)); color: #fff; border-radius: 18px; padding: 30px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; position: relative; overflow: hidden; }
.banner h2 { font-size: clamp(32px, 4.6vw, 52px); }
.banner p { font-size: 17px; opacity: .95; }
.banner .cards { display: grid; gap: 10px; }
.banner .cards div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 12px; padding: 12px 14px; }
.banner .cards b { font: italic 800 22px var(--display); text-transform: uppercase; display: block; }
@media (max-width: 800px) { .banner { grid-template-columns: 1fr; } }

/* other systems strip */
.others { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.others a { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; color: var(--ink); font: italic 800 20px var(--display); text-transform: uppercase; transition: transform .15s, box-shadow .15s; }
.others a img { width: 64px; height: 62px; }
.others a small { font: 400 12px Inter, sans-serif; text-transform: none; color: var(--muted); text-align: center; }
.others a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,33,61,.14); text-decoration: none; }
.others a.on { outline: 3px solid var(--a); }
@media (max-width: 800px) { .others { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .others { grid-template-columns: repeat(2, 1fr); } }

/* contact (a PICTURE - the address is never page text) */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.contact img { border-radius: 16px; box-shadow: 0 10px 30px rgba(20,33,61,.15); }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

footer { background: #fff; border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
