/* ChargedUpStudio — brand colours from the shop listings and banner */
:root {
  --teal: #3e7c75;
  --teal-dark: #2f5f5a;
  --teal-deep: #1f3f3c;
  --cream: #f2ece2;
  --cream-dark: #e6ddd0;
  --paper: #fffdf8;
  --coral: #d98e6a;
  --coral-dark: #c57552;
  --gold: #c9a227;
  --sage: #6b8f5e;
  --char: #2f3437;
  --muted: #5b6366;
  --pale: #d7e7e5;
  --sand: #ece2d2;
  --line: #d4cbc0;
  --shadow: 0 10px 30px rgba(47, 52, 55, 0.08);
  --radius: 18px;
  --max: 1120px;
  --header: 76px;
}

@font-face {
  font-family: Poppins;
  src: url("../fonts/Poppins-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("../fonts/Poppins-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("../fonts/Poppins-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("../fonts/Poppins-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("../fonts/Poppins-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--char);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6em; color: var(--char); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--char);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip:focus { left: 16px; top: 16px; }

.container {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 236, 226, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--char);
}
.logo img, .logo svg { width: 42px; height: 36px; }
.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--char);
}
.wordmark .up { color: var(--teal); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--char);
  border-radius: 2px;
  transition: transform 0.2s, top 0.2s, opacity 0.2s;
}
.menu-toggle span { top: 21px; }
.menu-toggle span::before { content: ""; top: -7px; }
.menu-toggle span::after { content: ""; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--char);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--teal-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-coral {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.btn-coral:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal);
}
.btn-ghost:hover { background: var(--pale); color: var(--teal-deep); }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0 3.6rem;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-blob.one { width: 28rem; height: 28rem; background: var(--pale); top: -8rem; right: -6rem; }
.hero-blob.two { width: 18rem; height: 18rem; background: var(--sand); bottom: -8rem; left: -5rem; }
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.6rem;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin-top: 1.8rem;
  padding: 0;
  list-style: none;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 500;
}
.trust li { display: flex; align-items: center; gap: 0.4rem; }
.trust li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex: 0 0 auto;
}

.hero-visual {
  display: flex;
  justify-content: center;
}
.battery-stack {
  background: var(--paper);
  border-radius: 28px;
  padding: 2.2rem 2rem 1.8rem;
  box-shadow: var(--shadow);
  text-align: center;
  width: min(100%, 340px);
  border: 1px solid var(--line);
}
.battery-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.batt {
  width: 72px;
}
.batt svg { width: 72px; height: 48px; }
.batt-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.3rem;
}
.battery-stack p {
  margin: 0;
  font-weight: 600;
  color: var(--teal-dark);
}

/* Sections */
.section { padding: 4.2rem 0; }
.section.alt { background: var(--paper); }
.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}
.section-kicker {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.section-head p { color: var(--muted); }

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.section.alt .card { background: var(--cream); }
.card-media {
  background: var(--cream);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.card-media.is-book {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
  padding: 1.2rem 1.4rem 0.8rem;
  aspect-ratio: 4 / 5;
}
.card-media.is-book img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(47, 52, 55, 0.18);
}
.card-body {
  padding: 1.3rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 { margin-bottom: 0.35rem; }
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
  padding: 0;
  list-style: none;
}
.pills li {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--pale);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.card-body p { color: var(--muted); font-size: 0.98rem; }
.ai-note {
  font-size: 0.82rem !important;
  font-style: italic;
  color: var(--muted);
  margin-top: auto;
  margin-bottom: 1rem !important;
}
.card-actions { margin-top: 0; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.2rem;
  align-items: start;
}
.about-panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-panel h3 { color: var(--teal-dark); }
.about-panel ul { margin: 0; padding: 0 0 0 1.1rem; color: var(--muted); }
.about-panel li { margin-bottom: 0.45rem; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 0.7rem;
  padding: 0 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 1.6rem 1rem 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  color: var(--teal);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.2rem;
  align-items: start;
}
form {
  display: grid;
  gap: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.3rem; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--char);
}
input:focus, textarea:focus {
  outline: 3px solid var(--pale);
  border-color: var(--teal);
}
textarea { min-height: 9rem; resize: vertical; }
form .btn { justify-self: start; }
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-success {
  display: none;
  background: var(--pale);
  border: 1px solid var(--teal);
  color: var(--teal-deep);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.form-success.is-visible { display: block; }

/* Footer */
.site-footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 2.6rem 0 1.6rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(242, 236, 226, 0.18);
}
.footer-brand .wordmark { color: var(--cream); font-size: 1.2rem; }
.footer-brand .wordmark .up { color: #9dcdc7; }
.footer-tag { color: var(--pale); margin: 0.4rem 0 0; font-size: 0.95rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  align-items: center;
}
.footer-nav a, .site-footer a { color: var(--cream); text-decoration: none; }
.footer-nav a:hover, .site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--pale);
}

/* Privacy prose */
.prose { max-width: 42rem; padding-top: 2rem; padding-bottom: 2rem; }
.prose h1 { margin-top: 0.2rem; }
.prose h2 { margin-top: 1.8rem; font-size: 1.25rem; }

@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .battery-stack { width: 100%; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.2rem 1.1rem;
    gap: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 0.8rem; width: 100%; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { transition: none; }
}
