/* Demo page — landing-aligned studio */

body.pf-demo-page {
  background: #f6f7f9;
}

body.pf-demo-page #page.page {
  background: #f6f7f9;
}

body.pf-demo-page .container-xxl {
  max-width: 1600px;
}

.pf-demo-hero {
  padding: 5.35rem 0 0.85rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% -20%, rgba(15, 188, 73, 0.1), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
}

.pf-demo-hero-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.pf-demo-hero-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--green, #0fbc49);
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pf-demo-hero-title {
  margin: 0 0 0.45rem;
  font-family: var(--main-font, "Roboto", sans-serif);
  color: #111111;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.pf-demo-hero-lead {
  margin: 0;
  font-family: var(--main-font, "Roboto", sans-serif);
  color: #3f4652;
  font-size: 1.05rem;
  line-height: 1.5;
}

.pf-demo-main {
  padding: 0.5rem 0 3.5rem;
}

.pf-demo-studio {
  width: 100%;
}

.pf-demo-studio-panel {
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 18px 40px rgba(17, 24, 39, 0.05);
}

.pf-demo-styles-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.15rem;
}

.pf-demo-styles-step {
  margin: 0 0 0.3rem;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green, #0fbc49);
  line-height: 1.3;
}

.pf-demo-styles-lead {
  margin: 0;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.92rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.45;
}

.pf-demo-styles-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
  padding-top: 0.45rem;
}

.pf-demo-styles-box {
  position: relative;
  display: grid;
  grid-template-columns: subgrid;
  gap: inherit;
  min-width: 0;
  padding: 0.85rem 0.55rem 0.55rem;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

.pf-demo-styles-box--default {
  grid-column: span 1;
}

.pf-demo-styles-box--3d {
  grid-column: span 4;
}

.pf-demo-styles-box--scroll {
  grid-column: span 2;
}

.pf-demo-styles-box-label {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.18rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.pf-demo-styles-grid {
  display: contents;
}

.pf-demo-style {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1.1rem 0.55rem 1.05rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pf-demo-style input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pf-demo-style:hover {
  border-color: rgba(15, 188, 73, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 188, 73, 0.12);
}

.pf-demo-style.is-active,
.pf-demo-style:has(input:checked) {
  border-color: rgba(15, 188, 73, 0.55);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(15, 188, 73, 0.16), 0 14px 32px rgba(15, 188, 73, 0.1);
}

.pf-demo-style-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 7.5rem;
  aspect-ratio: 200 / 132;
  margin: 0 auto 0.85rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f3fbf6 0%, #eaf8f0 100%);
  border: none;
  overflow: hidden;
}

.pf-demo-style-ico img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pf-demo-style-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
}

.pf-demo-style-name {
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.pf-demo-style-desc {
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.pf-demo-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.75rem;
  margin: 1.15rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f6f7f9;
}

.pf-demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.pf-demo-toggle-control {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.pf-demo-toggle-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.pf-demo-toggle-slider {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.pf-demo-toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.2);
  transition: transform 0.2s ease;
}

.pf-demo-toggle-control input:checked + .pf-demo-toggle-slider {
  background: var(--green, #0fbc49);
}

.pf-demo-toggle-control input:checked + .pf-demo-toggle-slider::after {
  transform: translateX(18px);
}

.pf-demo-toggle-control input:focus-visible + .pf-demo-toggle-slider {
  outline: 2px solid rgba(15, 188, 73, 0.45);
  outline-offset: 2px;
}

.pf-demo-toggle-label {
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.pf-demo-upload {
  margin: 0;
}

body.pf-demo-page .pf-demo-drop.pf-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 13.5rem;
  margin: 0;
  padding: 1.75rem 1.5rem;
  border: 2px dashed rgba(15, 188, 73, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(15, 188, 73, 0.08), transparent 60%),
    #f7fdf9;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

body.pf-demo-page .pf-demo-drop.pf-drop-zone:hover,
body.pf-demo-page .pf-demo-drop.pf-drop-zone.pf-dragover,
body.pf-demo-page .pf-demo-drop.pf-drop-zone:focus-visible {
  border-color: rgba(15, 188, 73, 0.65);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(15, 188, 73, 0.12), transparent 60%),
    #f3fcf6;
  box-shadow: 0 0 0 3px rgba(15, 188, 73, 0.1);
  outline: none;
}

.pf-demo-drop-ico {
  display: flex;
  color: var(--green, #0fbc49);
  margin-bottom: 0.35rem;
}

.pf-demo-drop-ico svg {
  width: 2.75rem;
  height: 2.75rem;
}

.pf-demo-drop-title {
  margin: 0;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.pf-demo-drop-hint {
  margin: 0 0 0.85rem;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.4;
}

.pf-demo-drop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  line-height: 1;
  padding: 0.65rem 1.25rem !important;
  border-radius: 999px;
  background: var(--green, #0fbc49);
  color: #fff;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(15, 188, 73, 0.28);
}

.pf-demo-drop-btn .pf-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  line-height: 0;
  vertical-align: middle;
}

.pf-demo-drop-btn .pf-upload-icon svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
}

.pf-demo-drop:hover .pf-demo-drop-btn {
  background: #0da33d;
}

.pf-demo-footnote {
  margin: 1.25rem 0 0;
  text-align: center;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.92rem;
  color: #64748b;
}

.pf-demo-footnote a {
  color: var(--green, #0fbc49);
  font-weight: 600;
  text-decoration: none;
}

.pf-demo-footnote a:hover,
.pf-demo-footnote a:focus-visible {
  color: #0a9a3a;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pf-demo-footnote-sep {
  margin: 0 0.45rem;
  color: #cbd5e1;
}

@media (max-width: 1199px) {
  .pf-demo-styles-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pf-demo-styles-box--default {
    grid-column: span 1;
  }

  .pf-demo-styles-box--3d {
    grid-column: span 3;
  }

  .pf-demo-styles-box--scroll {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-demo-styles-box--scroll .pf-demo-styles-grid {
    display: contents;
  }
}

@media (max-width: 767px) {
  .pf-demo-hero {
    padding: 4.85rem 0 0.65rem;
  }

  .pf-demo-hero-lead {
    font-size: 0.98rem;
  }

  .pf-demo-studio-panel {
    padding: 1.1rem 0.9rem 1.25rem;
    border-radius: 16px;
  }

  .pf-demo-styles-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-demo-styles-box--default,
  .pf-demo-styles-box--3d,
  .pf-demo-styles-box--scroll {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-demo-style {
    padding: 1rem 0.55rem 1.05rem;
  }

  .pf-demo-style-name {
    font-size: 0.88rem;
  }

  .pf-demo-drop {
    min-height: 11.5rem;
    padding: 1.35rem 1rem;
  }

  .pf-demo-drop-title {
    font-size: 1.05rem;
  }

  .pf-demo-footnote {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .pf-demo-footnote-sep {
    display: none;
  }

  .pf-demo-footnote a {
    display: inline-block;
    margin: 0 0.15rem;
  }
}
