/*
 * Connect Charger, public site (connectcharger.com.br): one stylesheet for
 * the four pages. Colours are the brand's roles (packages/tokens/generated/
 * tokens.css): Papel ground, Noite text, Cobalto action, and Faísca for
 * energy on dark grounds only. Type is Archivo's four static cuts.
 */

@font-face {
  font-display: swap;
  font-family: "Archivo";
  font-stretch: 100%;
  font-weight: 400;
  src:
    url("/assets/fonts/Archivo-Regular.woff2") format("woff2"),
    url("/assets/fonts/Archivo-Regular.ttf") format("truetype");
}
@font-face {
  font-display: swap;
  font-family: "Archivo";
  font-stretch: 100%;
  font-weight: 600;
  src:
    url("/assets/fonts/Archivo-SemiBold.woff2") format("woff2"),
    url("/assets/fonts/Archivo-SemiBold.ttf") format("truetype");
}
@font-face {
  font-display: swap;
  font-family: "Archivo";
  font-stretch: 100%;
  font-weight: 700;
  src:
    url("/assets/fonts/Archivo-Bold.woff2") format("woff2"),
    url("/assets/fonts/Archivo-Bold.ttf") format("truetype");
}
@font-face {
  font-display: swap;
  font-family: "Archivo";
  font-stretch: 112.5%;
  font-weight: 700;
  src:
    url("/assets/fonts/ArchivoSemiExpanded-Bold.woff2") format("woff2"),
    url("/assets/fonts/ArchivoSemiExpanded-Bold.ttf") format("truetype");
}
/* Metric-matched fallback, as ui-web's globals.css: the swap moves no line. */
@font-face {
  ascent-override: 88.86%;
  descent-override: 21.25%;
  font-family: "Archivo Fallback";
  line-gap-override: 0%;
  size-adjust: 98.81%;
  src: local("Arial");
}

:root {
  color-scheme: light;
  --ground: #f7f6f2;
  --surface: #ffffff;
  --text: #0a0f1e;
  --muted: #4a5374;
  --link: #2433d6;
  --separator: #dde0e9;
  --action: #3347ff;
  --action-hover: #2433d6;
  --on-action: #ffffff;
  --focus: #3347ff;
  --energy: #3347ff;
  --notice: #fff1d6;
  --notice-mark: #8a5300;
  --placeholder: #e6e9ff;
  /* The charge panel is always dark, as the app's charging route is. */
  --panel: #0a0f1e;
  --panel-text: #f7f6f2;
  --panel-muted: #aeb4c8;
  --panel-line: #2c3456;
  --panel-track: #1b2342;
  --panel-energy: #d4ff3a;
  --panel-positive: #5cd68e;
  --panel-positive-tint: #0f2e22;
  --font: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --gutter: 16px;
  --space: clamp(64px, 6vw + 32px, 128px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0a0f1e;
    --surface: #121933;
    --text: #f7f6f2;
    --muted: #aeb4c8;
    --link: #a3aeff;
    --separator: #2c3456;
    --focus: #a3aeff;
    --energy: #d4ff3a;
    --notice: #33270c;
    --notice-mark: #ffc24d;
    --placeholder: #1b2342;
    --panel: #121933;
    --panel-track: #222b4f;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }
}

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

html {
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

:where(h1, h2, h3, p, ol, ul, dl, dd, figure) {
  margin: 0;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

:where(p, li, dd) {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 10;
  padding: 10px 16px;
  border-radius: 9999px;
  background: var(--action);
  color: var(--on-action);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header and footer */

.site-header {
  padding-block: 20px;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.brand img {
  width: 200px;
  height: auto;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  gap: 0 4px;
  margin-inline: -12px;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 12px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline 2px;
}

@media (min-width: 720px) {
  .brand img {
    width: 229px;
  }

  .site-nav ul {
    margin-inline-start: 0;
  }
}

.site-footer {
  padding-block: 40px 48px;
  border-block-start: 1px solid var(--separator);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: grid;
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-nav ul {
  gap: 0 20px;
}

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

@media (min-width: 840px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer-nav ul {
    justify-content: flex-end;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

/* Type and actions */

.display,
.h2 {
  font-stretch: 112.5%;
  font-weight: 700;
}

.display {
  font-size: clamp(2.25rem, 1.35rem + 3.9vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h3,
.steps h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.lead {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
}

.muted,
.pilot {
  color: var(--muted);
}

.pilot {
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 12px 28px;
  border-radius: 9999px;
  background: var(--action);
  color: var(--on-action);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}

.button:hover {
  background: var(--action-hover);
}

.text-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
}

/* Sections */

.section {
  padding-block: var(--space);
}

.band {
  background: var(--surface);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 44rem;
  margin-block-end: clamp(40px, 3vw + 24px, 64px);
}

.hero {
  padding-block: clamp(16px, 4vw, 64px) clamp(16px, 2vw, 32px);
}

.hero .wrap,
.host,
.faq {
  display: grid;
  gap: 40px;
}

.hero .wrap {
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.hero-copy .display {
  max-width: 13em;
}

@media (min-width: 960px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
  }

  .charge {
    justify-self: end;
  }

  .host,
  .faq {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }

  .host-intro {
    position: sticky;
    top: 32px;
  }
}

/* Plain statements in rows with hairlines (no cards). */

.promises,
.start ol {
  display: grid;
  gap: 0 32px;
  padding: 0;
  list-style: none;
}

.promises {
  margin-block-start: clamp(56px, 4vw + 32px, 96px);
}

.promises li,
.rows > div,
.start li,
.faq details {
  border-block-start: 1px solid var(--separator);
}

.promises li,
.rows > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-block: 20px;
}

.promises h3,
.rows dt {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.294;
}

.promises p,
.rows dd,
.start span,
.faq details p {
  max-width: 36em;
  color: var(--muted);
}

.rows,
.faq-list {
  border-block-end: 1px solid var(--separator);
}

@media (min-width: 840px) {
  .promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .start ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.host-intro {
  display: grid;
  align-content: start;
  gap: 16px;
}

.start {
  display: grid;
  gap: 24px;
  margin-block-start: clamp(56px, 4vw + 32px, 96px);
}

.start ol {
  counter-reset: start;
}

.start li {
  display: grid;
  align-content: start;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 4px 12px;
  padding-block: 16px;
  counter-increment: start;
}

.start li::before {
  content: counter(start);
  grid-row: span 2;
  color: var(--link);
  font-size: 1.25rem;
  font-stretch: 112.5%;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.3;
}

.start strong {
  font-weight: 600;
}

/* Questions: native disclosure, so they open without JavaScript. */

.faq summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-inline-end: 6px;
  border-block-end: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 240ms var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq details p {
  padding-block-end: 20px;
}

/* Contact */

.contact {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.mail {
  padding-block: 8px;
  font-size: clamp(1.25rem, 0.7rem + 3.4vw, 3rem);
  font-stretch: 112.5%;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.mail:hover {
  text-decoration-thickness: 3px;
}

/* Reduced motion is instant (tokens.css); the ring rests filled. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .ring-fill {
    stroke: CanvasText;
  }

  .ring-ponto {
    fill: CanvasText;
  }
}
