:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --surface-soft: #eee5d8;
  --ink: #211a16;
  --muted: #6f6259;
  --faint: #9b8b7d;
  --line: #ded2c2;
  --accent: #c9622f;
  --accent-dark: #8f3d1d;
  --accent-soft: #f4e2d7;
  --ok: #2f6f4e;
  --shadow: 0 18px 60px rgba(33, 26, 22, .08);
  --shadow-soft: 0 8px 28px rgba(33, 26, 22, .07);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,243,236,0) 34rem),
    radial-gradient(circle at 50% -10%, rgba(201,98,47,.14), transparent 34rem);
  z-index: -1;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: white;
  padding: .65rem .9rem;
  border-radius: .5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(247, 243, 236, .88);
  border-bottom: 1px solid rgba(222, 210, 194, .8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand span span {
  color: var(--accent);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}

.desktop-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .22rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: rgba(255,255,255,.78);
}

.lang-btn {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.lang-btn.active {
  background: var(--ink);
  color: white;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
  padding: .65rem;
}

.menu-btn span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: sticky;
  top: 68px;
  z-index: 40;
  padding: .5rem 1rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: .85rem .2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.hero {
  width: min(1120px, calc(100% - 2rem));
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 .8rem;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.45rem, 8vw, 5.35rem);
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: .45rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-sub {
  max-width: 620px;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 22px rgba(201, 98, 47, .22);
}

.btn.secondary {
  background: rgba(255,255,255,.78);
  border-color: var(--line);
  color: var(--ink);
}

.btn.mini {
  min-height: 38px;
  padding: .55rem .8rem;
  font-size: .82rem;
}

.affiliate-note {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.phone-preview {
  position: relative;
  width: min(100%, 340px);
  min-height: 520px;
  justify-self: center;
  padding: 1rem;
  border: 10px solid #1f1a17;
  border-radius: 2.4rem;
  background: linear-gradient(180deg, #fff, #f5eee4);
  box-shadow: var(--shadow);
}

.phone-top {
  width: 92px;
  height: 5px;
  margin: .15rem auto 1.4rem;
  border-radius: 999px;
  background: #1f1a17;
  opacity: .9;
}

.preview-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow-soft);
}

.preview-label,
.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .24rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.preview-label,
.tag {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.preview-card strong {
  display: block;
  margin: .8rem 0 .4rem;
  font-size: 1.3rem;
  line-height: 1.12;
}

.preview-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.preview-list {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}

.preview-list span {
  height: 74px;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: rgba(255,255,255,.72);
}

.section,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.section-head.compact {
  margin-bottom: .8rem;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
  white-space: nowrap;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: .9rem;
  align-items: end;
  margin-bottom: 1rem;
}

.search {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
  color: var(--ink);
  padding: .75rem .9rem;
  outline: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 98, 47, .12);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.chip {
  min-height: 42px;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.chip.active,
.chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

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

.product-card {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.product-card[hidden] {
  display: none;
}

.product-card.is-featured {
  grid-column: span 2;
}

.product-media {
  min-height: 142px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(201,98,47,.15), rgba(255,255,255,.2)),
    var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.product-media.has-image {
  background: #f4efe7;
}

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

.product-media span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(143,61,29,.22);
  border-radius: 1rem;
  background: rgba(255,255,255,.72);
  color: var(--accent-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.product-body {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .8rem;
}

.status {
  background: #edf4ee;
  color: var(--ok);
}

.product-body p,
.section-copy,
.legal-panel p,
.contact-panel p {
  color: var(--muted);
}

.product-body p {
  margin-bottom: 1rem;
  font-size: .92rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: auto;
}

.price {
  color: var(--ink);
  font-weight: 900;
}

.card-action {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--surface-soft);
  color: var(--muted);
  padding: .5rem .75rem;
  font-weight: 900;
}

.empty-state {
  display: none;
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: grid;
  gap: .35rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}

.steps {
  display: grid;
  gap: .8rem;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255,255,255,.72);
}

.step span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: .8rem;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.step strong {
  align-self: end;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-panel,
.contact-panel {
  padding: 1.25rem;
  margin-top: clamp(3rem, 8vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255,255,255,.78);
}

.legal-panel p:last-child,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer {
  padding: 2rem 0;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.footer-copy {
  margin: 1rem 0 0;
  color: var(--faint);
  font-size: .82rem;
}

.install-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: none;
  width: min(340px, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.install-banner.show {
  display: block;
}

.install-banner p {
  margin: .25rem 0 .85rem;
  color: var(--muted);
  font-size: .9rem;
}

.install-actions {
  display: flex;
  gap: .55rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 90;
  max-width: min(420px, calc(100% - 2rem));
  padding: .8rem 1rem;
  border-radius: .8rem;
  background: var(--ink);
  color: white;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .phone-preview {
    width: min(100%, 420px);
    min-height: 390px;
  }

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

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

@media (max-width: 720px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .site-header {
    gap: .6rem;
  }

  .language-switch {
    margin-left: auto;
  }

  .hero {
    width: min(100% - 1.5rem, 1120px);
    padding-top: 2rem;
  }

  .section,
  .site-footer {
    width: min(100% - 1.5rem, 1120px);
  }

  .section-head,
  .contact-panel,
  .footer-main {
    flex-direction: column;
    align-items: stretch;
  }

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

  .product-card.is-featured {
    grid-column: auto;
  }

  .hero-actions .btn,
  .contact-panel .btn {
    width: 100%;
  }

  .footer-links {
    display: grid;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.35rem;
  }

  .phone-preview {
    min-height: 330px;
    border-width: 8px;
  }

  .preview-list span {
    height: 52px;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .card-action {
    width: 100%;
  }
}
