/* ============================================================
   ChargeTok — chargetok.com
   Tokens are copied verbatim from the ChargeTok design system
   (tokens/colors.css, typography.css, spacing.css, effects.css)
   so this site is self-contained and deployable on its own.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,500,1,0&display=swap");

:root {
  /* Base — dark only */
  --bg-0: #0A0A0C;
  --bg-1: #101013;
  --surface-1: #16161B;
  --surface-2: #1C1C22;
  --surface-3: #26262E;

  /* Brand — Volt palette */
  --violet-300: #A99DFF;
  --violet-400: #8F80FF;
  --violet-500: #7C6CFF;
  --violet-600: #6553E8;
  --volt-300: #E2FF7A;
  --volt-500: #CFFF3D;
  --volt-600: #B2E51F;
  --pink-500: #E85BF0;

  /* Semantic */
  --danger-500: #FF5C7A;
  --warning-500: #F5D90A;

  /* Text */
  --text-1: #FFFFFF;
  --text-2: #9B9BA8;
  --text-3: #6B6B78;
  --text-on-accent: #0A0A0C;

  --focus-ring: 0 0 0 3px rgba(207, 255, 61, 0.5);

  /* Type */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --leading-display: 0.92;
  --leading-body: 1.4;

  /* Spacing + radii */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --space-9: 48px; --space-10: 64px;
  --radius-sticker: 12px;
  --radius-tile: 18px;
  --radius-card: 32px;
  --radius-pill: 999px;

  /* Effects — hard shadows, no blur */
  --shadow-lift: 0 5px 0 rgba(255, 255, 255, 0.9);
  --shadow-sticker: 4px 4px 0 #0A0A0C;
  --ease-pop: cubic-bezier(0.2, 1.4, 0.4, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;

  /* Site layout */
  --page-max: 1120px;
  --page-pad: 24px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

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

:where(a, button, input, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sticker);
}

/* ---------- primitives ---------- */
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: var(--leading-display);
  letter-spacing: 0.01em;
  margin: 0;
}
.display--hero    { font-size: clamp(52px, 8.6vw, 104px); }
.display--section { font-size: clamp(40px, 5.6vw, 68px); }
.display--sub     { font-size: clamp(28px, 3.4vw, 40px); }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 var(--space-4);
}
.eyebrow--volt   { color: var(--volt-500); }
.eyebrow--onviolet { color: rgba(255, 255, 255, 0.72); }

.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 46ch;
  margin: var(--space-5) 0 0;
}
.lede--onviolet { color: rgba(255, 255, 255, 0.86); }

.muted { color: var(--text-2); }

/* Sticker — tilted pill, the signature motif */
.sticker {
  display: inline-block;
  transform: rotate(-4deg);
  border-radius: var(--radius-sticker);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  background: var(--bg-0);
  color: var(--volt-500);
}
.sticker--alt    { transform: rotate(3deg); }
.sticker--volt   { background: var(--volt-500); color: var(--text-on-accent); }
.sticker--violet { background: var(--violet-500); color: #fff; }
.sticker--pink   { background: var(--pink-500); color: var(--text-on-accent); }
.sticker--shadow { box-shadow: var(--shadow-sticker); }
.sticker--lg     { padding: 12px 20px; font-size: 18px; }

/* Button — always a full pill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  background: var(--volt-500);
  color: var(--text-on-accent);
  transition: transform var(--duration-fast) var(--ease-pop),
              filter var(--duration-fast);
}
.btn:hover     { filter: brightness(1.08); }
.btn:active    { transform: scale(0.96); }
.btn--sm       { height: 40px; padding: 0 20px; font-size: 15px; }
.btn--dark     { background: var(--bg-0); color: var(--text-1); box-shadow: var(--shadow-lift); }
.btn--dark:active { box-shadow: 0 2px 0 rgba(255, 255, 255, 0.9); }
.btn--secondary { background: var(--surface-2); color: var(--text-1); }
.btn--block    { display: flex; width: 100%; }
/* Pre-launch state: the App Store record doesn't exist yet (see site.js) */
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover  { filter: none; }
.btn[aria-disabled="true"]:active { transform: none; }

.btn .ico { font-size: 22px; }

/* Material Symbols Rounded, FILL 1, wght 500 */
.ico {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-0);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 72px;
}
.wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  /* Matches Wordmark in Theme/Components.swift: CHARGE volt, TOK white. */
  color: var(--volt-500);
}
.wordmark em { font-style: normal; color: var(--text-1); }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.nav__links a:hover { color: var(--volt-500); }
@media (max-width: 720px) {
  .nav__links a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--violet-500);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__sticker { margin: -6px 0 0 4px; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.hero__note {
  margin: var(--space-4) 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__phone { justify-self: center; }
}
/* Stacked CTAs read as a ragged pile at phone widths — make them one column */
@media (max-width: 520px) {
  .hero__cta { display: grid; grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .closer__cta .btn { width: 100%; }
}

/* ---------- phone ---------- */
/* Height-driven so the whole hero — headline, CTA and the battery readout —
   clears the fold on a 1280x720 laptop. Width follows from the aspect ratio. */
.phone {
  position: relative;
  height: min(520px, 62vh);
  width: auto;
  aspect-ratio: 1080 / 2340;
  margin-inline: auto;
  background: var(--bg-0);
  border-radius: 46px;
  padding: 10px;
}
@media (max-width: 880px) {
  .phone { height: auto; width: min(280px, 72vw); }
}
/* The HUD is sized in cqw so the charge readout scales with the phone
   instead of swamping it on short viewports. */
.phone__screen {
  position: relative;
  container-type: inline-size;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--bg-1);
}
.phone__screen > video,
.phone__screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone__island {
  position: absolute;
  top: 4.3cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 28cqw;
  height: 7.8cqw;
  border-radius: var(--radius-pill);
  background: var(--bg-0);
  z-index: 3;
}
/* protect text sitting on media */
.phone__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 38%, rgba(10, 10, 12, 0.92) 86%);
}
.phone__hud {
  position: absolute;
  z-index: 2;
  left: 7cqw;
  right: 7cqw;
  bottom: 9cqw;
}
.phone__pct {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 20cqw;
  line-height: var(--leading-display);
  letter-spacing: 0.01em;
  color: var(--volt-500);
}
.phone__time {
  position: absolute;
  z-index: 2;
  top: 5cqw;
  left: 8cqw;
  font-size: 5cqw;
  font-weight: 700;
}

