/* EA Trade shop — landing page theme */
:root {
  --shop-bg: #050505;
  --shop-soft: #0c0c0c;
  --shop-ink: #f5f5f5;
  --shop-muted: #8a8a8a;
  --shop-dim: #5c5c5c;
  --shop-line: rgba(255, 255, 255, 0.08);
  --shop-green: #25d366;
  --shop-green-ink: #04140a;
  --shop-font: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --shop-max: 980px;
  --shop-gutter: clamp(1.25rem, 5vw, 2.5rem);
}

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

html.shop-html {
  height: 100%;
  height: 100dvh;
}

body.shop-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--shop-font);
  color: var(--shop-ink);
  background: var(--shop-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.shop-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 12%, rgba(37, 211, 102, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(255, 255, 255, 0.03), transparent 50%);
  z-index: 0;
}

.shop-topbar,
.shop-main,
.shop-footer,
.shop-wa,
.shop-overlay {
  position: relative;
  z-index: 1;
}

.shop-topbar {
  flex-shrink: 0;
  z-index: 50;
  padding: 22px 0 10px;
}
.shop-topbar__inner {
  width: min(1080px, calc(100% - var(--shop-gutter) * 2));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}
.shop-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.shop-brand img { width: auto; height: 40px; object-fit: contain; }
.shop-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.shop-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--shop-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.shop-nav a:hover,
.shop-nav a[aria-current="page"] { color: var(--shop-ink); }
.shop-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--shop-ink) !important;
}
.shop-nav-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.shop-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.65rem 0 0.5rem;
  overflow: hidden;
}
.shop-wrap {
  width: min(var(--shop-max), calc(100% - var(--shop-gutter) * 2));
  margin: 0 auto;
}

.shop-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  border: 1px solid var(--shop-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.shop-summary {
  padding: 1.5rem 1.7rem;
  border-right: 1px solid var(--shop-line);
}
.shop-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbf7d0;
}
.shop-summary h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.shop-lead {
  margin: 0.55rem 0 0;
  max-width: 28rem;
  color: var(--shop-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.45;
}
.shop-price {
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.shop-price span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shop-dim);
}
.shop-price strong {
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
}
.shop-includes {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.shop-includes li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--shop-muted);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.35;
}
.shop-includes li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2304140a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.4 11 12.5 5'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat,
    var(--shop-green);
}
.shop-includes li > span { display: grid; gap: 0.1rem; }
.shop-includes strong {
  color: var(--shop-ink);
  font-weight: 600;
}
.shop-note {
  margin: 0.95rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--shop-line);
  font-size: 0.8rem;
  color: var(--shop-dim);
  line-height: 1.45;
}
.shop-note a { color: var(--shop-green); text-decoration: none; font-weight: 500; }
.shop-note a:hover { text-decoration: underline; }

.shop-checkout {
  padding: 1.5rem 1.7rem;
  background: rgba(0, 0, 0, 0.28);
}
.shop-checkout__head { margin-bottom: 0.95rem; }
.shop-checkout__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.shop-checkout__head small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--shop-dim);
}

.shop-field { margin-bottom: 0.85rem; }
.shop-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-muted);
}
.shop-field input[type="email"] {
  width: 100%;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #0a0a0a;
  color: var(--shop-ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.shop-field input::placeholder { color: var(--shop-dim); }
.shop-field input:focus {
  outline: none;
  border-color: var(--shop-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}
.shop-field input.is-invalid {
  border-color: #f87171;
  box-shadow: none;
}
.shop-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--shop-ink);
  caret-color: var(--shop-ink);
  transition: background-color 9999s ease-out;
}
.shop-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--shop-dim);
  line-height: 1.4;
}

.shop-agree {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.shop-agree__note {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--shop-ink);
}
.shop-agree label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--shop-muted);
  cursor: pointer;
}
.shop-agree input { margin-top: 0.15rem; accent-color: var(--shop-green); }
.shop-agree a { color: var(--shop-green); }

.shop-pay-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  color: var(--shop-dim);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.shop-pay-btn.is-ready {
  background: var(--shop-green);
  color: var(--shop-green-ink);
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
.shop-pay-btn.is-ready:hover {
  background: #3ee57a;
  transform: translateY(-1px);
}
.shop-pay-btn--secondary {
  margin-top: 0.5rem;
  background: transparent;
  color: var(--shop-ink);
  border: 1px solid var(--shop-line);
  font-weight: 600;
}
.shop-pay-btn--secondary.is-ready {
  background: transparent;
  color: var(--shop-ink);
}
.shop-pay-btn--secondary.is-ready:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  transform: none;
}
.shop-status {
  margin: 0.55rem 0 0;
  min-height: 1.2em;
  text-align: center;
  font-size: 0.78rem;
  color: var(--shop-muted);
  line-height: 1.4;
}
.shop-secure {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--shop-dim);
  letter-spacing: 0.04em;
}

.shop-help {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--shop-line);
  text-align: center;
  font-size: 0.8rem;
  color: var(--shop-dim);
}
.shop-help a { color: var(--shop-muted); text-decoration: none; }
.shop-help a:hover { color: var(--shop-ink); }

