/* ==========================================================================
   London Bus Pal — homepage (production)
   Self-contained: tokens + page styles in one file.
   ========================================================================== */

/* ----- Fonts ----- */
@font-face {
  font-family: 'HammersmithOne';
  src: url('../fonts/HammersmithOne.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'HindVadodara';
  src: url('../fonts/HindVadodara-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'HindVadodara';
  src: url('../fonts/HindVadodara-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --mode-bus:             rgb(220, 36, 31);
  --mode-tube:            rgb(0, 25, 168);
  --mode-dlr:             rgb(0, 175, 173);
  --mode-elizabeth-line:  rgb(96, 57, 158);
  --mode-overground:      rgb(250, 123, 5);
  --mode-tram:            rgb(95, 181, 38);
  --mode-national-rail:   rgb(232, 64, 8);
  --mode-cable-car:       rgb(115, 79, 160);

  --surface:     #ffffff;
  --surface-alt: rgb(245, 245, 245);
  --fg-1:        rgb(0, 0, 0);
  --fg-2:        rgb(50, 62, 72);
  --fg-3:        rgb(131, 141, 147);
  --divider:     rgba(0, 0, 0, 0.08);

  --font-display: 'HammersmithOne', 'Hammersmith One', system-ui, sans-serif;
  --font-body:    'HindVadodara', 'Hind Vadodara', system-ui, sans-serif;
  --font-mono:    ui-monospace, Menlo, monospace;

  --dur-fast:      120ms;
  --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-decel:    cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ----- Reset (scoped, doesn't override UIkit on other pages) ----- */
.lbp-home, .lbp-home * { box-sizing: border-box; }
.lbp-home {
  margin: 0; padding: 0;
  background: var(--surface);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.lbp-home img { max-width: 100%; display: block; }
.lbp-home a { color: inherit; }

/* ----- Top bar ----- */
.lbp-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.lbp-topbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.lbp-topbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  text-decoration: none;
  color: var(--fg-1);
}
.lbp-topbar-brand img { width: 28px; height: 28px; border-radius: 7px; }
.lbp-topbar-nav {
  margin-left: auto;
  display: flex; gap: 28px; align-items: center;
}
.lbp-topbar-nav a {
  text-decoration: none;
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
}
.lbp-topbar-nav a:hover { color: var(--fg-1); }
.lbp-topbar-cta {
  background: var(--mode-tube);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.lbp-topbar-cta:hover { background: #00146e; }
@media (max-width: 720px) {
  .lbp-topbar-nav { gap: 18px; }
  .lbp-topbar-nav a:not(.lbp-topbar-cta) { display: none; }
}

/* ----- Mode stripe ----- */
.lbp-mode-stripe { display: flex; height: 6px; width: 100%; }
.lbp-mode-stripe > span { flex: 1; display: block; }
.lbp-mode-stripe .s1 { background: var(--mode-bus); }
.lbp-mode-stripe .s2 { background: var(--mode-tube); }
.lbp-mode-stripe .s3 { background: var(--mode-elizabeth-line); }
.lbp-mode-stripe .s4 { background: var(--mode-overground); }
.lbp-mode-stripe .s5 { background: var(--mode-dlr); }
.lbp-mode-stripe .s6 { background: var(--mode-tram); }
.lbp-mode-stripe .s7 { background: var(--mode-national-rail); }

.lbp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ----- Hero ----- */
.lbp-hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.lbp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: end;
}
.lbp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--fg-1);
}
.lbp-hero h1 .accent { display: inline-block; position: relative; }
.lbp-hero h1 .accent::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.18em; background: var(--mode-tube);
  z-index: -1; opacity: 0.35;
}
.lbp-hero p.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--fg-2);
  max-width: 52ch;
  line-height: 1.5;
  margin: 0 0 32px;
}
.lbp-mode-pill-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.lbp-mode-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-alt);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--fg-1);
  font-weight: 500;
}
.lbp-mode-pill .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-family: var(--font-display);
}

.lbp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lbp-store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--fg-1);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.lbp-store-btn:hover { transform: translateY(-1px); background: #1a1a1a; color: #fff !important; }
.lbp-store-btn .icon { width: 28px; height: 28px; flex-shrink: 0; }
.lbp-store-btn .label-small { font-size: 11px; opacity: 1; line-height: 1; }
.lbp-store-btn .label-big { font-size: 17px; line-height: 1.1; font-family: var(--font-display); margin-top: 2px; }

.lbp-hero-meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.lbp-hero-meta .dot-sep { width: 3px; height: 3px; background: var(--fg-3); border-radius: 50%; display: inline-block; }

.lbp-hero-phone {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  min-height: 580px;
}
.lbp-hero-phone img {
  height: 600px; width: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 25, 168, 0.18))
          drop-shadow(0 10px 20px rgba(0,0,0,0.10));
  position: relative; z-index: 2;
}
.lbp-hero-phone::before {
  content: ""; position: absolute;
  bottom: -10%; left: 50%; transform: translateX(-50%);
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--mode-tube) 14%, transparent),
    transparent 70%);
  z-index: 0; pointer-events: none;
}
@media (max-width: 880px) {
  .lbp-hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .lbp-hero-phone { min-height: 520px; margin-top: 24px; }
  .lbp-hero-phone img { height: 520px; }
  .lbp-hero { padding-top: 36px; }
}

