.photobook-demo-page {
  --photobook-ink: #292522;
  --photobook-muted: #746d66;
  --photobook-line: rgba(60, 44, 32, 0.12);
  --photobook-accent: #cf5e77;
  --photobook-accent-strong: #ad405a;
  --photobook-surface: #fffdfa;
  --photobook-shadow: 0 20px 60px rgba(74, 49, 35, 0.1);
  color: var(--photobook-ink);
  background: linear-gradient(180deg, #fff9f5 0%, #fffdfb 38%, #f6f1eb 100%);
}

.photobook-demo-page .wrap {
  width: min(1180px, 92%);
}

.photobook-hero,
.photobook-builder {
  padding: 72px 0;
}

.photobook-hero {
  padding-top: 84px;
  background:
    radial-gradient(circle at 5% 10%, rgba(225, 139, 154, 0.2), transparent 27%),
    radial-gradient(circle at 86% 15%, rgba(244, 202, 136, 0.2), transparent 26%);
}

.photobook-hero__inner,
.photobook-workspace {
  display: grid;
  gap: 42px;
}

.photobook-hero__inner {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  align-items: center;
}

.photobook-eyebrow {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--photobook-accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photobook-hero h1,
.photobook-section-heading h2,
.photobook-preview-panel__head h3 {
  font-family: "Montserrat", sans-serif;
  line-height: 1.08;
}

.photobook-hero h1 {
  max-width: 11ch;
  margin: 18px 0;
  font-size: clamp(42px, 5.2vw, 68px);
}

.photobook-hero p,
.photobook-section-heading p,
.photobook-editor__head p {
  color: var(--photobook-muted);
  font-size: 17px;
  line-height: 1.65;
}

.photobook-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.photobook-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.photobook-button--primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--photobook-accent), var(--photobook-accent-strong));
  box-shadow: 0 14px 30px rgba(173, 64, 90, 0.26);
}

.photobook-button--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--photobook-line);
}

.photobook-hero__spotlight {
  position: relative;
}

.photobook-hero__spotlight::before {
  position: absolute;
  z-index: 0;
  inset: 10% -5% -7% 5%;
  border-radius: 32px;
  background: rgba(225, 139, 154, 0.16);
  content: "";
  transform: rotate(4deg);
}

.photobook-hero__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 10px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  box-shadow: var(--photobook-shadow);
  object-fit: cover;
  transform: rotate(-3deg);
}

.photobook-notice {
  margin: 12px auto;
  padding: 16px 20px;
  border: 1px solid rgba(183, 124, 35, 0.22);
  border-radius: 16px;
  background: #fff6df;
}

.photobook-section-heading {
  max-width: 700px;
  margin-bottom: 26px;
}

.photobook-section-heading h2 {
  margin: 12px 0;
  font-size: clamp(32px, 4vw, 46px);
}

.photobook-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.photobook-template-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--photobook-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photobook-template-card:hover,
.photobook-template-card.is-active {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(74, 49, 35, 0.12);
}

.photobook-template-card.is-active {
  border-color: var(--photobook-accent);
}

.photobook-template-card::after {
  position: absolute;
  right: -12px;
  bottom: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--photobook-accent);
  content: "";
  opacity: 0.15;
}

