/* ==========================================================================
   TrackRidesFast — trackfast.itcansys.ca
   Single stylesheet. No build step, no framework.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --teal-900: #08292A;
  --teal-800: #0F3D3E;
  --teal-700: #14514F;
  --teal-600: #1C6A66;
  --teal-100: #E3EDEC;
  --teal-050: #F2F7F6;

  --amber-700: #9A6210;
  --amber-600: #C77F1C;
  --amber-500: #E8A33D;
  --amber-100: #FBEBD3;

  --ink:        #12201F;
  --ink-soft:   #4A5F5D;
  --ink-faint:  #78908D;

  --white:  #FFFFFF;
  --paper:  #FAFCFB;
  --line:   #E1EAE8;

  --wrap:      1160px;
  --gutter:    24px;
  --header-h:  72px;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  30px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(8, 41, 42, .06), 0 1px 3px rgba(8, 41, 42, .05);
  --sh-md: 0 4px 12px rgba(8, 41, 42, .07), 0 2px 4px rgba(8, 41, 42, .04);
  --sh-lg: 0 18px 40px rgba(8, 41, 42, .12), 0 4px 12px rgba(8, 41, 42, .06);
  --sh-xl: 0 34px 70px rgba(8, 41, 42, .18);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--teal-900);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; font-weight: 700; }
h4 { font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--teal-600); }

ul, ol { margin: 0; padding: 0; list-style: none; }

svg { display: block; }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.center { text-align: center; }

.eyebrow {
  margin: 0 0 .7rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber-600);
}

.lede {
  font-size: 1.13rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.fine {
  margin-top: 1.1rem;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 46ch;
}

.accent { color: var(--amber-500); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--teal-800);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

.btn-primary {
  background: var(--teal-800);
  border-color: var(--teal-800);
  color: var(--white);
  box-shadow: var(--sh-md);
}
.btn-primary:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--white);
  box-shadow: var(--sh-lg);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--teal-800);
}
.btn-ghost:hover {
  background: var(--teal-050);
  border-color: var(--teal-600);
  color: var(--teal-800);
}

.btn-dark {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--teal-900);
  box-shadow: var(--sh-md);
}
.btn-dark:hover {
  background: var(--amber-600);
  border-color: var(--amber-600);
  color: var(--white);
  box-shadow: var(--sh-lg);
}

.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--teal-800);
  box-shadow: var(--sh-md);
}
.btn-light:hover {
  background: var(--teal-050);
  color: var(--teal-900);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--sh-sm);
  background: rgba(255, 255, 255, .96);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--teal-900);
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand:hover { color: var(--teal-800); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--teal-800);
  color: var(--white);
  flex: 0 0 auto;
}

.brand-text  { font-size: 1.16rem; }
/* "Rides" sits inside the one-word lockup TrackRidesFast. On the white header
   it needs amber-700 (5.09:1); amber-500 would only reach 2.07:1. */
.brand-light { color: var(--amber-700); font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  position: relative;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav a:hover { color: var(--teal-800); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--teal-800);
  transition: transform .22s var(--ease), opacity .16s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px var(--gutter) 22px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-nav a {
  padding: 13px 4px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child {
  margin-top: 14px;
  border-bottom: 0;
  color: var(--white);
}
.mobile-nav[hidden] { display: none; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 96px) 0 clamp(56px, 9vw, 104px);
  background:
    radial-gradient(900px 460px at 88% -12%, var(--teal-100) 0%, transparent 62%),
    radial-gradient(700px 380px at 4% 8%, var(--amber-100) 0%, transparent 58%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-copy .lede { max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 2rem 0 1.75rem;
}
.center-actions { justify-content: center; }

.hero-points {
  display: grid;
  gap: 11px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .96rem;
  color: var(--ink-soft);
}

.tick {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 50%;
  background: var(--teal-800);
  fill: none;
  stroke: var(--white);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Phone mock ------------------------------------------------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 288px;
  max-width: 100%;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1B4B4A, var(--teal-900));
  box-shadow: var(--sh-xl);
  transform: rotate(-2deg);
  transition: transform .5s var(--ease);
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 21px;
  border-radius: 0 0 14px 14px;
  background: var(--teal-900);
  z-index: 2;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--white);
}

.ph-map {
  height: 268px;
  overflow: hidden;
}
.ph-map svg { width: 100%; height: 100%; }

.ph-card {
  padding: 16px 18px 20px;
  margin-top: -22px;
  position: relative;
  border-radius: 22px 22px 32px 32px;
  background: var(--white);
  box-shadow: 0 -8px 22px rgba(8, 41, 42, .08);
}

.ph-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 7px 0;
}

