/* ================================================================
   Public hero
   ================================================================ */
.hero,
.hero * {
  box-sizing: border-box;
}

.hero {
  position: relative;
  padding: 64px 0 150px;
  background:
    radial-gradient(
      900px 540px at 92% 40%,
      rgba(var(--adah-accent-rgb), .42) 0%,
      rgba(var(--adah-accent-rgb), .18) 38%,
      transparent 72%
    ),
    radial-gradient(700px 420px at 6% 40%, rgba(var(--adah-secondary-rgb), .25), transparent 60%),
    var(--adah-surface-cream);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: center;
}

.hero-inner > * {
  min-width: 0;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(var(--adah-primary-rgb), .18);
  border-radius: 999px;
  background: rgba(var(--adah-primary-rgb), .08);
  color: var(--adah-primary);
  font: var(--adah-t-eyebrow);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--adah-primary);
}

.hero h1 {
  max-width: 640px;
  margin: 0 0 22px;
  color: var(--adah-tertiary);
  font: var(--adah-t-display);
  font-size: clamp(50px, 5.4vw, 76px);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 .flow {
  background: linear-gradient(95deg, var(--adah-wave-1), var(--adah-wave-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero p.lede {
  max-width: 610px;
  margin: 0 0 32px;
  color: var(--adah-ink-soft);
  font: var(--adah-t-lead);
  font-size: 20px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-top: 34px;
  color: var(--adah-muted);
  font: var(--adah-t-caption);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust svg {
  color: var(--adah-primary);
}

@media (min-width: 1200px) {
  .hero {
    padding: 72px 0 170px;
  }

  .hero-inner {
    grid-template-columns: minmax(520px, 1.05fr) minmax(500px, .95fr);
    gap: 54px;
  }
}

@media (min-width: 1440px) {
  .hero-inner {
    grid-template-columns: minmax(560px, 1.08fr) minmax(540px, .92fr);
  }
}

/* ================================================================
   Public builder mockup
   ================================================================ */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  min-width: 0;
  justify-self: center;
}

.hero-visual::before {
    content: '';
    background: var(--adah-tertiary);
    width: 95%;
    height: 95%;
    position: absolute;
    border-radius: 20px;
    z-index: -1;
    transform: translate(-45px, -14px);
    /*animation: hero-visual-bob 15s ease-in-out infinite;*/
}

@keyframes hero-visual-bob {
    0%, 100% {
        transform: translate(-45px, -14px);
    }

    50% {
        transform: translate(7px, 29px);
    }
}

@media (min-width: 1200px) {
  .hero-visual {
    justify-self: start;
  }
}

.hero-device {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: clamp(330px, 25vw, 360px);
  min-height: 320px;
  max-height: 360px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #F8FBFC;
  box-shadow:
    0 34px 80px -36px rgba(var(--adah-tertiary-rgb), .34),
    0 20px 38px -28px rgba(var(--adah-primary-rgb), .35),
    0 0 0 1px rgba(var(--adah-tertiary-rgb), .08);
  transform: rotate(-.1deg);
}

/* Toolbar */
.pb-bar {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto minmax(28px, .6fr);
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 9px;
  border-bottom: 1px solid #DEE9EA;
  background: #F9FCFC;
  flex: 0 0 auto;
}

.pb-bar-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.pb-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #91A1A5;
  flex: 0 0 auto;
}

.pb-back:hover {
  background: #EEF6F6;
  color: var(--adah-primary);
}

.pb-project-name {
  min-width: 0;
  overflow: hidden;
  color: #78888C;
  font: 600 11px/1 var(--adah-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-toolbar-cluster {
  display: flex;
  align-items: center;
  max-width: 100%;
  height: 26px;
  gap: 4px;
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 9px;
  background: #fff;
  box-shadow:
    0 8px 20px -18px rgba(var(--adah-tertiary-rgb), .5),
    0 0 0 1px rgba(var(--adah-tertiary-rgb), .08);
  white-space: nowrap;
}

.pb-kebab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 18px;
  gap: 2px;
  flex: 0 0 auto;
}

.pb-kebab i {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #A7B8BC;
}

.pb-font-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 19px;
  padding: 0 6px;
  border-radius: 6px;
  background: #F4F8F8;
  color: #65767B;
  font: 700 8px/1 var(--adah-font);
  flex: 0 0 auto;
}

.pb-color-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.pb-color-dots i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--adah-primary);
}

.pb-color-dots i:nth-child(2) { background: var(--adah-secondary); }
.pb-color-dots i:nth-child(3) { background: #2E5960; }
.pb-color-dots i:nth-child(4) { background: #111E22; }

.pb-tool,
.pb-bar .pb-devices span,
.pb-bar .pb-undo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #82A0A6;
  flex: 0 0 auto;
}

.pb-tool:hover,
.pb-bar .pb-devices span.on {
  background: #EAF7F7;
  color: var(--adah-primary);
}

.pb-bar .pb-devices,
.pb-bar .pb-undo {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.pb-bar .pb-undo {
  margin-inline-start: 1px;
  padding-inline-start: 5px;
  border-inline-start: 1px solid #E1EAEA;
}

.pb-bar .pb-save,
.pb-bar .pb-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  font: 800 8.5px/1 var(--adah-font);
  cursor: default;
  flex: 0 0 auto;
}

.pb-bar .pb-save {
  background: #EEF6F6;
  color: #60757A;
}

.pb-bar .pb-publish {
  background: linear-gradient(95deg, var(--adah-primary), var(--adah-secondary));
  color: #fff;
}

.pb-bar-right {
  justify-self: end;
}

.pb-bar-right span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  border-radius: 7px;
  background: #EAF1F2;
  color: #718489;
  font: 800 8px/1 var(--adah-font);
}

/* Editor workspace */
.pb-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  height: 0;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 0;
  background: #fff;
}

