/* Website UI kit local styles — extends colors_and_type.css */
@import url('./colors_and_type.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--pc-bg); color: var(--pc-text); font-family: var(--pc-font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.pc-section { padding: 112px 48px; position: relative; overflow: hidden; }
.pc-section--alt { background: var(--pc-bg-secondary); }
.pc-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.pc-section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.pc-section-head h2 { font-size: 44px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px; }
.pc-section-head p { font-size: 18px; line-height: 1.65; color: var(--pc-text-muted); }

.pc-glow {
  position: absolute; pointer-events: none; filter: blur(60px); opacity: 0.55;
  background: radial-gradient(closest-side, rgba(79,124,255,0.5), rgba(79,124,255,0));
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 14px; border: none; transition: all .18s cubic-bezier(.4,0,.2,1); color: #fff; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, #D92F24, #111111); box-shadow: 0 6px 18px rgba(79,124,255,0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(79,124,255,0.45); filter: brightness(1.05); }
.btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.14); color: var(--pc-text); }
.btn-secondary:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.25); }
.btn-ghost { background: transparent; color: var(--pc-text-muted); padding: 13px 16px; }
.btn-ghost:hover { color: var(--pc-text); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }

/* ---------- Card ---------- */
.card {
  background: var(--pc-bg-card); border: 1px solid var(--pc-border); border-radius: 20px;
  padding: 28px; box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(2,6,23,0.5);
  position: relative; transition: all .18s cubic-bezier(.4,0,.2,1);
}
.card::before { content:''; position:absolute; left:0; right:0; top:0; height:1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent); border-radius: 20px 20px 0 0; }
.card:hover { border-color: var(--pc-border-strong); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 40px rgba(2,6,23,0.6); }

