/* ==========================================================================
   prestaproductpassport.com — design system
   Deep green / gold, matching the Battery Passport Pro visual language.
   No build step, no dependencies. Keep it that way.
   ========================================================================== */

:root {
  /* Brand */
  --green-900: #0b2b21;
  --green-800: #0f3b2c;
  --green-700: #14503b;
  --green-600: #1c6a4d;
  --green-500: #2a8a65;
  --green-100: #e4f0ea;
  --green-050: #f1f7f4;

  --gold-600: #a8811f;
  --gold-500: #c9a227;
  --gold-400: #dcbb56;
  --gold-100: #f6edd4;

  /* Neutrals */
  --ink-900: #101613;
  --ink-700: #2f3a35;
  --ink-500: #5b6a63;
  --ink-400: #7d8a84;
  --ink-200: #d9e0dc;
  --ink-100: #eaefec;
  --paper: #ffffff;
  --paper-alt: #f7f9f7;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  /* Rhythm */
  --wrap: 1160px;
  --wrap-narrow: 720px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(11, 43, 33, 0.06),
    0 2px 8px rgba(11, 43, 33, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 43, 33, 0.08),
    0 12px 32px rgba(11, 43, 33, 0.07);
  --shadow-lg: 0 8px 24px rgba(11, 43, 33, 0.1),
    0 32px 64px rgba(11, 43, 33, 0.12);
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--green-700);
}

h1,
h2,
h3,
h4 {
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  padding-left: 1.25em;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--green-050);
  border: 1px solid var(--ink-100);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  overflow-wrap: break-word;
}

/* Code blocks must scroll inside their own box — never widen the page. */
pre {
  background: var(--green-900);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #e8f0ec;
  font-size: 0.86rem;
  line-height: 1.6;
  white-space: pre;
  overflow-wrap: normal;
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

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

.section-dark {
  background: var(--green-800);
  color: rgba(255, 255, 255, 0.82);
}

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

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto clamp(36px, 5vw, 60px);
}

.section-head p {
  color: var(--ink-500);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--green-900);
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.3);
}

.btn-gold:hover {
  background: var(--gold-400);
  color: var(--green-900);
}

.btn-green {
  background: var(--green-700);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-600);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-outline {
  border-color: var(--ink-200);
  color: var(--green-700);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--green-500);
  background: var(--green-050);
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ink-100);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-top: -2px;
}

.nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 26px;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.nav a {
  color: var(--ink-700);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--green-700);
}

.nav .btn {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.nav-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--ink-700);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--ink-100);
  background: #fff;
  padding: 12px 24px 20px;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 10px 0;
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-100);
  font-weight: 500;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--green-800);
  color: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.hero::after {
  /* soft gold arc, echoing the brand creatives */
  content: "";
  position: absolute;
  right: -18%;
  top: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.22);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(52px, 8vw, 92px);
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.hero h1 {
  color: #fff;
}

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

.hero p.lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.76);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-400);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
}

/* Trust strip under hero */
.trust-strip {
  background: var(--green-050);
  border-bottom: 1px solid var(--ink-100);
  font-size: 0.88rem;
}

.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: center;
  padding-block: 14px;
  color: var(--ink-500);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-strip svg {
  color: var(--green-500);
  flex-shrink: 0;
}

/* --- Cards ---------------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-500);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-050);
  color: var(--green-600);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card-link {
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-100);
}

.card-link h3 {
  color: var(--ink-900);
}

/* Numbered step cards */
.step-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-600);
  margin-bottom: 14px;
}

/* --- Checklist ------------------------------------------------------------ */

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.98rem;
}

.checklist svg {
  flex: 0 0 20px;
  margin-top: 3px;
  color: var(--green-500);
}

.section-dark .checklist svg {
  color: var(--gold-400);
}

/* --- Deadline timeline ---------------------------------------------------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--ink-100);
}

.timeline li {
  position: relative;
  padding: 0 0 30px 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green-500);
}

.timeline li.is-past::before {
  background: var(--green-500);
}

.timeline li.is-next::before {
  border-color: var(--gold-500);
  background: var(--gold-500);
  box-shadow: 0 0 0 4px var(--gold-100);
}

.timeline .t-date {
  font-weight: 700;
  color: var(--ink-900);
  font-size: 0.95rem;
  display: block;
}

.timeline .t-body {
  color: var(--ink-500);
  font-size: 0.95rem;
}

/* --- Tables --------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  margin: 26px 0;
  background: #fff;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: top;
}

thead th {
  background: var(--green-050);
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* --- Article -------------------------------------------------------------- */

.article-head {
  background: var(--green-050);
  border-bottom: 1px solid var(--ink-100);
  padding-block: clamp(38px, 6vw, 66px);
}

.article-head h1 {
  max-width: 20ch;
}

.article-meta {
  color: var(--ink-500);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
}

.prose {
  font-size: 1.04rem;
}

.prose h2 {
  margin-top: 2em;
  scroll-margin-top: 90px;
}

.prose h3 {
  margin-top: 1.7em;
  scroll-margin-top: 90px;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold-500);
  color: var(--ink-700);
  font-size: 1.02rem;
}

.callout {
  background: var(--green-050);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
  font-size: 0.97rem;
}

.callout strong:first-child {
  color: var(--green-700);
}

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

.callout-warn {
  background: #fdf8ec;
  border-color: #f0e1bb;
}

.callout-warn strong:first-child {
  color: var(--gold-600);
}

/* Table of contents */
.toc {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 34px;
  background: var(--paper-alt);
}

.toc p {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.95rem;
}

.toc li {
  margin-bottom: 6px;
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  border-top: 1px solid var(--ink-100);
}

.faq details {
  border-bottom: 1px solid var(--ink-100);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-900);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  color: var(--green-500);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  padding-top: 12px;
  color: var(--ink-500);
  font-size: 0.98rem;
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* --- Pills / tags --------------------------------------------------------- */

.pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-050);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}

.pill-gold {
  background: var(--gold-100);
  color: var(--gold-600);
  border-color: #eddfb6;
}

.pill-grey {
  background: var(--ink-100);
  color: var(--ink-500);
  border-color: var(--ink-200);
}

/* --- Breadcrumbs ---------------------------------------------------------- */

.crumbs {
  font-size: 0.84rem;
  color: var(--ink-400);
  margin-bottom: 18px;
}

.crumbs a {
  color: var(--ink-500);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

.crumbs span {
  margin-inline: 7px;
  opacity: 0.5;
}

/* --- CTA band ------------------------------------------------------------- */

.cta-band {
  background: var(--green-800);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding-block: clamp(48px, 7vw, 82px);
}

.cta-band h2 {
  color: #fff;
  max-width: 18ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 56ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.72);
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  padding-block: 54px 30px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 38px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

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

.footer-brand p {
  max-width: 34ch;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-disclaimer {
  margin-top: 16px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.4);
  max-width: 78ch;
}

/* --- Utilities ------------------------------------------------------------ */

.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.center {
  text-align: center;
}
.muted {
  color: var(--ink-500);
}

/* Clip rather than offset — a negative left can create a phantom
   scrollable region in some browsers. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--green-700);
  color: #fff;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 18px;
  overflow: visible;
  clip: auto;
  clip-path: none;
}

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

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