/* ==========================================================================
   CLARISEO LANDING PAGE — Premium Design System
   ========================================================================== */


/* --- ICONS --- */
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-filled { fill: currentColor; stroke: none; }

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.04) 0.8px, transparent 0),
    radial-gradient(ellipse 1400px 700px at 8% -15%, rgba(15, 76, 129, 0.12), transparent 55%),
    radial-gradient(ellipse 1000px 650px at 92% -5%, rgba(15, 118, 110, 0.08), transparent 50%),
    radial-gradient(ellipse 600px 400px at 50% 35%, rgba(15, 76, 129, 0.04), transparent 70%),
    linear-gradient(180deg, #f8fbff 0%, #f0f5fa 40%, #eaf0f7 70%, #e4ecf4 100%);
  background-size: 24px 24px, auto, auto, auto, auto;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.22rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-accent);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

/* ---------- Shared elements ---------- */

.eyebrow {
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-copy {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.section-copy p:last-child {
  color: var(--color-muted);
}

.section-copy-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */

/* Buttons come from tokens.css; only the shared focus ring stays here
   because it also styles .url-input. */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.url-input:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.check-mark {
  color: var(--color-success);
  font-weight: 700;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 3rem var(--spacing-container) 3rem;
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1.1fr);
    padding: 3.5rem var(--spacing-container) 3.6rem;
  }
}

/* Decorative gradient orb behind hero content */
.hero-orb {
  position: absolute;
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(15, 76, 129, 0.07) 0%,
    transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.05); }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 64ch;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: tagline-pulse 4s ease-in-out infinite alternate;
}

@keyframes tagline-pulse {
  from { background: rgba(226, 240, 251, 0.7); }
  to { background: rgba(226, 240, 251, 1); }
}

.lead {
  max-width: 58ch;
  font-size: 1.18rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: var(--color-muted);
}

.hero-usps {
  display: grid;
  gap: 0.8rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.hero-usps li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 2rem;
}

.hero-actions > .btn {
  flex: 1;
}

/* ---------- Centered hero variant (brand wordmark + slogan) ---------- */
.hero--centered {
  position: relative;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 1.5rem;
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  overflow: hidden;
}

@media (min-width: 1000px) {
  .hero--centered {
    grid-template-columns: 1fr;
    min-height: min(62vh, 560px);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Atmosphere: soft dual-tone central glow */
.hero--centered .hero-orb {
  left: 50%;
  top: 44%;
  margin: -280px 0 0 -280px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle,
    rgba(15, 76, 129, 0.10) 0%,
    rgba(15, 118, 110, 0.05) 45%,
    transparent 70%);
}

/* "Knowledge graph" — connected nodes/links (how AI understands your site) */
.hero-graph {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(1240px, 132%);
  aspect-ratio: 1200 / 720;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  -webkit-mask: radial-gradient(ellipse 58% 62% at center, #000 28%, transparent 76%);
          mask: radial-gradient(ellipse 58% 62% at center, #000 28%, transparent 76%);
}

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

.hero-graph .edges {
  stroke: var(--color-accent);
  stroke-width: 1.1;
  opacity: 0.42;
}

.hero-graph .nodes { fill: var(--color-accent); }
.hero-graph .node--teal { fill: var(--color-success); }
.hero-graph .node--pulse { animation: hero-node-pulse 4.5s ease-in-out infinite; }

@keyframes hero-node-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-graph,
  .hero-graph .node--pulse { animation: none; }
}

/* Boost the network on small screens (it scales down a lot otherwise) */
@media (max-width: 700px) {
  .hero-graph {
    width: 190%;
    opacity: 0.82;
    -webkit-mask: radial-gradient(ellipse 78% 72% at center, #000 40%, transparent 88%);
            mask: radial-gradient(ellipse 78% 72% at center, #000 40%, transparent 88%);
  }
  .hero-graph .edges { opacity: 0.52; stroke-width: 1.4; }
}

/* Clarity pool — keeps the wordmark crisp above the rings */
.hero--centered::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle,
    rgba(248, 251, 255, 0.9) 0%,
    rgba(248, 251, 255, 0.45) 34%,
    transparent 62%);
}

.hero--centered .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-brand {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-accent);
}

.hero--centered h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  color: var(--color-ink);
}

