/* ==========================================================
   SHOWPLACE.ART — Stylesheet
   ========================================================== */

/* ── CSS Custom Properties ── */
:root {
  /* Core palette */
  --c-bg:             #f6f5f3;
  --c-dark:           #1d2b3a;
  --c-text:           #1a1a1a;
  --c-text-mid:       #555555;
  --c-text-light:     #999999;
  --c-placeholder:    #cccccc;
  --c-border:         #e5e5e5;

  /* Accent colours */
  --c-coral:          #e07050;
  --c-pink:           #f4c4bc;
  --c-pink-mid:       #e8a898;
  --c-teal:           #4e86a8;
  --c-teal-light:     #aacad8;
  --c-green:          #7ab85a;
  --c-lavender:       #ccc0e8;
  --c-gold:           #c99700;
  --c-pastel:         #FDF9F6;

  /* "Website" word gradient stops */
  --g-orange:         #f97316;
  --g-pink:           #ec4899;
  --g-purple:         #8b5cf6;

  /* Feature icon backgrounds */
  --c-icon-ig-bg:     #fcecea;
  --c-icon-ig:        #c05050;
  --c-icon-gal-bg:    #e8eeff;
  --c-icon-gal:       #4e6ed8;
  --c-icon-shop-bg:   #e8f4e4;
  --c-icon-shop:      #559944;

  /* Layout */
  --nav-h:            70px;
  --max-w:            1200px;
  --container-px:     60px;
  --section-py:       60px;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-btn:  0;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--c-text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; }

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover  { opacity: .88; }

.btn-dark {
  background: var(--c-dark);
  color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--c-dark);
  border: 1.5px solid var(--c-dark);
  border-radius: var(--r-btn);
  font-family: inherit;
  cursor: pointer;
}
.btn-outline-dark:hover { background: var(--c-dark); color: #fff; opacity: 1; }
.btn-gold {
  background: var(--c-gold);
  color: #fff;
}
/* ========================================================
   NAVIGATION
   ======================================================== */
.site-header {
  height: var(--nav-h);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.nav-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-text);
  flex: 1;
  text-rendering: geometricPrecision;
}
.logo-art { color: var(--c-gold); }

.nav-login-link {
  font-size: 13px;
  color: var(--c-text-mid);
  text-decoration: none;
  white-space: nowrap;
}
.nav-login-link:hover { color: var(--c-text); }

.nav-tagline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.nav-tagline span {
    font-size: 18px;
    color: var(--c-green);
}


/* ========================================================
   HERO
   ======================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 36px 20px;
}

/* Two-column grid container */
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  min-height: 600px;
}

/* ── Left column ── */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-heading-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.hero-heading {
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -.025em;
  color: var(--c-text);
}
.hero-heading span {
    display: block;
}

.hero-heading .instagram {
  color: var(--c-text-mid);
  font-weight: normal;
}

