@import url("tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: var(--leading-body);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--color-charcoal);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

/* —— Announcement —— */
.announcement {
  background: var(--color-charcoal);
  color: #f5f5f2;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
}

.announcement p {
  margin: 0;
}

/* —— Header —— */
.header {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  object-fit: cover;
  background: var(--color-surface);
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-links {
  display: none;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

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

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.lang-switch {
  display: flex;
  gap: 0.15rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.15rem;
  background: var(--color-surface);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--color-charcoal);
  color: #fff;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--radius);
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) ease,
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
}

.btn-secondary:hover {
  background: var(--color-charcoal);
  color: #fff;
}

.btn-on-dark {
  border-color: #fafaf8;
  color: #fafaf8;
}

.btn-on-dark:hover {
  background: #fafaf8;
  color: var(--color-charcoal);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-line);
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: var(--color-ink, #1a1a1a);
  overflow: hidden;
  background: var(--color-paper, #fafaf8);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  background: var(--color-paper, #fafaf8);
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: min(88vh, 720px);
  object-fit: contain;
  object-position: center center;
  opacity: 1;
  animation: heroFade 1.1s var(--ease-out) both;
}

/* Soft scrim only behind text — keep transparent PNG on light paper */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(250, 250, 248, 0.75) 70%, rgba(250, 250, 248, 0.96) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 8vw, 5.5rem) 0 3.5rem;
  animation: riseIn 0.8s var(--ease-out) 0.15s both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--color-ink, #1a1a1a);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: 22ch;
  color: var(--color-ink, #1a1a1a);
}

.hero-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--color-muted, #5c5c5c);
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 0.72;
    transform: scale(1);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
section {
  padding: var(--space-section) 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* —— Products teasers —— */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gap);
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.product-card:hover,
.product-card.is-selected {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-soft);
}

.product-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.product-card p {
  margin: 0;
  color: var(--color-muted);
  flex: 1;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.price-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* —— Feature splits —— */
.feature-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

@media (min-width: 800px) {
  .feature-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .feature-split.is-reverse .feature-copy {
    order: -1;
  }
}

.feature-visual {
  aspect-ratio: 4 / 3;
  background: #ebe8e0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-visual img,
.feature-visual video,
.feature-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-visual--video {
  background: var(--color-ink, #1a1a1a);
}

.feature-copy h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.feature-copy p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  max-width: 36rem;
}

.features-band {
  border-block: 1px solid var(--color-line);
  background: #f5f3ed;
}

/* —— Gallery —— */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ebe8e0;
  aspect-ratio: 1;
  opacity: 0;
  transform: translateY(12px);
  animation: galleryIn 0.55s var(--ease-out) forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.4s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }
.gallery-item:nth-child(10) { animation-delay: 0.5s; }

@keyframes galleryIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* —— How it works —— */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gap);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  padding: 0.25rem 0;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--color-charcoal);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

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

/* —— Trust strip —— */
.trust-strip {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0;
  border-block: 1px solid var(--color-line);
  text-align: center;
}

@media (min-width: 700px) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.trust-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* —— FAQ —— */
.faq details {
  border-bottom: 1px solid var(--color-line);
  padding: 1rem 0;
}

.faq details:first-of-type {
  border-top: 1px solid var(--color-line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-muted);
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  max-width: 48rem;
}

/* —— Order / configurator —— */
#order {
  background: #f5f3ed;
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.panel[hidden],
[hidden] {
  display: none !important;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row.two {
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  font-weight: 600;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--color-ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.hint {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.swatch-row,
.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.swatch,
.size-btn {
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 2.75rem;
}

.swatch.is-active,
.size-btn.is-active {
  border-color: var(--color-charcoal);
  background: var(--color-charcoal);
  color: #fff;
}

.swatch-black::before,
.swatch-white::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: -1px;
  border: 1px solid var(--color-line);
}

.swatch-black::before {
  background: #111;
}

.swatch-white::before {
  background: #fff;
}

.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-line);
  margin-top: 0.5rem;
}

.status {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--color-info-bg);
  color: var(--color-accent-hover);
}

.status.is-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.photo-name {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-charcoal);
  color: rgba(250, 250, 248, 0.78);
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}

.footer a {
  color: rgba(250, 250, 248, 0.9);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fafaf8;
  margin: 0 0 0.5rem;
}

.footer h3 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 250, 248, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* —— Success / cancel —— */
.simple-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}

.simple-card {
  width: min(480px, 100%);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.simple-card h1 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.simple-card .logo {
  margin: 0 auto 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
