:root {
  --ink: #082a55;
  --muted: #6e819a;
  --blue: #2f80ed;
  --pale: #eef8ff;
  --pale-2: #f5fbff;
  --line: rgba(8, 42, 85, 0.12);
  --shell: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(8, 42, 85, 0.08);
  backdrop-filter: blur(18px);
}

.brand-wordmark {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(8, 42, 85, 0.7);
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--blue); }

.nav-links .nav-contact {
  padding: 9px 14px;
  border: 1px solid rgba(47, 128, 237, 0.28);
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.08);
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.08);
}

.nav-links .nav-contact:hover {
  border-color: rgba(47, 128, 237, 0.42);
  background: rgba(47, 128, 237, 0.12);
}

.has-contact-modal {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 22, 44, 0.42);
  backdrop-filter: blur(8px);
}

.contact-modal__panel {
  position: relative;
  width: min(480px, 100%);
  padding: 34px;
  border: 1px solid rgba(186, 230, 253, 0.72);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbff 100%);
  box-shadow: 0 34px 90px rgba(8, 42, 85, 0.22);
  text-align: left;
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
}

.contact-modal.is-open .contact-modal__panel {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(8, 42, 85, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.contact-modal h2 {
  margin: 0 42px 12px 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.contact-modal__copy {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-modal__email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(47, 128, 237, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.contact-modal__email span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.contact-modal__email a {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(47, 128, 237, 0.22);
}

.scratch-hero {
  position: relative;
  height: 760px;
  overflow: hidden;
  background: #f4f7fb;
  cursor: none;
  touch-action: none;
}

.scratch-base,
#cleanCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scratch-base {
  z-index: 1;
  background: url("./assets/car-calcium-white-studio.png") center / cover no-repeat;
}

#cleanCanvas {
  z-index: 2;
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  z-index: 4;
  left: 92px;
  top: 74px;
  width: 320px;
  user-select: none;
  pointer-events: none;
}

.brush {
  position: absolute;
  z-index: 5;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(186, 230, 253, 0.72);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  pointer-events: none;
  opacity: 0;
}

.section-shell {
  width: min(var(--shell), calc(100% - 80px));
  margin: 0 auto;
}
.narrow { max-width: 880px; }
.center { text-align: center; }

.store-hero {
  padding: 108px 0 92px;
  background: linear-gradient(180deg, #f8fcff 0%, #e6f5ff 100%);
}

.pill,
.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: #2f80ed;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: #dbefff;
}

h1, h2, h3, p { margin-top: 0; }

.store-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(48px, 6vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.store-hero p,
.section-heading p,
.framer-category-card p,
.overview-card p {
  color: var(--muted);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.button-blue {
  margin-top: 12px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(47, 128, 237, 0.25);
}

.overview-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 38px auto 0;
  overflow: hidden;
  border: 1px solid rgba(8, 42, 85, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 26px 70px rgba(47, 128, 237, 0.13);
  text-align: left;
}

.overview-card article {
  padding: 24px 26px;
}
.overview-card article + article { border-left: 1px solid rgba(8, 42, 85, 0.08); }
.overview-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 900;
}
.overview-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.featured-section {
  padding: 96px 0 104px;
  background: #fff;
}

.category-section {
  padding: 96px 0 104px;
  background: linear-gradient(180deg, #f3fbff 0%, #f8fcff 100%);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.section-heading p {
  margin-bottom: 0;
  font-size: 15px;
}

.framer-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.framer-product-grid.single-card {
  max-width: 360px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.framer-product-grid.two-cards {
  max-width: 720px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
}

.framer-product-card {
  overflow: hidden;
  border: 1px solid rgba(8, 42, 85, 0.11);
  border-radius: 24px;
  background: #f8fcff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 24px 70px rgba(47, 128, 237, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.framer-product-card:hover,
.framer-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 80px rgba(47, 128, 237, 0.16);
}

.framer-product-card img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.framer-product-card h3 {
  margin: 18px 22px 5px;
  max-width: 220px;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.framer-product-card span,
.framer-category-card span {
  display: inline-flex;
  margin: 0 22px 24px;
  color: #2f80ed;
  font-size: 12px;
  font-weight: 850;
}

.framer-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.framer-category-card {
  overflow: hidden;
  border: 1px solid rgba(8, 42, 85, 0.11);
  border-radius: 24px;
  background: #f8fcff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 24px 70px rgba(47, 128, 237, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.framer-category-card img {
  width: 100%;
  aspect-ratio: 2.25 / 1;
  object-fit: cover;
}

.framer-category-card h3 {
  margin: 22px 26px 8px;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.framer-category-card p {
  margin: 0 26px 12px;
  font-size: 15px;
}

.framer-category-card span { margin-left: 26px; }

.amazon-cta {
  padding: 92px 0;
  background: var(--ink);
}

.amazon-cta h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.amazon-cta p {
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.65);
}

.button-white {
  color: var(--ink);
  background: #fff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 90px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  color: rgba(8, 42, 85, 0.58);
  font-size: 13px;
}

.site-footer strong {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-email {
  justify-self: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.08);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.site-footer span:last-child { justify-self: end; }

.category-page-hero {
  padding: 22px 0 88px;
  background: #eaf7ff;
}

.category-kicker {
  margin: 0 0 18px;
  color: #2f80ed;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.category-page-hero h1 {
  margin: 0 auto 22px;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(48px, 6.2vw, 72px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 950;
}

.category-page-hero p:not(.category-kicker) {
  max-width: 560px;
  margin: 0 auto 24px;
  color: #5f7894;
  line-height: 1.55;
}

.category-products {
  padding: 96px 0 104px;
  background: #fff;
}

.framer-category-products .section-heading {
  margin-bottom: 34px;
}

.category-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 8px;
  max-width: 820px;
  max-height: 740px;
  margin: 0 auto;
  padding: 8px;
  overflow-y: auto;
  background: #fff;
}

.category-product-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(8, 42, 85, 0.1);
  border-radius: 8px;
  background: #f8fcff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 56px rgba(47, 128, 237, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 64px rgba(47, 128, 237, 0.14);
}

.category-product-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f3f9ff;
}

.category-product-card h3 {
  margin: 10px 14px 2px;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.category-product-card span {
  display: inline-flex;
  margin: 0 14px 12px;
  color: #2f80ed;
  font-size: 9px;
  font-weight: 850;
}

.category-store-cta {
  padding: 92px 0;
  background: var(--ink);
}

.category-store-cta h2 {
  margin: 0 auto 22px;
  max-width: 760px;
  color: #fff;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.category-store-cta p {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: 88px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }
  .scratch-hero { height: 620px; cursor: auto; }
  .hero-logo { left: 32px; top: 44px; width: 240px; }
  .brush { display: none; }
  .overview-card,
  .framer-product-grid,
  .framer-product-grid.two-cards,
  .category-product-grid,
  .framer-category-grid,
  .category-page-grid {
    grid-template-columns: 1fr;
  }
  .overview-card article + article {
    border-left: 0;
    border-top: 1px solid rgba(8, 42, 85, 0.08);
  }
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-email,
  .site-footer span:last-child { justify-self: center; }
}

@media (max-width: 520px) {
  .section-shell { width: min(100% - 32px, var(--shell)); }
  .scratch-hero { height: 540px; }
  .store-hero,
  .featured-section,
  .category-section,
  .category-products,
  .category-store-cta,
  .amazon-cta { padding: 64px 0; }
  .category-page-hero { padding: 26px 0 64px; }
}