.hero--centered .hero-subline {
  margin: 0.7rem 0 0;
  max-width: 46ch;
  font-size: 1.12rem;
  color: var(--color-muted);
}

.hero--centered .hero-actions {
  justify-content: center;
  margin-top: 2.2rem;
}

.hero--centered .hero-actions > .btn {
  flex: 0 1 auto;
}

/* ---------- Hero URL form (primary CTA) ---------- */

.hero-form {
  width: 100%;
  max-width: 560px;
  margin-top: 2.2rem;
}

.hero-form-row {
  display: flex;
  gap: 0.75rem;
}

.hero-form-row .input-wrapper {
  flex: 1;
}

.hero-form-row .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-form .form-error {
  margin: 0.5rem 0 0;
  text-align: left;
}

.hero--centered .hero-actions--secondary {
  margin-top: 1.1rem;
}

@media (max-width: 600px) {
  .hero-form-row {
    flex-direction: column;
  }
}

/* ---------- Input Card (Hero CTA) ---------- */

.input-card {
  position: relative;
  z-index: 1;
  padding: 2.2rem;
  border: 1px solid transparent;
  border-radius: calc(var(--border-radius) + 4px);
  background:
    linear-gradient(var(--color-surface-soft), var(--color-surface-soft)) padding-box,
    var(--gradient-border) border-box;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow var(--duration-normal) var(--ease-out-quart),
              transform var(--duration-normal) var(--ease-out-quart);
}

@media (hover: hover) {
  .input-card:hover {
    box-shadow: var(--shadow-card),
                0 0 80px -20px rgba(15, 76, 129, 0.3);
    transform: translateY(-2px);
  }
}

.input-card:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-title {
  margin-bottom: 0.65rem;
  font-size: 1.75rem;
}

.card-subtitle {
  color: var(--color-muted);
}

.price-panel {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 76, 129, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(226, 240, 251, 0.7), rgba(255, 255, 255, 0.9));
}

.price-label {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.price-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.price-note {
  margin-top: 0.55rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ---------- Form ---------- */

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-weight: 600;
}

.url-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.45rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #f8fafc;
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-normal) var(--ease-out-quart),
              background-color var(--duration-fast) ease;
}

.url-input:focus {
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.08);
}

.url-input.is-invalid {
  border-color: #d25b46;
  background: #fff7f5;
}

.form-error {
  min-height: 1.4em;
  margin-bottom: 1rem;
  color: #c2410c;
  font-size: 0.92rem;
}

/* ---------- Flow List ---------- */

.flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  position: relative;
  min-height: 56px;
  padding: 0.85rem 0.85rem 0.85rem 3rem;
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color var(--duration-fast),
              box-shadow var(--duration-fast);
}

@media (hover: hover) {
  .flow-list li:hover {
    border-color: rgba(15, 76, 129, 0.2);
    box-shadow: var(--shadow-xs);
  }
}

.flow-list li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 0.9rem;
  top: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 700;
}

@media (max-width: 520px) {
  .flow-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Trust Strip ---------- */

.trust-strip {
  padding-bottom: 4.3rem;
}

.trust-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.trust-card,
.trust-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 140px;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 16px;
  background: var(--gradient-surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-fast);
}

@media (hover: hover) {
  .trust-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 76, 129, 0.18);
  }
}

.trust-card:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.trust-card span {
  color: var(--color-muted);
  font-size: 0.93rem;
}

.trust-link {
  color: var(--color-accent);
  font-weight: 700;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(226, 240, 251, 0.75), rgba(255, 255, 255, 0.92));
}

.trust-link:hover {
  color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 76, 129, 0.22);
}

.trust-link::after {
  content: '\2192';
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.trust-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Proof / Sample Report Section ---------- */

.proof-section,
.faq-section,
.footer-cta-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.proof-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 980px) {
  .proof-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }
}

.sample-preview {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: calc(var(--border-radius) + 6px);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-slow) var(--ease-out-expo),
              box-shadow var(--duration-slow) var(--ease-out-expo);
}

