/* Website Templates — the "Studio" department. Darker, roastier palette than
   the $1–5 printable aisles so the price difference reads at a glance. */

body.studio {
  --espresso: #231913;
  --espresso-2: #33241b;
  --crema: #f5ead9;
  --crema-dim: #d9c7ad;
  --studio-gold: #d9b26a;
  background: var(--cream);
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(217, 178, 106, 0.55);
  border-radius: 999px;
  color: var(--studio-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.studio .header-actions a { text-decoration: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.studio-crumbs { max-width: 1180px; margin: 0 auto; padding: 14px 20px 0; font-size: 13px; color: #7b6c5c; }
.studio-crumbs a { color: var(--brand); text-decoration: none; font-weight: 600; }

/* ---------- dark hero band ---------- */
.studio-hero {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(217, 178, 106, 0.18), transparent 55%),
    linear-gradient(180deg, var(--espresso) 0%, var(--espresso-2) 100%);
  color: var(--crema);
  padding: 46px 20px 52px;
  margin-top: 14px;
}
.studio-hero__inner { max-width: 1180px; margin: 0 auto; }
.studio-hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  margin: 14px 0 12px;
  color: #fff8ee;
  max-width: 820px;
}
.studio-hero__lead { max-width: 640px; margin: 0; color: var(--crema-dim); font-size: 17px; line-height: 1.6; }

/* ---------- department page ---------- */
.studio-section { max-width: 1180px; margin: 0 auto; padding: 40px 20px 56px; }
.studio-section h2 { font-family: var(--serif); color: var(--brand-dark); font-size: 26px; margin: 0 0 18px; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.template-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.template-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.template-card__media { aspect-ratio: 16 / 9; background: var(--espresso); }
.template-card__media img { width: 100%; height: 100%; object-fit: cover; }
.template-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.template-card__name { font-family: var(--serif); font-size: 21px; color: var(--brand-dark); margin: 0; line-height: 1.2; }
.template-card__desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: #5d5148; }
.template-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.template-card__price { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.template-card__cta { font-weight: 700; color: var(--brand); font-size: 14px; }
.template-card--soon {
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 24px;
  border-style: dashed;
  background: transparent;
  color: #8a7d70;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.5;
}
.template-card--soon:hover { transform: none; box-shadow: none; }

/* ---------- product page ---------- */
.product-hero { text-align: center; padding-bottom: 26px; }
.product-hero h1, .product-hero .studio-hero__lead { margin-left: auto; margin-right: auto; }
.product-hero__video {
  width: 100%;
  max-width: 980px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 28px auto 0;
  border-radius: 14px;
  background: #120c09;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: block;
}
.product-hero__actions { margin-top: 24px; }
.btn-studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--studio-gold);
  color: var(--espresso);
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-studio:hover { background: #e8c582; transform: translateY(-1px); }
.btn-studio:focus-visible, .btn-buy:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-studio--large { font-size: 17px; padding: 17px 30px; }
.demo-note { margin: 10px 0 0; font-size: 13px; color: var(--crema-dim); }

.buy-panel {
  max-width: 1180px;
  margin: -26px auto 0;
  padding: 0 20px;
  position: relative;
}
.buy-panel__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 26px;
}
.buy-panel__price { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--ink); margin: 0; }
.buy-panel__price small { font-family: var(--sans); font-size: 15px; font-weight: 600; color: #6b5d50; }
.buy-panel__note { margin: 6px 0 0; font-size: 14px; color: #5d5148; line-height: 1.5; max-width: 560px; }
.buy-panel__controls { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.qty-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: #6b5d50; }
.qty-field select {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 11px 36px 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.btn-buy {
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  background: var(--espresso, #231913);
  color: #fff8ee;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  min-width: 190px;
}
.btn-buy:hover:not(:disabled) { background: #3d2b20; }
.btn-buy:disabled { opacity: 0.6; cursor: wait; }
.buy-panel__total { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #5d5148; }
.buy-panel__custom {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6efe2;
  border: 1px dashed #d9c39a;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a3f35;
}
.buy-panel__custom strong { color: var(--brand-dark); }
.buy-panel__custom a { color: var(--brand); font-weight: 700; white-space: nowrap; }
.buy-panel__error { grid-column: 1 / -1; margin: 0; color: var(--red); font-size: 14px; font-weight: 600; }

.product-body { max-width: 880px; margin: 0 auto; padding: 46px 20px 20px; }
.product-body section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.product-body section:last-of-type { border-bottom: none; }
.product-body h2 { font-family: var(--serif); color: var(--brand-dark); font-size: 26px; margin: 0 0 16px; }
.product-body h3 { font-family: var(--serif); color: var(--brand-dark); font-size: 19px; margin: 0 0 10px; }
.product-body p { font-size: 16.5px; line-height: 1.7; margin: 0 0 14px; color: #3b342c; }
.product-body ul { margin: 0; padding-left: 20px; }
.product-body li { font-size: 16px; line-height: 1.6; margin-bottom: 8px; color: #3b342c; }

.feature-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; }
.feature-list li { margin: 0; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.feature-list strong { display: block; color: var(--brand-dark); margin-bottom: 3px; }

.steps { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { margin: 0; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 10px;
  background: var(--espresso, #231913);
  color: var(--studio-gold, #d9b26a);
  font-family: var(--serif);
  font-weight: 700;
}
.steps strong { display: block; color: var(--brand-dark); margin-bottom: 4px; font-size: 16.5px; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.info-grid ul { padding-left: 18px; }

.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 16px; color: var(--brand-dark); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 18px 16px; margin: 0; }

.licence-link { font-weight: 700; color: var(--brand); }
.more-templates { padding-top: 10px; border-top: 1px solid var(--line); }
.product-copyright { max-width: 880px; margin: 0 auto; padding: 18px 20px 40px; font-size: 13px; color: #7b6c5c; line-height: 1.6; }

/* ---------- licence & thank-you ---------- */
.licence-text {
  white-space: pre-wrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  overflow-wrap: anywhere;
  color: #2f2a24;
}
.thanks-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.thanks-card h2 { font-family: var(--serif); color: var(--brand-dark); margin: 0 0 10px; font-size: 26px; }
.thanks-card p { font-size: 16.5px; line-height: 1.65; margin: 0 0 14px; }
.thanks-card .btn-studio { margin: 6px 0 16px; }
.thanks-card[hidden] { display: none; }

@media (max-width: 860px) {
  .product-hero { grid-template-columns: 1fr; gap: 26px; }
  .buy-panel { margin-top: -18px; }
  .buy-panel__card { grid-template-columns: 1fr; }
  .steps, .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .studio-hero { padding: 34px 16px 40px; }
  .feature-list { grid-template-columns: 1fr; }
  .buy-panel__controls { width: 100%; }
  .btn-buy { flex: 1; }
  .btn-studio--large { width: 100%; }
  .header-actions .header-link--studio { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .template-card, .btn-studio { transition: none; }
}