.gradient-text {
  background: linear-gradient(90deg, var(--g-orange) 0%, var(--g-pink) 50%, var(--g-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-features {
    position: relative;
    top: -230px;
}

/* Curved arrow */
.hero-arrow {
  position: absolute;
  bottom: -40px;
  right: -225px;
  width: 140px;
  height: 64px;
  pointer-events: none;
  transform: rotate(-25deg);
}

.hero-sub {
  font-size: 15px;
  color: var(--c-text-mid);
  line-height: 1.75;
  max-width: 290px;
  margin-bottom: 32px;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 350px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-icon--ig      { background: var(--c-icon-ig-bg);   color: var(--c-icon-ig);   }
.feature-icon--gallery { background: rgba(201, 151, 0, 0.18);  color: var(--c-gold);  }
.feature-icon--shop    { background: var(--c-icon-shop-bg); color: var(--c-icon-shop); }
.feature-icon--help    { background: var(--c-icon-gal-bg); color: var(--c-icon-gal); }

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feature-text strong { font-size: 16px; font-weight: 600; }
.feature-text span   { font-size: 12px; color: var(--c-text-mid); }


/* ── Right column ── */
.hero-visual {
  position: relative;
  z-index: 2;
}


/* ========================================================
   WEBSITE MOCKUP (inside hero-visual)
   ======================================================== */
.website-mockup {
  background: var(--c-pastel);
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: 10px 10px 40px rgba(0,0,0,0.05);
  font-size: 11px;
  color: var(--c-text);
  padding: 10px;
}

/* Mockup nav */
.m-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 14px;
}
.m-logo {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .2em;
  font-family: serif;
}
.m-nav-links {
  display: flex;
  gap: 10px;
  font-size: 8px;
  color: var(--c-text-mid);
}
.m-cart {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  color: var(--c-text-mid);
}

/* Mockup hero */
.m-hero {
  display: flex;
  gap: 12px;
  padding: 16px 14px 45px;
  align-items: center;
}
.m-hero-text { flex: 1; }
.m-heading {
  font-family: Georgia, serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 7px;
}
.m-sub {
  font-size: 11px;
  font-style: italic;
  color: var(--c-text-mid);
  margin-bottom: 10px;
  line-height: 1.5;
}
.m-btn {
  background: #000;
  color: #fff;
  font-family: inherit;
  font-size: 9px;
  padding: 8px 20px;
  border: none;
  border-radius: 3px;
  cursor: default;
}

.m-hero-art {
  flex-shrink: 0;
  width: 200px;
}

/* Mockup shop */
.m-shop {
  margin: -10px;
  padding: 20px 20px 30px 20px;
  background: #fff;
}
.m-shop-title {
  font-size: 12px;
  font-family: serif;
  margin-bottom: 10px;
}
.m-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.m-product { font-size: 10px; }
.m-product-name   { font-weight: 600; margin-bottom: 1px; }
.m-product-medium { color: var(--c-text-light); margin-bottom: 2px; font-size: 9px; }
.m-product-price  { font-weight: 600; }

/* ── Painting CSS art ── */
.m-painting {
  margin-bottom: 5px;
  background: #ccc;
}
.m-painting-thumbnail {
    height: 120px;
    width: 90px;
}

/* Main hero painting – abstract arch */
.m-painting--main {
  width: 100%;
  height: 175px;
  position: relative;
  overflow: hidden;
}

/* ========================================================
   PHONE MOCKUP  (separate, absolutely positioned)
   ======================================================== */
.phone-mockup {
  position: absolute;
  /* Centered at the column junction (~47% of hero width) */
  left: calc(49% - 87px);   /* 87px = half of 174px phone width */
  top: 35%;
  transform: rotateX(3deg) rotateY(0deg) rotateZ(-3deg);
  width: 164px;
  z-index: 5;
  pointer-events: none;
}

.phone-frame {
  background: #181818;
  border-radius: 28px;
  padding: 4px;
  box-shadow: 5px 10px 10px rgba(0,0,0,0.1);
}

.phone-screen {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 70px;
  height: 14px;
  background: #181818;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  flex-shrink: 0;
}

/* Instagram-style header */
.insta-header {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: #fff;
  flex-shrink: 0;
}

.insta-header-top-bar {
    display: flex;
}
.insta-username { font-size: 8.5px; font-weight: 700; color: var(--c-text); flex: 1; }
.insta-header-icons {
  display: flex;
  gap: 6px;
  color: var(--c-text);
}

.insta-header-meta {
    display: flex;
    align-items: center;
    padding: 15px 0 5px 0;
    gap: 10px;
}
.insta-header-profile-pic img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}
.insta-header-meta-stats {
    display: flex;
    gap: 2px;
    font-size: 8px;
}
.insta-header-meta-stats div {
    text-align: center;
}
.insta-header-meta-stats .insta-header-stat {
    font-weight: 600;
}
.insta-header-meta-stats .insta-header-stat-label {
    font-size: 6px;
}

/* Tabs */
.insta-tabs {
  display: flex;
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.insta-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  color: var(--c-text-light);
}
.insta-tab--active {
  color: var(--c-text);
  border-bottom: 2px solid var(--c-text);
}

/* Photo grid */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #eee;
  flex: 1;
}
.insta-cells {
    height: 190px;
    width: 155px;
    image-rendering: pixelated;
}

/* Bottom tab bar */
.phone-tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px;
  background: #fff;
  border-top: 1px solid var(--c-border);
  color: var(--c-text);
  flex-shrink: 0;
}


/* ========================================================
   TAGLINE BANNER
   ======================================================== */
.tagline-banner {
  background: var(--c-dark);
  color: #fff;
  text-align: center;
  padding: 25px var(--container-px);
}

.tagline-main {
  font-size: clamp(22px, 4.2vw, 42px);
  font-family: serif;
}

.tagline-sub {
  font-size: 12px;
  letter-spacing: .24em;
  margin-bottom: 10px;
}
.tagline-you {
  color: var(--c-gold);
  opacity: 1;
}


/* ========================================================
   WAITLIST SECTION
   ======================================================== */
.waitlist {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-py);
  text-align: center;
  background: var(--c-dark);
  color: #fff;
  margin-top: -160px;
}

.waitlist-inner {
  position: relative;
  z-index: 1;
}

.waitlist-heading {
  font-size: clamp(30px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 12px;
  line-height: 1;
}

.waitlist-sub {
  font-size: 14px;
  color: var(--c-border);
  margin-bottom: 32px;
  max-width: 600px;
  margin-inline: auto;
}

/* Form */
.waitlist-form {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 22px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 320px;
}

.input-icon {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  color: var(--c-text-light);
  pointer-events: none;
  flex-shrink: 0;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-bg);
  outline: none;
}
.form-input.with-icon {
  padding-left: 40px;
}
input::placeholder {
  color: var(--c-placeholder);
  font-style: italic;
}

