:root {
  --bg: #fff;
  --surface: #fff;
  --ink: #152033;
  --muted: #5b6b82;
  --accent: #2f6fed;
  --accent-soft: #e8f0fe;
  --line: rgba(21, 32, 51, 0.08);
  --shadow: 0 12px 40px rgba(21, 32, 51, 0.08);
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  flex: 1;
}

.font-display {
  font-family: inherit;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-stuck {
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 32, 51, 0.08);
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #255dcc;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-header {
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.price {
  color: var(--accent);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.price-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.buy-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
}

.buy-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  font-size: 1.125rem;
  cursor: pointer;
}

.qty span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f5f7fa;
  margin-top: auto;
  padding-bottom: 7rem;
}

.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.site-footer__logo {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-footer .muted {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0.75rem 0 0;
  max-width: 24rem;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: 0.7;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.site-footer__social-link:hover {
  color: var(--accent);
  opacity: 1;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__copy {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.site-footer__legal {
  display: flex;
  gap: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Mobile home */
.home-mobile {
  padding: 0 1rem 8rem;
}

.home-mobile h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0;
}

.home-desktop {
  display: none;
}

/* Product */
.product {
  padding: 0.5rem 1rem 8.5rem;
}

.gallery-main {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.gallery-thumbs button.is-active {
  border-color: var(--accent);
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0;
}

.product .subtitle {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.buy-card {
  margin-top: 1.25rem;
  padding: 1.25rem;
}

.buy-card__cta {
  display: flex;
  width: 100%;
  margin-top: 1.25rem;
  justify-content: center;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.specs .card {
  padding: 1rem;
}

.specs dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.specs dd {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.details {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.details li {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.details li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.page-card {
  max-width: 800px;
  margin: 1rem auto 8rem;
  padding: 2rem 1rem;
}

.page-card .card {
  padding: 2rem 1.25rem;
}

.legal {
  color: var(--ink);
  line-height: 1.7;
}

.legal h1 {
  margin: 0 0 1.5rem;
  font-size: 2.25rem;
  line-height: 1.15;
}

.legal h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.legal h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal h4 {
  margin: 1.15rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.legal p {
  margin: 0 0 0.85rem;
}

.legal ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.legal a:hover {
  text-decoration: underline;
}

.alert {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
}

.notice {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: var(--accent-soft);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .site-header__inner {
    padding: 1.25rem 2rem;
  }

  .buy-bar {
    display: none !important;
  }

  .home-mobile {
    display: none;
  }

  .home-desktop {
    display: block;
    background: #fff;
  }

  .home-desktop__sticky {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: #fff;
  }

  .home-desktop__grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0;
  }

  .hero-copy .accent-line {
    width: 4rem;
    height: 0.25rem;
    border-radius: 999px;
    background: var(--accent);
    margin: 1.5rem 0 0;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .hero-cover {
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-cover img {
    width: 100%;
    height: auto;
  }

  .product {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .product__gallery {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }

  .product h1 {
    font-size: 3rem;
  }

  .site-footer {
    padding-bottom: 0;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 3rem 2rem 2rem;
  }

  .site-footer__copy {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 2rem;
    text-align: left;
  }

  .page-card {
    padding: 2.5rem 2rem 4rem;
  }
}