/* ----- Value props ----- */
.lbp-props {
  padding: 96px 0 80px;
  border-top: 1px solid var(--divider);
  margin-top: 60px;
}
.lbp-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.lbp-prop { display: flex; flex-direction: column; gap: 14px; }
.lbp-prop-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}
.lbp-prop h3 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0; line-height: 1;
  color: var(--fg-1);
}
.lbp-prop p {
  margin: 0; color: var(--fg-2);
  font-size: 16px; line-height: 1.55;
  max-width: 32ch;
}
.lbp-prop .icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 4px;
}
.lbp-prop:nth-child(1) .icon-box { background: var(--mode-tube); }
.lbp-prop:nth-child(2) .icon-box { background: var(--mode-elizabeth-line); }
.lbp-prop:nth-child(3) .icon-box { background: var(--mode-tram); }
@media (max-width: 720px) {
  .lbp-props { padding: 56px 0 24px; margin-top: 32px; }
  .lbp-props-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ----- Feature blocks ----- */
.lbp-features { padding: 32px 0; }
.lbp-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--divider);
}
.lbp-feature:first-child { border-top: none; }
.lbp-feature.flip .lbp-feature-text { order: 2; }
.lbp-feature.flip .lbp-feature-art  { order: 1; }
.lbp-feature-text { max-width: 480px; }
.lbp-feature-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--feature-color, var(--mode-tube));
  margin-bottom: 14px;
}
.lbp-feature-tag .swatch {
  width: 14px; height: 14px;
  background: var(--feature-color, var(--mode-tube));
  border-radius: 4px;
  display: inline-block;
}
.lbp-feature h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.lbp-feature p {
  margin: 0; color: var(--fg-2);
  font-size: 17px; line-height: 1.55;
}
.lbp-feature-art {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  padding: 32px 0;
}
.lbp-feature-art-bg {
  position: absolute; inset: 0;
  border-radius: 24px;
  background: var(--feature-tint, rgba(0, 25, 168, 0.06));
  z-index: 0;
}
.lbp-feature-art img {
  position: relative; z-index: 1;
  height: 520px; width: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
}
@media (max-width: 880px) {
  .lbp-feature { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .lbp-feature.flip .lbp-feature-text { order: 1; }
  .lbp-feature.flip .lbp-feature-art  { order: 2; }
  .lbp-feature-art img { height: 440px; }
  .lbp-feature-art { padding: 24px 0; }
}

/* ----- Privacy / maker band ----- */
.lbp-privacy {
  padding: 80px 0;
  border-top: 1px solid var(--divider);
}
.lbp-privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.lbp-privacy h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lbp-privacy p { margin: 0; color: var(--fg-2); font-size: 17px; }
@media (max-width: 720px) {
  .lbp-privacy-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ----- Final CTA ----- */
.lbp-final-cta {
  margin-top: 24px;
  padding: 80px 0;
  background: var(--fg-1);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lbp-final-cta .lbp-container { position: relative; z-index: 1; }
.lbp-final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--mode-tube) 24%, transparent) 0%,
    transparent 40%,
    color-mix(in srgb, var(--mode-elizabeth-line) 18%, transparent) 100%);
  pointer-events: none;
}
.lbp-final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  margin: 0 0 18px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 18ch;
  color: #fff;
}
.lbp-final-cta p {
  margin: 0 0 32px;
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  max-width: 52ch;
}
.lbp-final-cta .lbp-store-btn { background: #fff; color: var(--fg-1) !important; }
.lbp-final-cta .lbp-store-btn:hover { background: #f0f0f0; color: var(--fg-1) !important; }
.lbp-final-cta .price-line {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

/* ----- Footer ----- */
.lbp-foot {
  padding: 40px 0 32px;
  background: var(--fg-1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.lbp-foot .lbp-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.lbp-foot a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-right: 22px;
}
.lbp-foot a:hover { color: #fff; text-decoration: underline; }
.lbp-foot .right { color: rgba(255,255,255,0.45); }