.waitlist-form .btn {
  height: 48px;
  padding-inline: 22px;
}

.no-spam {
  font-family: serif;
  font-size: 12px;
  color: var(--c-text-light);
}
.no-spam a {
  color: var(--c-text-light);
  font-size: 12px;
}


/* ========================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ======================================================== */
@media (max-width: 1024px) {
  :root { --container-px: 40px; }

  .hero-inner { gap: 28px; min-height: 560px; }

  .hero-heading { font-size: clamp(36px, 4.2vw, 56px); }

  /* Tighten the phone position slightly */
  .phone-mockup {
    left: calc(47% - 75px);
    width: 150px;
  }
  .phone-frame { border-radius: 28px; padding: 8px; }
  .phone-notch { width: 58px; height: 18px; }
}


/* ========================================================
   RESPONSIVE — MOBILE  (≤ 768px)
   ======================================================== */
@media (max-width: 768px) {
  :root {
    --container-px: 24px;
    --section-py:   56px;
  }

  /* Nav */
  .nav-tagline {
    position: absolute;
    top: 55px;
    right: 20px;
    color: var(--c-green);
  }

  /* Hero: single column */
  .hero { padding-block: 20px 56px; }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
  }

  .hero-content { margin-bottom: 280px; }
  .hero-arrow   {
    top: 360px;
    left: 100px;
    transform: scalex(-1) rotate(35deg) scale(0.7);
  }
  .features     { text-align: left; max-width: 340px; }
  .feature-text span { font-size: 13px; }

  /* Phone: revert to in-flow positioning, centered below heading */
  .phone-mockup {
    width: 170px;
    left: 220px;
    top: 340px;
    transform: scale(0.7) rotate(3deg);
  }
  .phone-frame {
    box-shadow: 5px 10px 10px rgba(0,0,0,0.4);
  }
  .insta-cells { image-rendering: auto; }

  /* Website mockup: show below (shifted down via hero-content margin) */
  .hero-visual { z-index: 1; transform: scale(0.8) translateX(-50px);}
}


/* ========================================================
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ======================================================== */
@media (max-width: 480px) {
  .hero-heading { font-size: 65px; font-weight: 700; line-height:1; }

  .hero-content { margin-bottom: 0; }

  .hero-features { position:initial; margin-top: 10px; }

  /* Stack the waitlist form */
  .waitlist-form { flex-direction: column; align-items: center; }

  .input-wrapper { max-width: 100%; width: 100%; }

  .waitlist {
    margin-top: 0;
  }
  .waitlist-form .btn {
    width: 100%;
    max-width: 100%;
  }

  .tagline-banner { padding-inline: var(--container-px); }
}


/* ========================================================
   EXTENDED DESIGN TOKENS
   (added for style-guide and future component reuse)
   ======================================================== */
:root {
  /* Semantic palette */
  --c-success:         #5a9e3e;
  --c-success-light:   #f0f9ea;
  --c-success-border:  #b0d98a;

  --c-warning:         #b38600;
  --c-warning-light:   #fef8e1;
  --c-warning-border:  #dfc052;

  --c-error:           #c93838;
  --c-error-light:     #fdf1f0;
  --c-error-border:    #ebb8b8;

  --c-info:            var(--c-teal);
  --c-info-light:      #eaf3f9;
  --c-info-border:     var(--c-teal-light);

  /* Surfaces */
  --c-surface:         #ffffff;
  --c-surface-subtle:  #fafaf9;

  /* Elevation / shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);

  /* Spacing scale */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-7: 32px;  --sp-8: 48px;  --sp-9: 64px;

  /* Font families */
  --font-sans:   system-ui, -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-mono:   'SF Mono', 'Fira Code', Consolas, monospace;

  /* Font size scale */
  --fz-xs:   11px;  --fz-sm:  13px;  --fz-base: 15px;
  --fz-md:   16px;  --fz-lg:  18px;  --fz-xl:   22px;
  --fz-2xl:  28px;  --fz-3xl: 36px;  --fz-4xl:  48px;

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(78,134,168,0.28);
}


/* ========================================================
   BUTTONS — extended system
   ======================================================== */
