@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #f6efe4;
  --bg-soft: #efe4d6;
  --surface: rgba(255, 251, 245, 0.76);
  --surface-strong: rgba(255, 247, 239, 0.96);
  --line: rgba(85, 51, 26, 0.12);
  --text: #26160d;
  --muted: #765845;
  --accent: #bf5a36;
  --accent-deep: #7e3223;
  --success: #2e6f58;
  --error: #9b2f2f;
  --busy: #855c1b;
  --shadow: 0 24px 80px rgba(66, 34, 12, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(234, 126, 73, 0.24), transparent 32%),
    radial-gradient(circle at top right, rgba(38, 22, 13, 0.08), transparent 28%),
    linear-gradient(160deg, #fbf5ec 0%, #f1e4d4 46%, #ead7c4 100%);
}

code {
  font-family: inherit;
  background: rgba(38, 22, 13, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}

.page-shell {
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero,
.content-grid,
.theme-strip {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.hero-copy,
.hero-card,
.control-panel,
.preview-panel,
.theme-strip {
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy,
.control-panel,
.preview-panel,
.theme-strip {
  border-radius: 32px;
  padding: 1.75rem;
}

.hero-card {
  border-radius: 32px;
  overflow: hidden;
  min-height: 100%;
}

.hero-card-content {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
}

.hero-card-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(191, 90, 54, 0.18), rgba(126, 50, 35, 0.04)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.72), transparent 40%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.99;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero-text,
.status,
.theme-card p,
label,
.hero-card li {
  color: var(--muted);
}

.hero-slider {
  margin-top: 1rem;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  width: 100%;
  position: relative;
}

#hero-slider-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(85, 51, 26, 0.08);
  box-shadow: 0 24px 60px rgba(38, 22, 13, 0.2);
}

.hero-slider-caption {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.85rem;
}

.hero-slider-caption strong {
  color: var(--text);
  font-size: 1.05rem;
}

.hero-slider-caption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-slider:hover {
  transform: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.quick-start {
  padding: 1rem 1rem 0.95rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 241, 0.88);
}

.quick-start-label {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}

.quick-start-text {
  margin: 0;
  color: var(--muted);
}

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

label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.place-combobox {
  display: block;
}

input,
select,
button,
.download-link,
.status {
  border-radius: 18px;
  border: 1px solid var(--line);
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 16px;
}

input[type="range"] {
  padding: 0;
}

.range-value {
  font-size: 0.85rem;
  color: var(--accent-deep);
}

.input-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.advanced-options {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.76);
  padding: 0.35rem 1rem 1rem;
}

.advanced-options summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
  padding: 0.8rem 0;
}

.advanced-options summary::-webkit-details-marker {
  display: none;
}

.advanced-options summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
  font-size: 1.1rem;
}

.advanced-options[open] summary::after {
  content: "-";
}

.advanced-grid {
  display: grid;
  gap: 1rem;
  padding-top: 0.35rem;
}

button,
.download-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff6ef;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.42);
  margin: 1rem 0 1.25rem;
}

.status[data-tone="success"] {
  color: var(--success);
  border-color: rgba(46, 111, 88, 0.2);
}

.status[data-tone="error"] {
  color: var(--error);
  border-color: rgba(155, 47, 47, 0.18);
}

.status[data-tone="busy"] {
  color: var(--busy);
  border-color: rgba(133, 92, 27, 0.18);
}

.progress-shell {
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.82);
  margin: 0 0 1.25rem;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-head strong {
  color: var(--text);
}

.progress-head span {
  color: var(--accent-deep);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(38, 22, 13, 0.08);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d9764b 0%, #bf5a36 50%, #7e3223 100%);
  transition: width 400ms ease;
}

.progress-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-log {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.progress-log li {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(85, 51, 26, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

.poster-stage {
  min-height: 560px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(191, 90, 54, 0.18), rgba(255, 255, 255, 0.7)),
    linear-gradient(180deg, #f7f1e8, #f0e2d2);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
}

.poster-placeholder {
  max-width: 28ch;
  text-align: center;
}

#poster-image {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(38, 22, 13, 0.28);
}

.download-link {
  margin-top: 1rem;
}

.ad-shell {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 247, 239, 0.92), rgba(248, 235, 219, 0.88)),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 48px rgba(66, 34, 12, 0.08);
}

