/* Traxa Mobility — marketing site */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette (Brand Guidelines v1.0) */
  --navy: #0b2540;
  --teal: #00cbb4;
  --deep-teal: #007a78;
  --aqua: #7de6e2;
  --slate: #e6eef2;
  --mist: #f5f9fa;

  --ink: var(--navy);
  --body: #42546b;
  --line: #dfe7ed;
  --white: #fff;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: 24px;
  --shadow: 0 1px 2px rgb(11 37 64 / 0.04), 0 12px 32px -12px rgb(11 37 64 / 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--deep-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  color: var(--deep-teal);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: #163a5f;
}
.btn-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: #b9c6d2;
  background: var(--mist);
}
.btn-quiet {
  border-color: var(--line);
  color: var(--ink);
}
.btn-quiet:hover {
  border-color: #b9c6d2;
  background: var(--mist);
}
.btn-accent {
  background: var(--teal);
  color: var(--navy);
}
.btn-accent:hover {
  background: var(--aqua);
}
.btn-outline-light {
  border-color: rgb(255 255 255 / 0.35);
  color: var(--white);
}
.btn-outline-light:hover {
  border-color: var(--white);
  background: rgb(255 255 255 / 0.08);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand {
  display: inline-flex;
  flex: none;
  border-radius: 6px;
}
.brand img {
  width: auto;
  height: 34px;
}
.primary-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.primary-nav a:hover {
  background: var(--mist);
  color: var(--ink);
}
.header-actions {
  display: flex;
  flex: none;
  gap: 10px;
  margin-left: auto;
}

/* Hero */

.hero {
  padding: 88px 0 0;
}
.hero-copy {
  max-width: 860px;
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.lede {
  max-width: 680px;
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .cta-row {
  margin-top: 36px;
}

.hero-product {
  margin-top: 72px;
}
.hero-frame {
  overflow: hidden;
  padding: clamp(14px, 4.4vw, 56px) clamp(14px, 4.4vw, 56px) 0;
  border-radius: 28px;
  background: var(--navy);
}
.hero-frame img {
  width: 100%;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.5);
}
.hero-product figcaption {
  margin-top: 14px;
  color: #5b6b80;
  font-size: 0.875rem;
}

/* Sections */

.section {
  padding: 120px 0;
}
.section-mist {
  background: var(--mist);
}
.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.875rem, 3.8vw, 3rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.028em;
}
.section-head h2 + p {
  margin-top: 20px;
  font-size: 1.125rem;
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "live live live live modes modes"
    "comp comp meas meas meas meas"
    "comp comp photo photo trans trans"
    "indep indep indep stand stand stand";
  gap: 20px;
}
.tile-live { grid-area: live; }
.tile-modes { grid-area: modes; }
.tile-compliance { grid-area: comp; }
.tile-measure { grid-area: meas; }
.tile-photo { grid-area: photo; }
.tile-transit { grid-area: trans; }
.tile-independent { grid-area: indep; }
.tile-standards { grid-area: stand; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.tile-body {
  padding: 32px;
}
.tile-label {
  margin-bottom: 12px;
  color: var(--deep-teal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tile h3 {
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.018em;
}
.tile h3 + p {
  margin-top: 12px;
  font-size: 1rem;
}
.tile-mist {
  border-color: transparent;
  background: var(--mist);
}
.tile-navy {
  border-color: var(--navy);
  background: var(--navy);
  color: #c4d1de;
}
.tile-navy h3 {
  color: var(--white);
}
.tile-navy .tile-label {
  color: var(--aqua);
}

.h-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}
.h-icon .icon {
  color: var(--deep-teal);
}

.tile-media {
  margin-top: auto;
}
.tile-media img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.media-corner {
  padding-left: 32px;
}
.media-corner img {
  border-right: 0;
  border-bottom: 0;
  border-radius: var(--radius-sm) 0 0 0;
}
.media-bottom {
  padding-inline: 32px;
}
.media-bottom img {
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tile-live .tile-body {
  max-width: 600px;
}
.tile-live .tile-media {
  max-height: 400px;
  overflow: hidden;
}
.tile-compliance .tile-media {
  padding-bottom: 32px;
}
.tile-compliance .tile-media img {
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.tile-transit .tile-media {
  max-height: 200px;
  overflow: hidden;
}

.mode-list {
  margin-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}
.mode-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
}
.mode-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.mode-list .icon {
  color: var(--aqua);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
}
.check-list .icon {
  color: var(--deep-teal);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.chip-list li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.tile-photo {
  min-height: 300px;
  border: 0;
}
.tile-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
}
.photo-caption {
  position: relative;
  margin-top: auto;
  padding: 72px 28px 26px;
  background: linear-gradient(to top, rgb(11 37 64 / 0.92), rgb(11 37 64 / 0));
}
.photo-caption p {
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

/* Pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #cfdae2;
}
.pillars li {
  padding: 28px 28px 0 0;
}
.pillars li + li {
  padding-left: 28px;
  border-left: 1px solid #cfdae2;
}
.pillar-num {
  display: block;
  margin-bottom: 40px;
  color: var(--deep-teal);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pillars h3 {
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.pillars p {
  margin-top: 10px;
  font-size: 1rem;
}

/* Audience */

.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
/* Call to action */

.section-cta {
  padding-top: 0;
}
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 28px;
  background: var(--navy);
  color: #c4d1de;
}
.cta-panel h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.028em;
}
.cta-panel p {
  max-width: 520px;
  margin-top: 16px;
  font-size: 1.0625rem;
}
.cta-panel .cta-row {
  flex: none;
}
.cta-panel :focus-visible {
  outline-color: var(--aqua);
}

/* Footer */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand img {
  width: auto;
  height: 32px;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 600;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--body);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #5b6b80;
  font-size: 0.8125rem;
}

/* Responsive */

@media (max-width: 1040px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "live live"
      "modes comp"
      "meas meas"
      "photo trans"
      "indep stand";
  }
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pillars li {
    padding-bottom: 28px;
  }
  .pillars li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .pillars li:nth-child(n + 3) {
    border-top: 1px solid #cfdae2;
  }
  .pillar-num {
    margin-bottom: 20px;
  }
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .primary-nav {
    display: none;
  }
  .audience {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 80px 0;
  }
  .section-cta {
    padding-top: 0;
  }
  .hero {
    padding-top: 56px;
  }
  .hero-product {
    margin-top: 48px;
  }
  .section-head {
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .header-inner {
    height: 64px;
    gap: 12px;
  }
  .brand img {
    height: 28px;
  }
  .header-demo {
    display: none;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "live" "modes" "comp" "meas" "photo" "trans" "indep" "stand";
    gap: 16px;
  }
  .tile-body {
    padding: 24px;
  }
  .media-corner {
    padding-left: 24px;
  }
  .media-bottom {
    padding-inline: 24px;
  }
  .tile-compliance .tile-media {
    padding-bottom: 24px;
  }
  .tile-live .tile-media {
    max-height: 260px;
  }
  .check-list {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .pillars li,
  .pillars li + li {
    padding: 24px 0;
    border-left: 0;
  }
  .pillars li + li {
    border-top: 1px solid #cfdae2;
  }
  .hero-frame,
  .cta-panel {
    border-radius: 20px;
  }
  .cta-row .btn-lg {
    flex: 1 1 auto;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-nav {
    flex-direction: column;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
