/* ═══════════════════════════════════════════
   Landing Page – base style
   Scoped under .lp-landing
   CSS variables overridden inline per campaign.
   ═══════════════════════════════════════════ */

/* ─── Base ─── */
.lp-landing {
  --cyan: #00ffff;
  --cyan-muted: #00e5e5;
  --btn-text: #0a0a1a;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: color-mix(in srgb, var(--cyan) 12%, transparent);
  --alabaster: #f8f8f6;
  --cool-gray: #e8e8ec;

  background: linear-gradient(168deg, var(--alabaster) 0%, var(--cool-gray) 55%, #dcdce4 100%);
  color: #1a1a2e;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Parallax gradient layer ─── */
.lp-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.lp-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

/* ─── Glass cards ─── */
.lp-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.lp-glass:hover {
  border-color: color-mix(in srgb, var(--cyan) 30%, transparent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.lp-glass-light {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

/* ─── Accent icon circle ─── */
.lp-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

/* ─── CTA button (no glow) ─── */
.lp-cta {
  background: var(--cyan);
  color: var(--btn-text);
  font-weight: 700;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.lp-cta:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

/* ─── Manifesto section ─── */
.lp-manifesto {
  position: relative;
}
.lp-manifesto::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 5%, transparent), transparent 60%);
  border-radius: 32px;
  filter: blur(40px);
  pointer-events: none;
}

/* ─── Form ─── */
.lp-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 0.9375rem;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.lp-input:focus {
  border-color: var(--cyan-muted);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 12%, transparent);
}
.lp-input::placeholder {
  color: #999;
}

/* ─── Card image gallery ─── */
.lp-card-gallery {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
}
.lp-card-gallery--1 { grid-template-columns: 1fr; }
.lp-card-gallery--2 { grid-template-columns: 1fr 1fr; }
.lp-card-gallery--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lp-card-gallery--3 > a:first-child { grid-row: 1 / 3; }
.lp-card-gallery--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.lp-card-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.lp-card-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.lp-card-gallery a:hover img {
  transform: scale(1.05);
}

/* ─── Section reveal (used by GSAP) ─── */
.lp-reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ─── Selection ─── */
.lp-landing ::selection {
  background: var(--cyan-muted);
  color: var(--btn-text);
}

/* ─── Header (landing) ─── */
.lp-header {
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ─── Form field validation ─── */
.krd-field { position: relative; }

.krd-field-error {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding-left: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: #dc2626;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
}
.krd-field-error.visible {
  max-height: 3rem;
  opacity: 1;
  margin-top: 0.5rem;
}
.krd-field-error::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 9v2m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 9v2m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.krd-field.has-error input,
.krd-field.has-error textarea,
.krd-field.has-error select {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.15) !important;
  background: rgba(220,38,38,.04) !important;
  animation: krd-shake .5s ease;
}
.krd-field.has-success input,
.krd-field.has-success textarea {
  border-color: #16a34a !important;
}

@keyframes krd-shake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-6px); }
  30%      { transform: translateX(5px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(3px); }
  75%      { transform: translateX(-2px); }
}

/* ─── Form status boxes ─── */
.krd-status-box {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: krd-status-in .4s ease;
}
.krd-status-box .krd-status-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.0625rem;
}
.krd-status-box .krd-status-title {
  font-weight: 700;
  margin-bottom: 0.125rem;
}
.krd-status-box .krd-status-copy {
  opacity: .75;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}
.krd-status-success-light {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.krd-status-error-light {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}
@keyframes krd-status-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
