:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --green: #159947;
  --rose: #c24155;
  --ink: #0f172a;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  padding-top: 88px;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--blue-dark);
}

.gradient-text {
  color: #0284c7;
  font-weight: 800;
  -webkit-text-fill-color: #0284c7;
}

@media (prefers-color-scheme: dark) {
  .gradient-text {
    color: #38bdf8;
    -webkit-text-fill-color: #38bdf8;
  }
}

.shop-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.shop-header,
.shop-footer,
main {
  width: 100%;
}

.shop-header,
.checkout-shell,
.lower-grid,
.shop-footer {
  padding-left: max(20px, calc((100vw - 1280px) / 2));
  padding-right: max(20px, calc((100vw - 1280px) / 2));
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.22rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.shop-header nav,
.shop-footer {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.shop-header nav {
  gap: 28px;
}

.shop-header nav a,
.shop-footer a {
  color: var(--muted);
}

.shop-header nav a:hover,
.shop-footer a:hover,
.footer-brand {
  color: var(--blue);
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 24px;
}

.product-panel {
  padding: 24px 0 0;
}

.order-panel,
.lower-grid > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.order-panel {
  padding: 22px;
  position: sticky;
  top: 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.order-summary .eyebrow::before {
  display: none;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  letter-spacing: 0;
}

.lede {
  max-width: 700px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

.device-stage {
  position: relative;
  min-height: 320px;
  margin: 0 0 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 32px;
}

.device-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(37, 99, 235, 0.42), transparent 30%),
    radial-gradient(circle at 78% 82%, rgba(79, 70, 229, 0.28), transparent 34%);
  pointer-events: none;
}

.device-render {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 760px);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.42);
}

.price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.price-row > div,
.included-grid > div,
.policy-note {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

.price {
  display: block;
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--ink);
}

.price.deposit {
  color: var(--green);
}

.price.preorder {
  color: var(--blue);
}

.price-note {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-cta-wrap {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-reserve-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.hero-reserve-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.trust-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.trust-pill svg {
  color: #10b981;
}

.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  padding: 12px 18px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-sticky-info {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-price {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
}

.mobile-sticky-price .price-highlight {
  color: var(--green);
}

.mobile-sticky-sub {
  font-size: 0.74rem;
  color: var(--muted);
}

.mobile-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  text-decoration: none;
}

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

.included-grid strong,
.included-grid span {
  display: block;
}

.included-grid strong {
  margin-bottom: 8px;
  color: var(--ink);
}

.included-grid span,
.policy-note p,
.lower-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.policy-note {
  margin-top: 18px;
}

.policy-note h2 {
  margin-bottom: 6px;
}

.policy-note p {
  margin-bottom: 0;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.order-summary h2 {
  margin: 0;
  font-size: 1.55rem;
}

.badge {
  flex: none;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.76rem;
  font-weight: 800;
}

.form-row {
  margin-bottom: 11px;
}

label,
legend {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

label span {
  font-weight: 520;
}

input:not([type="radio"]):not([type="checkbox"]),
select {
  width: 100%;
  min-height: 43px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 9px 14px;
}

input[type="radio"],
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--blue);
  flex-shrink: 0;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus {
  outline: 3px solid rgba(37, 99, 235, 0.16);
  border-color: var(--blue);
}

.compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-divider {
  margin: 16px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
}

.pay-options {
  margin: 14px 0;
  padding: 0;
  border: 0;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  cursor: pointer;
}

.pay-option:has(input:checked) {
  border-color: var(--blue);
  background: #eff6ff;
}

.pay-option input,
.terms-row input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.pay-option strong,
.pay-option small {
  display: block;
}

.pay-option strong {
  color: var(--ink);
}

.pay-option small {
  margin-top: 2px;
  color: var(--muted);
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0;
  line-height: 1.45;
}

.primary-action {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.primary-action:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.form-msg {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.form-msg.err {
  color: var(--rose);
}

.form-msg.ok {
  color: var(--green);
}

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

.lower-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 0;
  padding-top: 52px;
  padding-bottom: 56px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.lower-grid > div {
  padding: 22px;
}

.shop-footer {
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 190px;
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  text-align: center;
}

.footer-brand {
  color: #1e293b;
  font-weight: 800;
  font-size: 1.14rem;
}

.footer-location {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-note {
  max-width: 440px;
  margin: 24px auto 0;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 1040px) {
  body {
    padding-bottom: 74px;
  }

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

  .order-panel {
    position: static;
  }

  .mobile-sticky-bar {
    display: flex;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 116px;
  }

  .shop-header,
  .shop-header nav,
  .shop-footer {
    align-items: flex-start;
  }

  .shop-header {
    flex-direction: column;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .shop-header nav,
  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .shop-footer {
    align-items: center;
  }

  .checkout-shell {
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  .lede {
    font-size: 1.02rem;
  }

  .order-panel {
    padding: 18px;
  }

  .device-stage {
    min-height: 220px;
    padding: 14px;
  }

  .price-row,
  .included-grid,
  .compact-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }
}
