/* ===========================
   STUDIO LAYOUT (Oddkin UI)
   =========================== */

.back-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
}

.back-link:hover {
  color: #a29bfe;
}

.studio {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
  padding: 10px 40px 40px;
  text-align: left;
}

.panel {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #15151c;
  border: 1px solid #2a2a35;
  border-radius: 20px;
  padding: 22px;
  box-sizing: border-box;
}

.site-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #a0a0b0;
  margin-bottom: 14px;
}

.site-type strong {
  color: #ffffff;
  font-weight: 600;
}

/* Tabs */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #0b0b0f;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}

.tab {
  background: none;
  border: none;
  color: #a0a0b0;
  padding: 10px;
  border-radius: 9px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.tab.active {
  background: #6c5ce7;
  color: #ffffff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Fields */
.field {
  margin-bottom: 24px;
}

.field label,
.field-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.panel input[type="text"],
.panel select {
  width: 100%;
  box-sizing: border-box;
  background: #0b0b0f;
  border: 1px solid #2a2a35;
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.panel input[type="text"]:focus,
.panel select:focus {
  outline: none;
  border-color: #6c5ce7;
}

.hint {
  font-size: 13px;
  color: #a0a0b0;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* Colours */
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 36px);
  gap: 10px;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s;
}

.swatch:hover {
  transform: scale(1.1);
}

.swatch.active {
  border-color: #ffffff;
}

.field .custom-color {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font-weight: 400;
  font-size: 14px;
  color: #a0a0b0;
  cursor: pointer;
}

.custom-color input {
  width: 36px;
  height: 36px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

/* Style buttons */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.option {
  background: #0b0b0f;
  border: 1px solid #2a2a35;
  border-radius: 10px;
  padding: 11px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.option:hover {
  border-color: #6c5ce7;
}

.option.active {
  background: #6c5ce7;
  border-color: #6c5ce7;
}

/* Section list */
.layers {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.layer {
  background: #0b0b0f;
  border: 1px solid #2a2a35;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.layer-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.handle {
  cursor: grab;
  color: #6b6b7b;
  font-size: 18px;
  padding: 0 4px;
  user-select: none;
}

.layer-name {
  flex: 1;
  font-size: 14px;
}

.icon-btn {
  background: none;
  border: 1px solid transparent;
  color: #8a8a9a;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.icon-btn:hover {
  border-color: #2a2a35;
  color: #ffffff;
}

.panel .layer-variant {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
}

.sortable-ghost {
  opacity: 0.35;
}

.add-row {
  display: flex;
  gap: 8px;
}

.small-btn {
  background: #6c5ce7;
  border: none;
  color: #ffffff;
  padding: 0 18px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

/* Extras */
.toggles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: #6c5ce7;
  flex-shrink: 0;
}

.toggle-name {
  flex: 1;
}

.toggle-price {
  font-size: 12px;
  color: #a0a0b0;
  white-space: nowrap;
}

.text-btn {
  background: none;
  border: none;
  color: #a0a0b0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Price */
.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  background: #0b0b0f;
  border: 1px solid #2a2a35;
  border-radius: 14px;
}

.price-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.price-note {
  display: block;
  font-size: 11px;
  color: #8a8a9a;
}

#priceTotal {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.send-btn {
  width: 100%;
  margin-top: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
}

/* Stage + device */
.stage-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.device-btn {
  background: #15151c;
  border: 1px solid #2a2a35;
  color: #a0a0b0;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.device-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b0b0f;
}

.device {
  --brand: #6c5ce7;
  --font: 'Poppins', sans-serif;
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: #1f1f2a;
  border-radius: 16px;
  padding: 12px;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: max-width 0.35s ease;
}

.device.mobile {
  max-width: 400px;
  border-radius: 34px;
  padding: 14px;
}

.screen {
  height: calc(100vh - 200px);
  min-height: 480px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 8px;
}

.device.mobile .screen {
  border-radius: 22px;
}

/* Floating buttons in the preview */
.widgets {
  position: absolute;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  z-index: 2;
}

.device.show-cookie:not(.cookie-dismissed) .widgets {
  bottom: 86px;
}

.w-chat,
.w-call,
.w-wa {
  display: none;
}

.device.show-chatbot .w-chat {
  display: block;
}

.device.show-call .w-call,
.device.show-whatsapp .w-wa {
  display: flex;
}

.w-chat {
  width: 210px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-family: var(--font);
  font-size: 13px;
}

.device.mobile .w-chat {
  width: 170px;
  font-size: 12px;
}

.w-chat-head {
  background: var(--brand);
  color: #ffffff;
  padding: 10px 12px;
  font-weight: 600;
}

.w-chat-msg {
  padding: 12px;
  color: #444444;
}

.w-call,
.w-wa {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.w-call {
  background: var(--brand);
}

.w-wa {
  background: #25d366;
}

/* Newsletter popup in the preview */
.w-popup {
  display: none;
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  background: rgba(10, 10, 15, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.device.mobile .w-popup {
  inset: 14px;
  border-radius: 22px;
}

.device.show-popup:not(.popup-dismissed) .w-popup {
  display: flex;
}

.w-popup-card {
  position: relative;
  width: min(320px, 85%);
  box-sizing: border-box;
  background: #ffffff;
  color: #16161d;
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  font-family: var(--font);
}

.w-popup-card strong {
  font-size: 20px;
}

.w-popup-card span {
  font-size: 14px;
  color: #5d5d6b;
}

.w-popup-input {
  border: 1px solid #e6e6ec;
  border-radius: 10px;
  padding: 11px;
  font-size: 13px;
  color: #999999;
  text-align: left;
}

.w-popup-card .w-popup-btn {
  background: var(--brand);
  color: #ffffff;
  border-radius: 10px;
  padding: 11px;
  font-weight: 600;
}

.w-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 16px;
  color: #888888;
  cursor: pointer;
}

/* Cookie notice in the preview */
.w-cookie {
  display: none;
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: #16161d;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-family: var(--font);
  z-index: 2;
}

.device.show-cookie:not(.cookie-dismissed) .w-cookie {
  display: flex;
}

.w-cookie-btn {
  background: var(--brand);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* Website type wizard */
.wizard {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 15, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 300;
  overflow-y: auto;
}

.wizard[hidden] {
  display: none;
}

.wizard-box {
  width: 100%;
  max-width: 920px;
  text-align: center;
}

.wizard-title {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.wizard-sub {
  font-size: 17px;
  margin: 0 auto 36px;
  max-width: 560px;
}

.wizard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.wizard-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: #15151c;
  border: 1px solid #2a2a35;
  border-radius: 18px;
  padding: 28px 24px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.wizard-card:hover {
  border-color: #6c5ce7;
  transform: translateY(-3px);
}

.wizard-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.wizard-card strong {
  font-size: 18px;
}

.wizard-card span:last-child {
  font-size: 14px;
  color: #a0a0b0;
  line-height: 1.5;
}

/* Send popup */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #15151c;
  border: 1px solid #2a2a35;
  border-radius: 20px;
  padding: 32px;
  box-sizing: border-box;
  text-align: left;
}

.modal-box h2 {
  font-size: 26px;
  margin: 0 0 8px;
}

.modal-box p {
  font-size: 15px;
  margin: 0 0 20px;
}

.modal-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-box input,
.modal-box textarea {
  background: #0b0b0f;
  border: 1px solid #2a2a35;
  border-radius: 12px;
  padding: 14px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

.modal-box input:focus,
.modal-box textarea:focus {
  outline: none;
  border-color: #6c5ce7;
}

.modal-box .btn {
  margin-top: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #a0a0b0;
  font-size: 18px;
  cursor: pointer;
}

/* Keyboard focus */
.studio button:focus-visible,
.studio select:focus-visible,
.studio input:focus-visible,
.modal button:focus-visible,
.wizard button:focus-visible {
  outline: 2px solid #00d2ff;
  outline-offset: 2px;
}

/* ===========================
   PREVIEW SITE (customer's site)
   =========================== */

.site {
  --bg: #ffffff;
  --surface: #f5f5f8;
  --text: #16161d;
  --muted: #5d5d6b;
  --line: #e6e6ec;
  --radius: 14px;
  --btn-radius: 999px;
  container-type: inline-size;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  text-align: start;
}

/* Style presets */
.site[data-style="luxury"] {
  --bg: #121214;
  --surface: #1a1a1e;
  --text: #f3efe6;
  --muted: #a8a29a;
  --line: #2c2c31;
  --radius: 2px;
  --btn-radius: 0;
}

.site[data-style="playful"] {
  --bg: #fffaf1;
  --surface: #ffeed6;
  --text: #2b2118;
  --muted: #6b5a48;
  --line: #f0dcc0;
  --radius: 22px;
  --btn-radius: 18px;
}

.site[data-style="minimal"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #ebebeb;
  --radius: 0;
  --btn-radius: 4px;
}

.site[data-style="bold"] {
  --radius: 10px;
  --btn-radius: 10px;
}

.site[data-style="soft"] {
  --bg: color-mix(in srgb, var(--brand) 5%, #ffffff);
  --surface: color-mix(in srgb, var(--brand) 12%, #ffffff);
  --line: color-mix(in srgb, var(--brand) 20%, #ffffff);
  --radius: 18px;
}

/* Editable text */
.site [contenteditable] {
  outline: 1px dashed transparent;
  outline-offset: 3px;
  transition: outline-color 0.15s;
}

.site [contenteditable]:hover {
  outline-color: color-mix(in srgb, var(--brand) 60%, transparent);
}

.site [contenteditable]:focus {
  outline: 2px solid var(--brand);
}

/* Shared type */
.s-h1 {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 16px;
}

.s-h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
}

.s-h3 {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.s-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 60ch;
}

.s-small {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.site[data-style="luxury"] .s-h1,
.site[data-style="luxury"] .s-h2 {
  font-weight: 400;
}

/* Buttons */
.s-btn {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  padding: 12px 26px;
  border: 1px solid var(--brand);
  border-radius: var(--btn-radius);
  font-size: 15px;
  font-weight: 600;
}

.site[data-style="luxury"] .s-btn {
  background: transparent;
  color: var(--brand);
  letter-spacing: 0.1em;
}

.site[data-style="playful"] .s-btn {
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
}

/* White buttons on coloured backgrounds (after the luxury rule so they win) */
.site .s-cta .s-btn,
.site .s-hero.v-banner .s-btn,
.site[data-style="bold"] .s-hero .s-btn {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand);
}

/* Shared layout */
.s-section {
  padding: 64px 40px;
}

.s-narrow {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.s-narrow .s-p {
  margin-left: auto;
  margin-right: auto;
}

.s-head {
  text-align: center;
  margin-bottom: 32px;
}

.s-head .s-h2 {
  margin: 0;
}

.s-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.s-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.s-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  border-radius: var(--radius);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 35%, var(--bg)),
    color-mix(in srgb, var(--brand) 10%, var(--bg)));
  color: var(--muted);
  font-size: 13px;
}

.s-img-tall {
  min-height: 300px;
}

/* Sections with a tinted background */
.s-services,
.s-booking,
.s-reviews.v-cards,
.s-pricing,
.s-login,
.s-stats-section {
  background: var(--surface);
}

/* Announcement bar */
.s-announce {
  background: var(--brand);
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
}

/* Header */
.s-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
}

.s-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.s-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--brand);
}

.s-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.s-lang {
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.s-burger {
  display: none;
  font-size: 22px;
}

.s-header.v-centered {
  flex-direction: column;
  gap: 10px;
}

.s-header.v-bar {
  background: var(--brand);
  border-bottom: none;
}

.s-header.v-bar .s-logo,
.s-header.v-bar .s-nav,
.s-header.v-bar .s-burger,
.s-header.v-bar .s-lang {
  color: #ffffff;
}

.s-header.v-bar .s-lang {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hero */
.s-hero {
  padding: 90px 40px;
}

.s-hero.v-centered {
  text-align: center;
}

.s-hero.v-centered .s-p {
  margin-left: auto;
  margin-right: auto;
}

.s-hero.v-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.s-hero.v-banner {
  text-align: center;
  padding: 120px 40px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000000));
  color: #ffffff;
}

.s-hero.v-banner .s-p {
  color: rgba(255, 255, 255, 0.85);
  margin-left: auto;
  margin-right: auto;
}

.site[data-style="bold"] .s-hero {
  background: var(--brand);
  color: #ffffff;
}

.site[data-style="bold"] .s-hero .s-p {
  color: rgba(255, 255, 255, 0.85);
}

.site[data-style="bold"] .s-h1 {
  font-size: 54px;
  letter-spacing: -0.02em;
}

/* Slider */
.s-slider {
  position: relative;
}

.s-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.s-track::-webkit-scrollbar {
  display: none;
}

.s-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 340px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 80px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #000000));
}

.s-slide:nth-child(2) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 65%, #000000), var(--brand));
}

.s-slide:nth-child(3) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, #ffffff), var(--brand));
}

.s-slide .s-p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto;
}

.s-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.s-arrow.prev {
  left: 16px;
}

.s-arrow.next {
  right: 16px;
}

/* Trust strip */
.s-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.s-check {
  color: var(--brand);
  margin-right: 6px;
}

.s-logos-section {
  padding: 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.s-logos-title {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.s-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.s-logo-box {
  width: 110px;
  height: 44px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
}

/* Cards, lists, quotes */
.s-card,
.s-quote,
.s-plan {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.s-list .s-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

/* Stats */
.s-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.s-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 6px;
}

/* Pricing */
.s-plan {
  text-align: center;
  padding: 30px 24px;
}

.s-plan.featured {
  border: 2px solid var(--brand);
}

.s-plan-price {
  display: block;
  font-size: 30px;
  font-weight: 800;
  margin: 6px 0 8px;
}

.s-plan .s-btn {
  margin-top: 18px;
}

/* Team */
.s-member {
  text-align: center;
}

.s-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: color-mix(in srgb, var(--brand) 30%, var(--bg));
}

/* FAQ */
.s-faq {
  max-width: 680px;
  margin: 0 auto;
}

.s-faq-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

/* Gallery, Instagram */
.s-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.s-insta {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.s-insta .s-img {
  min-height: 0;
  aspect-ratio: 1;
}

.s-handle {
  display: inline-block;
  font-weight: 600;
  color: var(--brand);
  margin-top: 4px;
}

/* Video */
.s-video {
  aspect-ratio: 16 / 9;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 45%, #000000),
    color-mix(in srgb, var(--brand) 20%, #000000));
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Call to action */
.s-cta {
  background: var(--brand);
  color: #ffffff;
  text-align: center;
}

.s-cta .s-p {
  color: rgba(255, 255, 255, 0.85);
  margin-left: auto;
  margin-right: auto;
}

/* Shop */
.s-product .s-img {
  margin-bottom: 12px;
}

.s-price {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
}

/* Forms (preview only) */
.s-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.s-narrow .s-form,
.s-login-card .s-form {
  margin: 0 auto;
}

.s-input {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: calc(var(--radius) / 2);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: start;
}

.s-input.tall {
  height: 80px;
}

.s-form .s-btn {
  align-self: flex-start;
  margin-top: 4px;
}

.s-narrow .s-form .s-btn,
.s-login-card .s-form .s-btn {
  align-self: stretch;
  text-align: center;
}

.s-inline {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.s-inline .s-input {
  flex: 1;
}

/* Login */
.s-login-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.s-link {
  display: block;
  font-size: 13px;
  color: var(--brand);
  margin-top: 14px;
}

/* Reviews */
.s-reviews.v-strip {
  padding: 18px 40px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.s-stars {
  color: #f5b301;
  letter-spacing: 2px;
  margin-right: 8px;
}

.s-quote .s-p {
  font-size: 15px;
  color: var(--text);
  margin: 10px 0 12px;
}

.s-who {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Contact details */
.s-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.s-details strong {
  display: inline-block;
  width: 80px;
  color: var(--muted);
  font-weight: 600;
}

/* Footer */
.s-footer {
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.s-footer.v-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.s-footer.v-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding: 48px 40px;
}

.s-footer .s-col > span {
  display: block;
  margin-bottom: 6px;
}

.s-footer .s-col-title {
  color: var(--text);
  font-weight: 700;
}

.s-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.s-social span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text);
}

.s-footer.v-simple .s-social {
  margin-top: 0;
}

/* Preview responds to its own width (desktop vs mobile) */
@container (max-width: 640px) {
  .s-header {
    padding: 16px 22px;
  }

  .s-nav {
    display: none;
  }

  .s-burger {
    display: block;
  }

  .s-header.v-centered .s-burger {
    display: none;
  }

  .s-hero,
  .s-section {
    padding: 56px 22px;
  }

  .s-hero.v-banner {
    padding: 80px 22px;
  }

  .s-h1,
  .site[data-style="bold"] .s-h1 {
    font-size: 32px;
  }

  .s-h2 {
    font-size: 24px;
  }

  .s-split,
  .s-hero.v-split,
  .s-grid3,
  .s-footer.v-columns {
    grid-template-columns: 1fr;
  }

  .s-gallery,
  .s-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .s-list .s-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .s-slide {
    padding: 50px 56px;
    min-height: 300px;
  }

  .s-inline {
    flex-direction: column;
  }

  .s-trust,
  .s-reviews.v-strip,
  .s-logos-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .s-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .s-footer.v-simple {
    flex-direction: column;
    text-align: center;
  }
}

/* Studio on small screens */
@media (max-width: 980px) {
  .studio {
    grid-template-columns: 1fr;
    padding: 10px 16px 30px;
  }

  .panel {
    position: static;
    max-height: none;
  }

  .screen {
    height: 70vh;
  }

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

  .wizard-title {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device,
  .swatch,
  .wizard-card,
  .site [contenteditable] {
    transition: none;
  }
}

/* The Studio is a work tool, so its header scrolls away normally */
.navbar {
  position: relative;
}
.save-btn {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  background: transparent;
  border: 1px solid #6c5ce7;
  border-radius: 50px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  cursor: pointer;
}

.save-btn:hover {
  background: #6c5ce7;
}

.save-msg {
  font-size: 13px;
  color: #a0a0b0;
  text-align: center;
  min-height: 18px;
  margin: 8px 0 0;
}
/* Action bar above the preview, always visible */
.stage-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  background: #0b0b0f;
}

.device-toggle,
.stage-actions {
  display: flex;
  gap: 8px;
}

.stage-actions .save-btn,
.stage-actions .send-btn {
  width: auto;
  margin: 0;
  padding: 10px 22px;
  font-size: 15px;
}

.save-msg {
  text-align: right;
  margin: 0 0 8px;
}