/* Home page */

/* ---------- Hero ---------- */

.hero { padding-block: clamp(40px, 6vw, 88px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin: 18px 0 18px; max-width: 13ch; }
.hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.checks {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 28px;
  font-weight: 500; font-size: .9375rem; color: var(--muted-strong);
}
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

/* Hero visual: plain light gray panel, no grid */
.hero__visual {
  position: relative;
  background: var(--panel);
  border-radius: var(--radius-card-lg);
  aspect-ratio: 1 / 0.92;
  display: grid;
  place-items: center;
  padding: 9% 8% 22%;
  overflow: hidden;
}
.hero__lid {
  width: 100%;
  filter: drop-shadow(0 18px 28px rgba(15, 15, 16, .16));
  transform: rotate(-4deg);
}
.hero__pieces {
  position: absolute;
  left: 8%; right: 8%; bottom: 8%;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.hero__dice { display: flex; gap: 14px; align-items: flex-end; }
.hero__dice .die:first-child { transform: rotate(-10deg); }
.hero__dice .die:last-child { transform: rotate(8deg) translateY(-6px); }
.hero__pennies { position: relative; width: 46%; height: 96px; }
.hero__pennies .penny { position: absolute; --d: 60px; }
.hero__pennies .penny:nth-child(1) { right: 0; bottom: 0; }
.hero__pennies .penny:nth-child(2) { right: 44px; bottom: 26px; }
.hero__pennies .penny:nth-child(3) { right: 92px; bottom: 2px; }
.hero__pennies .penny:nth-child(4) { right: 136px; bottom: 30px; }
.hero__pennies .penny__text { font-size: 13px; }

/* ---------- Section heading ---------- */

.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 12px 0 0; color: var(--muted); max-width: 52ch; }

/* ---------- Shop ---------- */

.shop-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.product-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product-card:hover { color: var(--ink); box-shadow: var(--shadow-soft); border-color: var(--border-strong); transform: translateY(-2px); }
.product-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--panel); }
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 34%;
}
.product-card__tag {
  position: absolute; top: 16px; left: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 15, 16, .12);
}
.product-card__body {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 22px 26px 26px;
}
.product-card__body h3 { font-size: 1.5rem; margin: 0 0 6px; }
.product-card__body p { margin: 0; color: var(--muted); max-width: 48ch; }
.product-card__price { text-align: right; white-space: nowrap; }
.product-card__price small { display: block; color: var(--muted); font-size: .8125rem; }
.product-card__price strong { font-family: var(--font-head); font-size: 1.75rem; }
.product-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-weight: 600;
}
.product-card__cta svg { width: 18px; height: 18px; transition: transform .2s ease; }
.product-card:hover .product-card__cta svg { transform: translateX(3px); }

.soon-card {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 10px;
  padding: 32px 28px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-card-lg);
  background: var(--panel-soft);
  color: var(--muted);
}
.soon-card h3 { color: var(--ink); margin: 6px 0 0; }
.soon-card p { margin: 0; }
.soon-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border); color: var(--muted-strong);
}
.soon-card__icon svg { width: 26px; height: 26px; }

/* ---------- Design section (dark) ---------- */

.design .section-head p { color: #A8A29E; }
.design-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.design-card {
  background: #1C1C1E;
  border: 1px solid #2A2A2D;
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex; flex-direction: column;
}
.design-card__visual {
  height: 128px;
  border-radius: 16px;
  background: #27272A;
  display: grid; place-items: center;
  margin-bottom: 20px;
  overflow: hidden;
}
.design-card h3 { color: #fff; margin: 0 0 8px; font-size: 1.125rem; }
.design-card p { color: #A8A29E; margin: 0; font-size: .9375rem; }

.swatches {
  display: grid; grid-template-columns: repeat(5, 22px); gap: 8px;
}
.swatches span {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.side-mini {
  width: 82%;
  padding: 14px 10px;
  border-radius: 8px;
  background: #2F6FD6;
  color: #F5F5F4;
  text-align: center;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 1.125rem; line-height: 1.15;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12);
}

.dice-sizes { display: flex; align-items: flex-end; gap: 14px; }

.design__cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.design__cta p { margin: 0; color: #A8A29E; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .design-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .shop-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .checks { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__pieces .die { --size: 44px !important; }
  .hero__pennies .penny { --d: 44px; }
  .hero__pennies .penny:nth-child(2) { right: 32px; bottom: 20px; }
  .hero__pennies .penny:nth-child(3) { right: 66px; bottom: 2px; }
  .hero__pennies .penny:nth-child(4) { right: 98px; bottom: 22px; }
  .hero__pennies .penny__text { font-size: 10px; }
  .hero__pennies { height: 72px; }
  .product-card__body { flex-direction: column; align-items: flex-start; padding: 20px; }
  .product-card__price { text-align: left; }
  .design-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact-form {
  display: grid; gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-soft);
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__status { margin: 0; font-size: .9375rem; min-height: 1.4em; }
.contact-form__status[data-state="error"] { color: #B42318; }
.contact-form__status[data-state="ok"] {
  color: #166534; background: #ECFDF3; border-radius: var(--radius-input); padding: 12px 14px;
}
.contact-form .btn { justify-self: start; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
}