.btn-primary  { background: var(--c-dark);    color: #fff; border: 1.5px solid transparent;      border-radius: var(--r-btn); font-family: inherit; }
.btn-secondary{ background: transparent;      color: var(--c-dark); border: 1.5px solid var(--c-dark); border-radius: var(--r-btn); font-family: inherit; }
.btn-secondary:hover { background: var(--c-dark); color: #fff; opacity: 1; }
.btn-ghost    { background: transparent;      color: var(--c-text-mid); border: 1.5px solid var(--c-border); border-radius: var(--r-btn); font-family: inherit; }
.btn-ghost:hover     { border-color: var(--c-text-mid); color: var(--c-text); opacity: 1; }
.btn-danger   { background: var(--c-error);   color: #fff; border: 1.5px solid transparent;      border-radius: var(--r-btn); font-family: inherit; }
.btn-teal     { background: var(--c-teal);    color: #fff; border: 1.5px solid transparent;      border-radius: var(--r-btn); font-family: inherit; }
.btn-dark     { border-radius: var(--r-btn); font-family: inherit; }
.btn-gold     { border-radius: var(--r-btn); font-family: inherit; }

.btn-sm       { padding: 7px 14px; font-size: 12px; }
.btn-lg       { padding: 15px 32px; font-size: 15px; }
.btn[disabled], .btn:disabled { opacity: .38; cursor: not-allowed; pointer-events: none; }
.btn-icon     { padding: 0; width: 40px; height: 40px; border-radius: var(--r-sm); }
.btn-icon-sm  { width: 32px; height: 32px; }


/* ========================================================
   FORM FIELDS
   ======================================================== */
.form-field   { display: flex; flex-direction: column; gap: 6px; }
.form-label   { font-size: 13px; font-weight: 500; color: var(--c-text); }
.form-label--required::after { content: " *"; color: var(--c-error); }

.field-input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--c-text);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field-input::placeholder  { color: var(--c-text-light); }
.field-input:focus          { border-color: var(--c-teal); box-shadow: var(--focus-ring); }
.field-input--error         { border-color: var(--c-error); }
.field-input--error:focus   { box-shadow: 0 0 0 3px rgba(201,56,56,.18); }
.field-input--success       { border-color: var(--c-success); }

.field-textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-help        { font-size: 12px; color: var(--c-text-light); line-height: 1.5; }
.form-error-msg   { font-size: 12px; color: var(--c-error);   display: flex; align-items: center; gap: 4px; }
.form-success-msg { font-size: 12px; color: var(--c-success); display: flex; align-items: center; gap: 4px; }

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text);
  cursor: pointer;
}
.check-label input[type="checkbox"],
.check-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--c-teal);
  cursor: pointer;
  flex-shrink: 0;
}


/* ========================================================
   CARDS
   ======================================================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title  { font-size: 14px; font-weight: 600; color: var(--c-text); }
.card-body   { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card--featured { border-color: var(--c-teal-light); box-shadow: 0 0 0 1px rgba(78,134,168,.15), var(--shadow-md); }
.card--featured .card-header { background: linear-gradient(135deg, var(--c-info-light) 0%, var(--c-surface) 100%); }

.card--stat { padding: 20px; display: flex; flex-direction: column; }
.card-stat-value  { font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1; color: var(--c-text); }
.card-stat-label  { font-size: 12px; color: var(--c-text-light); margin-top: 6px; }
.card-stat-delta  { font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 3px; margin-top: 10px; }
.card-stat-delta--up   { color: var(--c-success); }
.card-stat-delta--down { color: var(--c-error); }


/* ========================================================
   BADGES / PILLS
   ======================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.badge--success { background: var(--c-success-light); color: var(--c-success); }
.badge--success::before { background: var(--c-success); }
.badge--warning { background: var(--c-warning-light); color: var(--c-warning); }
.badge--warning::before { background: var(--c-warning); }
.badge--error   { background: var(--c-error-light);   color: var(--c-error);   }
.badge--error::before   { background: var(--c-error); }
.badge--info    { background: var(--c-info-light);    color: var(--c-info);    }
.badge--info::before    { background: var(--c-info); }
.badge--neutral { background: #f0f0ee; color: var(--c-text-mid); }
.badge--neutral::before { background: var(--c-text-light); }


/* ========================================================
   ALERTS
   ======================================================== */
.alert {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}
.alert-icon    { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.alert-content { flex: 1; }
.alert-title   { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.alert-body    { font-size: 13px; opacity: .85; line-height: 1.6; }

.alert--success { background: var(--c-success-light); border-color: var(--c-success-border); color: var(--c-success); }
.alert--warning { background: var(--c-warning-light); border-color: var(--c-warning-border); color: var(--c-warning); }
.alert--error   { background: var(--c-error-light);   border-color: var(--c-error-border);   color: var(--c-error);   }
.alert--info    { background: var(--c-info-light);    border-color: var(--c-info-border);    color: var(--c-info);    }


/* ========================================================
   TOAST
   ======================================================== */
.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  max-width: 340px;
}
.toast-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--c-teal); }
.toast-msg   { flex: 1; line-height: 1.4; }
.toast-close { opacity: .5; cursor: pointer; flex-shrink: 0; font-size: 11px; }
.toast-close:hover { opacity: 1; }
.toast--success .toast-dot { background: var(--c-success); }
.toast--warning .toast-dot { background: var(--c-gold); }
.toast--error   .toast-dot { background: var(--c-error); }


