/* TrailSight homepage — V1 Alpine Bold
   Oversized display type, black sections for performance/technical content,
   orange accent as guiding light, Space Grotesk + JetBrains Mono. */

/* ---------- Fonts ---------- */
/* Loaded via <link> in the PHP head — Space Grotesk + JetBrains Mono */

/* ---------- Tokens ---------- */
.ts-home {
  --ts-accent: #F26419;
  --ts-accent-2: #FF7A33;
  --ts-ink: #0a0a0a;
  --ts-ink-2: #141414;
  --ts-ink-3: #1a1a1a;
  --ts-ink-4: #222;
  --ts-paper: #ffffff;
  --ts-paper-2: #fafafa;
  --ts-line: #eeeeee;
  --ts-line-2: #f2f2f2;
  --ts-muted: #888888;
  --ts-muted-2: #a0a0a0;
  --ts-muted-3: #6a6a6a;
  --ts-body: #4a4a4a;

  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ts-ink);
  background: var(--ts-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* kill Bootstrap body defaults on the homepage */
body.ts-home { background: var(--ts-paper); color: var(--ts-ink); }

.ts-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ts-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 72px;
}

/* ---------- Nav ---------- */
.ts-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  padding: 20px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.ts-nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(0,0,0,0.06);
}
.ts-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ts-ink);
  text-decoration: none;
}
.ts-nav__brand:hover { color: var(--ts-ink); text-decoration: none; }
.ts-nav__brand svg { width: 30px; height: 30px; }
.ts-nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ts-nav__links a {
  color: var(--ts-ink);
  text-decoration: none;
  transition: color .15s ease;
}
.ts-nav__links a:hover { color: var(--ts-accent); text-decoration: none; }
.ts-nav__links a.is-active { color: var(--ts-accent); font-weight: 700; }

.ts-nav__auth {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.ts-nav__auth a:not(.ts-btn-pill) { color: var(--ts-ink); text-decoration: none; font-weight: 500; }
.ts-nav__auth a:not(.ts-btn-pill):hover { color: var(--ts-accent); text-decoration: none; }

.ts-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, var(--ts-accent), var(--ts-accent-2));
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.ts-btn-pill:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
  box-shadow: 0 10px 24px -8px rgba(242,100,25,0.45);
}

/* mobile nav toggler */
.ts-nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.ts-nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ts-ink); margin: 4px 0; }

/* ---------- Hero ---------- */
.ts-hero {
  padding: 40px 0 80px;
  position: relative;
}
.ts-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.ts-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(242,100,25,0.08);
  color: var(--ts-accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.ts-hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ts-accent);
}
.ts-hero__title {
  font-size: clamp(56px, 9vw, 128px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0;
  color: var(--ts-ink);
}
.ts-hero__title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, var(--ts-accent), var(--ts-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-right: 0.15em;
  padding-bottom: 0.05em;
}
.ts-hero__sub {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ts-body);
  margin: 36px 0 0;
  max-width: 520px;
  font-weight: 400;
}
.ts-hero__ctas {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  align-items: center;
  flex-wrap: wrap;
}
.ts-hero__ctas img {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 12px;
  transition: transform .15s ease;
}
.ts-hero__ctas a:hover img { transform: translateY(-1px); }

.ts-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  background: transparent;
  color: var(--ts-ink);
  border: 1.5px solid rgba(0,0,0,0.12);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, color .15s ease;
}
.ts-btn-outline:hover { color: var(--ts-ink); text-decoration: none; border-color: rgba(0,0,0,0.28); }
.ts-btn-outline__play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ts-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding-left: 2px;
}

.ts-hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  font-size: 14px;
  color: var(--ts-muted-3);
  flex-wrap: wrap;
}
.ts-hero__stats strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--ts-ink);
  display: block;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