.shop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 5, 0.72);
  padding:
    max(0.75rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
}
.shop-overlay.is-open {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.shop-overlay__sheet {
  width: min(520px, 100%);
  height: min(100dvh, 100vh);
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1.5rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  background: var(--shop-soft);
  overflow: hidden;
}
.shop-overlay__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--shop-line);
}
.shop-overlay__bar h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.shop-overlay__close {
  border: 0;
  background: none;
  color: var(--shop-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}
.shop-overlay__close:hover { color: var(--shop-ink); }
.shop-overlay__frame {
  flex: 1;
  min-height: 0;
  background: #fff;
}
.shop-overlay__frame iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
}
.shop-overlay__loading {
  display: none;
  padding: 2rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--shop-muted);
}
.shop-overlay__loading.is-active { display: block; }

.checkout-form-panel.is-hidden { display: none; }

.shop-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--shop-line);
  padding: 1rem var(--shop-gutter) 1.25rem;
}
.shop-footer__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.shop-footer-brand img { height: 36px; width: auto; }
.shop-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.shop-footer a { color: var(--shop-muted); text-decoration: none; font-size: 0.9rem; }
.shop-footer a:hover { color: var(--shop-ink); }
.shop-footer-copy {
  width: min(1080px, 100%);
  margin: 0.7rem auto 0;
  color: var(--shop-dim);
  font-size: 0.8rem;
}

.shop-wa {
  position: fixed;
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  top: auto;
  z-index: 80;
  width: min(236px, calc(100vw - 2rem));
  padding: 0.85rem 0.85rem 0.7rem;
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.82);
  border: 1px solid rgba(37, 211, 102, 0.28);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-28px) translateY(-10px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.shop-wa.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
body.shop-paying .shop-wa {
  opacity: 0;
  pointer-events: none;
}
.shop-wa__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--shop-dim);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.shop-wa__close:hover { color: var(--shop-ink); }
.shop-wa__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbf7d0;
}
.shop-wa__eyebrow svg { width: 13px; height: 13px; }
.shop-wa h3 {
  margin: 0.4rem 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--shop-ink);
}
.shop-wa p {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--shop-muted);
}
.shop-wa__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--shop-green);
  color: var(--shop-green-ink);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
}
.shop-wa__progress {
  margin-top: 0.7rem;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(37, 211, 102, 0.18);
}
.shop-wa__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--shop-green);
  transform-origin: left;
}
.shop-wa.is-open .shop-wa__progress span {
  animation: shop-wa-countdown 6s linear forwards;
}
@keyframes shop-wa-countdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 820px) {
  body.shop-page { overflow: auto; max-height: none; }
  .shop-panel { grid-template-columns: 1fr; }
  .shop-summary { border-right: 0; border-bottom: 1px solid var(--shop-line); }
}

@media (max-width: 720px) {
  .shop-topbar { padding: 16px 0 8px; }
  .shop-nav { display: none; }
  .shop-main { padding: 0.55rem 0 0.75rem; justify-content: flex-start; }
  .shop-wrap { width: min(100% - 1.25rem, 420px); }
  .shop-panel { border-radius: 20px; }
  .shop-summary,
  .shop-checkout { padding: 0.9rem 0.95rem 1rem; }
  .shop-kicker,
  .shop-lead,
  .shop-note,
  .shop-checkout__head,
  .shop-hint,
  .shop-secure,
  .shop-help { display: none; }
  .shop-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.65rem;
  }
  .shop-summary h1 { font-size: 1.35rem; }
  .shop-price {
    margin: 0 0 0 auto;
    flex-direction: row;
    align-items: baseline;
    gap: 0.35rem;
  }
  .shop-price strong { font-size: 1.35rem; }
  .shop-includes {
    flex: 1 1 100%;
    margin: 0.35rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.65rem;
  }
  .shop-includes li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.2;
  }
  .shop-includes li > span > span { display: none; }
  .shop-includes li::before {
    width: 14px;
    height: 14px;
    margin-top: 0;
    background-size: 11px 11px, auto;
  }
  .shop-field { margin-bottom: 0.5rem; }
  .shop-field label { margin-bottom: 0.25rem; }
  .shop-field input[type="email"] { padding: 0.7rem 0.8rem; }
  .shop-agree {
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    padding: 0.5rem 0.6rem;
  }
  .shop-agree__note { font-size: 0.72rem; }
  .shop-agree label { font-size: 0.75rem; line-height: 1.3; gap: 0.45rem; }
  .shop-pay-btn { padding: 0.78rem 1rem; }
  .shop-status { margin-top: 0.35rem; font-size: 0.72rem; }
  .shop-footer { padding: 0.85rem 0.75rem 1.1rem; }
  .shop-overlay {
    padding:
      env(safe-area-inset-top)
      env(safe-area-inset-right)
      env(safe-area-inset-bottom)
      env(safe-area-inset-left);
  }
  .shop-overlay__sheet {
    width: 100%;
    max-height: 100dvh;
    border-radius: 16px 16px 0 0;
    align-self: flex-end;
  }
  .shop-wa {
    top: auto;
    bottom: max(4.5rem, env(safe-area-inset-bottom));
    left: max(0.65rem, env(safe-area-inset-left));
    width: min(210px, calc(100vw - 1.3rem));
    padding: 0.7rem 0.75rem 0.55rem;
  }
  .shop-wa h3 { font-size: 0.88rem; }
  .shop-wa p { display: none; }
}