/* ========================================================
   PROGRESS
   ======================================================== */
.progress {
  background: #e8e8e6;
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 100px;
  background: var(--c-teal);
  transition: width .4s ease;
}
.progress-bar--success  { background: var(--c-success); }
.progress-bar--warning  { background: var(--c-warning); }
.progress-bar--error    { background: var(--c-error); }
.progress-bar--gradient { background: linear-gradient(90deg, var(--c-teal) 0%, #a06be8 100%); }
.progress--thin { height: 4px; }


/* ========================================================
   SPINNER
   ======================================================== */
@keyframes sp-rotate { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 2.5px solid var(--c-border);
  border-top-color: var(--c-teal);
  border-radius: 50%;
  animation: sp-rotate .7s linear infinite;
}
.spinner--sm { width: 16px; height: 16px; border-width: 2px; }
.spinner--lg { width: 36px; height: 36px; border-width: 3px; }


/* ========================================================
   DATA TABLE
   ======================================================== */
.sg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sg-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-text-light);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-subtle);
}
.sg-table tbody td {
  padding: 12px 14px;
  color: var(--c-text);
  border-bottom: 1px solid #f2f2f0;
  vertical-align: middle;
}
.sg-table tbody tr:last-child td { border-bottom: none; }
.sg-table tbody tr:hover td { background: #fafaf9; }
.sg-table-action { font-size: 12px; color: var(--c-teal); font-weight: 500; }
.sg-table-action:hover { text-decoration: underline; }
.sg-table-name { font-weight: 500; }
.sg-table-meta { font-size: 12px; color: var(--c-text-light); margin-top: 2px; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; color: var(--c-text-light); }
.empty-state-icon {
  width: 48px; height: 48px;
  background: #f0f0ee;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #bbb;
}
.empty-state-title { font-size: 15px; font-weight: 600; color: var(--c-text-mid); margin-bottom: 6px; }
.empty-state-desc  { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }

/* Pagination */
.sg-pagination { display: flex; align-items: center; gap: 4px; }
.sg-page-btn {
  min-width: 32px; height: 32px;
  padding: 0 8px;
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-text-mid);
  font-size: 13px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background .1s, border-color .1s;
}
.sg-page-btn:hover     { background: #f5f5f3; border-color: #d0d0ce; }
.sg-page-btn--active   { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.sg-page-btn:disabled  { opacity: .4; cursor: not-allowed; }
.sg-page-ellipsis      { padding: 0 4px; color: var(--c-text-light); font-size: 13px; }


/* ========================================================
   STYLE GUIDE PAGE LAYOUT  (.sg-*)
   ======================================================== */
.sg-page {
  display: flex;
  min-height: 100vh;
  background: #f6f5f3;
  font-family: var(--font-sans);
  color: var(--c-text);
}

.sg-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--c-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sg-sidebar::-webkit-scrollbar { width: 4px; }
.sg-sidebar::-webkit-scrollbar-track { background: transparent; }
.sg-sidebar::-webkit-scrollbar-thumb { background: #e0e0de; border-radius: 4px; }

.sg-sidebar-head {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.sg-sidebar-logo-link { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--c-text); }
.sg-sidebar-logo-link span { color: var(--c-gold); text-transform: uppercase; }
.sg-sidebar-tag { font-size: 10px; letter-spacing: .1em; color: var(--c-text-light); margin-top: 4px; display: block; }

.sg-sidebar-nav { padding: 16px 0; flex: 1; }
.sg-sidebar-group { margin-bottom: 6px; }
.sg-sidebar-group-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text-light);
  padding: 6px 20px 4px;
}
.sg-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  font-size: 13px;
  color: var(--c-text-mid);
  text-decoration: none;
  transition: color .1s;
}
.sg-sidebar-link:hover { color: var(--c-text); }
.sg-sidebar-link--active { color: var(--c-teal); font-weight: 500; }
.sg-nav-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .4;
  flex-shrink: 0;
}
.sg-sidebar-link--active .sg-nav-dot { opacity: 1; }

.sg-main { flex: 1; min-width: 0; padding: 48px 64px 80px; }

.sg-header { margin-bottom: 56px; }
.sg-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 8px;
}
.sg-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--c-text);
  margin-bottom: 10px;
  line-height: 1.1;
}
.sg-description { font-size: 14px; color: var(--c-text-mid); line-height: 1.75; max-width: 520px; }