.icon-chip {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,124,255,0.18), rgba(34,211,238,0.18));
  border: 1px solid rgba(79,124,255,0.35); display: flex; align-items: center; justify-content: center;
  color: #7CA3FF;
}
.icon-chip svg { width: 22px; height: 22px; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); color: var(--pc-text); white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: #D92F24; }
.pill-accent { background: rgba(79,124,255,0.14); border-color: rgba(79,124,255,0.35); color: #7CA3FF; }
.pill-cyan { background: rgba(34,211,238,0.14); border-color: rgba(34,211,238,0.35); color: #67E8F9; }
.pill-warn { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: #FBBF24; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pc-accent-2); margin-bottom: 14px; display: inline-block; }
.text-gradient { background: linear-gradient(135deg, #D92F24, #111111); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.pc-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,11,24,0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pc-border);
}
.pc-header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 48px; display: flex; align-items: center; gap: 32px; height: 72px;}
.pc-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.pc-nav a { font-size: 14px; color: var(--pc-text-muted); transition: color .15s; }
.pc-nav a:hover { color: var(--pc-text); }
.pc-header-cta { display: flex; align-items: center; gap: 8px; }

/* ---------- Misc helpers ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.divider { height: 1px; background: var(--pc-border); margin: 0; border: none; }

/* ---------- Responsive fixes ---------- */
img, svg { max-width: 100%; }
.pc-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pc-brand span { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.pc-mobile-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--pc-border); border-radius: 10px; background: var(--pc-bg-card); color: var(--pc-text); align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.pc-mobile-toggle span { width: 18px; height: 2px; border-radius: 999px; background: currentColor; }
.pc-mobile-menu { display: none; }
.pc-table-scroll { -webkit-overflow-scrolling: touch; }

@media (max-width: 1024px) {
  .pc-section { padding: 88px 32px; }
  .pc-header-inner { padding: 14px 32px; }
  .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .pc-hero-grid, .pc-live-demo-grid { grid-template-columns: 1fr !important; gap: 44px !important; }
  .pc-product-preview-grid { grid-template-columns: 180px 1fr !important; }
  .pc-product-kpis { grid-template-columns: repeat(2, 1fr) !important; }
  .pc-footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 32px !important; }
}

@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .pc-section, .pc-hero-section { padding: 64px 20px !important; }
  .pc-section-head { margin-bottom: 36px; }
  .pc-section-head h2 { font-size: clamp(30px, 9vw, 38px); }
  .pc-section-head p { font-size: 16px; }
  .card { padding: 20px; }
  .grid, .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr !important; }

  .pc-header-inner { height: 64px; padding: 12px 20px; gap: 12px; }
  .pc-nav, .pc-header-cta { display: none; }
  .pc-mobile-toggle { display: inline-flex; margin-left: auto; }
  .pc-mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 18px; background: rgba(7,11,24,0.96); border-bottom: 1px solid var(--pc-border); }
  .pc-mobile-menu a { padding: 12px 0; color: var(--pc-text-muted); font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .pc-mobile-menu-actions { display: grid; grid-template-columns: 1fr; gap: 10px; padding-top: 10px; }
  .pc-mobile-menu-actions .btn { justify-content: center; width: 100%; }

  .pc-hero-grid { text-align: left; }
  .pc-hero-grid h1 { font-size: clamp(38px, 12vw, 52px) !important; }
  .pc-hero-grid p { font-size: 16px !important; }
  .pc-hero-actions, .pc-final-actions { flex-direction: column; }
  .pc-hero-actions .btn, .pc-final-actions .btn { justify-content: center; width: 100%; }
  .pc-hero-visual { height: 430px !important; margin-top: 8px; }
  .pc-hero-browser { inset: 0 0 120px 0 !important; }
  .pc-hero-widget { right: 12px !important; bottom: 0 !important; width: min(320px, calc(100% - 24px)) !important; }
  .pc-hero-lead, .pc-hero-analytics, .pc-hero-badges { display: none !important; }

  .pc-live-demo-grid h2 { font-size: clamp(30px, 9vw, 38px) !important; }
  .pc-live-demo-panel { border-radius: 18px !important; }

  .pc-product-preview-grid { grid-template-columns: 1fr !important; min-height: auto !important; }
  .pc-product-preview-sidebar { display: none !important; }
  .pc-product-preview-main { padding: 18px !important; }
  .pc-product-preview-head { align-items: flex-start !important; gap: 12px; flex-direction: column; }
  .pc-product-kpis { grid-template-columns: 1fr !important; }
  .pc-table-scroll table { min-width: 680px; }

  .pc-footer { padding: 56px 20px 28px !important; }
  .pc-footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; margin-bottom: 36px !important; }
  .pc-footer-bottom { align-items: flex-start !important; flex-direction: column; gap: 16px; }
}

@media (max-width: 420px) {
  .pc-section, .pc-hero-section { padding-left: 16px !important; padding-right: 16px !important; }
  .btn-lg { padding: 14px 18px; font-size: 15px; }
  .pill { white-space: normal; }
  .pc-hero-visual { height: 400px !important; }
}

/* Tablet header overflow fix */
@media (max-width: 900px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .pc-header {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .pc-header-inner {
    height: 64px;
    padding: 12px 24px;
    gap: 12px;
  }

  .pc-nav,
  .pc-header-cta {
    display: none;
  }

  .pc-mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .pc-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 18px;
    background: rgba(7,11,24,0.96);
    border-bottom: 1px solid var(--pc-border);
  }

  .pc-mobile-menu a {
    padding: 12px 0;
    color: var(--pc-text-muted);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .pc-mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 10px;
  }

  .pc-mobile-menu-actions .btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 820px) {
  .pc-section,
  .pc-hero-section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .pc-container {
    max-width: 100%;
  }
}