.ad-shell-wide {
  margin-top: 1.5rem;
}

.ad-shell-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.ad-shell-head span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  font-weight: 700;
}

.ad-shell-head small {
  color: var(--muted);
  font-size: 0.85rem;
}

.ad-shell-body {
  min-height: 128px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed rgba(126, 50, 35, 0.22);
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
  padding: 1rem;
}

.ad-shell-body p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.ad-shell-copy {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.ad-shell-settings {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 50, 35, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  font-weight: 700;
}

.ad-shell-settings:hover {
  transform: translateY(-1px);
}

.ad-shell[data-ad-state="live"] .ad-shell-body {
  display: block;
  min-height: 140px;
  padding: 0.75rem;
  border-style: solid;
}

.ad-shell-affiliate {
  justify-items: stretch;
  text-align: left;
}

.affiliate-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 235, 223, 0.88));
  border: 1px solid rgba(85, 51, 26, 0.08);
}

.affiliate-card strong {
  color: var(--text);
  font-size: 1.05rem;
}

.affiliate-card p {
  margin: 0;
  color: var(--muted);
  max-width: none;
  line-height: 1.5;
}

.affiliate-link,
.affiliate-empty {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
}

.affiliate-link {
  text-decoration: none;
  color: #fff6ef;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.affiliate-empty {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(126, 50, 35, 0.24);
}

.affiliate-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
}

.ad-shell .adsbygoogle {
  display: block !important;
  width: 100%;
  min-height: 90px;
}

.theme-cards {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.seo-strip {
  margin-top: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.seo-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.seo-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.seo-columns-top {
  margin-top: 1.4rem;
}

.seo-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.72);
}

.seo-card h3 {
  margin: 0 0 0.8rem;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.seo-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.seo-link-grid a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(85, 51, 26, 0.08);
  font-weight: 700;
}

.faq-card {
  margin-top: 1rem;
}

.mini-faq-grid {
  grid-template-columns: 1fr;
}

.editorial-card {
  margin-top: 1rem;
}

.editorial-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 74ch;
}

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

.faq-grid article {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(85, 51, 26, 0.08);
}

.faq-grid p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.theme-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.72);
}

.theme-preview {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(85, 51, 26, 0.08);
}

.theme-preview-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
}

.theme-preview-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  width: 100%;
}

.theme-preview-button:hover {
  transform: none;
}

.theme-preview-indicator {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(28, 18, 12, 0.68);
  color: #fff6ef;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.theme-preview-button {
  position: relative;
}

.hero-slider-indicator {
  margin-top: -1.8rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 18, 12, 0.72);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 720px);
  display: grid;
  gap: 0.9rem;
}

.lightbox-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  color: #fff6ef;
}

.lightbox-loader[hidden] {
  display: none !important;
}

#lightbox-image {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.lightbox-caption {
  display: grid;
  gap: 0.15rem;
  color: #fff6ef;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid rgba(255, 246, 239, 0.28);
  border-top-color: #fff6ef;
  animation: spin 0.9s linear infinite;
}

.site-footer {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.site-footer p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb-nav a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
}

.legal-shell {
  padding-top: 3rem;
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
}

.legal-copy {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.legal-copy p {
  margin: 0;
}

.legal-lead {
  margin: 0.9rem 0 0;
  max-width: 68ch;
  color: var(--muted);
}

.legal-sections {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.legal-section {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.74);
}

.legal-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin-bottom: 0.8rem;
}

.legal-section h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

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

.legal-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.legal-list li + li {
  margin-top: 0.45rem;
}

.legal-table {
  display: grid;
  gap: 0.8rem;
}

.legal-item {
  display: grid;
  gap: 0.22rem;
}

.legal-item strong {
  color: var(--text);
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(85, 51, 26, 0.08);
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.legal-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.consent-root {
  position: relative;
  z-index: 80;
}

.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(560px, calc(100vw - 2rem));
}

.consent-banner[hidden],
.consent-modal[hidden] {
  display: none !important;
}

.consent-card,
.consent-modal-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 248, 241, 0.98), rgba(246, 233, 220, 0.96)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 80px rgba(38, 22, 13, 0.22);
  backdrop-filter: blur(18px);
}

.consent-card {
  padding: 1.2rem 1.2rem 1rem;
}