.sg-section { margin-bottom: 72px; scroll-margin-top: 24px; }
.sg-section-hd { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #ebebea; }
.sg-section-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--c-text); }
.sg-section-note  { font-size: 12px; color: var(--c-text-light); margin-top: 4px; line-height: 1.6; }

.sg-block { margin-bottom: 28px; }
.sg-block-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: 10px;
}

.sg-canvas {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
}
.sg-canvas--dark    { background: var(--c-dark); }
.sg-canvas--subtle  { background: var(--c-surface-subtle); }
.sg-canvas--grid    { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.sg-canvas--stack   { display: flex; flex-direction: column; gap: 20px; }
.sg-canvas--cols-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sg-canvas--cols-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sg-canvas--cols-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.sg-class-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  background: #f0f0ee;
  color: var(--c-text-mid);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

/* Colour swatches */
.colour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 12px; }
.colour-swatch-chip { height: 48px; border-radius: var(--r-sm); border: 1px solid rgba(0,0,0,0.06); margin-bottom: 6px; }
.colour-swatch-name { font-size: 10px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.colour-swatch-val  { font-size: 10px; font-family: var(--font-mono); color: var(--c-text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Shadow swatches */
.shadow-swatch {
  background: #fff;
  border-radius: var(--r-sm);
  padding: 20px 16px;
  text-align: center;
  font-size: 11px;
  color: var(--c-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Spacing scale */
.spacing-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; font-size: 12px; color: var(--c-text-mid); }
.spacing-bar { background: var(--c-teal); border-radius: 2px; height: 8px; flex-shrink: 0; opacity: .7; }

/* Border radius */
.radius-row    { display: flex; flex-wrap: wrap; gap: 20px; }
.radius-swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.radius-chip   { width: 60px; height: 40px; background: #eaf3f9; border: 1.5px solid var(--c-teal-light); }
.radius-label  { font-size: 10px; color: var(--c-text-light); font-family: var(--font-mono); text-align: center; }

/* Type specimens */
.sg-type-specimen { }
.sg-type-meta {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--c-text-light);
  margin-bottom: 6px;
  padding: 3px 8px;
  background: #f5f5f3;
  border-radius: 4px;
  display: inline-block;
}

/* Demo navigation components */
.demo-nav {
  background: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.demo-nav-logo      { font-weight: 700; font-size: 11px; letter-spacing: .15em; flex-shrink: 0; text-transform: uppercase; color: var(--c-text); }
.demo-nav-links     { display: flex; gap: 16px; flex: 1; }
.demo-nav-link      { color: var(--c-text-mid); }
.demo-nav-link:hover,
.demo-nav-link--active { color: var(--c-text); }
.demo-nav-link--active { font-weight: 500; }
.demo-nav-actions   { display: flex; gap: 8px; }

.demo-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-text-light); flex-wrap: wrap; }
.demo-breadcrumb a { color: var(--c-text-mid); }
.demo-breadcrumb a:hover { color: var(--c-text); }
.demo-breadcrumb-sep     { color: var(--c-border); }
.demo-breadcrumb-current { color: var(--c-text); font-weight: 500; }

.demo-sidenav {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 10px 0;
  width: 200px;
  font-size: 13px;
}
.demo-sidenav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  color: var(--c-text-mid);
  cursor: pointer;
}
.demo-sidenav-item:hover { background: #f5f5f3; color: var(--c-text); }
.demo-sidenav-item--active { background: #edf3f8; color: var(--c-teal); font-weight: 500; }
.demo-sidenav-sep { border: none; border-top: 1px solid var(--c-border); margin: 8px 0; }


/* ========================================================
   RESPONSIVE — Style Guide
   ======================================================== */
@media (max-width: 900px) {
  .sg-sidebar { display: none; }
  .sg-main    { padding: 32px 24px 64px; }
  .sg-canvas--cols-3,
  .sg-canvas--cols-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .sg-canvas--cols-2,
  .sg-canvas--cols-3,
  .sg-canvas--cols-4 { grid-template-columns: 1fr; }
  .sg-main { padding: 24px 16px 48px; }
  .sg-title { font-size: 24px; }
}


/* ========================================================
   ONBOARDING
   ======================================================== */

/* ── Page shell ─────────────────────────────────────────── */

.ob-page {
  min-height: 100vh;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ── Header ─────────────────────────────────────────────── */

.ob-header {
  height: var(--nav-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 32px;
  border-bottom: 1px solid var(--c-border);
  background: #fff;
}

.ob-split-sidebar .ob-header {
  flex-direction: column;
  align-items: initial;
  justify-content: initial;
}

.ob-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ob-split-sidebar .ob-logo-wrapper {
  flex: 1;
}

.ob-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-text);
  text-decoration: none;
  text-rendering: geometricPrecision;
}

.ob-logo-art { color: var(--c-gold); }

/* ── Progress indicator ─────────────────────────────────── */

.ob-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ob-split-sidebar .ob-progress {
  flex: 1;
}

.ob-progress-label {
  font-size: 12px;
  color: var(--c-text-light);
  font-weight: 500;
}

.ob-progress-steps {
  display: flex;
  align-items: center;
}

.ob-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.ob-step-dot.done {
  background: var(--c-green);
}

.ob-step-line {
  width: 28px;
  height: 2px;
  background: var(--c-border);
  flex-shrink: 0;
  transition: background 0.2s;
}

.ob-step-line.done {
  background: var(--c-green);
}

/* ── Centred main area (steps 1 & 2) ────────────────────── */

.ob-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 24px;
}

.ob-card {
  width: 100%;
  max-width: 520px;
}

/* ── Typography inside card ─────────────────────────────── */

.ob-step-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: 10px;
}

.ob-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 16px;
}

.ob-subtext {
  font-size: 15px;
  color: var(--c-text-mid);
  margin-bottom: 1em;
  line-height: 1.55;
}

/* ── Form layout ────────────────────────────────────────── */

.ob-form {
  display: flex;
  flex-direction: column;
}

.ob-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
}