.pb-left,
.pb-layers {
  display: none;
}

.pb-canvas {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  padding: 20px 26px;
  background:
    linear-gradient(#D8E5E8 1px, transparent 1px),
    linear-gradient(90deg, #D8E5E8 1px, transparent 1px),
    #EEF5F6;
  background-size: 32px 32px;
}

.pb-canvas::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background:
    radial-gradient(170px 135px at 20% 72%, rgba(158, 180, 174, .25), transparent 70%),
    radial-gradient(150px 150px at 78% 20%, rgba(255, 255, 255, .86), transparent 62%),
    radial-gradient(190px 170px at 86% 72%, rgba(196, 205, 203, .30), transparent 70%),
    linear-gradient(90deg, rgba(255, 255, 255, .70) 0 42%, transparent 42% 48%, rgba(255, 255, 255, .55) 48% 54%, transparent 54% 100%);
  filter: blur(2px);
  opacity: .86;
}

.builder-side-controls {
  position: absolute;
  inset-inline-start: 16px;
  top: 58%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  gap: 6px;
  padding: 7px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 10px 24px -18px rgba(var(--adah-tertiary-rgb), .45),
    0 0 0 1px rgba(var(--adah-tertiary-rgb), .08);
  transform: translateY(-50%);
}

.builder-side-controls span {
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #9EB2B7;
}

.builder-side-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 7px;
  background: var(--adah-primary);
  color: #fff;
  font: 700 13px/1 var(--adah-font);
}

.pb-page {
  position: relative;
  overflow: hidden;
}

.pb-page.builder-page {
  z-index: 1;
  width: min(300px, 82%);
  max-width: 310px;
  height: 282px;
  min-height: 282px;
  max-height: 282px;
  border-radius: 26px 26px 10px 10px;
  background:
    radial-gradient(160px 132px at 15% 82%, rgba(149, 167, 162, .22), transparent 68%),
    radial-gradient(150px 150px at 83% 18%, rgba(255, 255, 255, .8), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .7));
  box-shadow:
    0 22px 54px -32px rgba(var(--adah-tertiary-rgb), .5),
    0 0 0 1px rgba(var(--adah-primary-rgb), .14);
}

.pb-page.builder-page::after {
  content: "";
  position: absolute;
  inset: 40px 17px 30px;
  z-index: 1;
  border-block: 1px dashed rgba(75, 128, 135, .24);
  border-inline: 1px dashed rgba(75, 128, 135, .30);
  pointer-events: none;
}

.pps-nav {
  display: flex;
  align-items: center;
}

.builder-page .pps-nav {
  position: absolute;
  top: 22px;
  inset-inline-end: 20px;
  z-index: 5;
  width: 86px;
  height: 22px;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid rgba(var(--adah-tertiary-rgb), .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 20px -18px rgba(var(--adah-tertiary-rgb), .45);
}

.builder-page .pps-nav .nav-logo {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(95deg, var(--adah-primary), var(--adah-secondary));
}

.builder-page .pps-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-inline-start: auto;
}

