/* ============================================================================
   AI for Designers — Exact Framer Design Tokens & Layout System from aifordesigners.io
   ============================================================================ */
:root {
  --brand-color: #121212;
  --token-bg: #ffffff;
  --token-surface: #f5f5f5;
  --token-surface-alt: #fafafa;
  --token-text-primary: #121212;
  --token-text-body: #404040;
  --token-text-muted: #525252;
  --token-text-light: #737373;
  --token-footer-bg: #070708;
  --token-border: rgba(0, 0, 0, 0.07);
  --token-dashed: rgba(136, 136, 136, 0.25);
  --token-gold: #c6842d;
  --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 2px 20px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 1.9px 5px rgba(18, 10, 3, 0.02), 0 9.4px 24.5px rgba(18, 10, 3, 0.04), 0 24px 62.4px rgba(18, 10, 3, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--token-bg);
  color: var(--token-text-primary);
  accent-color: var(--brand-color);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Sticky 72px Framer Header */
.framer-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.framer-nav-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.framer-logo-link {
  display: inline-flex;
  align-items: center;
}

.framer-logo-link img {
  height: 31px;
  width: auto;
  display: block;
}

.framer-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.framer-nav-links a {
  text-decoration: none;
  color: var(--token-text-primary);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.15s ease;
}

.framer-nav-links a:hover {
  opacity: 0.68;
}

.nav-chevron {
  font-size: 12px;
  color: var(--token-text-light);
}

.pill-tag-mini {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  background: #f0f0f0;
  color: #262626;
  font-size: 11px;
  font-weight: 600;
}

.framer-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  background: #f5f5f5;
  padding: 3px;
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--token-text-muted);
}

.lang-btn.active {
  background: #ffffff;
  color: #121212;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Framer Pill Buttons */
.framer-btn-dark,
.framer-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.framer-btn-dark {
  background: #121212;
  color: #ffffff;
  border: 1px solid #121212;
}

.framer-btn-dark:hover {
  background: #262626;
  transform: translateY(-1px);
}

.framer-btn-outline {
  background: #ffffff;
  color: #121212;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.framer-btn-outline:hover {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.25);
}

.framer-btn-lg {
  padding: 13px 26px;
  font-size: 16px;
}

.framer-btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.framer-btn-block {
  width: 100%;
}

.cw-status-dot,
.green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5a995f;
  display: inline-block;
}

/* Sections & Containers */
.framer-section {
  padding: 84px 0;
}

.section-wash {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 52%, #ffffff 100%);
}

.framer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Framer Typography Presets */
.framer-h1 {
  font-size: 60px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #121212;
  margin: 0 0 20px;
}

.framer-h1-sm {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: #121212;
  margin: 0 0 16px;
}

.framer-h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #121212;
  margin: 0 0 14px;
}

.framer-h2-lg {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  color: #121212;
  margin: 0 0 18px;
}

.muted-heading {
  color: #737373;
}

.framer-subtitle {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  color: #525252;
  margin: 0 0 36px;
}

.framer-body-lg {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: #404040;
  max-width: 680px;
  margin: 0 0 24px;
}

/* Hero Section */
.hero-section {
  padding-top: 56px;
  padding-bottom: 64px;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 24px;
}

.shimmer-text {
  background: linear-gradient(90deg, #262626 0%, #262626 35%, #c6842d 50%, #262626 65%, #262626 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmer 4.5s linear infinite;
}

@keyframes textShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto 32px;
}

.rainbow-aura {
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  background: linear-gradient(125deg, rgba(248, 212, 155, 0.45), rgba(235, 175, 215, 0.38), rgba(168, 215, 250, 0.42), rgba(248, 212, 155, 0.45));
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}

.hero-video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #121212;
  box-shadow: var(--shadow-elevated);
}

.hero-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero-trust-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #404040;
}

.dot-sep {
  color: #a3a3a3;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.brands-marquee-block {
  width: 100%;
  max-width: 880px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.brands-caption {
  font-size: 14px;
  color: #737373;
  margin: 0 0 18px;
}

.brands-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  color: #525252;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  opacity: 0.78;
}

/* ============================================================================
   TRUE PHOTOGRAPHIC BEFORE/AFTER SLIDER (clip-path, zero image distortion)
   ============================================================================ */
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 972px;
  aspect-ratio: 972 / 618;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  user-select: none;
  cursor: ew-resize;
  margin: 12px auto 24px;
  background: #f0f0f0;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-before-img {
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}

