/*
 * Planellio marketing theme — Version 4
 * Intentionally scoped to public pages carrying .marketing-v4.
 * The admin, subscription and portal applications continue to use styles.css only.
 */
body.marketing-v4 {
  --v4-ink: #101227;
  --v4-copy: #555c73;
  --v4-line: rgba(73, 66, 173, .14);
  --v4-indigo: #5b57f2;
  --v4-violet: #9468ff;
  --v4-lilac: #eeeaff;
  --v4-night: #11122d;
  --v4-night-soft: #191b3d;
  --v4-radius: 24px;
  --v4-shadow: 0 30px 90px rgba(31, 28, 83, .13);
  background: #fbfaff;
  color: var(--v4-ink);
}

.marketing-v4 .container { max-width: 1240px; }
.marketing-v4 .announcement-bar {
  background: #11122d;
  border: 0;
}
.marketing-v4 .announcement-inner { min-height: 44px; }
.marketing-v4 .announcement-inner p { font-size: 12px; letter-spacing: .035em; }
.marketing-v4 .announcement-btn {
  min-height: 32px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #ece9ff) !important;
  color: #24204f !important;
}

.marketing-v4 .site-header {
  background: rgba(251, 250, 255, .84);
  border-color: rgba(91, 87, 242, .1);
  backdrop-filter: blur(22px) saturate(150%);
}
.marketing-v4 .header-inner { height: 82px; }
.marketing-v4 .brand img { width: 38px; height: 38px; }
.marketing-v4 .brand span { font-size: 20px; letter-spacing: -.03em; }
.marketing-v4 .nav a { color: #3f425c; }

.marketing-v4 .btn {
  min-height: 48px;
  padding: 13px 21px;
  border-radius: 999px;
  border-color: var(--v4-line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.marketing-v4 .btn:hover { transform: translateY(-2px); }
.marketing-v4 .btn-primary {
  background: linear-gradient(115deg, var(--v4-indigo), var(--v4-violet));
  box-shadow: 0 15px 38px rgba(91, 87, 242, .3);
}
.marketing-v4 .btn-ghost { background: rgba(255, 255, 255, .78); }

.marketing-v4 .hero {
  padding: 112px 0 96px;
  overflow: hidden;
}
.marketing-v4 .hero-band {
  background:
    radial-gradient(circle at 8% 15%, rgba(148, 104, 255, .19), transparent 28%),
    radial-gradient(circle at 91% 4%, rgba(91, 87, 242, .2), transparent 30%),
    linear-gradient(180deg, #fbfaff 0%, #f4f1ff 100%);
}
.marketing-v4 .hero-band::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -230px;
  bottom: -300px;
  border: 1px solid rgba(91, 87, 242, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(91, 87, 242, .025), 0 0 0 140px rgba(91, 87, 242, .018);
}
.marketing-v4 .hero-grid { gap: 72px; }
.marketing-v4 .eyebrow {
  color: var(--v4-indigo);
  font-size: 11px;
  letter-spacing: .18em;
}
.marketing-v4 h1,
.marketing-v4 h2,
.marketing-v4 h3 { letter-spacing: -.035em; }
.marketing-v4 h1 {
  max-width: 780px;
  font-size: clamp(46px, 6.3vw, 78px);
  line-height: .98;
}
.marketing-v4 h2 { font-size: clamp(34px, 4.5vw, 58px); line-height: 1.02; }
.marketing-v4 .lead { font-size: 18px; line-height: 1.75; color: var(--v4-copy); }
.marketing-v4 .hero-copy p:not(.eyebrow):not(.trial-support),
.marketing-v4 .section-head p,
.marketing-v4 .split p,
.marketing-v4 .card p { color: var(--v4-copy); }
.marketing-v4 .trial-badge,
.marketing-v4 .proof-row span,
.marketing-v4 .badge {
  border-color: rgba(91, 87, 242, .14);
  background: rgba(255, 255, 255, .72);
  color: #4b46bf;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}

.marketing-v4 .product-frame,
.marketing-v4 .hero-product img,
.marketing-v4 .hero-product video {
  border-radius: var(--v4-radius);
  box-shadow: var(--v4-shadow);
}
.marketing-v4 .product-frame {
  border: 1px solid rgba(255, 255, 255, .85);
  padding: 10px;
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(12px);
}
.marketing-v4 .hero-product {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
  filter: drop-shadow(0 34px 60px rgba(42, 37, 101, .16));
}

.marketing-v4 .section { padding: 104px 0; }
.marketing-v4 .section::before { opacity: .6; }
.marketing-v4 .section-soft { background: #fff; }
.marketing-v4 .section-alt { background: #f3f0fc; }
.marketing-v4 .section-dark {
  background:
    radial-gradient(circle at 82% 15%, rgba(148, 104, 255, .27), transparent 30%),
    radial-gradient(circle at 10% 85%, rgba(91, 87, 242, .2), transparent 34%),
    linear-gradient(145deg, var(--v4-night), var(--v4-night-soft));
}
.marketing-v4 .section-dark::before { display: none; }
.marketing-v4 .section-head { max-width: 780px; margin-bottom: 46px; }
.marketing-v4 .section-head.center { margin-left: auto; margin-right: auto; }

.marketing-v4 .card,
.marketing-v4 .price-card,
.marketing-v4 .legal-card,
.marketing-v4 .summary-grid article,
.marketing-v4 .mini-grid div,
.marketing-v4 .steps div {
  border: 1px solid var(--v4-line);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(31, 28, 83, .07);
}
.marketing-v4 .card,
.marketing-v4 .price-card,
.marketing-v4 .legal-card { padding: 32px; }
.marketing-v4 .feature-grid { gap: 24px; }
.marketing-v4 .feature-grid .card { min-height: 100%; }
.marketing-v4 .feature-grid .card::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--v4-indigo), var(--v4-violet));
}
.marketing-v4 .check-list li::before {
  background: linear-gradient(135deg, var(--v4-indigo), var(--v4-violet));
  box-shadow: 0 5px 14px rgba(91, 87, 242, .28);
}

.marketing-v4 .feature-strip {
  border-color: var(--v4-line);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(31, 28, 83, .09);
}
.marketing-v4 .feature-strip article { padding: 26px 22px; border-color: var(--v4-line); }
.marketing-v4 .icon-circle {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #eeebff, #dfd9ff);
  color: #4f46cf;
}
.marketing-v4 .showcase-cta-inner,
.marketing-v4 .cta-panel {
  border-radius: 26px;
  border-color: var(--v4-line);
}
.marketing-v4 .showcase-cta-inner {
  background: linear-gradient(120deg, #4944cf, #8c5cf4);
}
.marketing-v4 .cta-panel {
  background:
    radial-gradient(circle at 6% 10%, rgba(148, 104, 255, .12), transparent 30%),
    #fff;
}
.marketing-v4 .waitlist-form input,
.marketing-v4 .waitlist-form textarea,
.marketing-v4 .waitlist-form select {
  border-radius: 13px;
  border-color: var(--v4-line);
  background: #fcfbff;
}

.marketing-v4 .comparison table {
  border-color: var(--v4-line);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(31, 28, 83, .07);
}
.marketing-v4 .comparison th { background: #eeebfb; }
.marketing-v4 .comparison th,
.marketing-v4 .comparison td { border-color: var(--v4-line); }
.marketing-v4 .price-card.featured {
  border-color: var(--v4-indigo);
  box-shadow: 0 28px 75px rgba(91, 87, 242, .18);
}
.marketing-v4 .footer {
  padding: 46px 0;
  border-color: rgba(255, 255, 255, .08);
  background: var(--v4-night);
  color: #c6c8de;
}
.marketing-v4 .footer a,
.marketing-v4 .footer-legal { color: #aaadc7; }

@media (max-width: 920px) {
  .marketing-v4 .nav { background: #fbfaff; }
  .marketing-v4 .hero { padding: 78px 0 66px; }
  .marketing-v4 .hero-grid { gap: 42px; }
  .marketing-v4 .section { padding: 72px 0; }
  .marketing-v4 h1 { font-size: clamp(42px, 12vw, 58px); }
  .marketing-v4 .cta-panel { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-v4 .btn { transition: none; }
  .marketing-v4 .btn:hover { transform: none; }
}

/* Recording-matched direction: soft editorial surfaces and sculpted depth. */
body.marketing-v4 {
  --v4-paper: #f2f2f4;
  --v4-raised: #f8f8f9;
  --v4-black: #09090c;
  --v4-soft-shadow: 0 8px 0 rgba(211, 211, 217, .82), 0 18px 34px rgba(26, 26, 39, .08), inset 0 1px 0 #fff;
  background: var(--v4-paper);
}

.marketing-v4 .announcement-bar { margin-bottom: 12px; }
.marketing-v4 .site-header {
  top: 12px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: var(--v4-soft-shadow);
}
.marketing-v4 .header-inner { height: 70px; padding-left: 26px; padding-right: 14px; }
.marketing-v4 .header-actions .btn-primary { background: var(--v4-black); box-shadow: 0 6px 0 #c9c9ce, 0 12px 24px rgba(0, 0, 0, .16); }

.marketing-v4 .hero-band,
.marketing-v4 main > .hero:first-child {
  width: calc(100% - 36px);
  margin: 18px auto 0;
  border-radius: 42px;
  background: linear-gradient(145deg, #eef0f6 0%, #f7f7f8 58%, #ebe9f4 100%);
  box-shadow: inset 0 1px 0 #fff;
}
.marketing-v4 .hero-band::before,
.marketing-v4 main > .hero:first-child::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  width: 48%;
  height: 145%;
  right: -9%;
  top: -26%;
  border-radius: 48% 12% 46% 18%;
  background: linear-gradient(118deg, rgba(91, 87, 242, .03) 8%, #776cf7 35%, #b177ff 54%, #3320b5 76%, rgba(17, 18, 45, .96) 91%);
  box-shadow: 0 0 70px rgba(91, 87, 242, .36);
  filter: blur(8px);
  transform: rotate(-18deg) skewY(-7deg);
  opacity: .92;
}
.marketing-v4 .hero-band::after,
.marketing-v4 main > .hero:first-child::after {
  width: 31%;
  height: 105%;
  right: 3%;
  bottom: -42%;
  border: 18px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  box-shadow: 0 0 55px rgba(255, 255, 255, .42), 0 0 0 36px rgba(62, 48, 194, .16);
  transform: rotate(-20deg);
}
.marketing-v4 .hero-grid {
  grid-template-columns: 1fr;
  gap: 58px;
  text-align: center;
}
.marketing-v4 .hero-copy { max-width: 1050px; margin: 0 auto; }
.marketing-v4 .hero-copy h1,
.marketing-v4 .hero-copy .lead { margin-left: auto; margin-right: auto; }
.marketing-v4 .hero-copy .hero-actions,
.marketing-v4 .hero-copy .proof-row { justify-content: center; }
.marketing-v4 .hero-copy h1 {
  font-size: clamp(54px, 7.4vw, 98px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .94;
}
.marketing-v4 .hero-copy .lead { max-width: 740px; color: #252631; }
.marketing-v4 .hero-product,
.marketing-v4 .hero-grid > .product-frame { width: min(100%, 1040px); margin: 0 auto; }

.marketing-v4 .eyebrow,
.marketing-v4 .trial-badge {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--v4-raised);
  box-shadow: 0 4px 0 rgba(207, 207, 213, .78), 0 10px 22px rgba(26, 26, 39, .08), inset 0 1px 0 #fff;
}
.marketing-v4 .eyebrow { color: var(--v4-indigo); }

.marketing-v4 .section { padding: 116px 0; }
.marketing-v4 .section-soft,
.marketing-v4 .section-alt { background: transparent; }
.marketing-v4 .section-dark {
  width: calc(100% - 36px);
  margin: 18px auto;
  border-radius: 42px;
  background: radial-gradient(circle at 50% 0, #252537 0, var(--v4-black) 48%);
  border: 1px solid #202027;
}
.marketing-v4 .section-head.center { max-width: 920px; }
.marketing-v4 .section-head.center h2 { font-size: clamp(44px, 6vw, 78px); }

.marketing-v4 .card,
.marketing-v4 .price-card,
.marketing-v4 .legal-card,
.marketing-v4 .summary-grid article,
.marketing-v4 .mini-grid div,
.marketing-v4 .steps div,
.marketing-v4 .feature-strip,
.marketing-v4 .comparison table,
.marketing-v4 .cta-panel {
  background: var(--v4-raised);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 32px;
  box-shadow: var(--v4-soft-shadow);
}
.marketing-v4 .card,
.marketing-v4 .price-card,
.marketing-v4 .legal-card { padding: 38px; }
.marketing-v4 .feature-grid { gap: 30px; }
.marketing-v4 .feature-grid .card::before {
  width: 54px;
  height: 7px;
  border-radius: 999px;
}
.marketing-v4 .feature-strip { overflow: hidden; }
.marketing-v4 .feature-strip article { padding: 32px 26px; }
.marketing-v4 .icon-circle {
  background: #fff;
  color: #111;
  box-shadow: 0 5px 0 #d2d2d7, 0 12px 24px rgba(0, 0, 0, .08);
}
.marketing-v4 .btn {
  background: var(--v4-raised);
  border-color: rgba(255, 255, 255, .95);
  box-shadow: 0 5px 0 #ceced3, 0 12px 24px rgba(0, 0, 0, .09), inset 0 1px 0 #fff;
}
.marketing-v4 .btn-primary {
  color: #fff;
  background: var(--v4-black);
  box-shadow: 0 5px 0 #bdbdc5, 0 14px 28px rgba(0, 0, 0, .18);
}
.marketing-v4 .showcase-cta-inner {
  border-radius: 34px;
  background: linear-gradient(125deg, #3530b6, #9b68ff);
}
.marketing-v4 .product-frame,
.marketing-v4 .hero-product img,
.marketing-v4 .hero-product video {
  border-radius: 34px;
}
.marketing-v4 .product-frame {
  padding: 13px;
  background: rgba(248, 248, 249, .86);
  box-shadow: var(--v4-soft-shadow);
}
.marketing-v4 .waitlist-form input,
.marketing-v4 .waitlist-form textarea,
.marketing-v4 .waitlist-form select {
  border: 0;
  border-bottom: 1px solid #c9c9cf;
  border-radius: 0;
  background: transparent;
}
.marketing-v4 .footer {
  width: calc(100% - 36px);
  margin: 18px auto;
  border-radius: 36px;
}

@media (max-width: 920px) {
  .marketing-v4 .site-header { top: 8px; width: calc(100% - 20px); border-radius: 24px; }
  .marketing-v4 .header-inner { height: 66px; padding-left: 18px; padding-right: 18px; }
  .marketing-v4 .nav { top: 72px; border-radius: 22px; box-shadow: var(--v4-soft-shadow); }
  .marketing-v4 .hero-band,
  .marketing-v4 main > .hero:first-child,
  .marketing-v4 .section-dark,
  .marketing-v4 .footer { width: calc(100% - 20px); border-radius: 28px; }
  .marketing-v4 .hero-band::before,
  .marketing-v4 main > .hero:first-child::before { width: 72%; right: -38%; opacity: .56; }
  .marketing-v4 .hero-copy h1 { font-size: clamp(46px, 14vw, 68px); }
  .marketing-v4 .section { padding: 80px 0; }
  .marketing-v4 .card,
  .marketing-v4 .price-card,
  .marketing-v4 .legal-card { padding: 28px; border-radius: 24px; }
}

/* Performance and contrast pass after testing on the full homepage. */
.marketing-v4 .site-header {
  background: #f8f8fa;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.marketing-v4 .product-frame {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.marketing-v4 .hero-product {
  transform: none;
  filter: none;
}
.marketing-v4 .section::before { display: none; }
.marketing-v4 .hero-band::before,
.marketing-v4 main > .hero:first-child::before {
  display: block;
  filter: none;
  opacity: .46;
  box-shadow: none;
}
.marketing-v4 .hero-band::after,
.marketing-v4 main > .hero:first-child::after {
  opacity: .42;
  box-shadow: none;
}
.marketing-v4 .hero-band,
.marketing-v4 main > .hero:first-child,
.marketing-v4 .section-dark { contain: paint; }
.marketing-v4 .hero-copy { isolation: isolate; }

.marketing-v4 .card,
.marketing-v4 .price-card,
.marketing-v4 .legal-card,
.marketing-v4 .summary-grid article,
.marketing-v4 .mini-grid div,
.marketing-v4 .steps div,
.marketing-v4 .feature-strip,
.marketing-v4 .comparison table,
.marketing-v4 .cta-panel {
  box-shadow: 0 6px 0 rgba(211, 211, 217, .72), 0 12px 24px rgba(26, 26, 39, .06), inset 0 1px 0 #fff;
}

.marketing-v4 .announcement-bar { background: #0c0c16; }
.marketing-v4 .announcement-inner p {
  color: #fff !important;
  opacity: 1;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}
.marketing-v4 .announcement-btn {
  background: #fff !important;
  color: #111225 !important;
  border-color: #fff !important;
}

.marketing-v4 .showcase-copy h2 {
  max-width: 680px;
  color: #151627;
  font-size: clamp(36px, 4.5vw, 58px) !important;
  line-height: 1.04;
  text-transform: none;
}
.marketing-v4 .showcase-copy p:not(.eyebrow) {
  max-width: 650px;
  color: #41465a !important;
  font-size: 17px !important;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: normal;
  text-transform: none;
}
.marketing-v4 .showcase-copy .check-list li {
  color: #303448;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
}
.marketing-v4 .showcase-frame { box-shadow: 0 6px 0 #d7d7dd, 0 14px 28px rgba(26, 26, 39, .08); }

@media (max-width: 920px) {
  .marketing-v4 .hero-band::before,
  .marketing-v4 main > .hero:first-child::before { opacity: .24; }
  .marketing-v4 .announcement-inner p { font-size: 13px; }
  .marketing-v4 .showcase-copy h2 { font-size: clamp(34px, 10vw, 48px) !important; }
}

.marketing-v4 .integration-card {
  border-color: rgba(255, 255, 255, .95);
  border-radius: 22px;
  background: var(--v4-raised);
  box-shadow: 0 5px 0 rgba(211, 211, 217, .7), 0 12px 22px rgba(26, 26, 39, .05);
}
.marketing-v4 .integration-logo-templatesbooth {
  flex-basis: 76px;
  width: 76px;
  padding: 8px 6px;
  border-color: #1b1b22;
  background: #17171c;
}
.marketing-v4 .integration-logo-editor {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--v4-indigo), var(--v4-violet));
}
.marketing-v4 .integration-grid-photo-templates { grid-template-columns: repeat(2, minmax(0, 430px)); }
.marketing-v4 .integration-note {
  margin: 18px auto 0;
  color: #666b7e;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 620px) {
  .marketing-v4 .integration-grid-photo-templates { grid-template-columns: 1fr; }
}

/* Version 4 product proof appears immediately after the hero. */
.marketing-v4 .v4-product-proof {
  padding-top: 72px;
  background: linear-gradient(180deg, #f3f2f8 0%, #ebeaf2 100%);
}
.marketing-v4 .v4-product-proof .section-head { max-width: 820px; }
.marketing-v4 .v4-dashboard-frame {
  width: min(1180px, 100%);
  min-height: 0;
  margin: 34px auto 0;
  padding: 10px;
  overflow: hidden;
  border-color: rgba(22, 23, 37, .14);
  background: #fff;
  box-shadow: 0 8px 0 #d5d4dc, 0 20px 42px rgba(26, 26, 39, .12);
}
.marketing-v4 .v4-dashboard-frame .carousel-slide {
  aspect-ratio: 3084 / 1806;
  object-fit: contain;
  background: #f5f5f8;
}
.marketing-v4 .v4-workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1080px, 100%);
  margin: 26px auto 0;
}
.marketing-v4 .v4-workflow-strip article {
  padding: 18px;
  border: 1px solid rgba(22, 23, 37, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
}
.marketing-v4 .v4-workflow-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--v4-indigo);
}
.marketing-v4 .v4-workflow-strip h3 { margin: 0 0 6px; font-size: 18px; }
.marketing-v4 .v4-workflow-strip p { margin: 0; color: #5d6172; font-size: 14px; line-height: 1.55; }

.marketing-v4 .artwork-workflow { background: #fff; }
.marketing-v4 .artwork-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}
.marketing-v4 .workflow-note { font-size: 14px !important; color: #65697a !important; }
.marketing-v4 .artwork-editor-frame img { object-fit: contain; }
.marketing-v4 .editor-flow-list { margin: 20px 0 0; padding-left: 22px; color: #4d5265; }
.marketing-v4 .editor-flow-list li { margin: 0 0 12px; line-height: 1.55; }

@media (max-width: 820px) {
  .marketing-v4 .v4-workflow-strip,
  .marketing-v4 .artwork-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .marketing-v4 .v4-product-proof { padding-top: 52px; }
  .marketing-v4 .v4-workflow-strip,
  .marketing-v4 .artwork-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-v4 .v4-dashboard-frame .carousel-slide:not(.is-active) { transition: none; }
}