@media (hover: hover) {
  .sample-preview:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--shadow-lg),
                0 0 60px -15px rgba(15, 76, 129, 0.2);
  }

  .sample-preview:hover img {
    transform: scale(1.02);
  }

  .sample-preview:hover .sample-preview-caption {
    padding-left: 1.4rem;
  }
}

.sample-preview:active {
  transform: scale(0.98);
  transition-duration: 0.08s;
}

.sample-preview img {
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease-out-expo);
}

.sample-preview-caption {
  display: block;
  padding: 1rem 1.15rem 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  border-top: 1px solid rgba(15, 76, 129, 0.1);
  transition: padding-left var(--duration-normal) var(--ease-out-expo);
}

.deliverable-grid {
  display: grid;
  gap: 1rem;
}

.trust-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.deliverable-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 16px;
  background: var(--gradient-surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-fast);
}

@media (hover: hover) {
  .deliverable-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 76, 129, 0.16);
  }
}

.deliverable-card:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.deliverable-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

/* ---------- FAQ Section ---------- */

.faq-section {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.82) 30%,
    rgba(255, 255, 255, 0.82) 70%,
    rgba(255, 255, 255, 0.4) 100%);
}

.faq-container {
  max-width: 820px;
}

.faq-section details {
  padding: 1.45rem 0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.faq-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  transition: color var(--duration-fast);
}

.faq-section summary:hover {
  color: var(--color-accent);
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.06);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              background var(--duration-fast);
}

.faq-section summary:hover::after {
  background: rgba(15, 76, 129, 0.1);
}

.faq-section details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

.faq-section details p {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ---------- Footer CTA ---------- */

.footer-cta-section {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.footer-cta-card {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 2.2rem;
  border: 1px solid transparent;
  border-radius: calc(var(--border-radius) + 6px);
  background:
    linear-gradient(135deg,
      rgba(226, 240, 251, 0.6) 0%,
      rgba(255, 255, 255, 0.92) 50%,
      rgba(226, 240, 251, 0.6) 100%) padding-box,
    var(--gradient-border) border-box;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Shimmer sweep animation — paused until card is in viewport (JS toggles .is-in-view) */
.footer-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  animation: shimmer 6s ease-in-out infinite;
  animation-play-state: paused;
  pointer-events: none;
}

.footer-cta-card.is-in-view::before {
  animation-play-state: running;
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.footer-cta-card h2 {
  margin-bottom: 0.25rem;
}

.footer-cta-card > p {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.footer-cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
}

.footer-cta-form .input-wrapper {
  flex: 1;
}

.footer-cta-form .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .footer-cta-form {
    flex-direction: column;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(212, 221, 232, 0.9);
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand-icon {
  color: var(--color-ink);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.footer-col a {
  position: relative;
  width: fit-content;
}

.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out-expo);
}

.footer-col a:hover::after {
  width: 100%;
}

@media (max-width: 599px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------- Hero Visual (workflow illustration) ---------- */

.hero-visual {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--border-radius) + 6px);
  overflow: hidden;
  border: 1px solid rgba(15, 76, 129, 0.12);
  background: linear-gradient(180deg, #fbfdff 0%, #edf4fb 100%);
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-slow) var(--ease-out-expo),
              box-shadow var(--duration-slow) var(--ease-out-expo);
}

.hero-visual > a {
  display: block;
}

@media (hover: hover) {
  .hero-visual:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--shadow-lg),
                0 0 60px -15px rgba(15, 76, 129, 0.2);
  }

  .hero-visual:hover img {
    transform: scale(1.02);
  }
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}

@media (max-width: 767px) {
  .hero-visual {
    display: none;
  }
}

/* ---------- Trust / Social Proof ---------- */

.trust-section {
  padding-bottom: 4.3rem;
  text-align: center;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.logo-placeholder {
  width: 120px;
  height: 40px;
  border-radius: 8px;
  background: rgba(15, 76, 129, 0.06);
  border: 1px dashed rgba(15, 76, 129, 0.12);
}

.trust-text {
  max-width: 640px;
  margin: 0 auto;
}

.trust-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.trust-text p {
  color: var(--color-muted);
}

/* ---------- Interactive Tiles / Flip Cards ---------- */

.tiles-section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: var(--color-bg-secondary);
}