.ba-tag {
  position: absolute;
  top: 18px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(18, 18, 18, 0.68);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.ba-tag-before { left: 18px; }
.ba-tag-after { right: 18px; }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: #ffffff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(38, 28, 22, 0.72);
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.ba-caption {
  font-size: 17px;
  color: #404040;
  margin: 0 0 22px;
}

/* 3-Step Bento Cards ("Upload. Click. Render.") */
.bento-head {
  margin-bottom: 36px;
}

.three-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.step-bento-card {
  display: flex;
  flex-direction: column;
}

.step-img-box {
  background: #f5f5f5;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

.step-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-bento-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #121212;
}

.step-bento-card p {
  font-size: 16px;
  color: #525252;
  margin: 0;
}

.framer-h6-callout {
  font-size: 21px;
  font-weight: 600;
  color: #121212;
  margin: 24px 0 0;
}

/* Revisions Video & Ulis Quote */
.revisions-media-card {
  width: 100%;
  max-width: 972px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  margin: 12px auto 28px;
  background: #f5f5f5;
}

.revisions-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ulis-quote {
  margin: 0 0 24px;
  font-size: 20px;
  font-style: italic;
  color: #262626;
}

.ulis-quote footer {
  font-style: normal;
  font-size: 16px;
  color: #525252;
  margin-top: 8px;
}

/* Split Feature Grid (Multiple Views, Moodboards, Founder) */
.split-feature-grid {
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}

.kicker-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #737373;
  margin-bottom: 12px;
}

.rounded-square-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-elevated);
  display: block;
}

.framer-check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: #121212;
}

.framer-check-list li {
  margin-bottom: 10px;
}

.wide-showcase-card {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.wide-showcase-card img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  display: block;
}

/* 5-Video Carousel */
.video-carousel-block {
  margin-top: 24px;
}

.carousel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 10;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  background: #f5f5f5;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #d4d4d4;
  cursor: pointer;
  padding: 0;
}

.carousel-dots .dot.active {
  background: #121212;
}

/* ============================================================================
   LIVE INTERACTIVE STUDIO & CAD BLUEPRINTS WORKSPACE
   ============================================================================ */
.studio-workspace-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}

.studio-controls-card,
.studio-output-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.control-block + .control-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f0f0f0;
}

.control-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.text-btn {
  background: none;
  border: none;
  color: #525252;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.upload-box {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px dashed rgba(0, 0, 0, 0.16);
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background: #f5f5f5;
}

.upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-overlay-pill {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 18, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.inline-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
}

.inline-select-row select,
.swatches-2col input,
.swatches-2col select,
.control-block textarea,
.sso-form input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-family: inherit;
  background: #fafafa;
  color: #121212;
}

.inline-select-row select {
  width: 64%;
}

.swatches-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.swatches-2col label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #404040;
  margin-bottom: 4px;
}

.lighting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.lighting-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f5f5f5;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.slider-row {
  margin: 12px 0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.slider-row input[type="range"] {
  width: 100%;
}

.humanize-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 12px 0 14px;
  cursor: pointer;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.engine-sub {
  font-size: 13px;
  color: #737373;
  margin-left: 8px;
}

.output-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.output-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.4;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f5;
}

.blueprint-white-stage {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.output-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blueprint-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.render-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.82);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.render-loading-overlay[hidden] {
  display: none !important;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.prompt-caption-box {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f5f5f5;
  font-size: 13px;
  color: #404040;
}

.history-strip-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.history-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  background: #fafafa;
}

.history-item img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}

.history-item-meta {
  padding: 6px 8px;
  font-size: 11px;
}

.bp-radio-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.bp-option-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: #f5f5f5;
  border: 1px solid transparent;
  cursor: pointer;
}

.bp-option-card:hover {
  border-color: #121212;
}

.bp-option-card strong {
  display: block;
  font-size: 13px;
}

.bp-option-card span {
  display: block;
  font-size: 12px;
  color: #525252;
}

/* ============================================================================
   INTEGRATIONS BENTO MATRIX (Exact aifordesigners.io PNG Icons & Dashed Grid)
   ============================================================================ */
.integrations-grid-shell {
  padding: 20px 0;
}