/* Progress — the ONE gradient in the system: violet -> volt, fills only */
.bar {
  position: relative;
  height: 3.5cqw;
  min-height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  margin-top: 3.5cqw;
}
.bar__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--violet-500), var(--volt-500));
  transition: width var(--duration-base) var(--ease-out);
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head .sticker { margin: var(--space-4) 0 0 4px; }

/* Animation rail */
.rail {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--radius-pill); }
.rail__item {
  position: relative;
  flex: 0 0 auto;
  width: 176px;
  aspect-ratio: 1080 / 2340;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: var(--surface-1);
  scroll-snap-align: start;
}
.rail__item video, .rail__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rail__label {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}
.rail__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 55%, rgba(10, 10, 12, 0.8));
}

/* Feature grid */
.features {
  /* Four cards — 2×2 reads as a set; 3-up would orphan one on its own row. */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface-1);
  border-radius: var(--radius-tile);
  padding: var(--space-6);
}
.feature .ico {
  font-size: 32px;
  color: var(--volt-500);
  margin-bottom: var(--space-4);
}
.feature h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 24px;
  line-height: var(--leading-display);
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-3);
}
.feature p { margin: 0; font-size: 15px; color: var(--text-2); }

/* Closing CTA */
.closer {
  background: var(--volt-500);
  color: var(--text-on-accent);
  border-radius: var(--radius-card);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  text-align: center;
}
.closer .sticker { margin-top: var(--space-4); }
.closer__cta { margin-top: var(--space-7); display: flex; justify-content: center; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--surface-3);
  margin-top: clamp(64px, 8vw, 96px);
  padding: var(--space-9) 0 var(--space-10);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: flex-start;
}
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.footer__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}
.footer__links a:hover { color: var(--volt-500); }
.footer__legal {
  margin-top: var(--space-7);
  font-size: 13px;
  color: var(--text-3);
  max-width: 60ch;
}

/* ---------- legal / support pages ---------- */
.page-hero {
  background: var(--violet-500);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  padding: clamp(36px, 5vw, 56px) 0 clamp(40px, 5vw, 56px);
}
.page-hero .sticker { margin: -4px 0 0 4px; }
.page-hero__meta {
  margin: var(--space-5) 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.prose {
  max-width: 68ch;
  padding: clamp(48px, 6vw, 72px) 0 0;
  font-size: 16px;
  color: var(--text-2);
}
.prose h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(26px, 3vw, 34px);
  line-height: var(--leading-display);
  letter-spacing: 0.01em;
  color: var(--volt-500);
  margin: var(--space-9) 0 var(--space-4);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  margin: var(--space-6) 0 var(--space-2);
}
.prose p { margin: 0 0 var(--space-4); }
.prose ul { margin: 0 0 var(--space-4); padding-left: 20px; }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--volt-500); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text-1); font-weight: 700; }
.prose code {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--text-1);
}
.prose hr { border: none; border-top: 1px solid var(--surface-3); margin: var(--space-9) 0; }

.callout {
  background: var(--surface-1);
  border-radius: var(--radius-tile);
  padding: var(--space-6);
  margin: 0 0 var(--space-6);
}
.callout p:last-child { margin-bottom: 0; }

.toc {
  background: var(--surface-1);
  border-radius: var(--radius-tile);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.toc h2 {
  font-size: 11px !important;
  font-family: var(--font-body) !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-3) !important;
  margin: 0 0 var(--space-3) !important;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: var(--space-2); }
.toc a { color: var(--text-1); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--volt-500); }

/* Support page contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact {
  background: var(--surface-1);
  border-radius: var(--radius-tile);
  padding: var(--space-6);
}
.contact .ico { font-size: 28px; color: var(--volt-500); margin-bottom: var(--space-3); }
.contact h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 22px;
  line-height: var(--leading-display);
  letter-spacing: 0.01em;
  color: var(--text-1);
  margin: 0 0 var(--space-2);
}
.contact p { margin: 0 0 var(--space-3); font-size: 15px; color: var(--text-2); }
.contact a { font-weight: 700; color: var(--volt-500); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* FAQ */
.faq { border-top: 1px solid var(--surface-3); }
.faq details {
  border-bottom: 1px solid var(--surface-3);
  padding: var(--space-5) 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "add";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "FILL" 1, "wght" 500;
  font-size: 24px;
  color: var(--volt-500);
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "remove"; }
.faq details p {
  margin: var(--space-3) 0 0;
  color: var(--text-2);
  font-size: 15px;
  max-width: 68ch;
}

/* Unmissable placeholder — every instance must be replaced before launch.
   Search the repo for "fillin" to find them all. */
.fillin {
  background: var(--pink-500);
  color: var(--text-on-accent);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sticker);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--page-pad);
  top: var(--page-pad);
  z-index: 100;
  background: var(--volt-500);
  color: var(--text-on-accent);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