.builder-page .pps-nav .nav-links span {
  width: 14px;
  height: 7px;
  border-radius: 999px;
  background: #DDE7E7;
}

.builder-page .pps-nav .nav-links span:last-child {
  width: 20px;
  height: 13px;
  background: #1E272A;
}

.pps-hero {
  position: relative;
}

.builder-page .pps-hero {
  display: flow-root;
  height: 182px;
  padding: 0 22px;
  background: transparent;
  border-bottom: 0;
  text-align: center;
}

.builder-page .pps-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0 53px, rgba(75, 128, 135, .18) 53px 54px, transparent 54px 68px),
    linear-gradient(90deg, transparent 49.8%, rgba(75, 128, 135, .18) 50%, transparent 50.2%);
  opacity: .9;
}

.builder-guide {
  position: absolute;
  inset-inline: 16px;
  z-index: 1;
  border-top: 1px dashed rgba(75, 128, 135, .32);
}

.builder-guide--top { top: 42px; }
.builder-guide--middle { top: 97px; }
.builder-guide--bottom { bottom: 28px; }

.builder-mini-toolbar {
  position: absolute;
  top: 40px;
  inset-inline-start: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  height: 24px;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 10px 22px -16px rgba(var(--adah-tertiary-rgb), .55),
    0 0 0 1px rgba(var(--adah-tertiary-rgb), .09);
  color: #6C7D82;
  font: 700 8px/1 var(--adah-font);
  transform: translateX(80%);
}

.builder-mini-toolbar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #F4F8F8;
  font-size: 8px;
}

.builder-selected-text {
  position: relative;
  z-index: 3;
  width: min(96%, 286px);
  margin: 72px auto 0;
  padding: 4px 6px;
  background: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset;
}