.ob-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--c-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.ob-input:focus           { border-color: var(--c-dark); }
.ob-input.has-error       { border-color: #dc2626; }

/* ── URL preview block ──────────────────────────────────── */

.ob-url-block {
  padding: 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
}

.ob-url-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: 8px;
}

.ob-url-display {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  word-break: break-all;
}

.ob-url-prefix        { color: var(--c-text-light); }
.ob-url-slug-text     { color: var(--c-dark); font-weight: 700; }

/* Availability status */
.ob-slug-status          { margin-top: 8px; font-size: 13px; min-height: 20px; }
.ob-slug-status.available{ color: var(--c-green); }
.ob-slug-status.taken    { color: #dc2626; }
.ob-slug-status.checking { color: var(--c-text-light); }

.ob-slug-note { font-size: var(--fz-sm); color: var(--c-text-light); margin-top: 20px; }

/* Customise link */
.ob-customise-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-teal);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
}

/* Custom slug input row */
.ob-custom-slug-row { margin-top: 12px; }

.ob-slug-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s;
}

.ob-slug-input-wrap:focus-within { border-color: var(--c-dark); }
.ob-slug-input-wrap.has-error    { border-color: #dc2626; }

.ob-slug-prefix-label {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--c-text-light);
  background: #f5f5f3;
  border-right: 1.5px solid var(--c-border);
  white-space: nowrap;
  flex-shrink: 0;
}

.ob-slug-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--c-text);
  background: transparent;
  min-width: 0;
}

/* ── Alerts & errors ────────────────────────────────────── */

.ob-alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-bottom: 20px;
}

.ob-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.ob-error-list li {
  margin-bottom: 4px;
}

/* ── Submit footer ──────────────────────────────────────── */

.ob-form-footer {
  display: flex;
  justify-content: flex-end;
}

.ob-submit {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-btn);
}

/* ── Instagram step ─────────────────────────────────────── */

.ob-ig-center {
}

.ob-ig-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  display: none; /* hide */
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  float: left;
}

.ob-ig-caveat {
  font-size: 14px;
  color: var(--c-text-mid);
  line-height: 1.6;
  margin-top: 24px;
  margin-bottom: 28px;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--c-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn-instagram:hover {
  opacity: 0.9;
}

.btn-instagram img {
  width: 36px;
}

.ob-connected-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}
.ob-connected-badge a {
  font-size: 13px;
  text-decoration: underline;
  color: var(--c-teal);
}

/* ── Step 3: full-width split layout ────────────────────── */

.ob-page-fullwidth .ob-main {
  align-items: stretch;
  padding: 0;
}

.ob-split {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ob-split-preview {
  flex: 1;
  min-width: 0;
  background: var(--c-bg);
  overflow-y: auto;
  position: relative;
}

.ob-browser-chrome {
  width: calc(100% - 60px);
  margin: 50px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.3);
  transform: scale(0.85);
  transform-origin: top center;
}

.ob-browser-bar {
  height: 36px;
  background: #e2e2e2;
  display: flex;
  align-items: center;
  padding: 0 14px;
  flex-shrink: 0;
  border-top: 1px solid #eee;
}

.ob-browser-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ob-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ob-dot-red    { background: #ff5f57; }
.ob-dot-yellow { background: #febc2e; }
.ob-dot-green  { background: #28c840; }

.ob-preview-iframe {
  width: 100%;
  height: 600px; /* initial; JS overrides this after each load */
  border: none;
  display: block;
}

.ob-split-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow-y: auto;
  padding: 28px 24px;
  gap: 24px;
  border-left: 1px solid var(--c-border);
}

/* Header inside the step-3 sidebar: pull edge-to-edge, cancelling the sidebar's own padding */
.ob-split-sidebar .ob-header {
  margin: -28px -24px 0;
  padding-inline: 24px;
}

/* Sidebar section heading */
.ob-sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: 10px;
}

/* Option cards (layout / theme) */
.ob-option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-option-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.15s;
  user-select: none;
  background: var(--c-surface-subtle);
}