.ph-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--teal-800);
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(15, 61, 62, .14);
}
.ph-dot.amber {
  background: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, .2);
}

.ph-lbl {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ph-val {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.ph-fare {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}
.ph-price {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--teal-900);
}
.ph-eta {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--teal-050);
  font-size: .74rem;
  font-weight: 600;
  color: var(--teal-700);
}

.ph-btn {
  padding: 13px;
  border-radius: var(--r-pill);
  background: var(--teal-800);
  color: var(--white);
  font-size: .92rem;
  font-weight: 600;
  text-align: center;
}

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(58px, 8vw, 96px) 0;
}
.section-alt {
  background: var(--teal-050);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40ch;
  margin: 0 auto clamp(34px, 5vw, 54px);
  text-align: center;
}
.section-head h2 { margin-bottom: 0; }

/* Feature cards ---------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-100);
  box-shadow: var(--sh-lg);
}
.card p {
  color: var(--ink-soft);
  font-size: .97rem;
  margin-bottom: 0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--teal-050);
  color: var(--teal-700);
}
.card-icon svg { width: 25px; height: 25px; }

.card:nth-child(2) .card-icon { background: var(--amber-100); color: var(--amber-600); }

/* Steps ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
  margin-bottom: clamp(34px, 5vw, 50px);
}

.steps li {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}
.steps li::after {
  content: '';
  position: absolute;
  top: 46px;
  right: -14px;
  width: 12px;
  height: 2px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }

.steps p {
  margin-bottom: 0;
  font-size: .94rem;
  color: var(--ink-soft);
}

.step-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: var(--teal-800);
  color: var(--white);
  font-size: .92rem;
  font-weight: 700;
}

/* Drivers ---------------------------------------------------------------- */
.driver-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 60px);
}
.driver-grid .lede { max-width: 48ch; }

.check-list {
  display: grid;
  gap: 12px;
  margin: 1.6rem 0 2rem;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: .98rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .48em;
  width: 8px;
  height: 14px;
  border: solid var(--teal-600);
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(42deg);
}

.stat-panel {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--teal-800), var(--teal-900));
  box-shadow: var(--sh-lg);
}

.stat {
  display: grid;
  gap: 5px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06);
}
.stat-k {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-500);
}
.stat-v {
  font-size: .97rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}

/* --------------------------------------------------------------------------
   7. CTA band
   -------------------------------------------------------------------------- */
.cta {
  padding: clamp(58px, 8vw, 88px) 0;
  background:
    radial-gradient(760px 340px at 78% 12%, rgba(232, 163, 61, .18) 0%, transparent 62%),
    linear-gradient(150deg, var(--teal-800), var(--teal-900));
  color: var(--white);
  text-align: center;
}
.cta-inner {
  max-width: 620px;
  margin-inline: auto;
}
.cta h2 { color: var(--white); }
.cta p {
  max-width: 44ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, .8);
  font-size: 1.08rem;
}
.cta .hero-actions { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(44px, 6vw, 66px);
  background: var(--teal-900);
  color: rgba(255, 255, 255, .68);
  font-size: .93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 34px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .5);
}
.footer-grid a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, .74);
}
.footer-grid a:hover { color: var(--amber-500); }

.footer-brand { margin-bottom: 10px; }
.footer-brand .brand-text  { color: var(--white); }
/* On the dark footer the brighter amber is the readable one (7.15:1). */
.footer-brand .brand-light { color: var(--amber-500); }

.footer-note {
  max-width: 30ch;
  margin: 0;
  color: rgba(255, 255, 255, .55);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .86rem;
  color: rgba(255, 255, 255, .5);
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a { color: rgba(255, 255, 255, .6); }
.footer-links a:hover { color: var(--amber-500); }

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid,
  .driver-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid { text-align: left; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .phone { width: 262px; transform: none; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav,
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }

  .cards,
  .steps { grid-template-columns: 1fr; }

  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   10. Motion / print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .nav-toggle, .mobile-nav, .hero-visual, .cta { display: none !important; }
  body { color: #000; background: #fff; }
}