.integrations-bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 92px);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.int-cell {
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.int-cell.dashed {
  border: 1.5px dashed var(--token-dashed);
}

.int-cell.icon-tile {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.int-cell.icon-tile:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.11);
}

.int-cell.icon-tile img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.int-center-copy {
  grid-column: 2 / 6;
  grid-row: 3 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.int-sub {
  margin: 0;
  font-size: 14px;
  color: #525252;
  max-width: 400px;
}

.int-tooltip {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #121212;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 5;
}

.int-cell.icon-tile:hover .int-tooltip {
  opacity: 1;
}

.mu-glyph {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #121212;
}

.lumion-glyph {
  font-size: 28px;
  color: #2b85b4;
}

/* Pricing Grid (Exact aifordesigners.io 4 Cards + Studio Rainbow Glow) */
.framer-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.framer-price-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
}

.framer-price-card.popular-card {
  box-shadow: 0 0 0 1px rgba(198, 132, 45, 0.25), 0 18px 48px rgba(198, 132, 45, 0.14);
}

.popular-pill {
  position: absolute;
  top: 22px;
  right: 22px;
  background: #faf7ef;
  color: #c6842d;
  border: 1px solid rgba(198, 132, 45, 0.3);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}

.price-icon {
  font-size: 24px;
  margin-bottom: 14px;
}

.framer-price-card h4 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 6px;
}

.credits-sub {
  font-size: 15px;
  color: #525252;
  margin: 0 0 36px;
}

.price-amount {
  font-size: 36px;
  font-weight: 700;
  color: #121212;
  margin-bottom: 8px;
}

.price-amount small {
  font-size: 16px;
  font-weight: 500;
  color: #525252;
}

.price-desc {
  font-size: 14px;
  color: #404040;
  margin: 0 0 24px;
  flex: 1;
}

.price-divider {
  height: 1px;
  background: #f0f0f0;
  margin-bottom: 20px;
}

.edu-banner-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.edu-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.edu-icon {
  font-size: 26px;
}

.edu-banner-left p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #525252;
}

.edu-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Split FAQ Section */
.faq-split-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}

.framer-faq-item {
  border-bottom: 1px solid #ececec;
  padding: 20px 0;
}

.framer-faq-item summary {
  font-size: 18px;
  font-weight: 600;
  color: #121212;
  cursor: pointer;
}

.framer-faq-item p {
  margin: 12px 0 0;
  font-size: 16px;
  color: #404040;
  line-height: 1.5;
}

/* Full-Bleed Bottom CTA */
.bottom-cta-section {
  position: relative;
  height: 490px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bottom-cta-bg {
  position: absolute;
  inset: 0;
}

.bottom-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bottom-cta-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.bottom-cta-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 56px;
  max-width: 560px;
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

.bottom-cta-card h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}

.bottom-cta-card p {
  font-size: 18px;
  color: #525252;
  margin: 0 0 24px;
}

/* Solid #070708 Dark Footer */
.framer-footer {
  background: var(--token-footer-bg);
  color: #ffffff;
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-invert {
  filter: invert(1) brightness(2);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  color: #a3a3a3;
  text-decoration: none;
  font-size: 15px;
}

.footer-col h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #ffffff;
}

.footer-col a {
  display: block;
  color: #a3a3a3;
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 14px;
  color: #a3a3a3;
}

.footer-bottom a {
  color: #d4d4d4;
  text-decoration: none;
}

.status-normal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d4d4d4;
}

