:root {
  --bg: #f8f6ff;
  --ink: #20264a;
  --muted: #697092;
  --line: #dfdcf2;
  --paper: #fffefe;
  --soft: #e9e8ff;
  --accent: #ffb6d6;
  --accent-dark: #7a68cf;
  --green: #9ea8ff;
  --night: #2e335b;
  --cream: #fff2d6;
  --cloud: #c98acb;
  --shadow: 0 28px 80px rgba(46, 51, 91, 0.14);
  --section-pad-y: 84px;
  --hero-title-scale: 1;
  --hero-media-scale: 1;
  --card-radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.design-mode {
  padding-right: min(380px, 32vw);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(223, 220, 242, 0.82);
  background: rgba(248, 246, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.topbar-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(46, 51, 91, 0.18);
}

.nav-links {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.language-select {
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.language-select select {
  width: auto;
  min-width: 112px;
  min-height: 36px;
  padding: 0 10px;
  border-color: rgba(122, 104, 207, 0.22);
  background: rgba(255, 255, 255, 0.76);
}

.header-cta,
.button,
.plan-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-weight: 780;
  font-size: 14px;
}

.header-cta,
.button.primary,
.plan-button.is-selected {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(135deg, #ffb6d6, #9ea8ff);
}

.button.secondary {
  color: var(--accent-dark);
  background: #f4f2ff;
}

.button.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.hero-section,
.process-section,
.services-section,
.checkout-section,
.order-section,
.gallery-section,
.admin-section {
  padding: var(--section-pad-y) 34px;
}

.hero-section {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 48px;
  padding-top: 54px;
  background:
    radial-gradient(circle at 9% 14%, rgba(255, 182, 214, 0.34), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(255, 242, 214, 0.75), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(158, 168, 255, 0.2), transparent 30%);
}

.hero-copy h1,
.section-heading h2,
.checkout-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 840px;
  font-size: calc(clamp(48px, 7vw, 94px) * var(--hero-title-scale));
  line-height: 0.95;
}

.hero-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  gap: 28px;
  margin: 42px 0 0;
}

.hero-facts div {
  min-width: 112px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-size: 32px;
  font-weight: 850;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-demo {
  display: grid;
  gap: 16px;
}

.desktop-frame {
  overflow: hidden;
  border: 1px solid #20264a;
  border-radius: var(--card-radius);
  background: #1e244a;
  box-shadow: var(--shadow);
}

.desktop-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #bdb7ad;
  border-bottom: 1px solid #343a68;
  background: #2e335b;
  font-size: 13px;
}

.desktop-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #8d8b86;
}

.desktop-bar strong {
  margin-left: 8px;
  font-weight: 650;
}

.desktop-canvas {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    #20264a;
  background-size: 34px 34px;
}

.pet-preview {
  position: relative;
  z-index: 2;
  width: min(calc(82% * var(--hero-media-scale)), calc(580px * var(--hero-media-scale)));
  height: auto;
  margin-bottom: 14px;
  object-fit: contain;
  animation: pet-breathe 2.8s ease-in-out infinite;
}

.pet-preview.is-frame-demo,
.demo-frame-preview {
  animation: none;
}

.pet-shadow {
  position: absolute;
  bottom: 28px;
  width: 52%;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(14px);
}

.bubble {
  position: absolute;
  top: 76px;
  left: 52px;
  z-index: 3;
  padding: 13px 16px;
  border-radius: 8px;
  color: #342016;
  background: #fffaf2;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  font-size: 14px;
}

.action-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.action-strip button {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
}

.action-strip .is-active {
  color: #fff;
  border-color: var(--green);
  background: var(--night);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading h2,
.checkout-copy h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.section-heading p,
.checkout-copy p,
.price-card li,
.order-card small,
.status-card,
.admin-card,
.site-footer {
  color: var(--muted);
  line-height: 1.55;
}

.process-grid,
.pricing-grid,
.gallery-row,
.admin-layout {
  display: grid;
  gap: 18px;
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-grid article,
.price-card,
.checkout-card,
.order-card,
.status-card,
.gallery-row article,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(23, 21, 18, 0.07);
}

.process-grid article {
  min-height: 230px;
  padding: 24px;
}

.process-grid span {
  color: var(--accent);
  font-weight: 850;
}

.process-grid h3,
.price-card h3,
.status-card h3,
.admin-card h3,
.gallery-row h3 {
  margin: 18px 0 10px;
  color: var(--ink);
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-card {
  padding: 26px;
}

.price-card.featured {
  border-color: #c99075;
  background: #fffaff;
  transform: translateY(-10px);
}

.price {
  margin: 8px 0 20px;
  color: var(--ink);
  font-size: 36px;
  font-weight: 850;
}

.price-card ul {
  min-height: 154px;
  padding-left: 20px;
}

.plan-button {
  width: 100%;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 182, 214, 0.24), transparent 26%),
    linear-gradient(90deg, #fff2d6, #f4f2ff);
}

.checkout-card,
.order-card,
.status-card,
.admin-card {
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  gap: 22px;
}

.photo-drop {
  min-height: 270px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed #bfae98;
  border-radius: 8px;
  background: #fbf4ea;
  cursor: pointer;
}

.photo-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-drop img {
  display: none;
  max-height: 230px;
  object-fit: contain;
}

.photo-drop.has-image img {
  display: block;
}

.photo-drop.has-image span {
  display: none;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.status-header span {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--accent-dark);
  background: #fbefe7;
  font-size: 13px;
  font-weight: 800;
}

.status-steps {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.status-steps li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-steps .is-current {
  color: var(--green);
  border-color: #98b49c;
  background: #f0f6ec;
  font-weight: 800;
}

.status-steps .is-done {
  color: var(--muted);
  background: #f7f4ee;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.download-panel img,
.gallery-row img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.download-panel .button {
  width: 100%;
  margin-top: 8px;
}

.gallery-row {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-row article {
  padding: 16px;
}

.admin-section {
  background: #1d1d1c;
}

.site-header.is-hidden,
section.is-hidden,
footer.is-hidden {
  display: none !important;
}

.hero-section.hero-layout-stacked {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
  text-align: center;
}

.hero-section.hero-layout-stacked .hero-copy,
.hero-section.hero-layout-stacked .hero-copy p {
  margin-inline: auto;
}

.hero-section.hero-layout-stacked .hero-actions,
.hero-section.hero-layout-stacked .hero-facts {
  justify-content: center;
}

.hero-section.hero-layout-demo-left {
  grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr);
}

.hero-section.hero-layout-demo-left .hero-demo {
  order: -1;
}

.design-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1000;
  width: min(380px, 32vw);
  min-width: 320px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #20264a;
  background: rgba(255, 254, 254, 0.96);
  border-left: 1px solid rgba(122, 104, 207, 0.22);
  box-shadow: -24px 0 70px rgba(46, 51, 91, 0.16);
  backdrop-filter: blur(18px);
}

.design-panel header,
.design-panel footer {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.design-panel footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.design-panel h2,
.design-panel h3,
.design-panel p {
  margin: 0;
}

.design-panel h2 {
  font-size: 17px;
}

.design-panel p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.design-panel-body {
  overflow: auto;
  padding: 14px 16px 18px;
}

.design-group {
  padding: 14px 0;
  border-bottom: 1px solid rgba(223, 220, 242, 0.72);
}

.design-group h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.design-control {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.design-control input,
.design-control select,
.design-control textarea {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.design-control input[type="color"] {
  height: 38px;
  padding: 4px;
}

.design-control input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.design-check {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.design-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.design-actions button,
.design-full-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.design-actions button:first-child,
.design-full-button.primary {
  color: #fff;
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.design-export {
  width: 100%;
  min-height: 118px;
  margin-top: 10px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.design-toast {
  position: fixed;
  right: min(400px, calc(32vw + 20px));
  bottom: 24px;
  z-index: 1001;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: #2e335b;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.design-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-section .section-heading h2,
.admin-section .admin-card h3 {
  color: #fffaf2;
}

.admin-section .section-heading p,
.admin-card {
  color: #c8c1b8;
}

.admin-layout {
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
}

.admin-card {
  border-color: #373431;
  background: #262421;
  box-shadow: none;
}

.admin-card input {
  color: #fffaf2;
  border-color: #4a453f;
  background: #1d1d1c;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

pre {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 260px;
  padding: 16px;
  border-radius: 8px;
  color: #f7f5ef;
  background: #171512;
  line-height: 1.6;
}

.checklist {
  padding-left: 20px;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 34px;
  border-top: 1px solid var(--line);
}

@keyframes pet-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.012); }
}

@media (max-width: 980px) {
  body.design-mode {
    padding-right: 0;
    padding-bottom: 46vh;
  }

  .design-panel {
    inset: auto 0 0 0;
    width: 100%;
    min-width: 0;
    height: 46vh;
    border-top: 1px solid rgba(122, 104, 207, 0.22);
    border-left: 0;
  }

  .design-toast {
    right: 18px;
    bottom: calc(46vh + 16px);
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero-section,
  .checkout-section,
  .order-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .pricing-grid,
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .desktop-canvas {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    grid-template-columns: 1fr auto;
    padding: 14px 18px;
  }

  .header-cta {
    display: none;
  }

  .language-select span {
    display: none;
  }

  .hero-section,
  .process-section,
  .services-section,
  .checkout-section,
  .order-section,
  .gallery-section,
  .admin-section {
    padding: 54px 18px;
  }

  .hero-section,
  .process-grid,
  .pricing-grid,
  .gallery-row,
  .field-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-facts,
  .action-strip,
  .section-title,
  .site-footer {
    flex-direction: column;
    display: flex;
  }
}