/* Mobile hero visual detail fix */
@media (max-width: 760px) {
  .pc-hero-visual {
    height: auto !important;
    display: grid;
    gap: 16px;
    margin-top: 18px;
  }

  .pc-hero-browser,
  .pc-hero-widget,
  .pc-hero-lead,
  .pc-hero-analytics,
  .pc-hero-badges {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }

  .pc-hero-browser {
    width: 100% !important;
    min-height: 260px;
    margin: 0 !important;
  }

  .pc-hero-browser > div:last-child {
    grid-template-columns: 1fr !important;
  }

  .pc-hero-widget {
    width: 100% !important;
    max-width: 360px;
    margin: -48px auto 0;
    z-index: 3;
  }

  .pc-hero-analytics,
  .pc-hero-lead {
    display: block !important;
    width: 100% !important;
    max-width: 360px;
    margin: 0 auto;
    z-index: 2;
  }

  .pc-hero-badges {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 10px !important;
    width: 100%;
    margin-top: 2px;
  }
}

@media (max-width: 420px) {
  .pc-hero-browser {
    min-height: 230px;
  }

  .pc-hero-widget,
  .pc-hero-analytics,
  .pc-hero-lead {
    max-width: 100%;
  }

  .pc-hero-widget {
    margin-top: -36px;
  }
}

/* Embedded chatbot builder */
.embedded-hero {
  padding-top: 96px;
  padding-bottom: 88px;
}

.embedded-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 460px);
  gap: 48px;
  align-items: center;
}

.embedded-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}

.embedded-hero-copy p {
  max-width: 720px;
  color: var(--pc-text-muted);
  font-size: 18px;
  line-height: 1.72;
  margin-bottom: 28px;
}

.embedded-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.embedded-hero-actions .btn {
  justify-content: center;
}

.embedded-note,
.embedded-backend-note,
.embedded-install-note {
  color: var(--pc-text-muted);
  font-size: 13px;
  line-height: 1.65;
  padding: 14px 16px;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}

.embedded-hero-showcase {
  padding: 18px;
  border-radius: 26px;
}

.embedded-showcase-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.embedded-showcase-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
}

.embedded-showcase-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.embedded-showcase-stat {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--pc-border);
  background: rgba(255,255,255,0.035);
}

.embedded-showcase-stat small {
  display: block;
  color: var(--pc-text-muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.embedded-showcase-stat strong {
  display: block;
  color: var(--pc-text);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.embedded-showcase-widget {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--pc-border);
  background:
    radial-gradient(circle at top right, rgba(79,124,255,0.16), transparent 32%),
    rgba(7,11,24,0.72);
}

.embedded-showcase-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.embedded-showcase-widget-head div:first-child {
  min-width: 0;
}

.embedded-showcase-widget-head strong {
  display: block;
  color: var(--pc-text);
  font-size: 16px;
  margin-bottom: 4px;
}

.embedded-showcase-widget-head span {
  color: var(--pc-text-muted);
  font-size: 12px;
}

.embedded-showcase-color {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(79,124,255,0.25);
  flex-shrink: 0;
}

.embedded-showcase-message {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--pc-border);
  background: rgba(255,255,255,0.06);
  color: var(--pc-text);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.embedded-showcase-starters {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 86%;
  margin: 0 0 14px auto;
}

.embedded-showcase-starters button,
.embedded-install-preview-starters button {
  padding: 8px 11px;
  border-radius: 16px 16px 5px 16px;
  border: 1px solid rgba(79,124,255,0.34);
  background: rgba(79,124,255,0.12);
  color: #DBEAFE;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(2,6,23,0.18);
}

.embedded-showcase-footer,
.embedded-install-preview-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.embedded-showcase-footer span,
.embedded-install-preview-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--pc-border);
  background: rgba(255,255,255,0.04);
  color: var(--pc-text-muted);
  font-size: 12px;
}

.embedded-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.embedded-settings-card,
.embedded-preview-install-card {
  padding: 24px;
}

.embedded-settings-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pc-border);
}

.embedded-settings-head h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.embedded-form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.embedded-form-row:last-child {
  margin-bottom: 0;
}

.embedded-form-row > span,
.embedded-toggle-row strong {
  font-size: 13px;
  font-weight: 650;
  color: var(--pc-text);
}

