/* Landing shell — shared chrome for petrolprice.xyz marketing pages.
   Tokens and header/footer match landing.html (Aave-style). */

:root {
  --lt-bg: #ffffff;
  --lt-ink: #121212;
  --lt-heading: #343433;
  --lt-body: #474645;
  --lt-muted: rgba(71, 70, 69, 0.7);
  --lt-faint: rgba(34, 34, 34, 0.4);
  --lt-line: #e8e8e8;
  --lt-gray: #f3f3f2;
  --lt-black: #171717;
  --lt-orange: #ff6a00;
  --lt-purple: #6f5cff;
  --lt-radius: 32px;
  --lt-max: 1120px;
  --lt-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  --lt-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --lt-wordmark: "DM Sans", system-ui, sans-serif;
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --resize-dur: 300ms;
  --resize-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Alias for content CSS that still references careers tokens */
  --bg: var(--lt-bg);
  --text: var(--lt-ink);
  --text-muted: var(--lt-muted);
  --careers-list: var(--lt-body);
  --border: var(--lt-line);
  --line-2: rgba(0, 0, 0, 0.16);
  --surface: #ffffff;
  --surface-flat: #ffffff;
  --card-shadow: none;
  --accent: var(--lt-orange);
  --pp-col: 40rem;
  --pp-measure: 62ch;
  --ppx-content-max: var(--lt-max);
  --ppx-page-inset: 20px;
  --font: var(--lt-font);
  --font-wordmark: var(--lt-wordmark);
  --font-mono: "DM Mono", "Fira Code", monospace;
}

@media (min-width: 880px) {
  :root {
    --ppx-page-inset: 32px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--lt-bg);
  scroll-behavior: smooth;
  color-scheme: light;
}

body.lt-page {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--lt-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  background: var(--lt-bg);
  color: var(--lt-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.lt-page > .lt-header,
body.lt-page > .lt-footer,
body.lt-page > .lt-easter {
  flex-shrink: 0;
}

body.lt-page > .lt-footer {
  margin-top: auto;
}

body.lt-page a {
  color: inherit;
}

body.lt-page img {
  max-width: 100%;
}

.lt-wrap {
  width: min(var(--lt-max), calc(100% - 2 * var(--ppx-page-inset)));
  margin-inline: auto;
}

/* Header — Aave: wordmark left, nav + CTA right, sliding pill, under-link menus */
.lt-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--lt-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: max(12px, env(safe-area-inset-top, 0px)) 0 12px;
}

.lt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.lt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--lt-wordmark);
  font-weight: 600;
  font-style: normal;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
  color: inherit;
  white-space: nowrap;
}

.lt-brand:hover {
  opacity: 0.88;
}

.lt-brand img {
  flex-shrink: 0;
  height: 1.5rem;
  width: auto;
  display: block;
}

.lt-brand span {
  font-family: inherit;
  font-weight: 600;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: 1;
}

@media (max-width: 639px) {
  .lt-brand {
    font-size: 1.125rem;
  }
  .lt-brand img {
    height: 1.375rem;
  }
}

.lt-header-end {
  display: none;
  align-items: center;
  gap: 10px;
}

.lt-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.lt-nav-glide {
  position: absolute;
  left: 0;
  top: 0;
  height: 36px;
  border-radius: 10px;
  background: #efefef;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    width 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
}

.lt-nav-item {
  position: relative;
}

.lt-nav-trigger {
  position: relative;
  z-index: 1;
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  color: #282624;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.lt-nav-trigger:hover,
.lt-nav-item.is-open .lt-nav-trigger,
.lt-nav-item:focus-within .lt-nav-trigger {
  color: #111;
}

.lt-nav-item:last-of-type .lt-drop {
  left: auto;
  right: 0;
}

.lt-drop {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 180ms;
  z-index: 5;
}

.lt-nav-item.is-open .lt-drop,
.lt-nav-item:focus-within .lt-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.lt-drop-inner {
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow:
    0 12px 40px -16px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.lt-drop a {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.lt-drop a:hover {
  background: #f5f5f5;
}

.lt-drop-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f3f3;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.lt-drop-ico img {
  width: 22px;
  height: 22px;
  display: block;
}

.lt-drop-copy {
  min-width: 0;
}

.lt-drop-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.2;
  color: var(--lt-ink);
}

.lt-drop-copy small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--lt-faint);
}