.builder-selected-text .pt {
  margin: 0;
  color: #2B4146;
  font: 300 clamp(22px, 1.65vw, 24px)/1.08 var(--adah-font);
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.builder-page .pps-hero .ps {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  color: #7C8B8F;
  font-size: 11px;
}

.builder-description {
  position: relative;
  z-index: 2;
  max-width: 245px;
  margin: 8px auto 0;
  color: #8C999D;
  font: 500 9px/1.55 var(--adah-font);
}

.pps-selected {
  position: relative;
  outline: 1.5px solid var(--adah-primary);
  outline-offset: 0;
}

.pps-selected::before,
.pps-selected::after {
  display: none;
}

.handle {
  position: absolute;
  z-index: 4;
  width: 6px;
  height: 6px;
  border: 1.5px solid #fff;
  border-radius: 1px;
  background: var(--adah-primary);
}

.handle.tl { top: -3px; inset-inline-start: -3px; }
.handle.tr { top: -3px; inset-inline-end: -3px; }
.handle.bl { bottom: -3px; inset-inline-start: -3px; }
.handle.br { bottom: -3px; inset-inline-end: -3px; }

.pps-body {
  display: flex;
  flex-direction: column;
}

.builder-canvas-body {
  align-items: center;
  gap: 3px;
  padding: 0 22px 5px;
  background: transparent;
  text-align: center;
}

.builder-contact-title {
  color: #8A969A;
  font: 800 9px/1 var(--adah-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.builder-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.builder-social-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(var(--adah-primary-rgb), .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: #57747A;
}

.builder-feature-card {
  width: min(100%, 210px);
  padding: 4px 8px;
  border: 1px dashed rgba(var(--adah-primary-rgb), .32);
  border-radius: 9px;
  background: rgba(255, 255, 255, .56);
  color: #63767B;
}

.builder-feature-card strong,
.builder-feature-card span {
  display: block;
}

.builder-feature-card strong {
  margin-bottom: 0;
  color: #2D4348;
  font: 800 8.5px/1.1 var(--adah-font);
}

.builder-feature-card span {
  display: none;
}

.builder-canvas-cta {
  min-width: 104px;
  height: 22px;
  border: 1px solid rgba(var(--adah-primary-rgb), .56);
  border-radius: 999px;
  background: rgba(var(--adah-primary-rgb), .08);
  color: var(--adah-primary);
  font: 800 9px/1 var(--adah-font);
}

.builder-powered {
  color: #91A0A4;
  font: 600 7px/1.2 var(--adah-font);
}

/* Settings panel */
.pb-right {
  width: auto;
  min-width: 188px;
  min-height: 0;
  overflow: hidden;
  border-inline-start: 1px solid #DCE8EA;
  background: #fff;
  box-shadow: -12px 0 24px -24px rgba(var(--adah-tertiary-rgb), .34);
}

.prop-tabs {
  display: flex;
  gap: 5px;
  padding: 10px 8px 0;
  border-bottom: 1px solid var(--adah-line-soft);
}

.prop-tabs span {
  flex: 1;
  min-width: 0;
  padding: 8px 5px;
  border-radius: 9px 9px 0 0;
  color: var(--adah-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.prop-tabs span.on {
  border-bottom-color: var(--adah-primary);
  background: var(--adah-primary);
  color: #fff;
}

.prop-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px 14px;
}

.prop-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 8px;
  border-bottom: 1px solid #EDF3F3;
  color: var(--adah-tertiary);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
}

.prop-section svg {
  color: #9AAEB3;
  flex: 0 0 auto;
}

.prop-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
}

.prop-section.open {
  display: block;
  min-height: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #E4EEEE;
}

.prop-section.open .prop-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
}

.prop-field {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.prop-field--stacked {
  grid-template-columns: 1fr;
  gap: 6px;
}

.prop-field .lbl {
  color: #6E7F84;
  font: 700 9.5px/1.1 var(--adah-font);
}

.prop-field .val,
.prop-field .prop-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #F2F7F7;
  color: #334A50;
  font: 700 9px/1 var(--adah-font);
}

.prop-field .color-chip::after {
  content: "";
  width: 16px;
  height: 7px;
  border-radius: 999px;
  background: #000;
}

.prop-align {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.prop-align span {
  height: 22px;
  border-radius: 5px;
  background:
    linear-gradient(#A7B9BE 0 0) 50% 7px / 14px 2px no-repeat,
    linear-gradient(#A7B9BE 0 0) 50% 12px / 10px 2px no-repeat,
    #F2F7F7;
}

/* Badges */
.hero-badge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 10px 24px -8px rgba(var(--adah-tertiary-rgb), .25),
    0 0 0 1px rgba(var(--adah-tertiary-rgb), .04);
  color: var(--adah-tertiary);
  font: var(--adah-t-label);
  animation: bob 6s ease-in-out infinite;
}

.hero-badge .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--adah-mint-wash);
  color: var(--adah-primary);
  flex: 0 0 auto;
}

.hero-badge small {
  display: block;
  margin-top: 1px;
  color: var(--adah-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}

.hero-visual .hero-badge.live {
  top: -18px;
  right: 24px;
}

.hero-badge.live .ic {
  background: #E8F7ED;
  color: #2F8F4F;
}

.hero-visual .hero-badge.pub {
  bottom: 42px;
  left: -14px;
  animation-delay: -3s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Structural wave into the next section */
.hero-wave {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 180px;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 1199.98px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 620px;
  }

  .pb-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .pb-right {
    display: none;
  }

  .pb-canvas {
    padding: 22px 30px;
  }

  .pb-page.builder-page {
    width: min(330px, 68%);
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 52px 0 132px;
  }

  .hero-inner {
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .hero p.lede {
    font-size: 18px;
  }

  .hero-device {
    height: clamp(330px, 92vw, 360px);
    min-height: 330px;
    aspect-ratio: 16 / 12;
  }

  .pb-bar {
    grid-template-columns: minmax(108px, 1fr) auto;
  }

  .pb-bar-right,
  .pb-font-token,
  .pb-color-dots,
  .pb-undo,
  .pb-save {
    display: none;
  }

  .pb-toolbar-cluster {
    gap: 3px;
    padding-inline: 5px;
  }

  .pb-canvas {
    padding: 20px;
  }

  .builder-side-controls {
    inset-inline-start: 10px;
  }

  .pb-page.builder-page {
    width: min(320px, 86%);
  }

  .hero-badge {
    gap: 7px;
    padding: 7px 10px;
  }

  .hero-visual .hero-badge.live {
    top: -14px;
    right: 10px;
  }

  .hero-visual .hero-badge.pub {
    bottom: 18px;
    left: 10px;
  }
}