.tiles-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, var(--color-bg-secondary) 100%);
  pointer-events: none;
}

.tiles-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Comparison panel (classic tools vs. Clariseo) ---------- */

.compare-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.compare-cell {
  padding: 1.6rem 2rem;
}

.compare-old {
  background: #101a30;
  color: rgba(203, 213, 225, 0.72);
}

.compare-new {
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
}

.compare-body.compare-old { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.compare-body.compare-new { border-top: 1px solid rgba(212, 221, 232, 0.7); }

.compare-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.9rem;
  padding-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-head.compare-old { color: rgba(148, 163, 184, 0.85); }
.compare-head.compare-new { color: var(--color-accent); }

.compare-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
  flex-shrink: 0;
}

.compare-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.compare-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.compare-old .compare-mark { background: rgba(255, 255, 255, 0.07); color: #94a3b8; }
.compare-new .compare-mark { background: var(--color-accent-soft); color: var(--color-accent); }
.compare-mark .icon { width: 14px; height: 14px; stroke-width: 2.6; }

.compare-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.compare-old h3 { color: #cbd5e1; }
.compare-new h3 { color: var(--color-ink); }

.compare-body p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

.compare-new p { color: var(--color-muted); }

/* Staggered row entrance once the panel is visible */
.compare-body {
  opacity: 0;
  transform: translateY(12px);
}

.compare-panel.is-visible .compare-body {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.compare-panel.is-visible .compare-body[data-row="1"] { transition-delay: 0.25s; }
.compare-panel.is-visible .compare-body[data-row="2"] { transition-delay: 0.4s; }
.compare-panel.is-visible .compare-body[data-row="3"] { transition-delay: 0.55s; }

/* Stacked layout: dark problem block first, then the Clariseo block.
   Cell order comes from the per-cell --mo custom property. */
@media (max-width: 899px) {
  .compare-panel {
    grid-template-columns: 1fr;
  }

  .compare-panel > * {
    order: var(--mo);
  }

  .compare-new {
    border-left: none;
  }

  .compare-head.compare-new {
    border-top: 1px solid rgba(212, 221, 232, 0.7);
  }

  .compare-cell {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
}

/* Screenreader-only labels ("Problem:" / "Mit Clariseo:") */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  /* landing.js never adds .is-visible under reduced motion,
     so the staggered rows must be visible from the start */
  .compare-body {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Audiences Section ---------- */

.audiences-section {
  padding-bottom: 5rem;
}

.audiences-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .audiences-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.audience-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.4rem;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 18px;
  background: var(--gradient-surface);
  box-shadow: var(--shadow-xs);
  color: var(--color-ink);
  text-decoration: none;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-fast);
}

@media (hover: hover) {
  .audience-card:hover {
    color: var(--color-ink);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 76, 129, 0.16);
  }
}

.audience-card:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.audience-card .card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.audience-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.audience-card h3 {
  margin: 0;
}

@media (min-width: 760px) {
  .audience-card h3 {
    min-height: calc(1.15em * 2);
  }
}

.audience-card p {
  color: var(--color-muted);
}

.audience-card ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--color-muted);
}

.audience-card li {
  margin-bottom: 0.3rem;
}

.card-link-hint {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

@media (hover: hover) {
  .audience-card:hover .card-link-hint {
    transform: translateX(4px);
  }
}


/* ==========================================================================
   SCROLL REVEAL ANIMATION SYSTEM
   ========================================================================== */

/* Base state: invisible, shifted down */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--ease-out-expo),
              transform var(--reveal-duration) var(--ease-out-expo);
}

/* Revealed state */
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Directional variant: slide from left */
[data-reveal="left"] {
  transform: translateX(calc(var(--reveal-distance) * -1));
}
[data-reveal="left"].is-visible {
  transform: translateX(0);
}

/* Directional variant: slide from right */
[data-reveal="right"] {
  transform: translateX(var(--reveal-distance));
}
[data-reveal="right"].is-visible {
  transform: translateX(0);
}

/* Directional variant: scale up */
[data-reveal="scale"] {
  transform: scale(0.96);
}
[data-reveal="scale"].is-visible {
  transform: scale(1);
}

/* Stagger delays for grid children */
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