.lt-login {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.09px;
  text-decoration: none;
  color: var(--lt-ink);
  padding: 8px 10px;
  border-radius: 10px;
}

.lt-login:hover {
  background: #efefef;
}

.lt-burger {
  display: block;
  position: relative;
  margin-left: auto;
}

.lt-burger summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--lt-line);
  display: grid;
  place-items: center;
  background: #fff;
}

.lt-burger summary::-webkit-details-marker {
  display: none;
}

.lt-burger-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--lt-line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lt-burger-panel a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}

.lt-burger-panel a:hover {
  background: var(--lt-gray);
}

.lt-burger-panel .lt-btn {
  justify-content: center;
  margin-top: 4px;
}

.lt-burger--js .t-dropdown {
  transform-origin: top left;
  transform: scale(var(--dropdown-pre-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-open-dur) var(--dropdown-ease),
    opacity var(--dropdown-open-dur) var(--dropdown-ease);
  will-change: transform, opacity;
}

.lt-burger--js .t-dropdown[data-origin="top-right"] {
  transform-origin: top right;
}

.lt-burger--js .t-dropdown.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.lt-burger--js .t-dropdown.is-closing {
  transform: scale(var(--dropdown-closing-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-close-dur) var(--dropdown-ease),
    opacity var(--dropdown-close-dur) var(--dropdown-ease);
}

@media (min-width: 960px) {
  .lt-header-end {
    display: flex;
  }
  .lt-burger {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lt-nav-glide,
  .lt-drop,
  .t-dropdown {
    transition: none !important;
  }
}

.lt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 32px;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.09px;
  text-decoration: none;
  padding: 0 14px;
  height: 2rem;
  min-height: 32px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background-color 100ms ease,
    border-color 0.15s ease;
}

.lt-btn:focus-visible {
  outline: 2px solid var(--lt-orange);
  outline-offset: 3px;
}

.lt-btn--fill {
  background: var(--lt-black);
  color: #fff;
}

.lt-btn--fill:hover {
  background: #000;
}

.lt-btn--ghost {
  background: #fff;
  color: var(--lt-ink);
  border-color: #d4d4d4;
}

.lt-btn--ghost:hover {
  border-color: #bbb;
}

.lt-btn--lg {
  padding: 0 24px 0 22px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.22px;
  height: 3rem;
  min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .lt-btn {
    transition: none;
  }
}

/* Footer */
.lt-footer {
  padding: 32px 0 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
}

.lt-footer-grid {
  display: grid;
  gap: 28px 32px;
  padding-bottom: 40px;
}

@media (min-width: 900px) {
  .lt-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 620px) and (max-width: 899px) {
  .lt-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lt-footer h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  line-height: 18px;
  color: #171717;
}

.lt-footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lt-footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--lt-faint);
  text-decoration: none;
}

.lt-footer-col a:hover {
  color: #171717;
}

.lt-foot-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.lt-footer-brandrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 28px;
}

.lt-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--lt-wordmark);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--lt-ink);
  text-decoration: none;
}

.lt-footer-brand img {
  height: 1.375rem;
  width: auto;
  display: block;
}

.lt-footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lt-footer-social a {
  display: grid;
  place-items: center;
  color: #9a9a98;
  text-decoration: none;
}

.lt-footer-social a:hover {
  color: var(--lt-ink);
}

.lt-footer-disclaimer {
  margin: 0;
  max-width: 72ch;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.1px;
  color: var(--lt-faint);
}

/* Compact easter line for subpages (landing keeps the tall scroll cue) */
.lt-easter {
  margin: 0;
  padding: 28px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.13px;
  line-height: 18px;
  color: var(--lt-faint);
}

.lt-easter-heart {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 2px;
  vertical-align: -3px;
  object-fit: contain;
}

.t-resize {
  transition:
    width var(--resize-dur) var(--resize-ease),
    height var(--resize-dur) var(--resize-ease);
  will-change: width, height;
}

@media (prefers-reduced-motion: reduce) {
  .t-resize {
    transition: none !important;
  }
}
