:root {
  --ink: #172025;
  --muted: #607074;
  --paper: #f8f7f1;
  --panel: #ffffff;
  --line: #d9ddd2;
  --green: #2d8a62;
  --green-dark: #176143;
  --amber: #d9942f;
  --blue: #315f8f;
  --coral: #bd5149;
  --shadow: 0 16px 45px rgba(23, 32, 37, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(248, 247, 241, 0.92);
  border-bottom: 1px solid rgba(217, 221, 210, 0.85);
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.82rem;
}

.nav {
  gap: clamp(10px, 3vw, 26px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(10, 14, 18, 0.76) 0%, rgba(10, 14, 18, 0.52) 42%, rgba(10, 14, 18, 0.08) 100%),
    url("assets/hero-microstudio.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  z-index: -1;
  background: linear-gradient(0deg, var(--paper), rgba(248, 247, 241, 0));
}

.hero-content {
  width: min(760px, calc(100% - 32px));
  margin: 0 0 clamp(74px, 12vh, 132px) clamp(16px, 6vw, 86px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9be2b8;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.3rem, 10vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy {
  width: min(640px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  color: #ffffff;
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

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

.button.mini {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  color: var(--ink);
  border-color: var(--line);
  background: #f7f8f3;
}

.button.mini:hover {
  border-color: var(--green);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -48px auto 0;
  width: min(1120px, calc(100% - 32px));
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: -72px auto 24px;
  padding: clamp(22px, 4vw, 34px);
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.quick-buy h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.quick-buy p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.status-strip div {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 22px;
  background: var(--panel);
}

.status-strip strong {
  font-size: 1rem;
}

.status-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: clamp(72px, 10vw, 118px) clamp(16px, 5vw, 64px);
}

.section.alt {
  background: #eef3ec;
}

.section-head {
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 16px;
}

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

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

.offer-card {
  display: flex;
  flex-direction: column;
  min-height: 378px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 32, 37, 0.07);
}

.offer-card.compact {
  min-height: 260px;
}

.offer-card:nth-child(2) .price {
  background: var(--blue);
}

.offer-card:nth-child(3) .price {
  background: var(--amber);
}

.offer-card:nth-child(4) .price {
  background: var(--coral);
}

.price {
  width: fit-content;
  min-width: 58px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font-size: 1rem;
  font-weight: 900;
}

.offer-card p,
.checkout-copy p,
.fine-print {
  color: var(--muted);
  line-height: 1.58;
}

.sample-link {
  margin: 2px 0 18px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.offer-card ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  margin: 6px 0 20px;
  color: #354247;
  line-height: 1.42;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.payment-box,
.order-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.payment-box {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qr-grid figure {
  display: grid;
  gap: 8px;
  margin: 0;
  justify-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
}

.qr-grid img {
  width: min(132px, 100%);
  aspect-ratio: 1;
}

.qr-grid figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  color: #38474c;
  font-size: 0.92rem;
  font-weight: 800;
}

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #cfd7cc;
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcf7;
  font: inherit;
}

textarea {
  resize: vertical;
}

.icon-button {
  min-width: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #eef3ec;
  font-weight: 800;
  cursor: pointer;
}

.order-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 28px);
  box-shadow: var(--shadow);
}

.form-footer {
  justify-content: space-between;
  padding-top: 4px;
}

#selectedPrice {
  font-size: 1.6rem;
  font-weight: 950;
}

.fine-print {
  margin: 0;
  font-size: 0.86rem;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: #edf0e7;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .services-grid,
  .product-grid,
  .checkout-section,
  .quick-buy {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-copy {
    grid-column: 1 / -1;
  }
}

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

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    margin: 0 auto 88px;
  }

  .status-strip,
  .services-grid,
  .product-grid,
  .checkout-section,
  .quick-buy {
    grid-template-columns: 1fr;
  }

  .status-strip {
    margin-top: 0;
  }

  .quick-buy {
    margin-top: -42px;
  }

  .quick-actions {
    justify-content: stretch;
  }

  .address-row {
    grid-template-columns: 1fr;
  }

  .icon-button {
    min-height: 42px;
  }
}

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

  .hero-actions,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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