/* FuelMap secondary pages: support, privacy and terms.
   Night-drive palette and type shared with the marketing site. */

:root {
  --paper: #0b0c0e;
  --paper-deep: #101114;
  --surface: #16171b;
  --pine: #16171b;
  --pine-2: #1f1f23;
  --pine-3: rgba(156, 255, 147, 0.2);
  --ink: #f9f5f8;
  --muted: #b3afb7;
  --muted-strong: #c9c5cc;
  --line: rgba(255, 255, 255, 0.09);
  --yellow: #9cff93;
  --yellow-soft: rgba(156, 255, 147, 0.14);
  --green: #9cff93;
  --green-deep: #9cff93;
  --green-wash: rgba(156, 255, 147, 0.08);
  --font-display: "Plus Jakarta Sans", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 22px;
  --shadow: 0 24px 50px -42px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--green);
  color: #15180f;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip:focus {
  transform: translateY(0);
}

nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(14px) saturate(140%);
}

nav > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1040px;
  margin: auto;
  padding: 16px 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  flex: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand span {
  color: var(--green);
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-size: 13px;
  font-weight: 600;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.links a:hover,
.links a[aria-current="page"] {
  color: var(--ink);
}

main {
  max-width: 900px;
  margin: 56px auto 76px;
  padding: 0 30px;
}

main > header {
  position: relative;
  overflow: hidden;
  padding: 36px 38px;
  border: 1px solid var(--pine-3);
  border-radius: 20px;
  background: linear-gradient(128deg, var(--pine), var(--pine-2));
  box-shadow: var(--shadow);
  color: #f7faf5;
}

main > header::after {
  content: "";
  position: absolute;
  top: -118px;
  right: -82px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(156, 255, 147, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

main > header > p {
  position: relative;
  max-width: 650px;
  margin: 0;
  color: #b3afb7;
  font-size: 16px;
}

main > header > p:first-child {
  margin-bottom: 14px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main > header > p:last-child {
  margin-top: 16px;
  font-size: 14px;
}

main > header h1 {
  position: relative;
  color: #fff;
}

main > header a {
  color: #fff;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 3rem);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

main > section {
  margin-top: 18px;
}

main article,
main > section:not(:has(article)) {
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 26px -24px rgba(11, 42, 33, 0.45);
}

main > section:has(article) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

main article > h2,
main > section > h2 {
  color: var(--green-deep);
}

p,
li {
  color: var(--muted-strong);
}

p {
  margin: 12px 0;
}

ul {
  margin: 12px 0;
  padding-left: 22px;
}

li {
  padding: 4px 0;
}

li::marker {
  color: var(--green);
}

main article a,
main > section a {
  font-weight: 600;
}

.section-label {
  margin: 0 0 12px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-section {
  background: linear-gradient(130deg, var(--surface) 55%, var(--green-wash));
}

.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  margin: 8px 0 4px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: #9cff93;
  color: #15180f;
  font: 700 15px/1.4 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.email-button:hover {
  background: #b8ffb1;
  color: #15180f;
  transform: translateY(-1px);
}

.email-button:active {
  transform: none;
}

.contact-address {
  font-size: 15px;
}

#support-form {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #101114;
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
}

textarea {
  resize: vertical;
}

.form-note {
  max-width: 640px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

#draft-link {
  display: inline-block;
  min-height: 44px;
  font-size: 14px;
}

#data-sources,
article[id] {
  scroll-margin-top: 100px;
}

.sources-panel {
  padding: 30px;
  border: 1px solid rgba(156, 255, 147, 0.22);
  border-top: 3px solid var(--green);
  background: linear-gradient(130deg, var(--surface) 62%, var(--green-wash));
}

.sources-panel > .section-label {
  margin-top: 0;
}

.sources-intro {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: 16px;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.source-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.country-flag {
  font-size: 20px;
  line-height: 1.6;
}

.source-row p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.source-row strong {
  color: var(--ink);
  font-weight: 700;
}

.source-row a {
  font-weight: 600;
}

.source-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

main > .support-header > p:last-child {
  font-size: 16px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1040px;
  margin: auto;
  padding: 24px 30px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  nav > div {
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 14px 20px;
  }

  .links {
    width: 100%;
    gap: 2px 18px;
    font-size: 13px;
  }

  .links a {
    min-height: 44px;
  }

  main {
    margin: 34px auto 52px;
    padding: 0 20px;
  }

  main > header {
    padding: 28px 24px;
    border-radius: 16px;
  }

  main article,
  main > section:not(:has(article)) {
    padding: 22px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .sources-panel {
    padding: 24px 20px;
  }

  .source-row {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }

  footer {
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