/* Native <dialog> & Scroll Containment (modern-web-guidance) */
dialog {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 0;
  max-width: 680px;
  width: calc(100% - 32px);
  background: #ffffff;
  color: #121212;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background-color: rgba(7, 7, 8, 0.55);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-card { padding: 26px; }
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.dialog-header h2 { margin: 6px 0 2px; font-size: 22px; }
.dialog-sub { margin: 0; font-size: 14px; color: #525252; }
.dialog-close-btn {
  background: #f5f5f5;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.install-steps-box,
.sso-box {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.install-steps-box h3 { margin: 0 0 8px; font-size: 15px; }
.install-steps-box ol { margin: 0; padding-left: 18px; font-size: 14px; }
.install-steps-box li { margin-bottom: 6px; }

.sso-divider {
  text-align: center;
  margin: 12px 0;
  font-size: 12px;
  color: #737373;
}

.sso-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.code-preview-box {
  border-radius: 14px;
  overflow: hidden;
  background: #121212;
  color: #e4e4e7;
}

.code-preview-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  background: #262626;
  font-size: 12px;
  color: #a3a3a3;
}

.code-preview-box pre {
  margin: 0;
  padding: 14px;
  font-size: 12px;
  font-family: "Fragment Mono", monospace;
  max-height: 200px;
  overflow: auto;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Fallback for older browsers without accent-color (brand-consistent-forms guide) */
@supports not (accent-color: var(--brand-color)) {
  form input[type="checkbox"].visually-hidden,
  form input[type="radio"].visually-hidden {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  input[type="checkbox"] + span::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.4rem;
    border: 2px solid #ccc;
    background: white;
    border-radius: 4px;
    vertical-align: middle;
  }

  input[type="checkbox"]:checked + span::before {
    background-color: var(--brand-color, #121212);
    border-color: var(--brand-color, #121212);
  }

  input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--brand-color) var(--progress, 84%), #ccc var(--progress, 84%));
    height: 8px;
    border-radius: 4px;
  }
}

@media (max-width: 980px) {
  .framer-nav-links { display: none; }
  .framer-h1 { font-size: 38px; }
  .three-steps-grid,
  .split-feature-grid,
  .studio-workspace-grid,
  .framer-pricing-grid,
  .faq-split-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .integrations-bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
  .int-center-copy {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .int-cell.dashed { display: none; }
}

/* ==========================================================================
   AUTHENTICATED STUDIO CABINET & SAAS WORKSPACE MODE
   ========================================================================== */
.studio-cabinet-section {
  padding: 28px 0 8px;
  background: #fafafa;
}

.studio-cabinet-section[hidden] {
  display: none !important;
}

.cabinet-top-card {
  background: #ffffff;
  border: 1.5px solid #e5e5e5;
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.cabinet-user-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}

.cabinet-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cabinet-user-info h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #121212;
}

.cabinet-user-info p {
  margin: 0;
  font-size: 13.5px;
  color: #525252;
}

.cabinet-actions-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cabinet-key-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  font-size: 12.5px;
  color: #404040;
}

.cabinet-key-pill code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  color: #121212;
}

.cabinet-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cabinet-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.cabinet-action-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fafafa;
  border: 1.5px solid #e5e5e5;
  text-decoration: none;
  color: #121212;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cabinet-action-card:hover,
.cabinet-action-card.active {
  border-color: #121212;
  background: #ffffff;
  transform: translateY(-1px);
}

.cab-step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #121212;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.cabinet-action-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #121212;
}

.cabinet-action-card span:not(.cab-step-num) {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: #525252;
}

/* When signed in and in Studio App Mode, hide marketing promo sections so the workspace is right at the top */
body.studio-app-mode main > section:not(#studioCabinetHeader):not(#studio):not(#blueprints):not(#integrations):not(#pricing) {
  display: none !important;
}

body.studio-app-mode #studio {
  padding-top: 20px;
}

@media (max-width: 980px) {
  .cabinet-quick-grid {
    grid-template-columns: 1fr;
  }
  .cabinet-actions-col {
    align-items: flex-start;
  }
}

/* Inline Billing Status Banner & Accessible Manual-Popover Toasts */
.billing-banner {
  background: #f0fdf4;
  border-bottom: 1.5px solid #86efac;
  color: #14532d;
  padding: 12px 0;
}

.billing-banner.is-warning {
  background: #fffbeb;
  border-bottom-color: #fde68a;
  color: #78350f;
}

.billing-banner[hidden] {
  display: none !important;
}

.billing-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.toast-region {
  position: fixed;
  inset: auto 20px 20px auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.studio-toast[popover] {
  position: fixed;
  inset: auto 20px 20px auto;
  margin: 0;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #262626;
  background: #121212;
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, display 0.2s ease, overlay 0.2s ease;
  transition-behavior: allow-discrete;
}

.studio-toast[popover]:is(:popover-open, .\:popover-open) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 1;
  transform: translateY(0);
}

.studio-toast[popover].is-error {
  background: #991b1b;
  border-color: #dc2626;
}

.studio-toast[popover].is-success {
  background: #14532d;
  border-color: #16a34a;
}

.studio-toast-close {
  flex: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  border-radius: 8px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 12px;
}

@supports not selector(:popover-open) {
  .studio-toast[popover]:not(.\:popover-open) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-toast[popover] {
    transition: none;
    transform: none;
  }
}
