/* ===== ImmoStar — Landing Page ===== */

:root {
  --navy:        #1e349b;   /* deep royal blue from the gradient top */
  --ink:         #131f54;   /* dark text on the white button         */
  --arrow-dark:  #10173a;   /* near-black arrow square                */
  --white:       #ffffff;

  --maxw: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #11173b; /* footer navy — matches the area beyond the footer (bottom overscroll) */
  zoom: 0.92; /* scale the whole site down ~8% (uniform, like a browser zoom-out) */
}

/* Smooth cross-page (multi-page) view transition — gentle side slide + fade */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pgvtOut 0.4s cubic-bezier(0.4, 0, 0.7, 1) both; }
::view-transition-new(root) { animation: pgvtIn 0.52s cubic-bezier(0.16, 0.72, 0.3, 1) both; }
@keyframes pgvtOut { to { opacity: 0; transform: translateX(-18px); } }
@keyframes pgvtIn { from { opacity: 0; transform: translateX(18px); } }

/* Standard sub-page hero — IDENTICAL centered-title placement on every page so nothing
   jumps when navigating (mirrors the Unser-Angebot hero metrics) */
.pg-hero { position: relative; overflow: hidden; padding: 250px 26px 72px; text-align: center; }
.pg-hero--grad { background: url("assets/gradient-angebot.jpg") top center / 100% 660px no-repeat #fff; }
.pg-hero--dark { background: #11173b; }
.pg-hero-inner { max-width: 980px; margin: 0 auto; position: relative; z-index: 1; }
.pg-hero-eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 18px; }
.pg-hero--grad .pg-hero-eyebrow { color: #8a8d99; }
.pg-hero--dark .pg-hero-eyebrow { color: rgba(255, 255, 255, 0.5); }
@media (max-width: 600px) { .pg-hero--grad .pg-hero-eyebrow { color: #5663b5; } }
.pg-hero-title { font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 auto; max-width: 20ch; }
.pg-hero--grad .pg-hero-title { color: #11173b; }
.pg-hero--dark .pg-hero-title { color: #fff; }
.pg-hero-sub { margin: 22px auto 0; max-width: 560px; font-size: 1.05rem; line-height: 1.55; }
.pg-hero--grad .pg-hero-sub { color: #565a6b; }
.pg-hero--dark .pg-hero-sub { color: rgba(255, 255, 255, 0.72); }
@media (max-width: 820px) { .pg-hero { padding-top: 156px; } }

body {
  font-family: "Hedvig Letters Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background-color: #183d8b; /* hero blue — fills the top safe-area so the content reads behind the dynamic island (no white bar) */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Full-viewport gradient backdrop — pins while the next section lifts over it */
.hero-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  background-image: url("assets/gradient-blue.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

/* ===== Navbar ===== */
.navbar {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 38px;
  width: auto;
  display: block;
}

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

.nav-links a {
  font-size: 1.02rem;
  color: #fff;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.22s ease;
}
.nav-links a:hover {
  transform: scale(1.08);
}

/* ===== Hero ===== */
.hero {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14vh 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-weight: 400;
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero-subtitle {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.6;
  color: #fff;
}

/* ===== Buttons ===== */
.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  --h: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--h);
  min-width: 340px;
  padding-left: 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.btn-label {
  font-size: 1.04rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

/* inset, rounded arrow tile pinned to the right edge */
.btn-arrow {
  flex: 0 0 auto;
  width: calc(var(--h) - 12px);
  height: calc(var(--h) - 12px);
  margin-right: 6px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.28s ease;
}

.btn:hover .btn-arrow svg {
  transform: translate(2px, -2px);
}

/* Primary — white button, dark arrow tile. Cleanly inverts on hover. */
.btn-primary {
  background: #fff;
}

.btn-primary .btn-label {
  color: var(--ink);
}

.btn-primary .btn-arrow {
  background: var(--arrow-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--arrow-dark);
}

.btn-primary:hover .btn-label {
  color: #fff;
}

.btn-primary:hover .btn-arrow {
  background: #fff;
  color: var(--arrow-dark);
}

/* Secondary — outlined button, white arrow tile. Fills + inverts on hover. */
.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn-secondary .btn-label {
  color: #fff;
}

.btn-secondary .btn-arrow {
  background: #fff;
  color: var(--arrow-dark);
}

.btn-secondary:hover {
  background: #fff;
  border-color: #fff;
}

.btn-secondary:hover .btn-label {
  color: var(--ink);
}

.btn-secondary:hover .btn-arrow {
  background: var(--arrow-dark);
  color: #fff;
}

/* ===== Statement section (lifts up + layers over the hero) ===== */
.statement {
  position: relative;
  z-index: 1;
  margin-top: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  padding: 8vh 40px;
  text-align: center;
  border-radius: 30px 30px 0 0;
}

.statement-inner {
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.laurel {
  flex: 0 0 auto;
  width: 18px;
  height: 32px;
  color: #b6912f;
}

.laurel.right {
  transform: scaleX(-1);
}

.statement-text {
  font-weight: 400;
  font-size: clamp(1.85rem, 3.9vw, 3.15rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ===== Features ===== */
.features {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  padding: 10vh 0;
  overflow: hidden;
}

.features-title {
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  margin: 0 auto 6vh;
  padding: 0 26px;
}

/* infinite horizontal marquee */
.features-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.features-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 4px 8px;
  animation: marquee 149s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(var(--shift, 50%) * -1)); }
}

/* Vertical two-column marquee — desktop hidden, shown on mobile (see 760px query) */
.features-vmarquee { display: none; }

@keyframes vmarquee {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.card {
  flex: 0 0 270px;
  background-color: var(--bg);
  background-image: var(--icon);
  background-repeat: no-repeat;
  background-position: center 50%;
  background-size: 82%;
  min-height: 420px;
  padding: 30px 18px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* Note: site owner opted to keep the brand animations playing regardless of the
   OS "Reduce Motion" setting (it was disabling the loader, reveals & marquee). */

.card-title {
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

.card-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #46506b;
}

/* ===== Latest Work ===== */
.work {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  background-image: url("assets/gradient-work.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 13vh 26px 16vh;
}

.work-title {
  text-align: center;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 auto 7vh;
}

.cases {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.case {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  min-height: 470px;
  box-shadow: 0 40px 80px -50px rgba(8, 14, 44, 0.7);
}

.case-content {
  position: relative;
  background: var(--panel);
  padding: 46px 48px 44px;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* keep the hover pixels inside the colored panel */
}
.case-content > * {
  position: relative;
  z-index: 1;
}

.case-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.case-brand {
  font-size: 1.25rem;
  color: #12131a;
}

.case-year {
  font-size: 0.86rem;
  color: #12131a;
  background: rgba(255, 255, 255, 0.55);
  padding: 5px 12px;
}

.case-title {
  font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  line-height: 1.12;
  color: #12131a;
  margin-bottom: 16px;
}

.case-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #34363f;
  max-width: 460px;
  margin-bottom: 18px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1rem;
  color: #12131a;
  text-decoration: none;
}

.case-link span {
  transition: transform 0.25s ease;
}

.case-link:hover span {
  transform: translateX(4px);
}

.case-stats {
  margin-top: auto;
  padding-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 34px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(18, 19, 26, 0.16);
  padding-top: 14px;
}

.stat-label {
  font-size: 0.9rem;
  color: #34363f;
}

.stat-value {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: #12131a;
}

.case-image {
  position: relative;
  background: #e7e7ea;
  display: grid;
  place-items: center;
  padding: 44px;
  overflow: hidden;
}

.browser {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.45);
}

.browser-bar {
  height: 34px;
  background: #1c1d22;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4b4d57;
}

.browser-shot {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #d7d7db;
}

.deco {
  position: absolute;
  background: var(--panel);
}

.deco-a {
  width: 66px;
  height: 66px;
  top: 30px;
  right: 30px;
}

.deco-b {
  width: 42px;
  height: 42px;
  bottom: 48px;
  left: 34px;
  opacity: 0.65;
}

/* ===== Why agencies trust us ===== */
.trust {
  position: relative;
  z-index: 1;
  background-color: #11173b;
  padding: 22vh 26px 0;
  overflow: hidden;
}

/* gradient image (navy -> white) fades in when the section turns light, giving a
   smooth navy->white transition with no hard seam against the work section above */
.trust::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/gradient-trust.jpg") center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.trust.is-light::before {
  opacity: 1;
}

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

.trust-head {
  max-width: 1280px;
  margin: 0 auto 4.5vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.trust-title {
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 14ch;
  transition: color 0.7s ease;
}

.trust.is-light .trust-title {
  color: var(--ink);
}

.trust-sub {
  flex: 0 0 auto;
  max-width: 360px;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.7s ease;
}

.trust.is-light .trust-sub {
  color: #34363f;
}

.trust-cols {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
}

.trust-col {
  position: relative;
  flex: 1;
  height: var(--h);
  background: var(--c);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* keep the hover pixels inside the stat tile */
}

.trust-col > * {
  position: relative;
  z-index: 1;
}

/* hover "pixels": two-tone squares (accent + white) that slide in from the sides,
   clustered top-left and a checkerboard bottom-right, overlapping the edges */
.trust-col:nth-child(1) { --px: #ead4a0; }
.trust-col:nth-child(2) { --px: #c8e795; }
.trust-col:nth-child(3) { --px: #aecdef; }
.trust-col:nth-child(4) { --px: #d4bdef; }
/* derive an accent for the tiles & work cards from their own pastel */
.stack-tile { --px: color-mix(in srgb, var(--c) 64%, #141a40 36%); }
.case-content { --px: color-mix(in srgb, var(--panel) 64%, #141a40 36%); }

.hover-px {
  position: absolute;
  z-index: 0;
  opacity: 0;
  transform: translateX(var(--from, -50px));
  transition-property: transform, opacity;
  transition-duration: 0.55s, 0.4s;
  transition-timing-function: cubic-bezier(0.2, 0.85, 0.2, 1), ease;
  pointer-events: none;
}

.hover-px--a { background: var(--px); }
.hover-px--w { background: rgba(255, 255, 255, 0.82); }

.trust-col:hover .hover-px,
.trust-col.is-hovered .hover-px,
.stack-tile:hover .hover-px,
.stack-tile.is-hovered .hover-px,
.case:hover .hover-px,
.case.is-hovered .hover-px {
  transform: translateX(0);
  opacity: 1;
}

.trust-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: #12131a;
}

.trust-value {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  color: #12131a;
  line-height: 0.85;
}

.tv-num {
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  letter-spacing: -0.03em;
}

.tv-unit {
  font-size: clamp(1.1rem, 2.1vw, 1.95rem);
  padding-bottom: 0.1em;
  margin-left: 3px;
}

.tv-pre {
  margin-left: 0;
  margin-right: 5px;
}

.trust-desc {
  margin-top: auto;
  max-width: 25ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #34363f;
}

/* ===== Tech stack ===== */
.stack {
  position: relative;
  z-index: 1;
  background-color: #11173b;
  padding: 8vh 26px 8vh;
  /* overlap the trust section by 1px so no sub-pixel navy hairline shows at the
     boundary when both sections transition to light */
  margin-top: -1px;
  transition: background-color 0.7s ease;
}

.stack.is-light {
  background-color: #fff;
}

.stack-title {
  text-align: center;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 auto 3.5vh;
  transition: color 0.7s ease;
}

.stack.is-light .stack-title {
  color: var(--ink);
}

.stack-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stack-tile {
  grid-column: var(--col);
  grid-row: var(--row);
  position: relative;
  background: var(--c);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden; /* keep the hover pixels inside the tile */
}
.stack-logo {
  position: relative;
  z-index: 1;
}
.stack-name {
  z-index: 1; /* already absolute; just lift above the hover pixels */
}

.stack-logo {
  width: 38%;
  max-width: 92px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.stack-tile:hover .stack-logo {
  transform: translateY(-10%);
}

.stack-name {
  position: absolute;
  bottom: 15%;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(20, 20, 25, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stack-tile:hover .stack-name {
  opacity: 1;
}

/* ===== Loading screen ===== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.loader-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.4%;
  background: #11173b;
  will-change: transform;
}

.loader-top {
  top: 0;
  animation: loaderTop 1.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.loader-bottom {
  bottom: 0;
  animation: loaderBottom 1.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  transform: translate(-50%, -50%);
  animation: loaderLogo 1.6s ease forwards;
}

@keyframes loaderLogo {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  82% { opacity: 0; transform: translate(-50%, -50%) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes loaderTop {
  0%, 56% { transform: translateY(0); }
  100% { transform: translateY(-101%); }
}

@keyframes loaderBottom {
  0%, 56% { transform: translateY(0); }
  100% { transform: translateY(101%); }
}

/* ===== Hero intro (builds in as the loader unfolds) ===== */
.navbar,
.hero-title,
.hero-subtitle,
.hero-actions {
  animation: heroIn 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
.navbar { animation-delay: 1.45s; }
.hero-title { animation-delay: 1.58s; }
.hero-subtitle { animation-delay: 1.72s; }
.hero-actions { animation-delay: 1.86s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* "duct tape" reveal: each WORD covered by a navy bar peeled off left -> right,
   cascading across the text in reading order */
.reveal--tapewords {
  opacity: 1;
  transform: none;
}

.reveal--tapewords .line {
  display: block;
}

.reveal--tapewords .line-inner {
  position: relative;
  display: inline-block;
}

.reveal--tapewords .line-inner::after {
  content: "";
  position: absolute;
  inset: 0 -7px;
  z-index: 1;
  background: var(--tape, #11173b);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.6, 0, 0.22, 1);
  transition-delay: calc(var(--rd, 0ms) + var(--li, 0) * 0.28s);
  pointer-events: none;
}

/* light "tape" for titles sitting on the dark navy sections */
.reveal--tape-light {
  --tape: #ece6d8;
}

.reveal--tapewords.in .line-inner::after {
  clip-path: inset(0 0 0 100%);
}

/* footer "duct tape" reveal cascade: title -> columns -> links, left to right */
.footer-cta-title { --rd: 0ms; }
.footer-cta-btn.reveal { --rd: 420ms; }
.footer-cols .footer-col:nth-child(1) { --b: 140ms; }
.footer-cols .footer-col:nth-child(2) { --b: 230ms; }
.footer-cols .footer-col:nth-child(3) { --b: 320ms; }
.footer-cols .footer-col:nth-child(4) { --b: 410ms; }
.footer-col .footer-label { --rd: var(--b, 0ms); }
.footer-col--contact .footer-bigval { --rd: calc(var(--b, 0ms) + 90ms); }
.footer-col a:nth-of-type(1) { --rd: calc(var(--b, 0ms) + 90ms); }
.footer-col a:nth-of-type(2) { --rd: calc(var(--b, 0ms) + 150ms); }
.footer-col a:nth-of-type(3) { --rd: calc(var(--b, 0ms) + 210ms); }
.footer-col a:nth-of-type(4) { --rd: calc(var(--b, 0ms) + 270ms); }
.footer-col a:nth-of-type(5) { --rd: calc(var(--b, 0ms) + 330ms); }
.footer-logo.reveal { transition-delay: 480ms; }

/* directional reveals (Latest Work cards come from alternating sides) */
.reveal--left { transform: translateX(-78px); }
.reveal--right { transform: translateX(78px); }
.reveal--up { transform: translateY(70px); }
.reveal--left.in,
.reveal--right.in,
.reveal--up.in { transform: none; }

/* Features title: each line rises up from behind a mask */
.features-title--mask .tl-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.features-title--mask .tl-line {
  display: block;
  transform: translateY(120%);
  transition: transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.features-title--mask .tl-mask:nth-child(2) .tl-line {
  transition-delay: 0.12s;
}
.features.is-revealed .tl-line {
  transform: translateY(0);
}

/* Features marquee cards: rise up from below in a staggered wave */
.features-track .card {
  opacity: 0;
  transform: translateY(74px);
  transition: opacity 0.7s ease, transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--ci, 0) * 55ms);
}
.features.is-revealed .features-track .card {
  opacity: 1;
  transform: none;
}

.stack-tile.reveal:nth-child(2) { --rd: 70ms; }
.stack-tile.reveal:nth-child(3) { --rd: 140ms; }
.stack-tile.reveal:nth-child(4) { --rd: 210ms; }
.stack-tile.reveal:nth-child(5) { --rd: 280ms; }
.stack-tile.reveal:nth-child(6) { --rd: 350ms; }

.trust-col.reveal:nth-child(2) { --rd: 90ms; }
.trust-col.reveal:nth-child(3) { --rd: 180ms; }
.trust-col.reveal:nth-child(4) { --rd: 270ms; }

/* (Reduced-motion overrides intentionally removed — the owner wants the loader,
   reveals, hero intro and marquee to animate even when Reduce Motion is enabled.) */

/* ===== Testimonials ===== */
.testi {
  position: relative;
  z-index: 1;
  background: #11173b;
  padding: 13vh 0 14vh;
  overflow: hidden;
}

.testi-head {
  max-width: 1340px;
  margin: 0 auto 6vh;
  padding: 0 7vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.testi-title {
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  letter-spacing: -0.01em;
  color: #fff;
}

.testi-sub {
  max-width: 430px;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.testi-nav {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.testi-arrow {
  width: 62px;
  height: 56px;
  border: none;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.testi-arrow svg {
  width: 24px;
  height: 24px;
}

.testi-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
}

.testi-arrow:disabled {
  color: rgba(255, 255, 255, 0.3);
  cursor: default;
}

.testi-viewport {
  overflow: hidden;
}

.testi-track {
  display: flex;
  gap: 28px;
  transition: transform 0.65s cubic-bezier(0.55, 0, 0.2, 1);
  will-change: transform;
}

.testi-card {
  position: relative;
  flex: 0 0 min(1120px, 86vw);
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 540px;
  background: var(--panel);
  border-radius: 4px;
  overflow: hidden;
}

.testi-photo {
  position: relative;
  z-index: 1;
  align-self: end;
  height: 100%;
}

.testi-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

.testi-deco {
  position: absolute;
  z-index: 0;
  background: var(--accent);
}

.td-a { top: 0; left: 30%; width: 18%; height: 16%; }
.td-b { top: 10%; right: 6%; width: 70px; height: 92px; }
.td-c { bottom: 0; left: 33%; width: 14%; height: 13%; }

.testi-body {
  position: relative;
  z-index: 1;
  padding: 7% 6% 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testi-quote {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.55vw, 2.4rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.testi-cite {
  margin-top: auto;
  padding-top: 6%;
  align-self: flex-end;
  font-style: normal;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .trust-head {
    flex-direction: column;
    gap: 16px;
  }
  .trust-sub {
    max-width: none;
  }
  .trust-cols {
    flex-direction: column;
    align-items: stretch;
  }
  .trust-col {
    height: auto;
    min-height: 340px;
  }
  .td1,
  .td2 {
    display: none;
  }
}

@media (max-width: 760px) {
  /* Drop the "duct tape" bar reveals on mobile: hide the peeling navy/light bar so
     the words just show (text is already opacity:1). Other reveals — the fade-up and
     directional ones — are untouched. */
  .reveal--tapewords .line-inner::after { display: none; }

  /* No parallax on mobile — the hero is a normal in-flow section and the white
     statement simply scrolls up after it. Solid-blue gradient (no white) fills
     the status-bar area and gives the outlined secondary button a blue backdrop. */
  .hero-wrap {
    position: relative;
    height: auto;
    min-height: 100vh;   /* full screen height on iOS — fills the screen so the next section stays hidden until you scroll */
    background: url("assets/gradient-mobile.webp") center top / 100% 100% no-repeat;
  }

  /* No loader overlay on mobile — the page loads normally and the hero content
     (logo, menu, title, text, buttons) fades in + slides up into place. */
  #loader { display: none; }
  .navbar { animation-delay: 0.12s; }
  .hero-title { animation-delay: 0.24s; }
  .hero-subtitle { animation-delay: 0.36s; }
  .hero-actions { animation-delay: 0.48s; }

  .navbar {
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 22px 0;
    flex-wrap: wrap;
    gap: 14px 28px;
  }

  .nav-links {
    gap: 24px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .hero {
    padding: 11vh 22px 40px;
  }

  .hero-subtitle {
    margin-top: 20px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .statement {
    margin-top: 0;       /* normal flow — no fixed hero to clear */
    min-height: auto;
    padding: 8vh 22px;
    border-radius: 0;    /* flat top edge — no rounded "card" corners on mobile */
  }

  .features {
    min-height: auto;
    padding: 8vh 0;
  }

  .card {
    flex-basis: 230px;
    min-height: 370px;
    padding: 26px 14px 28px;
  }

  /* Swap the horizontal marquee for two upward-scrolling, offset columns */
  .features-marquee { display: none; }

  .features-vmarquee {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    height: min(82vh, 640px);
    padding: 0 14px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 4%, #000 10%, #000 90%, rgba(0,0,0,0.7) 96%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 4%, #000 10%, #000 90%, rgba(0,0,0,0.7) 96%, transparent 100%);
  }

  .features-vcol { overflow: hidden; }

  .features-vtrack {
    display: flex;
    flex-direction: column;
    animation: vmarquee 34s linear infinite;
    will-change: transform;
  }

  /* second column: different speed + phase so the two are nicely offset */
  .features-vcol--b .features-vtrack {
    animation-duration: 41s;
    animation-delay: -13s;
  }

  .features-vmarquee .card {
    flex: 0 0 auto;
    width: 100%;
    min-height: 300px;
    margin-bottom: 14px;
    padding: 24px 16px 26px;
  }

  /* long single-word titles (e.g. PROZESSAUTOMATISIERUNG) must wrap, not clip */
  .features-vmarquee .card-title {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .work {
    padding: 10vh 16px 12vh;
  }

  .case {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  /* compact the work card on mobile — tighten the spacing (not the text size) */
  .case-content {
    padding: 18px 24px 20px;
  }
  .case-head { margin-bottom: 10px; }
  .case-title { margin-bottom: 8px; }
  .case-desc { line-height: 1.45; margin-bottom: 12px; }

  .case-image {
    padding: 22px;
    min-height: 205px;
  }

  .case-stats {
    padding-top: 14px;
    gap: 12px 24px;
  }
  .stat { padding-top: 9px; gap: 5px; }
  /* reserve 2 label lines so the values line up even when one label wraps
     and its neighbour doesn't */
  .stat-label { line-height: 1.3; min-height: 2.6em; }

  .trust {
    padding: 10vh 16px 0;
  }

  .trust-col {
    min-height: 320px;
    padding: 30px 22px 32px;
  }

  .stack {
    padding: 9vh 16px 11vh;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stack-tile {
    grid-column: auto;
    grid-row: auto;
  }

  .stack-name {
    opacity: 1;
  }
}

/* ===== Pricing ===== */
.pricing {
  position: relative;
  z-index: 1;
  /* uploaded navy->white gradient melts out of the dark testimonials, then the
     white fill carries the rest of the (tall) section */
  background-color: #ffffff;
  background-image: url("assets/gradient-pricing.jpg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 720px;
  color: var(--ink);
  padding: 0 26px 14vh;
  overflow: hidden;
}
.pricing > * {
  position: relative;
  z-index: 1;
}

.pricing-head {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 250px;
  text-align: center;
}
.pricing-title {
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pricing-sub {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5b5e6b;
}

/* skeuomorphic billing toggle */
.billing-toggle {
  margin: 22px auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
/* Brand & Identity is one-time — greyed out & non-interactive */
.billing-toggle.is-disabled {
  opacity: 0.4;
  filter: grayscale(1);
  cursor: not-allowed;
}
.billing-toggle.is-disabled .bt-switch,
.billing-toggle.is-disabled .bt-label {
  cursor: not-allowed;
}
.bt-label {
  font-size: 1.05rem;
  color: #9a9ba3;
  transition: color 0.25s ease;
}
.bt-label.is-active {
  color: var(--ink);
}
.bt-switch {
  position: relative;
  width: 66px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 1px solid rgba(20, 25, 60, 0.1);
  /* red for monthly, green (OpenAI tile) for yearly */
  background: linear-gradient(#efb9b9, #f8d6d6);
  box-shadow: inset 0 2px 4px rgba(20, 25, 60, 0.18),
    inset 0 -1px 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}
.bt-switch[aria-checked="true"] {
  background: linear-gradient(#cfeabb, #e4f3db);
}
.bt-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(#ffffff, #d9dce2);
  box-shadow: 0 2px 4px rgba(20, 25, 60, 0.35),
    0 0 0 0.5px rgba(20, 25, 60, 0.06),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.95);
  transition: transform 0.32s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.bt-switch[aria-checked="true"] .bt-knob {
  transform: translateX(32px);
}

/* category toggle: AI & Software <-> Marketing */
.cat-toggle {
  position: relative;
  margin: 36px auto 0;
  width: fit-content;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(20, 25, 60, 0.07);
  border-radius: 999px;
}
.cat-toggle::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--slide-w, 132px);
  transform: translateX(var(--slide-x, 5px));
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 5px 14px -5px rgba(20, 25, 60, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 0;
}
.cat-toggle.is-ready::before {
  transition: transform 0.42s cubic-bezier(0.4, 0.1, 0.2, 1),
    width 0.42s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.cat-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 11px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  color: #5b5e6b;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}
.cat-btn:hover { color: var(--ink); }
.cat-btn.is-active { color: var(--ink); }

/* plan cards */
.pricing-grid {
  max-width: 1180px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.pricing-grid[hidden] { display: none; }
.pricing-grid { transition: opacity 0.26s ease; }
.pricing-grid.is-fading { opacity: 0; }
.plan {
  background: #fff;
  border: 3px solid var(--head);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.plan--wide {
  grid-column: 1 / -1;
}
.plan-header {
  background: var(--head);
  padding: 15px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plan-name {
  font-size: 1.15rem;
  color: var(--ink);
}
.plan-icon {
  display: inline-flex;
  color: var(--ink);
}
.plan-icon svg {
  width: 22px;
  height: 22px;
}
.plan-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.plan--wide .plan-body {
  grid-template-columns: 0.85fr 1.15fr;
}
.plan-left {
  padding: 34px 32px 30px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ededed;
}
.plan-right {
  padding: 34px 32px 30px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}
.pp-amt,
.plan-price--quote {
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
/* slot-machine price reels — the window is taller than the digit so spinning
   numbers fade out at the top/bottom (mask) instead of hard-clipping */
.pp-amt {
  display: inline-flex;
  align-items: flex-start;
  letter-spacing: normal;
}
.pp-cur {
  display: inline-block;
  line-height: 1.5;
}
.reel {
  display: inline-block;
  height: 1.5em;
  line-height: 1.5;
  overflow: hidden;
  vertical-align: top;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
}
.reel-strip {
  display: block;
}
.reel-strip > span {
  display: block;
  height: 1.5em;
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pp-per {
  font-size: 1rem;
  color: #8a8c96;
}
.plan-desc {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.55;
  color: #5b5e6b;
  max-width: 32ch;
}
.plan-cta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--arrow-dark);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  padding: 6px 6px 6px 24px;
  height: 62px;
  transition: background 0.25s ease;
}
.plan-cta:hover {
  background: #1c2456;
}
.plan-cta-arrow {
  flex: 0 0 auto;
  width: 50px;
  align-self: stretch;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--arrow-dark);
}
.plan-cta-arrow svg {
  width: 20px;
  height: 20px;
}
.plan-incl {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a9ba3;
  margin-bottom: 24px;
}
.plan-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.plan-feats--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 44px;
}
.plan-feats li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.02rem;
  color: var(--ink);
}
.feat-ic {
  flex: 0 0 auto;
  display: inline-flex;
  color: #2b2f45;
}
.feat-ic svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 860px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .plan-body,
  .plan--wide .plan-body {
    grid-template-columns: 1fr;
  }
  .plan-left {
    border-right: none;
    border-bottom: 1px solid #ededed;
  }
  .plan-feats--2col {
    grid-template-columns: 1fr;
  }
  .pricing-head {
    padding-top: 240px;
  }
}

/* ===== FAQ ===== */
.faq {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: #ffffff;
  color: var(--ink);
  padding: 11vh 26px 14vh;
}
.faq-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 72px;
}
.faq-aside {
  display: flex;
  flex-direction: column;
}
.faq-title {
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.faq-sub {
  margin-top: 24px;
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #5b5e6b;
}
.faq-cta {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: stretch;
  max-width: 384px;
  /* same height as one closed FAQ row (28px*2 padding + 1.25 line-height) */
  height: calc(56px + 1.25 * clamp(1.1rem, 1.5vw, 1.45rem));
  background: #3b417b; /* matches the photo bg → one seamless blue box */
  text-decoration: none;
}
.faq-cta-photo {
  flex: 0 0 auto;
  width: 106px;
  align-self: stretch;
  overflow: hidden;
}
.faq-cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.faq-cta-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 22px;
  min-width: 0;
}
.faq-cta-title {
  font-size: 1.2rem;
  line-height: 1.2;
  color: #fff;
}
.faq-cta-sub {
  font-size: 0.98rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.72);
}
.faq-cta-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.faq-cta-arrow svg {
  width: 15px;
  height: 15px;
}

.faq-list {
  border-top: 1px solid rgba(20, 25, 60, 0.13);
}
.faq-item {
  border-bottom: 1px solid rgba(20, 25, 60, 0.13);
}
.faq-q {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 4px;
  text-align: left;
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.25;
  color: var(--ink);
}
/* +/- icon: a horizontal bar always (minus when closed), plus a vertical bar
   that appears when the item is open (so open shows "+", closed shows "−") */
.faq-ic {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}
.faq-ic::before,
.faq-ic::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.faq-ic::before {
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1.6px;
  transform: translateY(-50%);
}
.faq-ic::after {
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 1.6px;
  transform: translateX(-50%) scaleY(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-item.is-open .faq-ic::after {
  transform: translateX(-50%) scaleY(1);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a p {
  padding: 0 4px 30px;
  margin-top: -4px;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #5b5e6b;
}

@media (max-width: 860px) {
  .faq-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faq-cta {
    margin-top: 32px;
  }
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  /* gradient footer (navy → light) so the dark wordmark shows at the bottom */
  background: url("assets/footer-bg-flip.jpg") center / 100% 100% no-repeat #fff;
  color: #fff;
  padding: 4vh 26px 7vh;
}
.footer-cta {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 0 52px;
}
.footer-cta-panel {
  position: relative;
  background: #fff;
  border: 1px solid rgba(17, 23, 59, 0.10);
  padding: 60px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-cta-title {
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #11173b;
  max-width: 15ch;
}
.footer-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 64px;
  padding: 6px 6px 6px 28px;
  background: #11173b;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: background 0.25s ease;
}
.footer-cta-btn:hover {
  background: #1b2456;
}
.footer-cta-arrow {
  align-self: stretch;
  width: 50px;
  margin-left: 26px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #11173b;
  border-radius: 6px;
}
.footer-cta-arrow svg {
  width: 20px;
  height: 20px;
}

.footer-cols {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 36px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-label {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}
.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-col a {
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  padding: 9px 0;
  transition: opacity 0.2s ease;
}
.footer-col a:hover {
  opacity: 0.7;
}
.footer-col--contact .footer-group {
  margin-bottom: 42px;
}
.footer-col--contact .footer-bigval {
  font-size: 1.35rem;
  color: #fff;
  -webkit-text-fill-color: #fff;
  padding: 9px 0;
}

@media (max-width: 860px) {
  .footer-cta-panel {
    padding: 40px 32px;
  }
  .footer-cta-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .footer-col--contact {
    grid-column: 1 / -1;
  }
}

/* ===== Sticky navbar (scroll-reveal) ===== */
.site-nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px); /* sit BELOW the safe area — never paint white behind the dynamic island */
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(19, 31, 84, 0.09);
  transform: translateY(calc(-100% - env(safe-area-inset-top, 0px)));
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.5, 1);
}
.site-nav.is-visible {
  transform: translateY(0);
}
.site-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.site-nav-brand {
  justify-self: start;
  display: inline-flex;
}
.site-nav-brand img {
  height: 32px;
  display: block;
}
.site-nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-nav-links a {
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #131f54;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav-links a:hover {
  color: #d1a32e;
}
.site-nav-dot {
  color: rgba(19, 31, 84, 0.32);
  font-size: 0.8rem;
}
.site-nav-cta {
  justify-self: end;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #131f54;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav-cta:hover {
  color: #d1a32e;
}

section[id],
footer[id] {
  scroll-margin-top: 88px;
}

@media (max-width: 820px) {
  .site-nav-links {
    display: none;
  }
  .site-nav-inner {
    grid-template-columns: 1fr auto;
    padding: 0 22px;
    height: 62px;
  }
}

/* ===== Case study page ===== */
.cs-body { color: var(--ink); background: #fff; }
/* integrated transparent navbar over the hero (not a separate bar) */
.site-nav.cs-nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; transform: none !important;
  background: transparent; border-bottom: 1px solid transparent; z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-nav.cs-nav.is-scrolled { background: #fff; border-bottom-color: rgba(19, 31, 84, 0.09); }
.cs-nav .site-nav-links a, .cs-nav .site-nav-cta { color: rgba(255, 255, 255, 0.88); }
.cs-nav .site-nav-links a:hover, .cs-nav .site-nav-cta:hover { color: #fff; }
.cs-nav .site-nav-dot { color: rgba(255, 255, 255, 0.38); }
/* scrolled past the hero: solid white bar with dark text */
.cs-nav.is-scrolled .site-nav-links a, .cs-nav.is-scrolled .site-nav-cta { color: #131f54; }
.cs-nav.is-scrolled .site-nav-links a:hover, .cs-nav.is-scrolled .site-nav-cta:hover { color: #11173b; }
.cs-nav.is-scrolled .site-nav-dot { color: rgba(19, 31, 84, 0.3); }

/* hero — branded gradient that fades to white into the stats below */
.cs-hero {
  position: relative;
  min-height: 80vh;
  background: linear-gradient(180deg, #183d8b 0%, #234a96 22%, #34589f 42%, #4a69ab 60%, #6884c0 75%, #93a9d6 86%, #c6d4ec 95%, #ffffff 100%);
  color: #fff;
  padding: 104px 0 96px;
}
.cs-hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 26px; }
.cs-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.72);
  text-decoration: none; transition: color 0.2s ease;
}
.cs-back:hover { color: #fff; }
.cs-eyebrow { margin-top: 40px; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: #aebbe6; }
.cs-title {
  margin-top: 40px; font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.04;
  letter-spacing: -0.02em; color: #fff; max-width: 18ch;
}
.cs-intro { margin-top: 24px; max-width: 60ch; font-size: 1.14rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.cs-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px 52px; }
.cs-meta-item { display: flex; flex-direction: column; gap: 7px; }
.cs-meta-label { font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.cs-meta-value { font-size: 1rem; color: #fff; }

.cs-wrap { max-width: 1080px; margin: 0 auto; padding: 0 26px; }

/* stats — connected pastel cards on white, aligned with the content width */
.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; }
.cs-stat { background: var(--c, #eef1f7); padding: 26px 24px 24px; }
.cs-stat-num { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em; color: var(--ink); }
.cs-stat-label { margin-top: 8px; font-size: 0.92rem; line-height: 1.4; color: #3c4664; }

/* sections */
.cs-section { padding: 64px 0 8px; }
.cs-section-head { font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5663b5; margin-bottom: 18px; }
.cs-section-title { font-weight: 400; font-size: clamp(1.7rem, 3.1vw, 2.5rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); max-width: 24ch; }
.cs-section-text { margin-top: 22px; max-width: 66ch; font-size: 1.1rem; line-height: 1.66; color: #45495d; }

/* bento grid */
.cs-bento { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-card { grid-column: span 1; background: linear-gradient(180deg, #11173b 0%, #11173b 25%, #1a2550 40%, #32406d 55%, #6a84bd 68%, #93aad6 78%, #c1cfea 86%, #eef1f8 93%, #ffffff 100%); border: 0; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.cs-card--wide { grid-column: span 2; }
.cs-card-visual { flex: 1; min-height: 196px; display: flex; align-items: flex-start; justify-content: center; padding: 18px 10px 22px; }
.cs-card-title { font-size: 1.2rem; line-height: 1.25; color: var(--ink); min-height: 2.5em; }
.cs-card-desc { margin-top: 10px; font-size: 0.98rem; line-height: 1.5; color: #4a5170; min-height: 4.5em; }

/* UI snippet: lead card */
.ui-lead { width: 100%; max-width: 470px; padding: 22px 26px; align-self: stretch; display: flex; align-items: center; gap: 26px; }
.ui-lead-ring { position: relative; flex: 0 0 auto; width: 108px; height: 108px; }
.ui-lead-ring svg { width: 100%; height: 100%; }
.ui-lead-arc { transition: stroke-dasharray 1.4s cubic-bezier(0.3, 0.9, 0.3, 1); }
.ui-lead-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ui-lead-ring-c b { font-weight: 400; font-size: 2rem; line-height: 1; color: #1e349b; }
.ui-lead-ring-c small { margin-top: 3px; font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9a9ba3; }
.ui-lead-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ui-lead-head { display: flex; align-items: center; gap: 12px; }
.ui-avatar { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; background: linear-gradient(150deg, #cfe2fb, #aebff2); color: #1e349b; font-size: 0.85rem; border-radius: 50%; }
.ui-lead-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ui-lead-name strong { font-weight: 400; font-size: 1.02rem; color: var(--ink); }
.ui-lead-name span { font-size: 0.82rem; color: #8a8c96; }
.ui-tag { flex: 0 0 auto; font-size: 0.72rem; letter-spacing: 0.02em; color: #2f7d3a; background: #dcecc6; padding: 5px 12px; border-radius: 999px; }
.ui-lead-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 15px; border-top: 1px solid rgba(19, 31, 84, 0.08); }
.ui-lead-stat { display: flex; flex-direction: column; gap: 4px; }
.ui-lead-stat small { font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: #9a9ba3; }
.ui-lead-stat b { font-weight: 400; font-size: 0.96rem; color: var(--ink); }

/* UI snippet: metric */
.ui-metric { width: 100%; max-width: 270px; background: #fff; border: 1px solid rgba(19, 31, 84, 0.07); box-shadow: 0 24px 46px -30px rgba(8, 14, 44, 0.4); padding: 20px 22px 14px; }
.ui-metric-lbl { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: #9a9ba3; }
.ui-metric-row { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.ui-metric-num { font-size: 2.4rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.ui-metric-num small { font-size: 1rem; color: #8a8c96; margin-left: 4px; }
.ui-pill { font-size: 0.82rem; color: #2f7d3a; background: #dcecc6; padding: 4px 11px; border-radius: 999px; }
.ui-spark { width: 100%; height: 52px; margin-top: 14px; display: block; }

/* UI snippet: kanban */
.ui-pipe { width: 100%; max-width: 320px; margin: 0 auto; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 9px; }
.ui-pipe-row { display: flex; align-items: center; gap: 11px; background: #fff; padding: 0 15px; height: 100%; min-height: 48px; border-radius: 12px; box-shadow: 0 9px 20px -13px rgba(8, 14, 44, 0.45); }
.ui-pipe-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #3a55b4); }
.ui-pipe-name { flex: 1; min-width: 0; font-size: 0.92rem; color: var(--ink); }
.ui-pipe-stage { flex: 0 0 auto; font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; color: #8a8c96; }
.ui-pipe-score { flex: 0 0 auto; min-width: 24px; text-align: right; font-weight: 400; font-size: 1rem; color: #1e349b; }

/* UI snippet: automation flow */
.ui-flow { width: 100%; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 4px 0; }
.ui-flow-head { display: flex; align-items: center; justify-content: space-between; }
.ui-flow-lbl { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.ui-flow-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; color: rgba(255, 255, 255, 0.82); }
.ui-flow-live i { width: 7px; height: 7px; border-radius: 50%; background: #7ee0a0; box-shadow: 0 0 0 3px rgba(126, 224, 160, 0.22); }
.ui-flow-steps { display: flex; align-items: center; justify-content: center; gap: 4px; }
.ui-flow-foot { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); text-align: center; }
.ui-flow-step { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 11px; background: linear-gradient(180deg, #ffffff 0%, #eef2fa 100%); border: 1px solid rgba(19, 31, 84, 0.06); border-radius: 15px; box-shadow: 0 12px 22px -12px rgba(8, 14, 44, 0.32), 0 2px 5px rgba(8, 14, 44, 0.07), inset 0 1px 0 #ffffff; padding: 16px 8px; width: 94px; font-size: 0.78rem; color: var(--ink); text-align: center; }
.ui-flow-ic { width: 42px; height: 42px; display: grid; place-items: center; color: #1e349b; border-radius: 13px;
  background: var(--c, #cfe2fb);
  background: linear-gradient(155deg, color-mix(in srgb, var(--c, #cfe2fb) 55%, #ffffff) 0%, var(--c, #cfe2fb) 100%);
  box-shadow: 0 6px 12px -4px rgba(8, 14, 44, 0.28), inset 0 1px 1.5px rgba(255, 255, 255, 0.85), inset 0 -3px 5px rgba(8, 14, 44, 0.07); }
.ui-flow-ic svg { width: 21px; height: 21px; }
.ui-flow-arrow { flex: 0 0 auto; width: 13px; height: 1.5px; background: rgba(255, 255, 255, 0.65); position: relative; }
.ui-flow-arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 5px; border-top: 1.5px solid rgba(255, 255, 255, 0.65); border-right: 1.5px solid rgba(255, 255, 255, 0.65); transform: translateY(-50%) rotate(45deg); }

/* quote panel */
.cs-quote { margin: 56px 0; background: var(--panel, #cfe2fb); padding: clamp(36px, 3.6vw, 50px) clamp(40px, 5vw, 64px); }
.cs-quote blockquote { font-weight: 400; font-size: clamp(1.5rem, 2.9vw, 2.2rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); max-width: 30ch; }
.cs-quote cite { display: block; margin-top: 24px; font-style: normal; font-size: 1rem; color: #3c4664; }

/* cta */
.cs-cta { margin: 24px 0 110px; padding: clamp(48px, 7vw, 88px) 40px; background: #11173b; text-align: center; }
.cs-cta h2 { color: #fff; font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 18ch; margin: 0 auto; }
.cs-cta-btn { margin-top: 36px; display: inline-flex; align-items: center; height: 62px; padding: 6px 6px 6px 28px; background: #fff; color: #11173b; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; border-radius: 12px; transition: background 0.25s ease; }
.cs-cta-btn:hover { background: #e7ebf8; }
.cs-cta-arrow { align-self: stretch; width: 50px; margin-left: 26px; display: grid; place-items: center; background: #11173b; color: #fff; border-radius: 6px; }
.cs-cta-arrow svg { width: 20px; height: 20px; }

.cs-card--full { grid-column: span 3; }

/* ===== CS2 widgets — listing automation + social ===== */

/* AI listing generator */
.ui-listing { width: 100%; max-width: 470px; background: #fff; border: 1px solid rgba(19, 31, 84, 0.07); box-shadow: 0 24px 46px -30px rgba(8, 14, 44, 0.4); border-radius: 16px; padding: 16px; }
.ui-listing-top { display: flex; gap: 14px; }
.ui-listing-img { flex: 0 0 104px; height: 104px; border-radius: 12px; overflow: hidden; }
.ui-listing-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-listing-head { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ui-gen-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: #6b46c1; background: #ece7fb; padding: 4px 10px; border-radius: 999px; }
.ui-listing-title { font-size: 1.02rem; line-height: 1.28; color: var(--ink); }
.ui-listing-sub { font-size: 0.84rem; color: #8a8c96; }
.ui-listing-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(19, 31, 84, 0.08); font-size: 0.86rem; line-height: 1.55; color: #5b6079; }
.ui-listing-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.ui-listing-chips span { font-size: 0.74rem; color: #3c4664; background: #f0f2f7; padding: 5px 10px; border-radius: 6px; }

/* content calendar */
.ui-cal { width: 100%; max-width: 300px; background: #fff; border: 1px solid rgba(19, 31, 84, 0.07); box-shadow: 0 24px 46px -30px rgba(8, 14, 44, 0.4); padding: 16px 16px 6px; }
.ui-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ui-cal-head b { font-weight: 400; font-size: 0.92rem; color: var(--ink); }
.ui-cal-head span { font-size: 0.72rem; color: #8a8c96; }
.ui-cal-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(19, 31, 84, 0.07); }
.ui-cal-ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--c, #cfe2fb); color: #1e349b; }
.ui-cal-ic svg { width: 15px; height: 15px; }
.ui-cal-txt { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ui-cal-txt b { font-weight: 400; font-size: 0.82rem; color: var(--ink); }
.ui-cal-txt span { font-size: 0.71rem; color: #9a9ba3; }
.ui-cal-time { font-size: 0.71rem; color: #8a8c96; white-space: nowrap; }

/* channel reach */
.ui-channels { width: 100%; max-width: 272px; display: flex; flex-direction: column; gap: 14px; background: #fff; border-radius: 12px; padding: 20px 22px; box-shadow: 0 24px 46px -30px rgba(8, 14, 44, 0.4); }
.ui-ch-row { display: flex; align-items: center; gap: 11px; }
.ui-ch-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--c, #cfe2fb); color: #1e349b; }
.ui-ch-ic svg { width: 16px; height: 16px; }
.ui-ch-bar { flex: 1; height: 8px; border-radius: 999px; background: #eaedf4; overflow: hidden; }
.ui-ch-bar i { display: block; height: 100%; border-radius: 999px; background: var(--c, #3a55b4); width: var(--w, 50%); }
.ui-ch-val { font-size: 0.76rem; color: #5b6079; width: 44px; text-align: right; }

/* engagement bar chart */
.ui-bars { width: 100%; max-width: 540px; background: #fff; border-radius: 12px; padding: 22px 26px 20px; box-shadow: 0 24px 46px -30px rgba(8, 14, 44, 0.4); }
.ui-bars-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.ui-bars-head span { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: #9a9ba3; }
.ui-bars-grid { display: flex; align-items: flex-end; gap: 14px; height: 124px; }
.ui-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; justify-content: flex-end; }
.ui-bar i { width: 100%; max-width: 32px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #6b8cf0, #3a55b4); height: var(--h, 40%); }
.ui-bar--hot i { background: linear-gradient(180deg, #8ad06a, #4f9a3f); }
.ui-bar span { font-size: 0.68rem; color: #9a9ba3; }

/* ===== CS3 widgets — video tours + UGC + social ===== */

/* video tour player */
.ui-video { width: 100%; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #0c1130; }
.ui-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-video-badge { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: rgba(12, 17, 48, 0.55); backdrop-filter: blur(8px); padding: 8px 13px; border-radius: 999px; }
.ui-video-badge i { width: 7px; height: 7px; border-radius: 50%; background: #7ee0a8; box-shadow: 0 0 0 4px rgba(126, 224, 168, 0.25); }
.ui-video-cap { position: absolute; left: 16px; bottom: 16px; }
.ui-video-cap span { display: inline-block; font-size: 0.82rem; color: #fff; background: rgba(12, 17, 48, 0.5); backdrop-filter: blur(8px); padding: 8px 13px; border-radius: 9px; }

/* UGC reels — 2x2 grid */
.ui-ugc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 256px; margin: 0 auto; }
.ui-reel { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #0c1130; box-shadow: 0 20px 38px -24px rgba(8, 14, 44, 0.55); }
.ui-reel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 17, 48, 0.18) 0%, transparent 32%, transparent 58%, rgba(12, 17, 48, 0.62) 100%); }
.ui-reel-play { display: none; }
.ui-reel-play span { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); display: grid; place-items: center; color: #11173b; }
.ui-reel-play svg { width: 16px; height: 16px; margin-left: 2px; }
.ui-reel-like { position: absolute; top: 9px; right: 9px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; font-size: 0.66rem; color: #fff; background: rgba(12, 17, 48, 0.4); padding: 3px 8px; border-radius: 999px; }
.ui-reel-like svg { width: 11px; height: 11px; }
.ui-reel-meta { position: absolute; left: 9px; right: 9px; bottom: 9px; z-index: 1; color: #fff; }
.ui-reel-meta b { display: block; font-weight: 400; font-size: 0.73rem; }
.ui-reel-meta small { font-size: 0.65rem; opacity: 0.85; }

/* social post */
.ui-post { width: 100%; max-width: 256px; background: #fff; border: 1px solid rgba(19, 31, 84, 0.06); box-shadow: 0 28px 50px -30px rgba(8, 14, 44, 0.45); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ui-post-head { display: flex; align-items: center; gap: 9px; padding: 11px 12px; }
.ui-post-av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f7cfa0, #e58ab0 55%, #b98ad8); box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #efb38f; }
.ui-post-id { flex: 1; min-width: 0; }
.ui-post-id b { display: flex; align-items: center; gap: 4px; font-weight: 500; font-size: 0.82rem; color: var(--ink); line-height: 1.2; }
.ui-post-verified { width: 13px; height: 13px; flex: 0 0 auto; color: #3a86e0; }
.ui-post-id small { font-size: 0.7rem; color: #9a9ba3; }
.ui-post-more { flex: 0 0 auto; color: #3c4664; }
.ui-post-more svg { width: 18px; height: 18px; display: block; }
.ui-post-img { width: 100%; aspect-ratio: 13 / 12; object-fit: cover; display: block; background: #eaedf4; flex: 1 1 auto; min-height: 0; }
.ui-post-actions { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 6px; color: #2a2f45; }
.ui-post-actions-l { display: flex; gap: 14px; }
.ui-post-actions svg { width: 22px; height: 22px; display: block; }
.ui-post-heart { color: #ed4956; }
.ui-post-likes { padding: 0 12px 5px; font-size: 0.8rem; color: var(--ink); }
.ui-post-likes b { font-weight: 500; }
.ui-post-cap { padding: 0 12px 6px; font-size: 0.79rem; line-height: 1.45; color: #3c4664; }
.ui-post-cap b { font-weight: 500; color: var(--ink); }
.ui-post-comments { padding: 0 12px 13px; font-size: 0.76rem; color: #9a9ba3; }

/* chart animation transitions */
.ui-plat-bar i, .ui-ch-bar i { transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ui-bar i { transition: height 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* richer metric widget */
.ui-metric { max-width: 290px; }
.ui-spark { height: 58px; }

/* reach / analytics widget (fuller) */
.ui-reach { width: 100%; max-width: 300px; background: #fff; border-radius: 14px; box-shadow: 0 24px 46px -30px rgba(8, 14, 44, 0.4); padding: 30px 22px; }
.ui-reach .ui-metric-lbl { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9a9ba3; }
.ui-reach .ui-metric-row { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.ui-reach .ui-metric-num { font-size: 2.2rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.ui-reach .ui-metric-num small { font-size: 0.95rem; color: #8a8c96; margin-left: 3px; }
.ui-reach .ui-spark { height: 42px; margin-top: 12px; }
.ui-reach-sec { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(19, 31, 84, 0.08); }
.ui-reach-sec-h { display: block; font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase; color: #9a9ba3; margin-bottom: 12px; }
.ui-plat { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.ui-plat:last-child { margin-bottom: 0; }
.ui-plat-ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #1e349b;
  background: var(--c, #cfe2fb);
  background: linear-gradient(155deg, color-mix(in srgb, var(--c, #cfe2fb) 55%, #ffffff), var(--c, #cfe2fb));
  box-shadow: 0 4px 9px -4px rgba(8, 14, 44, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.8); }
.ui-plat-ic svg { width: 15px; height: 15px; }
.ui-plat-bar { flex: 1; height: 7px; border-radius: 999px; background: rgba(19, 31, 84, 0.08); overflow: hidden; }
.ui-plat-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6b8cf0, #3a55b4); width: var(--w, 50%); }
.ui-plat-val { font-size: 0.76rem; color: #3c4664; width: 44px; text-align: right; }
.ui-reach-tiles { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(19, 31, 84, 0.08); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-rt { background: #f5f6f9; border-radius: 9px; padding: 11px 6px; text-align: center; }
.ui-rt b { display: block; font-weight: 400; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.ui-rt span { display: block; margin-top: 5px; font-size: 0.6rem; letter-spacing: 0.03em; text-transform: uppercase; color: #9a9ba3; }

/* ===== emphasized results — big pulled-out figures ===== */
.cs-results-figs { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cs-fig { background: var(--c, #eef1f7); padding: clamp(26px, 3vw, 34px) clamp(22px, 2.6vw, 30px) clamp(28px, 3.4vw, 38px); }
.cs-fig b { display: block; font-weight: 400; font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1; letter-spacing: -0.022em; color: var(--ink); }
.cs-fig span { display: block; margin-top: 12px; font-size: 0.96rem; line-height: 1.35; color: #3c4664; }
.cs-results-text { margin-top: 30px; max-width: 60ch; font-size: 1.08rem; line-height: 1.6; color: #45495d; }

@media (max-width: 860px) {
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .cs-bento { grid-template-columns: 1fr; }
  .cs-card--wide { grid-column: span 1; }
  .cs-card--full { grid-column: span 1; }
}
@media (max-width: 640px) {
  .cs-results-figs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ui-flow-step { width: 80px; font-size: 0.74rem; }
}

/* ===== Apple-glass UI widget redesign ===== */
.cs-card { border-radius: 20px; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cs-card:hover { transform: translateY(-6px); box-shadow: 0 38px 72px -30px rgba(8, 14, 44, 0.6); }

/* main frosted-glass panels */
.ui-lead, .ui-metric, .ui-reach, .ui-listing, .ui-cal, .ui-channels, .ui-bars {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.87) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  backdrop-filter: blur(22px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  box-shadow: 0 26px 54px -26px rgba(8, 14, 44, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.ui-post {
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: none;
  border-radius: 20px;
  box-shadow: 0 28px 56px -26px rgba(8, 14, 44, 0.55);
}
/* inner sub-panels lightly frosted + rounder */
.ui-col, .ui-flow-step {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: 0 10px 22px -12px rgba(8, 14, 44, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.ui-rt { background: rgba(255, 255, 255, 0.74); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 12px; }
.ui-chip { background: rgba(255, 255, 255, 0.72); border-radius: 9px; }
.ui-listing-chips span { background: rgba(255, 255, 255, 0.68); border-radius: 8px; }
/* glossy icon tiles -> rounder */
.ui-flow-ic, .ui-cal-ic, .ui-ch-ic, .ui-plat-ic, .ui-avatar { border-radius: 13px; }
.ui-avatar { border-radius: 50%; }

/* ===== Redesigned split hero (work preview) ===== */
.cs-hero--split .cs-hero-inner { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(30px, 4.5vw, 64px); align-items: center; }
.cs-hero-text { min-width: 0; }
.cs-hero-visual { position: relative; justify-self: center; align-self: center; }
.cs-hero--split .cs-eyebrow { margin-top: 26px; }
.cs-hero--split .cs-title { margin-top: 26px; }
.cs-hero--split .cs-intro { max-width: 46ch; }
.cs-hero-cta {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px;
  border-radius: 13px; background: #fff; color: #11173b; font-size: 0.96rem; letter-spacing: 0.02em;
  text-decoration: none; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.5);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s;
}
.cs-hero-cta:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -20px rgba(0, 0, 0, 0.55); }
.cs-hero-cta svg { width: 17px; height: 17px; }

/* phone mockup */
.cs-phone {
  position: relative; width: clamp(208px, 19vw, 256px); aspect-ratio: 9 / 18.4; border-radius: 36px; padding: 8px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 60px 100px -44px rgba(3, 8, 30, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: rotate(-3deg);
}
.cs-phone-notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 60px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.4); z-index: 3; }
.cs-phone-screen { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #0c1130; -webkit-mask-image: radial-gradient(ellipse 150% 150% at center, #fff 62%, #000 100%); mask-image: radial-gradient(ellipse 150% 150% at center, #fff 62%, #000 100%); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.cs-phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-phone-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 17, 48, 0.12), transparent 30%, transparent 60%, rgba(12, 17, 48, 0.62)); }
.cs-phone-play { display: none; }
.cs-phone-play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; color: #11173b; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.5); }
.cs-phone-play svg { width: 22px; height: 22px; margin-left: 3px; }
.cs-phone-handle { position: absolute; left: 18px; bottom: 18px; z-index: 2; color: #fff; font-size: 0.85rem; }

/* floating glass stat card */
.cs-float-card {
  position: absolute; left: -42px; bottom: 46px; z-index: 4; width: 172px; padding: 15px 18px; border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.84));
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 36px 64px -28px rgba(3, 8, 30, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.cs-float-lbl { font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase; color: #8a90a8; }
.cs-float-row { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; }
.cs-float-num { font-size: 1.7rem; line-height: 1; color: #11173b; letter-spacing: -0.02em; }
.cs-float-pill { font-size: 0.72rem; color: #2f7d3a; background: #dcecc6; padding: 3px 9px; border-radius: 999px; }
.cs-float-spark { width: 100%; height: 26px; margin-top: 8px; display: block; }

/* hero entrance */
@keyframes csHeroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes csVisIn { from { opacity: 0; transform: translateX(44px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
.cs-hero-text > * { animation: csHeroUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.cs-hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.cs-hero-text > *:nth-child(2) { animation-delay: 0.12s; }
.cs-hero-text > *:nth-child(3) { animation-delay: 0.19s; }
.cs-hero-text > *:nth-child(4) { animation-delay: 0.26s; }
.cs-hero-text > *:nth-child(5) { animation-delay: 0.33s; }
.cs-hero-text > *:nth-child(6) { animation-delay: 0.4s; }
.cs-hero-visual { animation: csVisIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
.cs-float-card { animation: csHeroUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.75s both; }

@media (max-width: 900px) {
  .cs-hero--split .cs-hero-inner { grid-template-columns: 1fr; }
  .cs-hero-visual { margin-top: 46px; justify-self: start; }
  .cs-float-card { left: auto; right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-hero-text > *, .cs-hero-visual, .cs-float-card { animation: none; }
}

/* ===== Rebuilt CS1/CS2 widgets (from scratch) ===== */
.ui-stat, .ui-prop, .ui-week, .ui-donut, .ui-area {
  width: 100%;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.87));
  -webkit-backdrop-filter: blur(22px) saturate(175%); backdrop-filter: blur(22px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 20px;
  box-shadow: 0 26px 54px -26px rgba(8, 14, 44, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* stat card (response time) */
.ui-stat { max-width: 320px; padding: 22px 24px 20px; align-self: stretch; display: flex; flex-direction: column; }
.ui-stat-top { display: flex; align-items: center; gap: 10px; }
.ui-stat-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(155deg, #e1e8fb, #c3d0f6); color: #2f44a8; box-shadow: inset 0 1px 1px rgba(255,255,255,0.7); }
.ui-stat-ic svg { width: 17px; height: 17px; }
.ui-stat-lbl { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: #8a90a8; }
.ui-stat-row { display: flex; align-items: baseline; gap: 11px; margin-top: 16px; }
.ui-stat-num { font-size: 2.6rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.ui-stat-num small { font-size: 1rem; color: #8a8c96; margin-left: 4px; }
.ui-stat-bars { flex: 1 1 auto; min-height: 68px; margin-top: 20px; display: flex; align-items: flex-end; gap: 7px; }
.ui-stat-bars span { flex: 1; height: var(--h); min-height: 6px; border-radius: 6px 6px 4px 4px; background: linear-gradient(180deg, #6b7cf0 0%, #aab6ee 100%); }
.ui-stat-bars-x { display: flex; justify-content: space-between; margin-top: 9px; font-size: 0.66rem; color: #9aa0b4; }
.ui-stat-foot { margin-top: 12px; font-size: 0.76rem; color: #9aa0b4; }

/* property listing card */
.ui-prop { max-width: 300px; overflow: hidden; }
.ui-prop-media { position: relative; height: 152px; }
.ui-prop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-prop-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 40, 0.28) 0%, transparent 38%, transparent 64%, rgba(8, 12, 40, 0.42) 100%); }
.ui-prop-badge { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: rgba(123, 108, 224, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; }
.ui-prop-price { position: absolute; bottom: 11px; right: 11px; z-index: 1; font-size: 0.84rem; color: #fff; background: rgba(8, 12, 40, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 999px; }
.ui-prop-body { padding: 14px 16px 16px; }
.ui-prop-body h4 { font-weight: 400; font-size: 1.02rem; line-height: 1.25; color: var(--ink); }
.ui-prop-loc { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 0.78rem; color: #8a8c96; }
.ui-prop-loc svg { width: 13px; height: 13px; }
.ui-prop-desc { margin-top: 11px; font-size: 0.8rem; line-height: 1.5; color: #5b6079; }
.ui-prop-specs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.ui-prop-specs span { display: flex; align-items: center; gap: 5px; font-size: 0.74rem; color: #3c4664; background: rgba(19, 31, 84, 0.05); padding: 5px 9px; border-radius: 9px; }
.ui-prop-specs svg { width: 13px; height: 13px; opacity: 0.65; }

/* week calendar */
.ui-week { width: 100%; max-width: 360px; padding: 12px 22px 16px; align-self: stretch; display: flex; flex-direction: column; }
.ui-week-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ui-week-head b { font-weight: 400; font-size: 1.08rem; color: var(--ink); }
.ui-week-head span { font-size: 0.8rem; color: #8a90a8; }
.ui-week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: 1 1 auto; align-content: stretch; }
.ui-week-day { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
.ui-week-day .dl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.02em; color: #9a9ba3; text-align: center; }
.ui-week-col { min-height: 88px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 11px; background: rgba(19, 31, 84, 0.04); }
.ui-week-day.is-today .ui-week-col { background: rgba(123, 108, 224, 0.12); box-shadow: inset 0 0 0 1.5px rgba(123, 108, 224, 0.4); }
.ui-week-day.is-today .dl { color: #6b5fd0; font-weight: 500; }
.ui-week-post { height: 16px; border-radius: 5px; background: var(--c, #8b7cf0); }
.ui-week-legend { display: flex; gap: 16px; margin-top: 19px; }
.ui-week-legend span { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: #5b6079; }
.ui-week-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }

/* donut reach chart */
.ui-donut { max-width: 300px; padding: 22px 22px 24px; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.ui-donut-lbl { font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: #8a90a8; }
.ui-donut-chart { position: relative; width: 140px; height: 140px; margin: 4px auto; flex: 0 0 auto; }
.ui-donut-chart svg { width: 100%; height: 100%; }
.ui-donut-seg { transition: stroke-dashoffset 1s cubic-bezier(0.3, 0.9, 0.3, 1); }
.ui-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ui-donut-center b { font-weight: 400; font-size: 1.55rem; color: var(--ink); line-height: 1; }
.ui-donut-center span { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9a9ba3; margin-top: 4px; }
.ui-donut-legend { display: flex; flex-direction: column; gap: 13px; list-style: none; margin: 0; padding: 0; }
.ui-donut-legend li { display: flex; flex-direction: column; gap: 7px; }
.ui-dl-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #3c4664; }
.ui-dl-row i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: 0 0 auto; }
.ui-dl-row b { margin-left: auto; font-weight: 400; color: var(--ink); }
.ui-dl-track { height: 5px; border-radius: 999px; background: rgba(19, 31, 84, 0.07); overflow: hidden; }
.ui-dl-fill { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 999px; }

/* engagement area chart */
.ui-area { align-self: stretch; display: flex; flex-direction: column; padding: 24px 28px 20px; }
.ui-area-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.ui-area-head > span { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: #8a90a8; }
.ui-area-chart { flex: 1 1 auto; width: 100%; min-height: 0; display: block; margin: 6px 0; }
.ui-area-x { display: flex; justify-content: space-between; margin-top: 8px; }
.ui-area-x span { font-size: 0.66rem; color: #9a9ba3; }
.ui-stat-chart polyline, .ui-area-chart polyline { transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* ===== Footer logo — full-bleed wordmark flush to the bottom edge ===== */
.footer { overflow: hidden; }
.footer-logo {
  display: block;
  width: 100vw;                    /* spans the full browser width, scales with it */
  margin: 7vh 0 -7vh;             /* space above; -7vh absorbs the footer's bottom padding */
  margin-left: calc(50% - 50vw);   /* break out of the footer's side padding to the screen edges */
  aspect-ratio: 1755 / 140;        /* the long wordmark, cropped tight so it reaches both edges */
  background: url("assets/starsolutions-long.svg") center / 100% auto no-repeat;
  pointer-events: none;
}
@media (max-width: 760px) {
  .footer-logo { margin-top: 5vh; }   /* a touch less space above on small screens */
}

/* ===== 3-up property cards + richer engagement chart ===== */
.ui-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; align-self: stretch; align-content: stretch; }
.ui-prop2 {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.87));
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 18px; overflow: hidden; padding: 9px;
  box-shadow: 0 16px 34px -20px rgba(8, 14, 44, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex; flex-direction: column;
}
.ui-prop2-img { position: relative; aspect-ratio: 7 / 5; border-radius: 12px; overflow: hidden; flex: 1 1 auto; }
.ui-prop2-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-prop2-ai { position: absolute; top: 8px; left: 8px; font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: rgba(123, 108, 224, 0.9); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); padding: 3px 8px; border-radius: 999px; }
.ui-prop2-body { padding: 11px 6px 4px; }
.ui-prop2-body h5 { font-weight: 400; font-size: 0.88rem; line-height: 1.25; color: var(--ink); }
.ui-prop2-spec { display: block; margin-top: 5px; font-size: 0.72rem; color: #8a8c96; }
.ui-prop2-price { display: block; margin-top: 8px; font-size: 0.86rem; color: var(--ink); }

.ui-area-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ui-area-lbl { font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: #8a90a8; }
.ui-area-num { display: flex; align-items: baseline; gap: 11px; margin-top: 7px; }
.ui-area-num b { font-weight: 400; font-size: 2rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.ui-area-stats { display: flex; gap: 26px; }
.ui-area-stats div { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.ui-area-stats span { font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; color: #9a9ba3; }
.ui-area-stats b { font-weight: 400; font-size: 1.1rem; color: var(--ink); }
.ui-area-legend { display: flex; gap: 18px; margin: 2px 0 6px; }
.ui-al { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; color: #6b7186; }
.ui-al i { width: 16px; height: 3px; border-radius: 2px; background: var(--c); display: inline-block; }
.ui-al--dash i { height: 0; background: none; border-top: 2px dashed var(--c); border-radius: 0; }
.ui-area-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(19, 31, 84, 0.08); }
.ui-kpi { display: flex; flex-direction: column; gap: 5px; }
.ui-kpi-lbl { font-size: 0.63rem; letter-spacing: 0.05em; text-transform: uppercase; color: #9a9ba3; }
.ui-kpi-val { display: flex; align-items: baseline; gap: 6px; }
.ui-kpi-val b { font-weight: 400; font-size: 1.2rem; color: var(--ink); line-height: 1; }
.ui-kpi-val em { font-style: normal; font-size: 0.66rem; color: #2f9e54; }
@media (max-width: 560px) { .ui-props { grid-template-columns: 1fr; } .ui-area-stats { gap: 18px; } }

/* ============================================================
   MOBILE MENU — hidden on desktop, shown <=760px
   ============================================================ */
.m-menu,
.m-drawer,
.m-drawer-backdrop,
.m-safe { display: none; }

/* iOS bottom safe-area (home-indicator zone) — painted to match each page's footer
   so the strip under the footer (and Safari's sampled toolbar tint) is the right
   colour. Positive z-index so it paints OVER the body background; height is exactly
   the safe-area inset, which is a reserved zone (no real content), so it covers
   nothing. 0 height (invisible) on devices without a safe area. */
.m-safe.m-safe-bottom {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: env(safe-area-inset-bottom, 0px);
  background: #11173b;
  z-index: 900;
  pointer-events: none;
}
.ref-dark .m-safe.m-safe-bottom,
.csx-body .m-safe.m-safe-bottom { background: #fff; }

/* ============================================================
   MOBILE OPTIMISATION (<=760px) — same design, fit to the phone
   ============================================================ */
@media (max-width: 760px) {
  /* --- Feature cards: icon on top, text below — no more overlap --- */
  .features-vmarquee .card {
    justify-content: flex-start;
    min-height: 306px;
    padding: 140px 16px 24px;       /* top band reserved for the icon */
    background-size: 112px auto;
    background-position: center 26px;
    margin-bottom: 14px;
  }
  .features-vmarquee .card-title { margin-bottom: 9px; }

  /* --- Trust: keep the pastel stat tiles, lay them out as a clean 2x2 grid --- */
  .trust-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }
  .trust-col {
    height: auto;
    min-height: 200px;
    padding: 22px 18px 24px;
  }
  .tv-num { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .tv-unit { font-size: 1.15rem; }
  .trust-desc { font-size: 0.9rem; max-width: none; }

  /* --- Testimonials: title above the arrows, both kept inside the viewport --- */
  .testi-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 22px;
    gap: 20px;
  }
  /* Stack the card: quote ABOVE, photo BELOW. Fill more of the screen and widen the
     gap so the neighbouring card can't peek past the right edge. */
  .testi-track { gap: 36px; }
  .testi-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 12px;
    flex-basis: 90vw;
  }
  .testi-body {
    order: 1;   /* text on top */
    justify-content: flex-start;
    padding: 26px 24px 30px;
  }
  .testi-photo {
    order: 2;   /* image below */
    align-self: stretch;
    height: 340px;   /* taller so the person shows down to the chest, not cut mid-torso */
  }
  /* per-photo --mpos frames each head (full head, small headroom); larger % crops
     more space above the head, smaller % keeps a high-sitting head from clipping */
  .testi-photo img { object-position: var(--mpos, center 17%); }
  .testi-quote { font-size: 1.3rem; line-height: 1.3; }
  .testi-cite { align-self: flex-start; padding-top: 18px; margin-top: 16px; }
  .testi-deco { display: none; }

  /* --- Footer CTA: stack heading + full-width button so the call button can't
         clip out of the dark panel --- */
  .footer-cta { padding: 28px 0 34px; }
  .footer-cta-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px;
    gap: 26px;
  }
  .footer-cta-title { max-width: none; }
  .footer-cta-btn { justify-content: space-between; height: 60px; padding: 6px 6px 6px 22px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; padding-left: 22px; padding-right: 22px; }

  /* ---------- Mobile header: logo left, "Menü" right ---------- */
  .navbar { justify-content: space-between; align-items: center; flex-wrap: nowrap; }
  .navbar .nav-links { display: none; }
  .site-nav-cta { display: none; }

  .m-menu {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 0;
  }
  .navbar .m-menu { color: #fff; }
  .site-nav .m-menu { color: #131f54; justify-self: end; }
  .cs-nav .m-menu { color: rgba(255, 255, 255, 0.92); }
  .cs-nav.is-scrolled .m-menu { color: #131f54; }
  .m-menu svg { display: none; }   /* text-only "Menü", no burger */

  /* ---------- Frosted slide-in drawer ---------- */
  /* No `display` here: when closed it falls back to the global `display: none` so
     the white panel is REMOVED from the render tree. iOS 26 Safari tints its
     toolbar by sampling fixed elements' background-color even at opacity:0, so a
     merely-faded white overlay keeps the toolbar stuck white. JS sets
     `display:block` on open and back to none after the fade. */
  .m-drawer-backdrop {
    position: fixed;
    inset: 0;
    top: calc(-1 * env(safe-area-inset-top, 0px));
    bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
    z-index: 1500;
    /* Solid opaque white: iOS only tints its toolbar from a solid bg, sampled the
       instant the element enters/leaves the render tree (it can't fade — the tint is
       binary chrome). So the menu snaps, keeping the bars perfectly in sync. */
    background: #ffffff;
    opacity: 0;
    pointer-events: none;   /* CRITICAL: don't intercept taps while the menu is closed */
    touch-action: none;     /* swallow scroll gestures without locking the body */
  }
  .m-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* FULL-SCREEN white menu. The body scroll is NOT locked with overflow:hidden
     (that makes iOS expand its bottom toolbar to a solid bar that never reverts);
     instead the drawer is its own scroll container with overscroll-behavior:contain
     so the background can't scroll while the menu is open. */
  /* Same as the backdrop: no `display` here so the closed state is the global
     `display: none` (out of the render tree, so Safari can't sample its white).
     JS sets `display:flex` on open and back to none after the fade-out. */
  .m-drawer {
    flex-direction: column;
    position: fixed;
    top: calc(-1 * env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 1600;
    height: calc(100% + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
    width: 100%;
    padding: calc(env(safe-area-inset-top, 0px) + 20px) 32px calc(env(safe-area-inset-bottom, 0px) + 28px);
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .m-drawer.is-open { opacity: 1; pointer-events: auto; }

  /* Smooth staggered entrance for the menu CONTENT (the white panel itself stays
     instant so iOS 26 Safari's toolbar tint stays in sync). Uses CSS animation —
     plays on render, so it works even though display+is-open flip in one frame. */
  @keyframes mDrawerItemIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  .m-drawer.is-open .m-drawer-close,
  .m-drawer.is-open .m-drawer-links a,
  .m-drawer.is-open .m-drawer-cta {
    animation: mDrawerItemIn 0.46s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .m-drawer.is-open .m-drawer-close { animation-delay: 0.02s; }
  .m-drawer.is-open .m-drawer-cta { animation-delay: 0.08s; }
  .m-drawer.is-open .m-drawer-links a:nth-child(1) { animation-delay: 0.14s; }
  .m-drawer.is-open .m-drawer-links a:nth-child(2) { animation-delay: 0.19s; }
  .m-drawer.is-open .m-drawer-links a:nth-child(3) { animation-delay: 0.24s; }
  .m-drawer.is-open .m-drawer-links a:nth-child(4) { animation-delay: 0.29s; }
  .m-drawer.is-open .m-drawer-links a:nth-child(5) { animation-delay: 0.34s; }

  .m-drawer-close {
    order: 1;
    align-self: flex-end;
    background: none;
    border: 0;
    color: #183e8c;
    cursor: pointer;
    padding: 4px;
    margin-bottom: 8px;
  }
  .m-drawer-links {
    order: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    gap: 4px;
    padding-top: 4vh;
  }
  .m-drawer-links a {
    color: #183e8c;
    text-decoration: none;
    font-size: 1.95rem;
    letter-spacing: -0.01em;
    padding: 15px 0;
    border-bottom: 1px solid rgba(24, 62, 140, 0.14);
  }
  .m-drawer-cta {
    order: 2;
    margin: 14px 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    /* brand blue, filled — primary action on the white panel */
    background: #183e8c;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.84rem;
    padding: 16px 20px;
    border-radius: 10px;
  }
}
