/* Diamond Trac360 visual system.
   Palette drawn from the Trac360 logo: brand orange #ff7213 deepening to
   #f25c05, on deep slate #101820. */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --ink: #101820;
  --ink-2: #17222e;
  --ink-3: #1f2d3c;
  --paper: #fff;
  --paper-2: #f4f6f9;
  --line: #dde3ea;
  --line-dark: #2c3a4a;
  --text: #26313d;
  --text-muted: #5a6673;
  --text-invert: #f4f6f9;
  --text-invert-muted: #aab6c2;
  --orange: #ff7213;
  --orange-deep: #ec5f04;
  --orange-dark: #b04602;
  --focus: #ff7213;
  --radius: 12px;
  --radius-large: 20px;
  --shell-width: 72rem;
  --font: "Archivo Variable", "Archivo", "Helvetica Neue", arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 740;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

p,
ul,
ol {
  margin: 0 0 1em;
}

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

a {
  color: var(--orange-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--orange-deep);
}

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

.shell {
  width: min(100% - 2.5rem, var(--shell-width));
  margin-inline: auto;
}

.flow > * + * {
  margin-top: 1em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  font-weight: 640;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}

.button:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.button:disabled {
  filter: grayscale(0.4) brightness(0.9);
  cursor: default;
  transform: none;
}

.button-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

.button-ghost {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--ink);
}

.button-ghost:hover {
  color: var(--ink);
  border-color: var(--orange);
  filter: none;
}

.button-ghost-invert {
  background: transparent;
  border: 2px solid var(--line-dark);
  color: var(--text-invert);
}

.button-ghost-invert:hover {
  border-color: var(--orange);
  filter: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.site-header.is-stuck {
  box-shadow: 0 6px 24px rgb(6 10 15 / 45%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
}

.brand img {
  width: 214px;
  height: 37px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--text-invert);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.menu-toggle-lines {
  display: block;
  width: 18px;
  height: 2px;
  background: currentcolor;
  box-shadow: 0 -6px 0 currentcolor, 0 6px 0 currentcolor;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li > a,
.nav-disclosure summary {
  color: var(--text-invert);
  text-decoration: none;
  font-weight: 520;
  font-size: 1rem;
  padding: 0.35rem 0;
}

.nav-list > li > a:hover,
.nav-disclosure summary:hover {
  color: var(--orange);
}

.nav-list > li > a[aria-current],
.nav-disclosure summary[aria-current] {
  color: var(--orange);
}

.nav-disclosure {
  position: relative;
}

.nav-disclosure summary {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  list-style: none;
}

.nav-disclosure summary::-webkit-details-marker {
  display: none;
}

.nav-disclosure summary span {
  transition: transform 140ms ease;
  font-weight: 400;
}

.nav-disclosure[open] summary span {
  transform: rotate(45deg);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: -1rem;
  min-width: 13rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgb(6 10 15 / 45%);
}

.nav-panel a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  color: var(--text-invert);
  text-decoration: none;
  font-weight: 500;
}

.nav-panel a:hover,
.nav-panel a[aria-current] {
  background: var(--ink-3);
  color: var(--orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-login {
  color: var(--text-invert);
  text-decoration: none;
  font-weight: 520;
  font-size: 1rem;
}

.nav-login:hover {
  color: var(--orange);
}

@media (max-width: 64rem) {
  .menu-toggle {
    display: flex;
  }

  .primary-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 18px 34px rgb(6 10 15 / 45%);
  }

  .primary-navigation.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li > a,
  .nav-disclosure summary {
    display: flex;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-panel {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 1rem;
    min-width: 0;
  }

  .nav-actions {
    margin-top: 1rem;
    justify-content: space-between;
  }
}

/* Hero */

.hero {
  background:
    radial-gradient(52rem 30rem at 85% -20%, rgb(255 114 19 / 16%), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--text-invert);
  overflow: clip;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.35em;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-invert-muted);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.hero-phone {
  justify-self: center;
  width: min(17rem, 70vw);
  border-radius: 2rem;
  border: 6px solid #2a3745;
  box-shadow: 0 30px 60px rgb(6 10 15 / 55%);
}

@media (max-width: 50rem) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* Page header band (interior pages) */

.page-header {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--text-invert);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.2em;
}

.page-header .lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-invert-muted);
  max-width: 55ch;
  margin: 0;
}

.page-header .hero-actions {
  margin-top: 1.4rem;
}

.page-body {
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
}

.page-body h2 {
  margin-top: 1.4em;
}

/* Sections */

.section {
  padding-block: clamp(2.6rem, 6vw, 4.5rem);
}

.section-tinted {
  background: var(--paper-2);
}

.section-dark {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--text-invert);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p {
  color: var(--text-invert-muted);
}

.section-intro {
  max-width: 46rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

.section-intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-dark .section-intro p {
  color: var(--text-invert-muted);
}

.kicker {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--orange-dark);
  font-weight: 660;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-dark .kicker,
.page-header .kicker,
.hero .kicker {
  color: var(--orange);
}

/* Benefit tiles */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tile {
  padding: 1.6rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
}

.tile h3 {
  margin-bottom: 0.4em;
}

.tile p {
  margin: 0;
  color: var(--text-muted);
}

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
}

.tile-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Feature rows */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(1.8rem, 4vw, 2.8rem);
}