.embedded-form-row small,
.embedded-toggle-row span,
.embedded-code-actions span {
  color: var(--pc-text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.embedded-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: rgba(7,11,24,0.65);
  color: var(--pc-text);
  outline: none;
  padding: 11px 13px;
  font: inherit;
  resize: vertical;
}

.embedded-input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.embedded-input:focus {
  border-color: rgba(79,124,255,0.65);
  box-shadow: 0 0 0 3px rgba(79,124,255,0.16);
}

.embedded-range-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 12px;
  align-items: center;
}

.embedded-range-row input {
  width: 100%;
  accent-color: #D92F24;
}

.embedded-range-row span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--pc-border);
  color: var(--pc-text);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  font-weight: 700;
}

.embedded-color-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
}

.embedded-color {
  width: 56px;
  min-height: 44px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: rgba(7,11,24,0.65);
  padding: 5px;
}

.embedded-toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--pc-border);
}

.embedded-toggle-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.embedded-toggle-row > div {
  display: grid;
  gap: 4px;
}

.embedded-toggle {
  width: 48px;
  height: 28px;
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  padding: 3px;
  flex-shrink: 0;
}

.embedded-toggle span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--pc-text-muted);
  transition: transform .18s ease, background .18s ease;
}

.embedded-toggle.is-on {
  border-color: rgba(79,124,255,0.55);
  background: rgba(79,124,255,0.22);
}

.embedded-toggle.is-on span {
  transform: translateX(20px);
  background: #111111;
}

.embedded-radio-grid {
  display: grid;
  gap: 10px;
}

.embedded-radio-grid label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--pc-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.embedded-radio-grid input {
  margin-top: 2px;
  accent-color: #D92F24;
}

.embedded-preview-install-wrap {
  margin-top: 24px;
}

.embedded-preview-install-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.embedded-preview-install-head h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.embedded-preview-install-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.embedded-preview-install-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.embedded-install-preview {
  width: 100%;
}

.embedded-install-preview-widget {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--pc-border);
  background: rgba(7,11,24,0.76);
  box-shadow: 0 20px 44px rgba(2,6,23,0.45);
}

.embedded-install-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px;
  color: #fff;
}

.embedded-install-preview-head div:first-child {
  min-width: 0;
}

.embedded-install-preview-head strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.embedded-install-preview-head span {
  font-size: 12px;
  opacity: 0.86;
}

.embedded-install-preview-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,0.28);
  flex-shrink: 0;
}

.embedded-install-preview-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.embedded-install-preview-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--pc-border);
  color: var(--pc-text);
  font-size: 13px;
  line-height: 1.6;
}

.embedded-install-preview-starters {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: 8px;
  max-width: 86%;
}

.embedded-install-preview-capture {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.22);
}

.embedded-install-preview-capture strong {
  font-size: 13px;
}

.embedded-install-preview-capture span {
  color: var(--pc-text-muted);
  font-size: 12px;
}

.embedded-install-preview-meta {
  padding: 0 16px 16px;
}

.embedded-install-column {
  display: grid;
  gap: 16px;
}

.embedded-code-box {
  overflow-x: auto;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  background: rgba(7,11,24,0.82);
}

.embedded-code-box pre {
  min-width: 520px;
  padding: 16px;
  color: #DDE7FF;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.embedded-code-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.embedded-install-steps {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--pc-text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.embedded-backend-note code {
  color: #DDE7FF;
}

@media (max-width: 1200px) {
  .embedded-hero-grid {
    grid-template-columns: 1fr;
  }

  .embedded-hero-showcase {
    max-width: 560px;
  }
}

