:root {
  --bg: #ffffff;
  --text: #0c0c0c;
  --muted: #666666;
  --border: #eaeaea;
  --surface: #ffffff;
  --surface-strong: #111111;
  --on-strong: #ffffff;
  --container: 1160px;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
}

[data-theme="dark"] {
  --bg: #0f0f10;
  --text: #f4f4f4;
  --muted: #b3b3b3;
  --border: #2b2b2d;
  --surface: #151517;
  --surface-strong: #f4f4f4;
  --on-strong: #111111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

body.is-consent-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin: 0 auto;
}

.hero {
  padding: 0 0 clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.wordmark {
  margin: 0;
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 200px;
  line-height: 0.96;
  letter-spacing: -0.015em;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  display: block;
  overflow: visible;
  padding-top: 0.04em;
  padding-bottom: 0.05em;
}

.wordmark span {
  display: inline-block;
}

.hero-copy {
  margin-top: 0;
}

.tagline {
  margin: 0;
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(0.95rem, 1.9vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
}

.subline {
  max-width: 42ch;
  margin: 0.65rem auto 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.7vw, 1.05rem);
}

.featured {
  padding: var(--space-xl) 0;
}

.catalog {
  padding: 0 0 var(--space-xl);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.section-title {
  margin: 0 0 var(--space-md);
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.category-strip {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.catalog-search input {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.48rem 0.7rem;
  min-width: 220px;
  font: inherit;
  font-size: 0.88rem;
}

.catalog-search input::placeholder {
  color: var(--muted);
}

.catalog-search input:focus-visible {
  outline: 2px solid var(--surface-strong);
  outline-offset: 1px;
}

.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;
}

.category-link {
  appearance: none;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 0.48rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.category-link:hover,
.category-link:focus-visible,
.category-link.is-active {
  background: var(--surface-strong);
  color: var(--on-strong);
  border-color: var(--surface-strong);
}

.product-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.8rem 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card.is-hidden {
  display: none !important;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-image-link {
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

.product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title {
  margin: var(--space-md) 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.product-title-link {
  text-decoration: none;
}

.product-title-link:hover,
.product-title-link:focus-visible {
  text-decoration: underline;
}

.product-price {
  margin: 0 0 var(--space-md);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.buy-button {
  margin-top: auto;
  border: 1px solid var(--surface-strong);
  padding: 0.72rem 1rem;
  text-decoration: none;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text);
  transition: background-color 180ms ease, color 180ms ease;
}

.buy-button:hover,
.buy-button:focus-visible {
  background: var(--surface-strong);
  color: var(--on-strong);
}

.how-it-works {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  list-style: none;
  margin: 0;
  padding: var(--space-lg) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.24rem;
}

.step-title {
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step-note {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-footer {
  padding: var(--space-lg) 0 var(--space-xl);
  position: relative;
}

.footer-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner p {
  margin: 0;
  white-space: nowrap;
}

.made-by {
  position: absolute;
  right: max(0.5rem, env(safe-area-inset-right));
  bottom: max(0.35rem, env(safe-area-inset-bottom));
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}

.made-by-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.made-by-link:hover,
.made-by-link:focus-visible {
  text-decoration: underline;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  white-space: nowrap;
}

.footer-legal-nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-legal-nav a:hover,
.footer-legal-nav a:focus-visible {
  color: var(--text);
  border-color: currentColor;
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  flex: 0 0 auto;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--surface-strong);
  color: var(--on-strong);
  border-color: var(--surface-strong);
}

.legal-main {
  padding: clamp(1.2rem, 4vw, 2.4rem) 0 clamp(2rem, 5vw, 3rem);
}

.legal-wrap {
  width: min(calc(100% - 2.5rem), 860px);
  margin: 0 auto;
}

.legal-title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 700;
}

.legal-meta {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-block {
  border-top: 1px solid var(--border);
  padding: 0.95rem 0;
}

.legal-block h2 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
}

.legal-block p,
.legal-block li {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.legal-block ul {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.34rem;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.62rem 0.7rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  justify-self: start;
  border: 1px solid var(--surface-strong);
  background: var(--surface);
  color: var(--text);
  padding: 0.56rem 0.82rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: var(--surface-strong);
  color: var(--on-strong);
}

.product-detail-page {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3rem);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.product-detail-image-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.7rem;
}

.product-detail-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.product-detail-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.1;
}

.product-detail-kicker {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail-price {
  margin: 0 0 0.7rem;
  font-weight: 600;
}

.product-detail-description {
  margin: 0 0 1rem;
  color: var(--muted);
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.product-back-link {
  border: 1px solid var(--border);
  text-decoration: none;
  padding: 0.72rem 1rem;
}

.product-back-link:hover,
.product-back-link:focus-visible {
  border-color: var(--surface-strong);
}

.product-sequence-nav {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-sequence-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid transparent;
}

.product-sequence-link:hover,
.product-sequence-link:focus-visible {
  color: var(--text);
  border-color: currentColor;
}

.product-sequence-link[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.product-detail-error {
  border: 1px solid var(--border);
  padding: 1rem;
  background: var(--surface);
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.consent-modal[hidden] {
  display: none;
}

.consent-panel {
  width: min(100%, 560px);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 1.1rem;
}

.consent-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.consent-panel p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.consent-panel p a {
  color: var(--text);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
  font-size: 0.92rem;
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#consent-accept,
.consent-exit {
  appearance: none;
  border: 1px solid var(--surface-strong);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  padding: 0.52rem 0.78rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

#consent-accept:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#consent-accept:hover:not(:disabled),
#consent-accept:focus-visible,
.consent-exit:hover,
.consent-exit:focus-visible {
  background: var(--surface-strong);
  color: var(--on-strong);
}

@media (max-width: 980px) {
  .hero {
    padding-bottom: 1.4rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    row-gap: 0.5rem;
  }

  .footer-legal-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .hero {
    padding-top: max(env(safe-area-inset-top), 0px);
    padding-bottom: 1.2rem;
  }

  .wordmark {
    line-height: 0.91;
    padding-top: 0.02em;
    padding-bottom: 0.03em;
  }

  .hero-copy {
    margin-top: 0.2rem;
  }

  .tagline {
    font-size: clamp(0.92rem, 4.6vw, 1.22rem);
    letter-spacing: 0.11em;
    display: none;
  }

  .subline {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
  }

  .product-card {
    width: min(100%, 420px);
  }

  .category-strip {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .category-link {
    flex: 0 0 auto;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-sequence-nav {
    flex-direction: column;
  }

  .catalog-search input {
    width: 100%;
    min-width: 0;
  }

  .buy-button {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 0.7rem;
  }

  .footer-legal-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .made-by {
    right: max(0.35rem, env(safe-area-inset-right));
    bottom: max(0.35rem, env(safe-area-inset-bottom));
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 1rem), var(--container));
  }

  .wordmark {
    line-height: 0.94;
  }

  .tagline {
    font-size: clamp(0.86rem, 4.9vw, 1rem);
    letter-spacing: 0.09em;
  }
}