/* Hero visual — route SVG canvas + floating phone + metric chips */
.ts-hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(242,100,25,0.03), rgba(255,122,51,0.07));
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(242,100,25,0.13);
}
.ts-hero__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ts-hero__svg .ts-ridge { stroke: var(--ts-accent); stroke-opacity: 0.12; fill: none; stroke-width: 1; }
.ts-hero__svg .ts-route {
  fill: none;
  stroke: var(--ts-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  filter: drop-shadow(0 0 8px rgba(242,100,25,0.5));
  animation: ts-draw 4s ease-out forwards;
}
.ts-hero__svg .ts-node { fill: #fff; stroke: var(--ts-accent); stroke-width: 2.5; }
.ts-hero__svg .ts-node-dot { fill: var(--ts-accent); }

@keyframes ts-draw {
  from { stroke-dashoffset: 2000; }
  to   { stroke-dashoffset: 0; }
}

.ts-hero__phone {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 30%;
  max-width: 220px;
  aspect-ratio: 1206 / 2622;
  background: #000;
  border-radius: 34px;
  padding: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.ts-hero__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.ts-hero__chip {
  position: absolute;
  background: rgba(255,255,255,0.96);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.ts-hero__chip__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ts-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.ts-hero__chip__value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ts-hero__chip--elev { top: 24px; left: 24px; }
.ts-hero__chip--dist { top: 180px; left: 44px; }

/* ---------- Section scaffolding ---------- */
.ts-section {
  padding: 120px 0;
  position: relative;
}
.ts-section--dark {
  background: var(--ts-ink);
  color: #fff;
}
.ts-section--gray {
  background: var(--ts-paper-2);
  border-top: 1px solid var(--ts-line);
  border-bottom: 1px solid var(--ts-line);
  padding: 100px 0;
}
.ts-section--dark + .ts-section--dark { border-top: 1px solid var(--ts-ink-3); padding-top: 120px; }

.ts-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--ts-accent);
  text-transform: uppercase;
  margin: 0 0 20px;
  display: block;
}

.ts-display {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
}
.ts-display em {
  font-style: italic;
  color: var(--ts-accent);
  font-weight: 500;
}

.ts-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 80px;
}
.ts-section__head--center { justify-content: center; text-align: center; flex-direction: column; margin-bottom: 56px; }
.ts-section__head__side {
  max-width: 320px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ts-muted-2);
  padding-bottom: 12px;
}
.ts-section__link {
  color: var(--ts-accent);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: gap .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ts-section__link:hover { gap: 10px; color: var(--ts-accent); text-decoration: none; }

/* ---------- Features (dark) ---------- */
.ts-features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.ts-feature-card {
  background: var(--ts-ink-2);
  border-radius: 28px;
  border: 1px solid var(--ts-ink-4);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ts-feature-card--tall { min-height: 760px; }

.ts-feature-card__head {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ts-feature-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.ts-feature-card__idx {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #666;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}
.ts-feature-card__title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
  color: #fff;
}
.ts-feature-card--small .ts-feature-card__title { font-size: 40px; letter-spacing: -0.025em; line-height: 1.02; }
.ts-feature-card__arrow {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--ts-accent);
  color: var(--ts-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ts-feature-card__desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ts-muted-2);
  max-width: 460px;
  margin: 0;
}

/* Big map feature — route SVG canvas with phone tucked */
.ts-feature-map {
  position: relative;
  flex: 1;
  min-height: 340px;
  margin: 8px 24px 24px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(242,100,25,0.13), var(--ts-ink) 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ts-feature-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.ts-feature-map__phone {
  position: relative;
  width: 220px;
  aspect-ratio: 1206 / 2622;
  background: #000;
  border-radius: 30px;
  padding: 7px;
  margin-bottom: -40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  border: 1px solid #2a2a2a;
}
.ts-feature-map__phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

/* Elevation chart */
.ts-elev {
  margin-top: 28px;
  background: var(--ts-ink);
  border-radius: 16px;
  padding: 20px;
  flex: 1;
  display: flex;
  align-items: center;
}
.ts-elev svg { width: 100%; height: auto; display: block; }
.ts-elev__line { fill: none; stroke: var(--ts-accent); stroke-width: 2.5; stroke-linecap: round; }
.ts-elev__fill { fill: url(#elev-grad); opacity: 0.6; }
.ts-elev__grid { stroke: #222; stroke-width: 1; }
.ts-elev__dot { fill: var(--ts-accent); }

.ts-elev-stats {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  color: var(--ts-muted);
  letter-spacing: 1px;
}
.ts-elev-stats .ts-up { color: #4ade80; }
.ts-elev-stats .ts-down { color: var(--ts-accent); }

/* Splits table */
.ts-splits {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ts-splits__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 14px;
  align-items: center;
}
.ts-splits__name { color: #ddd; }
.ts-splits__dist, .ts-splits__pace {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.ts-splits__dist { color: var(--ts-muted); }
.ts-splits__pace { color: var(--ts-accent); }

/* Mobile: name on top, dist + D+ on a second compact line aligned to the
   ends. Triggered when the 3-column layout would overflow at narrow widths. */
@media (max-width: 560px) {
  .ts-splits__row {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 14px;
  }
  .ts-splits__name {
    grid-column: 1 / -1;
    font-size: 13px;
    margin-bottom: 2px;
  }
  .ts-splits__dist {
    grid-column: 1;
    font-size: 12px;
  }
  .ts-splits__pace {
    grid-column: 2;
    font-size: 12px;
  }
}

/* ---------- Testimonial (dark) ---------- */
.ts-testimonial-section {
  background: var(--ts-ink);
  color: #fff;
  padding: 120px 0;
  border-top: 1px solid var(--ts-ink-3);
}
.ts-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.ts-testimonial__quote {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
  color: #fff;
}
.ts-testimonial__quote em {
  font-style: italic;
  font-weight: 500;
  color: var(--ts-accent);
}
.ts-testimonial__cite {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ts-testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ts-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.ts-testimonial__name {
  font-weight: 600;
  font-size: 15px;
}
.ts-testimonial__role {
  font-size: 13px;
  color: var(--ts-muted);
  margin-top: 2px;
}
.ts-testimonial__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ts-ink-2);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--ts-ink-4);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}
.ts-testimonial__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Bottom-up gradient so the label stays legible against any photo content. */
.ts-testimonial__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,10,0.75) 100%);
  pointer-events: none;
}
.ts-testimonial__visual__label {
  position: relative;
  z-index: 1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

/* ---------- Events ---------- */
.ts-events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ts-event {
  border: 1px solid var(--ts-line);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
  text-decoration: none;
  color: var(--ts-ink);
  display: block;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ts-event:hover {
  border-color: var(--ts-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(242,100,25,0.25);
  text-decoration: none;
  color: var(--ts-ink);
}
.ts-event__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.ts-event__flag {
  font-size: 28px;
  line-height: 1;
}
.ts-event__date {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ts-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ts-event__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
  color: var(--ts-ink);
}
.ts-event__loc {
  font-size: 13px;
  color: var(--ts-muted);
  margin-top: 4px;
}
.ts-event__stats {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ts-line-2);
}
.ts-event__stats__label {
  font-size: 11px;
  color: var(--ts-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 1px;
}
.ts-event__stats__value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.ts-event__stats__value--accent { color: var(--ts-accent); }

.ts-events__empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--ts-muted);
  border: 1px dashed rgba(0,0,0,0.1);
  border-radius: 20px;
}

/* ---------- Integrations (gray) ---------- */
.ts-integrations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.ts-integration {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--ts-line);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ts-integration:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.15);
}
.ts-integration__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(242,100,25,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ts-accent);
  overflow: hidden;
}
.ts-integration__icon svg { width: 28px; height: 28px; }
/* Brand-icon variant: real app-icon PNG fills the rounded box, drop the
   orange tint since each PNG carries its own background. */
.ts-integration__icon--brand {
  background: transparent;
}
.ts-integration__icon--brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ts-integration__name {
  font-weight: 600;
  font-size: 16px;
  color: var(--ts-ink);
  margin: 0;
}
.ts-integration__sub {
  font-size: 13px;
  color: var(--ts-muted);
  margin: 0;
}

/* ---------- CTA (dark) ---------- */
.ts-cta {
  background: var(--ts-ink);
  color: #fff;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.ts-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle, var(--ts-accent) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.ts-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(242,100,25,0.13) 0%, transparent 60%);
}
.ts-cta__inner {
  position: relative;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.ts-cta__title {
  font-size: clamp(52px, 8vw, 128px);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0;
  line-height: 0.92;
}
.ts-cta__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ts-accent);
}
.ts-cta__sub {
  font-size: clamp(17px, 1.6vw, 22px);
  margin-top: 28px;
  color: var(--ts-muted-2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ts-cta__stores {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  justify-content: center;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.ts-cta__stores img {
  height: 60px;
  width: auto;
  display: block;
  border-radius: 12px;
  transition: transform .15s ease;
}
.ts-cta__stores a:hover img { transform: translateY(-2px); }

/* ---------- Footer (dark) ----------
   The shared lib/footer.php uses .alpine-footer__* classes that live in
   v4-alpine-light.css. The homepage doesn't load that stylesheet, so we
   restyle the footer here in dark theme to flow from the dark CTA section
   above. Scoped to body.ts-home so other pages keep their original look. */
body.ts-home .alpine-footer {
  background: var(--ts-ink);
  color: var(--ts-muted);
  padding: 64px 0 32px;
  border-top: none;
  border-image: none;
}
body.ts-home .alpine-footer .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 72px;
}
body.ts-home .alpine-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
body.ts-home .alpine-footer__brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 0;
}
body.ts-home .alpine-footer__brand-name .logo-svg {
  fill: var(--ts-accent);
  width: 30px !important;
  height: 30px !important;
}
body.ts-home .alpine-footer__tagline {
  font-size: 14px;
  margin-top: 12px;
  max-width: 320px;
  color: var(--ts-muted);
  line-height: 1.5;
}
body.ts-home .alpine-footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
body.ts-home .alpine-footer__social a {
  display: inline-flex;
  color: var(--ts-muted);
  transition: color .15s ease;
}
body.ts-home .alpine-footer__social a:hover {
  color: var(--ts-accent);
}
body.ts-home .alpine-footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
body.ts-home .alpine-footer__heading {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
body.ts-home .alpine-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.ts-home .alpine-footer__links li { margin-bottom: 10px; }
body.ts-home .alpine-footer__links a {
  font-size: 14px;
  color: var(--ts-muted);
  text-decoration: none;
  transition: color .15s ease;
}
body.ts-home .alpine-footer__links a:hover {
  color: var(--ts-accent);
}
body.ts-home .alpine-footer__bottom {
  border-top: 1px solid var(--ts-ink-4);
  padding-top: 24px;
  font-size: 13px;
  color: var(--ts-muted);
  text-align: center;
}

/* Toast — minimal styling so notifications still look right on the homepage. */
body.ts-home .alpine-toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ts-ink-2);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: calc(100vw - 32px);
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--ts-ink-4);
}
body.ts-home .alpine-toast.is-visible { bottom: 30px; }
body.ts-home .alpine-toast--error { background: #DC2626; border-color: #b91c1c; }
body.ts-home .alpine-toast--success { background: #16A34A; border-color: #15803d; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .ts-container { padding: 0 48px; }
  .ts-nav { padding: 20px 48px; }
  .ts-section { padding: 96px 0; }
  .ts-hero { padding: 32px 0 72px; }
  .ts-features__grid { grid-template-columns: 1fr; }
  .ts-feature-card--tall { min-height: 600px; }
}

@media (max-width: 1100px) {
  body.ts-home .alpine-footer .container { padding: 0 48px; }
  body.ts-home .alpine-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  body.ts-home .alpine-footer .container { padding: 0 24px; }
  body.ts-home .alpine-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .ts-container { padding: 0 24px; }
  .ts-nav { padding: 16px 24px; }
  .ts-nav__links, .ts-nav__auth { display: none; }
  .ts-nav__toggle { display: inline-flex; }

  .ts-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .ts-hero__visual { max-width: 500px; margin: 0 auto; }
  .ts-hero__stats { gap: 32px; margin-top: 40px; }

  .ts-section { padding: 80px 0; }
  .ts-section__head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 48px; }
  .ts-section__head__side { max-width: 520px; padding-bottom: 0; }

  .ts-testimonial-section { padding: 80px 0; }
  .ts-testimonial-grid { grid-template-columns: 1fr; gap: 40px; }

  .ts-events__grid { grid-template-columns: repeat(2, 1fr); }
  .ts-integrations__grid { grid-template-columns: repeat(2, 1fr); }

  .ts-feature-card__head { padding: 28px; }
  .ts-feature-card__title { font-size: 32px; }
  .ts-feature-card--small .ts-feature-card__title { font-size: 28px; }

  .ts-cta { padding: 80px 0; }
  .ts-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  body.ts-home .alpine-footer__grid { grid-template-columns: 1fr; gap: 28px; text-align: left; }

  .ts-events__grid { grid-template-columns: 1fr; }
  .ts-integrations__grid { grid-template-columns: 1fr; }
  .ts-footer__grid { grid-template-columns: 1fr; }
  .ts-hero__ctas img { height: 48px; }
  .ts-cta__stores img { height: 50px; }
  .ts-hero__chip--elev { top: 16px; left: 16px; }
  .ts-hero__chip--dist { top: 112px; left: 32px; }
  .ts-hero__chip { padding: 10px 14px; }
  .ts-hero__chip__value { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-hero__svg .ts-route { animation: none; stroke-dashoffset: 0; }
}
