/* Faithful to the live chargerplus.com: Open Sans light, black and white, one section per screen. */
:root {
  --bg: #ffffff;
  --grey: #f0f0f0;
  --contact: #ebebeb;
  --text: #212529;
  --ink: #000000;
  --field-line: #ced4da;
  --placeholder: #8a8f94;
  --header-h: 60px;
  --wrap: 1140px;
  --font: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-snap-type: y proximity; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 18px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; font-weight: 300; }
h2 { text-wrap: balance; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); width: 100%; }
.wrap--narrow { max-width: 722px; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.header img { height: 44px; width: auto; }

/* Hero: the full photo (cover, centered, never zoomed in), the copy under the charger. */
/* The hero runs under the floating header, so the photo fills the whole first screen. */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #f2f2f2 url("img/hero.webp") center calc(50% + var(--header-h) / 2) / cover no-repeat;
  padding: 0 16px 13vh;
  text-align: center;
  scroll-snap-align: start;
  scroll-margin-top: var(--header-h);
}
.hero h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; color: var(--text); }
.hero__small { display: block; font-size: clamp(15px, 1.75vw, 24px); margin-bottom: 10px; }

/* One screen below the floating header. */
.screen {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 72px 0;
  scroll-snap-align: start;
  text-align: center;
}
.screen--grey { background: var(--grey); }
.screen--contact { background: var(--contact); }
.screen h2 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.2; margin: 0 auto 64px; max-width: 900px; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.item img { width: 128px; height: 128px; margin: 0 auto 22px; }
.item h3 { font-size: 20px; margin-bottom: 14px; }
.item p { font-size: 16px; max-width: 250px; margin: 0 auto; }

.lead { font-size: 20px; max-width: 1000px; margin: -32px auto 40px; }
.lead--tight { margin: -48px auto 32px; font-size: 18px; }
/* Technology: one big light numeral as the claim, the four benefits as a ruled list with line icons. */
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; text-align: left; }
.tech > * { min-width: 0; }
.tech__title { margin: 0 0 28px; max-width: none; font-size: inherit; }
.tech__eyebrow { display: block; font-size: 14px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; }
.tech__number { display: block; font-size: clamp(110px, 13vw, 190px); line-height: .9; letter-spacing: -.04em; color: var(--ink); }
.tech__unit { display: block; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; margin-top: 10px; }
.tech__lead { font-size: 18px; max-width: 470px; }
.tech__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--field-line); }
.tech__list li { display: flex; align-items: center; gap: 22px; padding: 26px 4px; border-bottom: 1px solid var(--field-line); font-size: 20px; }
.tech__list svg { flex: none; width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.form { display: grid; gap: 16px; text-align: left; }
.form input, .form textarea, .subscribe input {
  font: 400 16px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--field-line);
  border-radius: 6px;
  padding: 7px 12px;
  width: 100%;
}
.form textarea { resize: vertical; min-height: 86px; }
.form input::placeholder, .form textarea::placeholder, .subscribe input::placeholder { color: var(--placeholder); }
.form input:focus, .form textarea:focus, .subscribe input:focus { outline: none; border-color: var(--ink); }
.form .btn { justify-self: end; margin-top: 8px; }

.btn {
  font: 400 16px/1.5 var(--font);
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 6px 16px;
  cursor: pointer;
}
.btn:hover { background: var(--text); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn--bold { font-weight: 700; }

.subscribe { display: flex; width: 100%; max-width: 380px; }
.subscribe input { border-radius: 6px 0 0 6px; font-size: 14px; padding: 6px 12px; min-width: 0; }
.subscribe .btn { border-radius: 0 6px 6px 0; padding: 6px 14px; font-size: 14px; white-space: nowrap; }

.footer { background: var(--bg); border-top: 1px solid var(--grey); padding: 28px 0 20px; scroll-snap-align: end; }
.footer__inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer__subscribe { display: grid; grid-template-columns: minmax(0, 470px) 380px; align-items: center; gap: 32px; }
.footer__subscribe p { font-size: 15px; text-align: left; line-height: 1.4; }
.footer__copy { font-size: 14px; font-weight: 400; }

@media (max-width: 960px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .screen h2 { margin-bottom: 48px; }
  .lead { margin-top: -24px; }
  .tech { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr; }
  .tech__list li { font-size: 18px; gap: 16px; padding: 20px 0; }
  .tech__list svg { width: 36px; height: 36px; }
  .item img { width: 104px; height: 104px; }
  .footer__subscribe { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .footer__subscribe p { text-align: center; }
}