@media (max-width: 1024px) {
  .embedded-card-grid {
    grid-template-columns: 1fr;
  }

  .embedded-preview-install-grid {
    grid-template-columns: 1fr;
  }

  .embedded-preview-install-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .embedded-preview-install-actions {
    width: 100%;
  }

  .embedded-preview-install-actions .btn {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .embedded-hero {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .embedded-hero-copy h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .embedded-hero-copy p {
    font-size: 16px;
  }

  .embedded-hero-actions {
    flex-direction: column;
  }

  .embedded-hero-actions .btn {
    width: 100%;
  }

  .embedded-showcase-dashboard {
    grid-template-columns: 1fr;
  }

  .embedded-settings-card,
  .embedded-preview-install-card,
  .embedded-hero-showcase {
    padding: 20px;
  }

  .embedded-preview-install-actions {
    flex-direction: column;
  }

  .embedded-preview-install-actions .btn {
    width: 100%;
  }

  .embedded-code-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .embedded-code-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .embedded-color-row {
    grid-template-columns: 48px 1fr;
  }

  .embedded-color {
    width: 48px;
  }

  .embedded-range-row {
    grid-template-columns: 1fr 42px;
  }

  .embedded-preview-install-head h3 {
    font-size: 22px;
  }

  .embedded-install-preview-bubble {
    max-width: 100%;
  }
}

/* Embedded builder backend feedback */
.embedded-api-feedback {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.embedded-api-feedback strong {
  color: var(--pc-text);
  font-size: 13px;
}

.embedded-api-feedback span {
  color: var(--pc-text-muted);
  word-break: break-word;
}

.embedded-api-feedback.is-success {
  border: 1px solid rgba(217,47,36,0.28);
  background: rgba(217,47,36,0.09);
}

.embedded-api-feedback.is-error {
  border: 1px solid rgba(248,113,113,0.32);
  background: rgba(248,113,113,0.09);
}

.embedded-preview-install-actions .btn:disabled,
.embedded-code-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}


/* Auth pages */
.auth-page {
  min-height: calc(100vh - 72px);
  padding: 120px 20px 80px;
}

.auth-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
}

.auth-copy h1 {
  margin: 16px 0;
  font-family: var(--pc-font-display);
  font-size: clamp(42px, 7vw, 82px);
  line-height: .92;
  letter-spacing: -.06em;
}

.auth-copy p {
  max-width: 620px;
  color: var(--pc-text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.auth-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--pc-border);
  border-radius: 28px;
  background: rgba(15, 23, 42, .78);
  box-shadow: var(--pc-shadow-lg);
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.auth-card p {
  margin: 0;
  color: var(--pc-text-muted);
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span,
.auth-check span {
  color: var(--pc-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: var(--pc-text);
  outline: none;
  padding: 13px 14px;
  font: inherit;
}

.auth-field input:focus {
  border-color: rgba(79, 124, 255, .8);
  box-shadow: 0 0 0 4px rgba(79, 124, 255, .12);
}

.auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.auth-check input {
  margin-top: 3px;
}

.auth-password-note {
  color: var(--pc-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-error {
  border: 1px solid rgba(248, 113, 113, .35);
  border-radius: 14px;
  background: rgba(248, 113, 113, .08);
  color: #FCA5A5;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-switch {
  color: var(--pc-text-muted);
  font-size: 14px;
  text-align: center;
}

.auth-switch a {
  color: var(--pc-text);
  font-weight: 800;
}

.pc-profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pc-profile-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 124, 255, .95), rgba(34, 211, 238, .95));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(79, 124, 255, .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pc-profile-avatar {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.pc-profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: 260px;
  border: 1px solid var(--pc-border);
  border-radius: 18px;
  background: rgba(15, 23, 42, .98);
  box-shadow: var(--pc-shadow-lg);
  padding: 10px;
}

.pc-profile-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--pc-border);
  border-top: 1px solid var(--pc-border);
  background: rgba(15, 23, 42, .98);
  transform: rotate(45deg);
}

.pc-profile-user {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--pc-border);
  margin-bottom: 8px;
}

.pc-profile-user strong {
  color: var(--pc-text);
  font-size: 14px;
  line-height: 1.3;
}

.pc-profile-user span {
  color: var(--pc-text-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-profile-link,
.pc-profile-signout {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--pc-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.pc-profile-link:hover,
.pc-profile-signout:hover {
  background: rgba(255, 255, 255, .06);
}

.pc-profile-signout {
  color: #FCA5A5;
}

.auth-terms-link {
  color: #111111;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-terms-link:hover {
  color: #7DD3FC;
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-page {
    padding-top: 92px;
  }
}