:root {
  color-scheme: light;
  --ink: #131820;
  --muted: #5b6472;
  --line: #d9dee5;
  --paper: #fffdfa;
  --cream: #f6f1e7;
  --teal: #147a72;
  --teal-dark: #0d3b3a;
  --coral: #e85d45;
  --gold: #f0b84b;
  --violet: #2f2a4f;
  --shadow: 0 18px 50px rgba(19, 24, 32, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(19, 24, 32, 0.12);
  background: rgba(255, 253, 250, 0.93);
  backdrop-filter: blur(16px);
  width: 100%;
  max-width: 100vw;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

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

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.cart-button,
.button,
.icon-button,
.segment-button,
.qty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.cart-button {
  padding: 0 12px;
  border-color: rgba(19, 24, 32, 0.16);
  background: #fff;
  color: var(--ink);
}

.cart-button svg,
.button svg,
.icon-button svg,
.launch-steps svg,
.hero-notes svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.78rem;
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 34px;
  align-items: end;
  min-height: 70vh;
  padding: 74px 6vw 52px;
  background:
    linear-gradient(90deg, rgba(11, 30, 32, 0.86), rgba(11, 30, 32, 0.58) 46%, rgba(11, 30, 32, 0.08)),
    url("assets/hero-workspace.png") center / cover no-repeat;
  color: #fff;
}

.hero-content {
  width: 100%;
  max-width: 710px;
  padding-bottom: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f2c15f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 16px;
  font-size: 4.1rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.62;
}

.hero-actions,
.bundle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  padding: 0 16px;
  font-weight: 800;
}

.button.primary,
.button.checkout {
  background: var(--coral);
  color: #fff;
}

.button.primary:hover,
.button.checkout:hover {
  background: #ce4935;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}

.hero-shelf {
  display: grid;
  gap: 14px;
}

.mini-product {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: left;
}

.mini-product img {
  aspect-ratio: 3 / 4;
  width: 74px;
  border-radius: 6px;
  object-fit: cover;
}

.mini-product h3 {
  margin: 0 0 5px;
  font-size: 0.98rem;
}

.mini-product span,
.toolbar-band > div,
.bundle-copy,
.product-card,
.dialog-copy {
  min-width: 0;
}

.mini-product p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.toolbar-band,
.bundle-band,
.launch-band,
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 48px 6vw;
}

.toolbar-band {
  background: var(--cream);
}

.toolbar-band h2,
.bundle-band h2,
.launch-band h2,
.faq-section h2 {
  max-width: 760px;
}

.segment {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segment-button {
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segment-button.active {
  background: var(--ink);
  color: #fff;
}

.products-section {
  padding: 42px 6vw 60px;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-cover-wrap {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f0f4f5;
}

.product-cover-wrap img {
  aspect-ratio: 3 / 4;
  width: min(250px, 80%);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 30px rgba(19, 24, 32, 0.2);
}

.product-body {
  padding: 22px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf7f5;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-body h3 {
  font-size: 1.28rem;
  line-height: 1.18;
}

.product-body p {
  color: var(--muted);
  line-height: 1.58;
}

.included-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.included-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.4;
}

.included-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--coral);
}

.product-actions {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

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

.compare {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.card-buttons .button {
  min-width: 0;
  padding: 0 10px;
}

.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--ink);
}

.bundle-band {
  background: var(--teal-dark);
  color: #fff;
}

.bundle-copy p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.bundle-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.bundle-price span {
  font-size: 2.3rem;
  font-weight: 900;
}

.bundle-price del {
  color: rgba(255, 255, 255, 0.56);
}

.launch-band {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  background: #fff;
}

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

.launch-steps article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.launch-steps svg {
  color: var(--coral);
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
}

.launch-steps p,
.faq-list p {
  color: var(--muted);
  line-height: 1.55;
}

.faq-section {
  align-items: start;
  background: var(--cream);
}

.faq-list {
  display: grid;
  width: min(720px, 100%);
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

details p {
  padding: 0 20px 18px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: end;
  background: rgba(19, 24, 32, 0.42);
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.cart-items {
  overflow: auto;
  padding: 16px 24px;
}

.cart-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  aspect-ratio: 3 / 4;
  width: 62px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item h3 {
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.cart-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-button {
  width: 30px;
  min-height: 30px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.cart-footer {
  display: grid;
  gap: 12px;
  padding: 22px 24px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.subtotal-row strong {
  font-size: 1.25rem;
}

.button.checkout {
  width: 100%;
}

.cart-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.product-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(19, 24, 32, 0.5);
}

.dialog-close {
  position: sticky;
  top: 14px;
  left: calc(100% - 56px);
  z-index: 1;
  margin: 14px 14px 0 auto;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 8px 30px 30px;
}

.dialog-layout img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 18px 30px rgba(19, 24, 32, 0.18);
}

.dialog-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.dialog-copy ul {
  padding-left: 18px;
  color: #334155;
  line-height: 1.65;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: none;
  max-width: 360px;
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  line-height: 1.45;
}

.toast.show {
  display: block;
}

@media (max-width: 1040px) {
  .store-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-product {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .mini-product img {
    width: 58px;
  }

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

  .launch-band,
  .faq-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 10px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .cart-button {
    flex: 0 0 auto;
  }

  .nav-links {
    display: none;
  }

  .cart-button span {
    display: none;
  }

  .store-hero {
    width: 100%;
    max-width: 100vw;
    padding: 52px 18px 30px;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-shelf,
  .product-grid,
  .launch-steps {
    grid-template-columns: 1fr;
  }

  .toolbar-band,
  .bundle-band,
  .launch-band,
  .faq-section,
  .products-section {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .segment {
    width: 100%;
    overflow-x: auto;
    justify-content: start;
  }

  .card-buttons {
    grid-template-columns: 1fr;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
    padding: 8px 20px 24px;
  }
}