.ob-option-card:hover               { border-color: #aaa; }
.ob-option-card.selected            { border-color: var(--c-gold); background: var(--c-surface); }

.ob-option-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s;
}

.ob-option-card.selected .ob-option-radio {
  border-color: var(--c-dark);
  background: var(--c-dark);
  box-shadow: inset 0 0 0 3px #fff;
}

.ob-option-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.ob-option-desc {
  display: block;
  font-size: 12px;
  color: var(--c-text-light);
  margin-top: 2px;
}

.ob-coming-soon-note {
  font-size: 11px;
  color: var(--c-text-light);
  margin-top: 8px;
  font-style: italic;
}

.ob-sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}

.ob-sidebar-submit {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-btn);
}

/* ========================================================
   ONBOARDING — STEPS 4–6 EXTENSIONS
   ======================================================== */

/* ── Wide card (step 4) ─────────────────────────────────── */

.ob-card-wide {
  max-width: 860px;
}

/* ── Step 4: post list ──────────────────────────────────── */

.ob-post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ob-post-row {
  display: grid;
  grid-template-columns: 20px auto 1fr;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  align-items: start;
  transition: opacity 0.2s;
}

.ob-post-row.is-disabled {
  opacity: 0.55;
}

.ob-post-check {
  padding-top: 3px;
}

.ob-post-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--c-dark);
}

/* Media column */
.ob-post-media {
  width: 150px;
  flex-shrink: 0;
}

.ob-post-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
}

/* Carousel picker */
.ob-carousel-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ob-carousel-opt {
  position: relative;
  cursor: pointer;
  display: block;
}

.ob-carousel-opt img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 2.5px solid transparent;
  display: block;
  transition: border-color 0.15s;
}

.ob-carousel-opt.is-selected img {
  border-color: var(--c-dark);
}

.ob-carousel-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ob-carousel-check {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--c-dark);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.ob-carousel-opt.is-selected .ob-carousel-check {
  display: flex;
}

/* Fields grid */
.ob-post-fields {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px 8px;
  align-content: start;
}

.ob-post-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ob-post-field--full {
  grid-column: 1 / -1;
}

.ob-field-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Compact inputs */
.ob-input-sm {
  width: 100%;
  padding: 6px 9px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--c-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.ob-input-sm:focus   { border-color: var(--c-dark); }
.ob-input-sm:disabled { background: #f5f5f3; color: var(--c-text-light); cursor: not-allowed; }

.ob-textarea-sm {
  resize: vertical;
  min-height: 52px;
  line-height: 1.45;
}

/* Catalog footer */
.ob-catalog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  gap: 12px;
}

.ob-catalog-page-info {
  font-size: 13px;
  color: var(--c-text-light);
}

.ob-catalog-actions {
  display: flex;
  gap: 10px;
}

/* ── Step 5: sales option badge ──────────────────────────── */

.ob-option-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-teal);
  background: #edf6fa;
  border: 1px solid #c0dcea;
  border-radius: 20px;
  padding: 3px 10px;
}
.ob-option-badge img {
  display: inline-block;
  vertical-align: middle;
  width: 60px;
}

/* ── Step 6: summary list ────────────────────────────────── */

.ob-summary-list {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 28px;
  background: #fff;
}

.ob-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--c-border);
  gap: 16px;
}

.ob-summary-row:last-child {
  border-bottom: none;
}

.ob-summary-key {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

.ob-summary-val {
  text-align: right;
}

.ob-summary-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
}

.ob-summary-badge--green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.ob-summary-badge--warn {
  background: #fefce8;
  border: 1px solid #fde047;
  color: #854d0e;
}

/* ── Step 6: publish success ─────────────────────────────── */

.ob-publish-success {
  text-align: center;
  padding: 32px 0 16px;
}

.ob-big-tick {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(122, 184, 90, 0.35);
}

.ob-site-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-teal);
  word-break: break-all;
}

/* ── Responsive: step 4 on small screens ─────────────────── */

@media (max-width: 700px) {
  .ob-post-row {
    grid-template-columns: 20px auto 1fr;
  }

  .ob-post-fields {
    grid-template-columns: 1fr 1fr;
  }

  .ob-catalog-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ob-catalog-actions {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .ob-post-row {
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
  }

  .ob-post-media {
    display: none;
  }

  .ob-post-fields {
    grid-template-columns: 1fr 1fr;
    grid-column: 2;
  }
}
