/* Public homepage only. Editorial spacing and sculptural type inspired by
   the supplied Mellem reference, using Clustoria's own palette and assets.
   landing.css retains the interactive product-demo and shared base styles. */
:root {
  --paper: #fbfbfd;
  --paper-2: #f1ebfc;
  --ink: #291747;
  --ink-soft: #5a4d70;
  --line: #d9cde9;
  --h-bg: #291747;
  --h-line: rgba(241, 235, 252, .24);
}
html { scroll-padding-top: 1.5rem; }
.wrap { max-width: 92rem; padding-inline: clamp(1.25rem, 4vw, 4rem); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.055em; }
h2 { font-size: clamp(2.5rem, 5.5vw, 5.4rem); line-height: 1.04; }
.lede { font-size: clamp(1rem, 1.4vw, 1.2rem); }
.skip-link {
  position: fixed; top: .5rem; left: 1rem; z-index: 100;
  padding: .75rem 1rem; background: var(--ink); color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.site-header { position: relative; top: auto; background: var(--paper-2); border-bottom: 0; }
.site-header .wrap { min-height: 5.5rem; padding-block: 1rem; }
.site-header::before, .site-header::after { display: none; }
.logo { font-size: 1.35rem; letter-spacing: -.055em; }
.site-nav a, .header-cta .login { color: var(--ink); font-size: .82rem; }
.site-nav a { font-size: 1.1rem; border: 1px solid currentColor; border-radius: 999px; padding: .65rem 1rem; transition: background-color 250ms, color 250ms; }
.site-nav a:hover { background: var(--ink); color: var(--paper-2); }
.site-nav { gap: .45rem; }
.btn, .header-cta .btn { font-weight: 500; padding: .85rem 1.3rem; }
.btn-primary, .btn-primary:hover {
  background: var(--brand); color: white; box-shadow: none;
}
.btn-primary::after { content: "↗"; margin-left: .9rem; font-size: 1.15em; }
.btn-ghost { background: transparent; border-color: currentColor; box-shadow: none; }
.btn:hover { transform: translateY(-2px); }
.menu-toggle { display: none; }
.hero { margin: 0; padding: 0 0 5rem; background: var(--paper-2); }
.brand-stage {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  justify-content: space-between; min-height: min(76vh, 54rem);
  padding-top: 1.5rem; padding-bottom: 3rem;
}
.brand-panels {
  position: absolute; z-index: -1; inset: 4.5rem 4% 2rem 37%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.65rem, 1.8vw, 1.8rem);
  pointer-events: none; overflow: hidden;
}
.brand-panels i { display: block; background: #dfd2f3; transform-origin: top; }
.brand-panels i:nth-child(1) { height: 34%; background: #e5dcf3; }
.brand-panels i:nth-child(2) { height: 88%; background: #d6c3ef; }
.brand-panels i:nth-child(3) { height: 100%; background: #cdb8ea; }
.brand-panels i:nth-child(4) { height: 43%; background: #e3d8f3; }
.brand-meta, .brand-baseline, .brand-word { position: relative; }
.brand-meta, .brand-baseline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: .8rem; color: var(--ink-soft);
}
.brand-word {
  display: flex; align-items: center; justify-content: flex-start; gap: .12em;
  font: 650 clamp(3rem, 15vw, 14rem)/1.12 var(--display);
  letter-spacing: -.085em; padding: .22em 0 .25em;
  color: var(--ink); white-space: nowrap;
}
.brand-mark { width: 1em; height: 1em; flex: none; object-fit: contain; }
.brand-name { display: inline-flex; padding: .1em .08em .12em 0; margin-block: -.1em -.12em; overflow: hidden; }
.brand-name > span { display: inline-block; }
.brand-baseline { align-items: flex-end; justify-content: space-between; padding-bottom: 0; gap: 2rem; }
.brand-slogan { font: 500 clamp(1.5rem, 3vw, 3rem)/1.12 var(--display); letter-spacing: -.045em; color: var(--ink); }
.brand-baseline > span { max-width: 16ch; font: 500 clamp(1.1rem, 2vw, 1.8rem)/1.2 var(--display); letter-spacing: -.035em; color: var(--ink); }
.brand-baseline a { border-bottom: 1px solid var(--ink); padding-bottom: .6rem; color: var(--ink); }
.brand-baseline a { text-decoration: none; display: flex; gap: 2rem; }
.brand-baseline a span { font-size: 1.3rem; }
.hero-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-head { padding: 0; max-width: none; }
.service-section { padding-block: clamp(4rem, 8vw, 8rem); background: var(--paper); }
.service-section:nth-child(even) { background: var(--paper-2); }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.service-copy h2 { margin-block: 1.5rem; font-size: clamp(2.4rem, 4.5vw, 4.6rem); overflow-wrap: break-word; }
.service-list { list-style: none; margin: 1.8rem 0; }
.service-list li { border-top: 1px solid var(--line); padding: .9rem 0; color: var(--ink-soft); font-size: .95rem; }
.service-visual { min-width: 0; padding: clamp(1.4rem, 3vw, 3rem); background: #e4d8f8; border-radius: 5rem 5rem 1.5rem 1.5rem; padding-top: 4rem; }
.example-label { font-size: .8rem; line-height: 1.5; color: var(--ink-soft); margin-bottom: 2rem; }
.example-note { font-size: .8rem; color: var(--ink-soft); margin-top: 2rem; }
.topic-example-row { display: flex; align-items: baseline; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid #c3addf; }
.topic-example-row strong { font: 500 clamp(1.25rem, 2vw, 2rem)/1.2 var(--display); letter-spacing: -.04em; }
.topic-example-row > span { font-size: .75rem; color: var(--ink-soft); }
.topic-example-row > span:last-child { margin-left: auto; }
.branch-example { border-radius: 1.5rem 5rem 1.5rem 1.5rem; background: var(--ink); color: white; }
.branch-example .example-label, .branch-example .example-note { color: #dfd1f5; }
.comparison-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 3.4rem; align-items: center; gap: .8rem; margin-block: 2rem; font-size: .85rem; }
.comparison-row strong { font-size: .85rem; text-align: right; }
.comparison-bar { height: .65rem; border-radius: 1rem; background: #514267; overflow: hidden; }
.comparison-bar i { display: block; width: var(--score); height: 100%; background: #c4a4f6; border-radius: inherit; }
.inbox-example { background: var(--paper-2); border-radius: 1.5rem; padding-top: 2rem; }
.inbox-example-row { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding-block: 1.5rem; }
.inbox-example-row strong { font-size: 1rem; }
.inbox-example-row p { font-size: .8rem; color: var(--ink-soft); margin-top: .35rem; }
.channel-symbol { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: none; background: #dfd1f5; color: var(--brand); }
@media (max-width: 800px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-copy h2 { max-width: 18ch; }
}
.kicker {
  font-size: .75rem; font-weight: 500; background: transparent;
  color: var(--ink); border: 1px solid currentColor; padding: .55rem .85rem;
}
.kicker::before { display: none; }
.hero-title { font-size: clamp(2.8rem, 4.7vw, 4.8rem); line-height: 1.02; font-weight: 500; letter-spacing: -.06em; }
.hero-title .grad { font-family: Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.065em; }
.hero-lede { font-size: 1rem; line-height: 1.7; max-width: 32rem; }
.hero-note { font-size: .75rem; line-height: 1.5; }
.demo-frame {
  min-width: 0; padding: clamp(1rem, 2vw, 2rem);
  background: #d9c8f4; border-radius: 10rem 10rem 1.5rem 1.5rem;
  padding-top: 4.5rem;
}
.demo-intro { display: flex; justify-content: space-between; gap: 1rem; padding: 0 1rem; font-size: .8rem; }
.demo-intro > span:last-child { font-size: 1.5rem; }
.demo { margin-top: 1.2rem; border-radius: 1rem; box-shadow: 0 14px 30px -24px #291747; }
.demo-top { background: var(--paper); padding: 1rem; }
.demo-dots, .demo-live { display: none; }
.demo-appname { font-size: .68rem; line-height: 1.4; }
.demo-screen { min-height: 27rem; padding: 1.1rem; }
.js .demo-view--stats { display: none; }
.js .demo[data-stage="5"] .demo-view--stats { display: block; }
.js .demo[data-stage="5"] .demo-view--msg { display: none; }
.mask-badge { line-height: 1.4; }
.demo-controls { gap: .6rem; }
.demo-rail .step .lbl { font-size: .63rem; }
.stats-grid { grid-template-columns: 1fr; gap: 1rem; }
.demo-footnote { margin: 1.25rem .3rem 0; font-size: .72rem; line-height: 1.5; text-align: center; }
.fakten { background: var(--brand); color: white; border: 0; }
.fakten span { color: white; }
.fakten .wrap { justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem; }
.fakten b { color: white; }
.fakten .dot { background: #d9c8f4; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.section-head { max-width: 60rem; margin-bottom: 3.5rem; }
.section-head h2 { max-width: 16ch; margin-top: 1.4rem; }
.section-head .lede { max-width: 38rem; margin-top: 1.5rem; }
.pillars { gap: 1.5rem; counter-reset: features; }
.pillar {
  position: relative; border: 0; border-top: 1px solid var(--line);
  padding: 2rem 0 0; border-radius: 0; background: transparent; box-shadow: none;
}
.pillar::after {
  counter-increment: features; content: "0" counter(features);
  position: absolute; top: 2rem; right: .5rem; font-size: .8rem; color: var(--ink-soft);
}
.pillar:hover { transform: none; box-shadow: none; }
.pillar-ico { width: 5rem; height: 6rem; border-radius: 3rem 3rem .8rem .8rem; margin-bottom: 2rem; background: #e4d8f8; }
.pillar:nth-child(2) .pillar-ico { background: var(--brand); color: white; border-radius: 50%; }
.pillar:nth-child(3) .pillar-ico { background: var(--ink); color: #e4d8f8; border-radius: .8rem 3rem 3rem .8rem; }
.pillar-ico svg { width: 30px; height: 30px; }
.pillar h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); font-weight: 500; max-width: 19ch; }
.pillar > p { margin-top: 1rem; }
.pillar ul { margin-top: 1.5rem; }
.reassure { background: var(--paper-2); border-radius: 3rem 3rem 0 0; }
.reassure > .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.reassure-grid { grid-template-columns: 1fr; gap: 1.6rem; }
.reassure-item { padding-top: 1.5rem; }
.reassure-ico { border: 0; border-radius: 50%; background: #dfd1f5; width: 2.8rem; height: 2.8rem; }
.reassure-item h3 { font-size: 1.3rem; font-weight: 500; }
.built > .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.built-row { padding-block: 1.5rem; }
.built-list { align-self: center; }
.privacy { border-radius: 3rem 3rem 0 0; }
.privacy .wrap { padding-block: clamp(4rem, 8vw, 8rem); }
.privacy .aura { display: none; }
.privacy h2 { max-width: 20ch; }
.privacy .kicker { background: transparent; color: #e4d8f8; }
.privacy .lede { max-width: 42rem; }
.flow { margin-top: 4rem; }
.flow-step { border-radius: 1.25rem; background: transparent; padding: 1.25rem; }
.flow-step::before { background: #dfd1f5; color: var(--ink); width: 2rem; height: 2rem; margin-bottom: 1rem; }
.flow-step b { font-size: 1.15rem; font-weight: 500; }
.docs { background: transparent; border-radius: 0; border-inline: 0; padding: 2rem 0; margin-top: 3rem; }
.docs h3 { font-size: 1.8rem; font-weight: 500; }
.privacy-item { background: transparent; border-radius: 1.25rem; }
.founder { margin-top: 3rem; }
.founder-quote { font: italic 1.4rem/1.5 Georgia, serif; }
.founder-avatar { background: var(--brand); box-shadow: none; }
.pricing { background: #e4d8f8; }
.pricing > .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; }
.price-grid { grid-template-columns: 1fr; max-width: none; gap: 0; }
.price-card { border: 0; border-radius: 1.75rem 1.75rem 0 0; padding: 2rem; }
.price-big b { font-size: 5rem; font-weight: 500; letter-spacing: -.07em; color: var(--brand); }
.price-incl { border: 0; border-radius: 0 0 1.75rem 1.75rem; padding: 0 2rem 2rem; }
.price-promo { border-radius: 0; padding: .75rem 0; background: transparent; border-block: 1px solid var(--line); }
.finale { padding-block: clamp(4rem, 9vw, 9rem); background: var(--paper-2); text-align: left; }
.finale h2 { font-size: clamp(3rem, 7vw, 7rem); max-width: 18ch; margin: 1rem 0 2rem; }
.finale .lede { margin: 0 !important; max-width: 37rem; }
.finale .hero-ctas { justify-content: flex-start; }
.finale .fineprint { max-width: 36rem; }
.site-footer { background: var(--ink); color: var(--paper-2); border: 0; overflow: hidden; padding-top: 2rem; }
.footer-word {
  padding-inline: 4vw; display: flex; justify-content: space-between; align-items: center;
  font: 600 17vw/1.2 var(--display); letter-spacing: -.085em; color: #d9c8f4;
}
.footer-word span { font: 400 .65em/1 var(--body); }
.site-footer .wrap { color: #dfd1f5; padding-block: 2rem; border-top: 1px solid var(--h-line); }
.site-footer a { color: #dfd1f5; }
.site-footer a:hover { color: white; }
@media (min-width: 1600px) {
  .brand-word { font-size: 14rem; }
}
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .header-cta .login { display: none; }
  .site-nav { gap: .35rem; }
  .site-nav a { font-size: 1rem; padding: .55rem .7rem; }
  .demo-frame { padding-inline: .8rem; }
  .demo-rail .step .lbl { font-size: .6rem; }
  .reassure > .wrap, .built > .wrap, .pricing > .wrap { gap: 2.5rem; }
}
@media (max-width: 800px) {
  .site-header .wrap { flex-wrap: wrap; gap: .75rem; min-height: 4.5rem; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { padding: .65rem .9rem; font-size: .75rem; }
  .menu-toggle { display: flex; gap: .6rem; align-items: center; order: 3; border: 0; background: transparent; color: var(--ink); font: 500 .85rem var(--body); min-height: 44px; cursor: pointer; }
  .site-nav { display: flex; flex-wrap: wrap; order: 4; flex-basis: 100%; gap: .25rem 1.5rem; padding-block: .5rem; border-top: 1px solid var(--line); }
  .site-nav a { padding: .7rem 1rem; font-size: 1.1rem; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .no-js .menu-toggle { display: none; }
  .brand-stage { padding-top: 1.5rem; padding-bottom: 2.5rem; min-height: 28rem; }
  .brand-panels { inset: 4rem 5% 5rem 32%; }
  .brand-word { font-size: 15vw; }
  .hero-layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero-title { font-size: clamp(3.2rem, 8vw, 5rem); }
  .hero-lede { max-width: 38rem; }
  .demo-frame { padding-inline: 1.5rem; }
  .demo-screen { min-height: 25rem; }
  .demo-rail .step .lbl { font-size: .7rem; }
  .demo-intro { padding-inline: .5rem; }
  .pillars { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillar h3 { max-width: none; }
  .pillar-ico { margin-bottom: 1.5rem; }
  .reassure > .wrap, .built > .wrap, .pricing > .wrap { grid-template-columns: 1fr; gap: .5rem; }
  .section-head { margin-bottom: 2.5rem; }
  .brand-meta, .brand-baseline { font-size: .7rem; }
  .privacy, .reassure { border-radius: 2rem 2rem 0 0; }
}
@media (max-width: 440px) {
  .brand-meta > span:last-child { display: none; }
  .brand-baseline a { gap: .5rem; }
  .brand-baseline { align-items: flex-start; }
  .brand-baseline > span { max-width: 12rem; }
  .logo { font-size: 1.1rem; gap: .4rem; }
  .logo-mark { width: 1.5rem; height: 1.5rem; }
  .menu-toggle { font-size: .75rem; gap: .2rem; }
  .header-cta .btn::after { display: none; }
  .demo-frame { padding-inline: .75rem; border-radius: 5rem 5rem 1rem 1rem; padding-top: 3rem; }
  .demo-rail .step .lbl { font-size: .52rem; }
  .demo-rail li.is-active .step .lbl { font-size: .52rem; }
  .demo-controls { padding-inline: .65rem; gap: .4rem; }
  .demo-screen { min-height: 30rem; }
  .hero-ctas .btn { font-size: .85rem; }
  .price-card { padding: 1.5rem; }
  .price-incl { padding: 0 1.5rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Motion: einmaliger Einstieg, gestaffelte Scroll-Reveals (landing.js),
   danach ausschliesslich nutzergesteuerte Bewegung. Kein Scroll-Hijacking. */
@keyframes brand-letter-in {
  from { opacity: 0; transform: translateY(115%) rotate(7deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes brand-mark-in {
  from { opacity: 0; transform: translateY(25%) rotate(-16deg) scale(.82); }
  to { opacity: 1; transform: none; }
}
@keyframes brand-line-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes brand-drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(38px) scale(.96); }
}
@keyframes footer-turn {
  from { transform: rotate(-25deg); }
  to { transform: rotate(25deg); }
}
.js.motion-ok .brand-name > span {
  animation: brand-letter-in 1150ms var(--ease-expo) both;
  animation-delay: calc(100ms + var(--letter, 0) * 55ms);
}
.brand-name > span:nth-child(2) { --letter: 1; }
.brand-name > span:nth-child(3) { --letter: 2; }
.brand-name > span:nth-child(4) { --letter: 3; }
.brand-name > span:nth-child(5) { --letter: 4; }
.brand-name > span:nth-child(6) { --letter: 5; }
.brand-name > span:nth-child(7) { --letter: 6; }
.brand-name > span:nth-child(8) { --letter: 7; }
.brand-name > span:nth-child(9) { --letter: 8; }
.js.motion-ok .brand-mark { animation: brand-mark-in 1300ms var(--ease-expo) both; }
.js.motion-ok .brand-meta,
.js.motion-ok .brand-baseline { animation: brand-line-in 1000ms var(--ease-expo) 400ms both; }
.js.motion-ok .site-nav.is-open { animation: brand-line-in 350ms var(--ease-expo) both; }
.site-nav a { position: relative; }
.site-nav a::after {
  content: none; position: absolute; left: 0; right: 0; bottom: -.45rem;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease-expo);
}
.site-nav a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.btn-primary::after, .brand-baseline a span {
  transition: transform 350ms var(--ease-expo);
}
.btn-primary:is(:hover, :focus-visible)::after { transform: translate(3px, -3px); }
.brand-baseline a:is(:hover, :focus-visible) span { transform: translateY(4px); }
.menu-toggle span { transition: transform 300ms var(--ease-expo); }
.menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pillar-ico { transition: transform 650ms var(--ease-expo), border-radius 650ms var(--ease-expo); }
  .pillar:hover .pillar-ico { transform: translateY(-6px) rotate(-6deg); border-radius: 50%; }
  .logo-mark { transition: transform 500ms var(--ease-expo); }
  .logo:hover .logo-mark { transform: rotate(-9deg) scale(1.08); }
}
/* Native Scroll-Timelines: kein dauernder JS-Loop, statischer Fallback. */
@supports (animation-timeline: scroll()) {
  @media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
    .js.motion-ok .brand-word {
      transform-origin: left center;
      animation: brand-drift linear both;
      animation-timeline: scroll();
      animation-range: 0px 650px;
    }
    .js.motion-ok .footer-word > span {
      animation: footer-turn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 100%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-name > span, .brand-mark, .brand-meta, .brand-baseline,
  .brand-word, .footer-word > span, .site-nav.is-open {
    animation: none !important; transform: none; opacity: 1;
  }
  .btn, .btn-primary::after, .brand-baseline a span, .pillar-ico,
  .logo-mark, .menu-toggle span { transition: none; }
}
@keyframes panels-in {
  from { transform: scaleY(.12); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
.js.motion-ok .brand-panels i { animation: panels-in 1600ms var(--ease-expo) both; }
.js.motion-ok .brand-panels i:nth-child(2) { animation-delay: 100ms; }
.js.motion-ok .brand-panels i:nth-child(3) { animation-delay: 180ms; }
.js.motion-ok .brand-panels i:nth-child(4) { animation-delay: 260ms; }
@media (max-width: 440px) {
  .brand-stage { min-height: 24rem; }
  .brand-baseline > span { max-width: 12rem; }
}