.photobook-template-card::before {
  position: absolute;
  z-index: 1;
  right: 17px;
  top: 14px;
  color: var(--photobook-accent);
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.photobook-template-card:nth-child(1)::before {
  content: "♥";
}

.photobook-template-card:nth-child(2)::before {
  content: "✦";
}

.photobook-template-card:nth-child(3)::before {
  content: "✷";
}

.photobook-template-card h3,
.photobook-template-card p,
.photobook-template-card__tag,
.photobook-template-card__meta {
  position: relative;
  z-index: 2;
}

.photobook-template-card__tag,
.photobook-template-card__meta {
  color: var(--photobook-accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.photobook-template-card__meta {
  display: block;
  margin-top: 12px;
}

.photobook-template-card h3 {
  margin: 10px 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 23px;
}

.photobook-template-card p {
  color: var(--photobook-muted);
  font-size: 14px;
  line-height: 1.55;
}

.photobook-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.95fr);
  align-items: start;
}

.photobook-editor,
.photobook-preview-panel {
  padding: 24px;
  border: 1px solid var(--photobook-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--photobook-shadow);
}

.photobook-editor__head,
.photobook-preview-panel__head {
  margin-bottom: 20px;
}

.photobook-editor__head h3,
.photobook-preview-panel__head h3 {
  margin: 10px 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
}

.photobook-page-list,
.photobook-preview-grid {
  display: grid;
  gap: 14px;
}

.photobook-editor-card {
  display: grid;
  grid-template-columns: auto minmax(180px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--photobook-line);
  border-radius: 18px;
  background: var(--photobook-surface);
}

.photobook-editor-card__index {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(207, 94, 119, 0.25);
  border-radius: 50%;
  background: #fff5f6;
  color: var(--photobook-accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.photobook-upload {
  display: flex;
  align-items: center;
  min-height: 48px;
  justify-content: center;
  padding: 8px 15px;
  border: 1px dashed #c9a3ab;
  border-radius: 13px;
  background: #fff8f8;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.photobook-upload:hover {
  border-color: var(--photobook-accent);
  background: #fff1f3;
}

.photobook-upload.is-uploaded {
  border-style: solid;
  border-color: #7ca58d;
  background: #f1faf3;
  color: #246a3b;
}

.photobook-upload.is-uploading {
  cursor: wait;
  border-style: solid;
  border-color: #d9a84f;
  background: #fff9e9;
  color: #89611f;
  pointer-events: none;
}

.photobook-upload.is-uploaded .photobook-upload__copy {
  color: #246a3b;
}

.photobook-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.photobook-upload__copy {
  font-size: 13px;
  font-weight: 700;
}

.photobook-text-field {
  display: grid;
  gap: 5px;
}

.photobook-text-field span {
  color: var(--photobook-muted);
  font-size: 12px;
  font-weight: 700;
}

.photobook-text-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--photobook-line);
  border-radius: 13px;
  background: #fff;
  color: var(--photobook-ink);
  font: inherit;
  line-height: 1.35;
  resize: vertical;
}

.photobook-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photobook-preview-card {
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(60, 44, 32, 0.08);
  border-radius: 18px;
  background: var(--preview-background);
}

.photobook-preview-card__number {
  display: block;
  margin-bottom: 8px;
  color: rgba(41, 37, 34, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.photobook-preview-card__media {
  min-height: 130px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.photobook-preview-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

.photobook-preview-card__empty {
  display: grid;
  min-height: 130px;
  place-items: center;
  color: var(--photobook-muted);
  font-size: 12px;
}

.photobook-preview-card__content {
  padding-top: 9px;
}

.photobook-preview-card__content strong {
  display: none;
}

.photobook-preview-card__content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.photobook-order-form {
  margin-top: 20px;
}

.photobook-order-form__submit {
  width: 100%;
}

.photobook-order-form__submit[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

@media screen and (max-width: 1024px) {
  .photobook-hero__inner,
  .photobook-workspace,
  .photobook-template-grid {
    grid-template-columns: 1fr;
  }

  .photobook-hero__spotlight {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 767px) {
  .photobook-hero,
  .photobook-builder {
    padding: 48px 0;
  }

  .photobook-hero h1 {
    font-size: 40px;
  }

  .photobook-template-grid,
  .photobook-preview-grid,
  .photobook-editor-card {
    grid-template-columns: 1fr;
  }

  .photobook-editor-card__index {
    min-width: 0;
  }

  .photobook-editor,
  .photobook-preview-panel {
    padding: 18px;
  }
}