.feature-row + .feature-row {
  border-top: 1px solid var(--line);
}

.feature-row:nth-child(even) .feature-media {
  order: -1;
}

.feature-copy h2,
.feature-copy h3 {
  margin-bottom: 0.5em;
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.feature-media img {
  border-radius: var(--radius-large);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgb(16 24 32 / 12%);
}

.feature-media .app-frame {
  width: min(15rem, 80%);
  margin-inline: auto;
  border-radius: 1.8rem;
  border: 6px solid var(--ink-3);
  box-shadow: 0 24px 50px rgb(16 24 32 / 22%);
}

@media (max-width: 50rem) {
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-media {
    order: 0;
  }
}

/* Checklist */

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.7rem 1.6rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 540;
}

.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  transform: translateY(0.05rem);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
}

/* Logo strip */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 5vw, 3.5rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.logo-strip img {
  filter: grayscale(1) brightness(0.65);
  opacity: 0.75;
}

.logo-strip-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

/* Quote and story cards */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quote-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
}

.quote-card blockquote {
  flex-grow: 1;
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.quote-card blockquote p::before {
  content: "\201C";
  color: var(--orange);
  font-weight: 740;
  margin-right: 0.1rem;
}

.quote-card blockquote p::after {
  content: "\201D";
  color: var(--orange);
  font-weight: 740;
  margin-left: 0.1rem;
}

.quote-attribution {
  font-weight: 640;
  color: var(--ink);
  font-size: 0.98rem;
}

.quote-attribution span {
  display: block;
  font-weight: 440;
  color: var(--text-muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.story-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  overflow: clip;
}

.story-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.story-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.3rem 1.4rem 1.5rem;
}

.story-card h3 {
  margin-bottom: 0.5em;
}

.story-card blockquote {
  flex-grow: 1;
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.story-link {
  font-weight: 640;
  color: var(--orange-dark);
  text-decoration: none;
}

.story-link:hover {
  text-decoration: underline;
}

.story-link::after {
  content: " \2192";
}

/* Story article */

.story-figure {
  margin: 0 0 2rem;
}

.story-figure img {
  border-radius: var(--radius-large);
  border: 1px solid var(--line);
}

.story-quote {
  margin: 0;
  padding-left: 1.4rem;
  border-left: 4px solid var(--orange);
}

.story-quote p {
  font-size: 1.1rem;
}

.story-quote footer {
  margin-top: 1rem;
  font-weight: 640;
  color: var(--ink);
}

/* Split panels (solutions pages) */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 50rem) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* CTA band */

.cta-band {
  background:
    radial-gradient(40rem 22rem at 15% 120%, rgb(255 114 19 / 20%), transparent 60%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  color: var(--text-invert);
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.35em;
}

.cta-band p {
  color: var(--text-invert-muted);
  max-width: 44rem;
  margin-inline: auto;
}

.cta-band .hero-actions {
  justify-content: center;
}

.cta-phone {
  color: var(--text-invert);
  font-weight: 640;
  font-size: 1.05rem;
  text-decoration: none;
}

.cta-phone:hover {
  color: var(--orange);
}

/* Forms */

.form-grid {
  display: grid;
  gap: 1.15rem;
  max-width: 38rem;
}

.form-field label {
  display: block;
  font-weight: 640;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form-field .hint {
  display: block;
  font-weight: 440;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--paper);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--orange);
}

.form-field [aria-invalid="true"] {
  border-color: #c0261c;
}

.form-status {
  padding: 1rem 1.2rem;
  border: 1.5px solid #c0261c;
  border-radius: var(--radius);
  background: #fdf1f0;
  color: #7c1a13;
}

.form-status a {
  color: inherit;
  font-weight: 600;
}

.form-status ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.honeypot-field {
  position: absolute;
  left: -999rem;
}

/* Contact panel */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--paper);
}

.contact-card h2,
.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
}

.contact-card a {
  font-weight: 600;
}

.contact-card p,
.footer-contact li {
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--text-invert-muted);
  margin-top: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-block: clamp(2.4rem, 5vw, 3.6rem) 2rem;
}

.footer-intro img {
  width: 198px;
  height: 34px;
  margin-bottom: 1rem;
}

.footer-intro p {
  max-width: 34ch;
}

.footer-label {
  color: #fff;
  font-weight: 680;
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--text-invert-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-contact li {
  margin-bottom: 0.55rem;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.95rem;
}

.footer-base p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
}

.footer-social li {
  margin: 0;
}

@media (max-width: 56rem) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 34rem) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

/* Utility */

.center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
