@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101113;
  --panel-strong: #17191c;
  --line: #2a2e33;
  --text: #f6f8fb;
  --muted: #a8b0b8;
  --red: #e2362f;
  --red-dark: #951d19;
  --green: #74d99f;
  --steel: #9eb7c2;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
  font-family: "Barlow", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

button,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 5vw, 54px);
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.topbar.single {
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.test-mode-badge {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--muted);
}

nav a:hover {
  color: var(--text);
}

.hero,
.section {
  margin: 0 auto;
  padding-inline: 16px;
}

.section {
  width: min(100%, 920px);
}

.flow-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-inline: 16px;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(560px, 78svh, 720px);
  display: grid;
  align-content: center;
  padding: 72px clamp(20px, 8vw, 110px) 52px;
  background: url("/assets/callera-hardwar.jpeg") center 58% / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.58);
}

.hero-mark {
  width: clamp(86px, 22vw, 140px);
  aspect-ratio: 1;
  margin-bottom: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow: var(--shadow);
}

.hero h1,
.flow-hero h1 {
  margin: 0 0 14px;
  font-size: 8rem;
  line-height: 0.88;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero > p:not(.eyebrow) {
  max-width: 590px;
  color: #f5f5f5;
  font-size: 1.16rem;
}

.hero p,
.section p,
.flow-hero p,
.flow-panel p {
  margin: 0 0 16px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(38px, 8vw, 72px);
}

.section h2,
.flow-panel h2 {
  margin: 0 0 14px;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.actions.vertical {
  flex-direction: column;
  align-items: stretch;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141619;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
}

.button.secondary {
  background: transparent;
}

.button.small {
  min-height: 38px;
  padding: 8px 10px;
}

.stack {
  display: grid;
  gap: 14px;
}

.stack.compact {
  gap: 8px;
}

.product-card,
.place-card,
.feature-list article,
.flow-panel,
.buy-product,
.selected-place,
.summary-line,
.banking-box,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.product-card {
  display: grid;
  overflow: hidden;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 18px;
  background: #858d92;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card > div,
.place-card,
.feature-list article {
  padding: 16px;
}

.buy-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, max-content);
  align-items: center;
  gap: 18px;
  padding: 16px;
  overflow: hidden;
  box-shadow: none;
}

.buy-product-main {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.buy-product-image-frame {
  width: 112px;
  height: 112px;
  padding: 8px;
  border-radius: 8px;
  background: #858d92;
}

.buy-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.buy-product-detail {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.buy-product-detail .eyebrow {
  margin-bottom: 0;
}

.buy-product h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.buy-product-detail span,
.buy-product-price span,
.buy-product-price small {
  color: var(--muted);
}

.availability-control {
  display: grid;
  gap: 7px;
  margin-top: 3px;
}

.availability-control p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.availability-options {
  display: grid;
  grid-template-columns: repeat(2, 54px);
  width: max-content;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.availability-options button {
  width: 54px;
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #090a0b;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.availability-options button:last-child {
  border-right: 0;
}

.availability-options button[aria-pressed="true"] {
  background: rgba(116, 217, 159, 0.16);
  color: var(--green);
}

.availability-options button[data-visible="false"][aria-pressed="true"] {
  background: rgba(226, 54, 47, 0.2);
  color: var(--red);
}

.buy-product-price {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 2px;
  text-align: right;
}

.buy-product-price strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.buy-product-price small {
  font-weight: 800;
}

.product-card strong {
  display: inline-block;
  margin-top: 6px;
  color: var(--green);
  font-size: 1.15rem;
}

.place-card {
  display: grid;
  gap: 3px;
}

.place-card span,
.place-card small,
.selected-place span,
.selected-place small {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 16px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 36px 18px 52px;
  color: var(--muted);
}

.footer img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.flow-shell {
  padding-block: 28px 72px;
}

.buy-page .flow-hero,
.buy-page .flow-panel:not(#catalogStep) {
  max-width: 740px;
  margin-inline: auto;
}

.buy-page[data-step="catalog"] .flow-hero,
.buy-page[data-step="review"] .flow-hero,
.buy-page[data-step="transfer"] .flow-hero,
.buy-page[data-step="error"] .flow-hero {
  display: none;
}

.flow-hero {
  padding: 22px 0 20px;
}

.flow-hero h1 {
  font-size: 4.4rem;
}

.flow-panel {
  padding: clamp(18px, 5vw, 28px);
  margin: 14px 0;
}

.status-text {
  min-height: 24px;
  margin-top: 12px;
  color: var(--steel);
}

.selected-place {
  display: grid;
  gap: 3px;
  margin: 16px 0;
  padding: 16px;
  background: var(--panel-strong);
  box-shadow: none;
}

.selected-place.compact {
  margin: 10px 0 16px;
}

.select-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

select {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090a0b;
  color: var(--text);
}

.line,
.summary-box,
.summary-line,
.copy-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.line span,
.summary-box span,
.banking-box span {
  color: var(--muted);
}

.qty {
  display: grid;
  grid-template-columns: 42px 46px 42px;
  align-items: center;
  justify-items: center;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #090a0b;
}

.qty button {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.full-width {
  width: 100%;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.checkout-products {
  display: grid;
  gap: 14px;
}

.checkout-summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.checkout-summary h3 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 1.3rem;
  letter-spacing: 0;
}

.checkout-summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary-line span {
  color: var(--muted);
}

.checkout-summary-line.total {
  padding-top: 4px;
}

.checkout-summary-line.total strong {
  font-size: 1.65rem;
  line-height: 1;
}

.payment-choice,
.instruction-list {
  display: grid;
  gap: 10px;
}

.payment-choice {
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.payment-choice legend {
  padding: 0 0 10px;
  color: var(--text);
  font-weight: 900;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090a0b;
  color: var(--text);
  font-weight: 800;
}

.payment-option > label:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: rgba(116, 217, 159, 0.68);
  background: rgba(116, 217, 159, 0.08);
}

.payment-choice:disabled {
  opacity: 0.46;
}

.payment-choice:disabled .payment-option {
  cursor: not-allowed;
}

.payment-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
}

.payment-amount {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.payment-amount input {
  width: 104px;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090a0b;
  color: var(--text);
  font: inherit;
}

.status-text.compact {
  min-height: 0;
  margin: 0;
}

.no-products-notice {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  background: rgba(226, 54, 47, 0.1);
  color: var(--text) !important;
  font-weight: 800;
}

.instruction-list {
  margin: 16px 0;
}

.instruction-block {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
}

.instruction-checklist {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.instruction-checklist li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.instruction-checklist li::before {
  content: "\2713";
  color: var(--green);
  font-weight: 900;
}

.completion-actions {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.button:disabled {
  cursor: default;
  opacity: 0.58;
}

.summary-box {
  min-height: 62px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090a0b;
}

.summary-box strong {
  font-size: 1.35rem;
}

.summary-box.strong {
  border-color: rgba(116, 217, 159, 0.5);
}

.summary-line {
  min-height: 52px;
  padding: 12px 14px;
  box-shadow: none;
}

.payment-breakdown {
  margin: -4px 0 16px clamp(24px, 6vw, 56px);
  padding-left: 12px;
  border-left: 2px solid rgba(116, 217, 159, 0.42);
}

.payment-breakdown .summary-line {
  min-height: 46px;
}

.banking-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  margin: 16px 0;
}

.copy-line {
  align-items: stretch;
  flex-wrap: wrap;
}

.copy-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
}

.payment-callout {
  margin: 18px 0 12px;
  padding: 18px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  text-align: center;
  font-weight: 900;
  font-size: 1.8rem;
}

.notice {
  padding: 14px;
  border-left: 4px solid var(--steel);
  background: rgba(158, 183, 194, 0.08);
}

.error-panel {
  border-color: rgba(226, 54, 47, 0.58);
}

.muted {
  color: var(--muted);
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar.single {
    align-items: center;
    flex-direction: row;
  }

  .hero h1 {
    font-size: 4.4rem;
  }

  .flow-hero h1 {
    font-size: 3.15rem;
  }

  .section h2,
  .flow-panel h2 {
    font-size: 2.2rem;
  }

  .payment-callout {
    font-size: 1.35rem;
  }

  nav {
    justify-content: flex-start;
  }

  .actions .button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .flow-shell {
    width: min(100%, 740px);
  }

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

  .checkout-summary {
    position: static;
  }

  .buy-product {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .buy-product-price {
    justify-items: start;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    text-align: left;
  }
}

@media (max-width: 520px) {
  .buy-product-main {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }

  .buy-product-image-frame {
    width: 86px;
    height: 86px;
  }

  .qty {
    grid-template-columns: 38px 42px 38px;
  }

  .qty button {
    width: 38px;
    height: 38px;
  }

  .buy-product-price strong {
    font-size: 1.2rem;
  }
}