.consent-copy h2,
.consent-modal-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-top: 0.15rem;
}

.consent-copy p:last-child {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.consent-button {
  padding: 0.92rem 1.05rem;
  border-radius: 999px;
}

.consent-button-soft {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  border: 1px solid rgba(126, 50, 35, 0.16);
}

.consent-meta {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.consent-meta a {
  color: var(--accent-deep);
  font-weight: 700;
}

.consent-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 18, 12, 0.54);
  backdrop-filter: blur(10px);
}

.consent-modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100dvh - 2rem);
  padding: 1.25rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.consent-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.consent-icon-button {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
}

.consent-options {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  overflow-y: auto;
  padding-right: 0.15rem;
  min-height: 0;
}

.consent-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(85, 51, 26, 0.09);
  background: rgba(255, 255, 255, 0.68);
}

.consent-option-copy {
  display: grid;
  gap: 0.28rem;
}

.consent-option-copy strong {
  color: var(--text);
}

.consent-option-copy span {
  color: var(--muted);
  line-height: 1.5;
}

.consent-switch {
  position: relative;
  flex: 0 0 auto;
}

.consent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-switch-ui {
  width: 60px;
  height: 34px;
  display: block;
  border-radius: 999px;
  background: rgba(38, 22, 13, 0.16);
  position: relative;
  transition: background 180ms ease;
}

.consent-switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff9f3;
  box-shadow: 0 6px 14px rgba(38, 22, 13, 0.18);
  transition: transform 180ms ease;
}

.consent-switch input:checked + .consent-switch-ui {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.consent-switch input:checked + .consent-switch-ui::after {
  transform: translateX(26px);
}

.consent-switch input:disabled + .consent-switch-ui {
  opacity: 0.85;
}

.consent-actions-modal {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(85, 51, 26, 0.08);
  background:
    linear-gradient(180deg, rgba(246, 233, 220, 0), rgba(246, 233, 220, 0.96) 22%);
}

.consent-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 50, 35, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

@media (max-width: 960px) {
  .hero,
  .content-grid,
  .seo-columns,
  .faq-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 1rem;
  }

  .content-grid {
    gap: 1rem;
  }

  .hero-card-content {
    padding: 1.25rem;
  }

  .progress-head,
  .ad-shell-head,
  .consent-modal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 0.75rem, 1200px);
    padding: 0.5rem 0 3.5rem;
  }

  .hero-copy,
  .control-panel,
  .preview-panel,
  .theme-strip,
  .hero-card-content,
  .seo-strip,
  .ad-shell {
    padding: 1rem;
  }

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

  .poster-stage {
    min-height: 320px;
  }

  #poster-image {
    max-height: 60vh;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    max-width: none;
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
    line-height: 1.04;
  }

  .hero-text,
  .seo-lead,
  .legal-lead {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-slider-caption {
    gap: 0.25rem;
  }

  .theme-cards {
    grid-template-columns: 1fr;
  }

  .seo-link-grid a,
  .footer-nav a {
    width: 100%;
    justify-content: center;
  }

  .progress-shell,
  .ad-shell-body,
  .legal-section,
  .quick-start,
  .advanced-options {
    border-radius: 20px;
  }

  .progress-log li,
  .faq-grid article,
  .seo-card,
  .theme-card {
    border-radius: 16px;
  }

  .lightbox {
    padding: 1rem 0.75rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .consent-card,
  .consent-modal-card {
    border-radius: 24px;
  }

  .consent-actions,
  .legal-actions {
    display: grid;
    gap: 0.65rem;
  }

  .consent-button,
  .legal-actions .download-link {
    width: 100%;
    justify-content: center;
  }

  .consent-inline-button {
    width: 100%;
    justify-content: center;
  }

  .affiliate-link,
  .affiliate-empty,
  .ad-shell-settings {
    width: 100%;
    justify-content: center;
  }

  .consent-banner {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    bottom: 0.5rem;
  }

  .consent-modal-card {
    padding: 1rem;
    max-height: calc(100dvh - 1rem);
  }

  .consent-option,
  .consent-modal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .consent-option {
    gap: 0.85rem;
  }

  .consent-switch {
    width: 100%;
  }

  .consent-switch-ui {
    margin-left: auto;
  }
}
