/* ============================================================
   Bearly Care — base styles
   ============================================================ */

:root {
  --brand-green-dark: #38654A;
  --brand-green-mid: #6D8F6A;
  --brand-green-light: #BBD3B0;
  --brand-cream: #F2E8D6;
  --brand-peach: #E8C5A5;

  --bg: #ffffff;
  --bg-subtle: #FBFAF7;
  --fg: #1a2a20;
  --fg-muted: #6b7a72;
  --border: #e4e4e7;

  --radius-sm: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 16px -4px rgb(56 101 74 / 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-subtle);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--brand-green-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}

p { margin: 0 0 16px; }

/* ============================================================
   Header
   ============================================================ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 64px;
  background: transparent;
  border-bottom: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.topbar.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgb(0 0 0 / 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 36px; width: auto; }

.topbar-nav { display: flex; gap: 12px; align-items: center; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-green-dark);
  color: #fff;
}
.btn-primary:hover { background: #2d5239; }

.btn-ghost {
  background: transparent;
  color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
}
.btn-ghost:hover { background: var(--brand-green-dark); color: #fff; }

.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 28px 24px;
  font-size: 14px;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.site-footer .dot { opacity: 0.5; }
.site-footer a { color: var(--fg-muted); }
.site-footer a:hover { color: var(--brand-green-dark); }

/* ============================================================
   Landing — shared layout helpers
   ============================================================ */

.landing-section {
  padding: 96px 32px;
}
.landing-section--cream { background: var(--brand-cream); }
.landing-section--subtle { background: var(--bg-subtle); }
.landing-section--white  { background: var(--bg); }

.landing-container {
  max-width: 1180px;
  margin: 0 auto;
}

.landing-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-green-mid);
  margin-bottom: 16px;
}

.landing-section-title {
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 22ch;
}

.landing-section-intro {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0 0 48px;
}

/* ============================================================
   Landing — Hero (split layout with diagonal clip-reveal)
   ============================================================ */

.landing-hero {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: min(100vh, 1080px);
  background:
    radial-gradient(circle, var(--brand-green-light) 1.5px, transparent 1.5px),
    linear-gradient(90deg, transparent 49.5%, var(--brand-green-light) 49.5%, var(--brand-green-light) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, var(--brand-green-light) 49.5%, var(--brand-green-light) 50.5%, transparent 50.5%);
  background-size: 40px 40px, 80px 80px, 80px 80px;
  background-color: var(--bg);
  position: relative;
}

.landing-hero-left {
  width: 60%;
  padding: 100px 72px 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
}

.landing-hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.landing-hero-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-green-dark);
  color: var(--brand-cream);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.landing-hero-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.landing-hero-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.landing-hero-brand-slogan {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 4px;
}

.landing-hero-content { max-width: 640px; }
.landing-hero-content > * + * { margin-top: 0; }

.landing-hero h1 {
  font-size: clamp(36px, 4.2vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--brand-green-dark);
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}

.landing-hero-bar {
  width: 80px;
  height: 4px;
  background: var(--brand-green-dark);
  margin: 28px 0 24px;
  border-radius: 2px;
}

.landing-hero-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 50ch;
  margin: 12px 0 36px;
}

.landing-hero-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.landing-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-green-dark);
  padding: 4px 0;
  border-bottom: 2px solid var(--brand-green-dark);
  transition: gap 0.18s ease, color 0.15s ease, border-color 0.15s ease;
}
.landing-hero-cta:hover {
  gap: 20px;
  color: var(--brand-green-mid);
  border-bottom-color: var(--brand-green-mid);
  text-decoration: none;
}
.landing-hero-cta-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.landing-hero-cta-secondary:hover {
  color: var(--brand-green-dark);
  border-bottom-color: var(--brand-green-mid);
  text-decoration: none;
}

.landing-hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  max-width: 640px;
  padding-top: 8px;
}
.landing-hero-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--fg-muted);
}
.landing-hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-green-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

.landing-hero-right {
  width: 40%;
  min-height: 600px;
  position: relative;
  background: var(--brand-cream);
  background-size: cover;
  background-position: center;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
@keyframes heroReveal {
  to { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero-right {
    animation: none;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
  }
}

/* ============================================================
   Landing — Problem section
   ============================================================ */

.landing-problem {
  background: var(--brand-cream);
  padding: 96px 32px;
  position: relative;
}
.landing-problem::after {
  content: '§';
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  font-size: 420px;
  font-weight: 700;
  font-family: 'Georgia', serif;
  color: var(--brand-green-dark);
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
}

.landing-problem-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.landing-problem h2 {
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.15;
  margin: 0 0 12px;
}
.landing-problem h2 sup { font-size: 0.55em; vertical-align: super; }

.landing-problem-body p {
  font-size: 17px;
  color: var(--fg);
}
.landing-problem-body p + p { color: var(--fg-muted); }

.landing-problem-law {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #fffef9;
  padding: 36px 40px 36px 36px;
  position: relative;
  box-shadow:
    2px 3px 12px rgb(0 0 0 / 0.08),
    0 1px 3px rgb(0 0 0 / 0.04);
  transform: rotate(-0.8deg);
  border: none;
  /* Torn left edge */
  border-left: none;
  clip-path: polygon(
    0% 0%, 2% 4%, 0% 8%, 1.5% 12%, 0% 16%, 2% 20%,
    0% 24%, 1% 28%, 0% 32%, 2% 36%, 0% 40%, 1.5% 44%,
    0% 48%, 2% 52%, 0% 56%, 1% 60%, 0% 64%, 2% 68%,
    0% 72%, 1.5% 76%, 0% 80%, 2% 84%, 0% 88%, 1% 92%,
    0% 96%, 1.5% 100%,
    100% 100%, 100% 0%
  );
}
.landing-problem-law::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgb(56 101 74 / 0.1) 0px,
    rgb(56 101 74 / 0.1) 8px,
    transparent 8px,
    transparent 12px
  );
}
.landing-problem-law::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgb(56 101 74 / 0.04) 27px,
      rgb(56 101 74 / 0.04) 28px
    );
  pointer-events: none;
}
.landing-problem-law-symbol {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-green-dark);
  opacity: 0.7;
  flex-shrink: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.landing-problem-law-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.landing-problem-law-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.landing-problem-law-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
}
.landing-problem-law-text strong {
  color: var(--brand-green-dark);
}
.landing-problem-law-ref {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 0;
  font-style: italic;
}
.landing-problem-law-penalty {
  margin-top: 8px;
}
.landing-problem-law-penalty span {
  display: inline-block;
  background: rgb(56 101 74 / 0.08);
  color: var(--brand-green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
}

/* ============================================================
   Landing — Solution cards
   ============================================================ */

.landing-solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.landing-solution-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.landing-solution-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-green-light);
}
.landing-solution-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.landing-solution-icon svg { width: 22px; height: 22px; }

.landing-solution-card h3 {
  font-size: 18px;
  margin: 0;
  color: var(--fg);
}
.landing-solution-card p {
  font-size: 15px;
  color: var(--fg-muted);
  margin: 0;
}

/* ============================================================
   Landing — Process / How it works
   ============================================================ */

.landing-process-tabs {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 40px;
}
.landing-process-tab {
  border: none;
  background: transparent;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.landing-process-tab[aria-selected="true"] {
  background: var(--brand-green-dark);
  color: #fff;
}





.landing-process-step h4 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--fg);
}
.landing-process-step p {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0;
}

.landing-process-panel { display: none; }
.landing-process-panel[data-active="true"] { display: block; }

/* ============================================================
   Landing — Why (arguments)
   ============================================================ */

.landing-why {
  background: var(--brand-green-dark);
  color: #fff;
  padding: 96px 32px;
  position: relative;
}
.landing-why::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.04);
}
.landing-why h2 { color: #fff; }
.landing-why .landing-eyebrow { color: var(--brand-green-light); }
.landing-why-intro {
  color: rgb(255 255 255 / 0.78);
  font-size: 18px;
  max-width: 60ch;
  margin: 0 0 56px;
}

.landing-why-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.landing-why-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .landing-why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .landing-why-list {
    grid-template-columns: 1fr;
  }
}
.landing-why-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.landing-why-item:hover {
  background: rgb(255 255 255 / 0.12);
  transform: translateY(-3px);
}
.landing-why-item-stat {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-peach);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.landing-why-item h4 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.landing-why-item p {
  color: rgb(255 255 255 / 0.7);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.landing-why-quote {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  align-self: start;
}
.landing-why-quote-mark {
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 0.6;
  color: var(--brand-peach);
  display: block;
  margin-bottom: 8px;
}
.landing-why-quote p {
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.landing-why-quote-cite {
  color: rgb(255 255 255 / 0.6);
  font-size: 13px;
}

/* ============================================================
   Landing — Final CTA
   ============================================================ */

.landing-final {
  background: var(--bg);
  padding: 96px 32px;
}
.landing-final-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.landing-final-card {
  background: var(--brand-cream);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
}
.landing-final-card::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--brand-peach);
  opacity: 0.55;
}
.landing-final-card > * { position: relative; z-index: 1; }
.landing-final-card h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 18ch;
}
.landing-final-card p {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 42ch;
  margin: 0 0 28px;
}
.landing-final-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-final-aside {
  border-left: 1px solid var(--border);
  padding-left: 48px;
}
.landing-final-aside-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-green-mid);
  margin-bottom: 12px;
}
.landing-final-aside h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--fg);
}
.landing-final-aside p {
  color: var(--fg-muted);
  font-size: 15px;
  margin: 0 0 20px;
}
.landing-final-aside a.landing-employee-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-green-dark);
}
.landing-final-aside a.landing-employee-link:hover { gap: 12px; }

/* ============================================================
   Landing — Contact form
   ============================================================ */

.landing-contact h2 { max-width: 22ch; }

.landing-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.landing-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.landing-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.landing-form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.landing-form-field label span {
  color: var(--brand-green-mid);
  margin-left: 2px;
}

.landing-form-field input,
.landing-form-field select,
.landing-form-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}
.landing-form-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.landing-form-field input:focus,
.landing-form-field select:focus,
.landing-form-field textarea:focus {
  outline: none;
  border-color: var(--brand-green-dark);
  box-shadow: 0 0 0 3px rgb(56 101 74 / 0.14);
}
.landing-form-field input::placeholder,
.landing-form-field textarea::placeholder {
  color: #a0aaa4;
}

.landing-form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2338654A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5 6 6.5l5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
  padding-right: 36px;
}

.landing-form-turnstile {
  margin: 4px 0 4px;
  min-height: 65px;
}

.landing-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.45;
  cursor: pointer;
  margin-top: 4px;
}
.landing-form-consent input {
  margin-top: 2px;
  accent-color: var(--brand-green-dark);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.landing-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.landing-form-note {
  font-size: 13px;
  color: var(--fg-muted);
}

.landing-form-error {
  background: #fdf3ef;
  border: 1px solid #e7c3b1;
  color: #8a3a1e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 4px;
}

.landing-form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 0 4px;
}
.landing-form-success[hidden],
.landing-form-error[hidden] { display: none !important; }
.landing-form-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.landing-form-success-icon svg { width: 24px; height: 24px; }
.landing-form-success h3 {
  margin: 0;
  font-size: 22px;
  color: var(--brand-green-dark);
}
.landing-form-success p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 16px;
}

/* The contact card no longer needs the decorative peach blob */
.landing-final-card.landing-contact::after { display: none; }
.landing-final-card.landing-contact {
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 40px 36px;
}

/* ============================================================
   Image placeholders (Gemini prompt holders)
   ============================================================ */

.img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--brand-cream);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
}
.img-placeholder span {
  color: var(--fg-muted);
  font-size: 13px;
  padding: 24px;
  text-align: center;
  max-width: 38ch;
  line-height: 1.5;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .landing-hero {
    flex-direction: column-reverse;
    min-height: 0;
  }
  .landing-hero-left {
    width: 100%;
    padding: 48px 32px 56px;
    gap: 40px;
  }
  .landing-hero-right {
    width: 100%;
    min-height: 360px;
    clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
    animation: heroRevealMobile 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  }
  @keyframes heroRevealMobile {
    from { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
    to   { clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  }
  .landing-problem-grid,
  .landing-why-grid,
  .landing-final-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .landing-final-aside {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 32px;
  }
  .landing-process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  .topbar { padding: 14px 20px; }
  .landing-section,
  .landing-problem,
  .landing-why,
  .landing-final {
    padding: 64px 20px;
  }
  .landing-hero-left { padding: 40px 20px 48px; }
  .landing-hero h1 { font-size: 36px; }
  .landing-hero-sub { font-size: 17px; }
  .landing-hero-trust { grid-template-columns: 1fr; gap: 14px; }
  .landing-final-card { padding: 32px 24px; }
  .landing-final-card.landing-contact { padding: 32px 24px; }
  .landing-form-row { grid-template-columns: 1fr; }
  .landing-problem-callout-stat { font-size: 36px; }
  .landing-why-item-stat { font-size: 30px; }
}

@media (max-width: 520px) {
  .landing-process-steps {
    grid-template-columns: 1fr;
  }
  .landing-hero-ctas { flex-direction: column; align-items: flex-start; gap: 14px; }
  .landing-form-actions { flex-direction: column; align-items: stretch; }
  .landing-form-actions .btn { width: 100%; }
}
/* ============================================================
   Submission funnel — /zgloszenie (NIP gate) + report form
   Shares the homepage design language: cream backdrop, brand
   green, serif accents, calm spacing. No entrance animations
   here on purpose — this is a sensitive, stressful moment.
   ============================================================ */

.funnel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--brand-cream);
  background-image:
    radial-gradient(circle, rgb(56 101 74 / 0.06) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
}

.funnel-topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 24px 8px;
}
.funnel-topbar .brand-logo { height: 40px; width: auto; }

.funnel-shell {
  flex: 1 1 auto;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.funnel-shell.wide { max-width: 760px; }

/* --- Funnel hero (eyebrow chip + title + bar + lead) --- */
.funnel-hero { text-align: center; }
.funnel-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-green-dark);
  background: rgb(56 101 74 / 0.08);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.funnel-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  margin: 0 auto;
  max-width: 18ch;
}
.funnel-bar {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand-green-dark);
  margin: 20px auto 18px;
}
.funnel-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 46ch;
  margin: 0 auto;
}

/* --- Card --- */
.funnel-card {
  background: var(--bg);
  border: 1px solid rgb(56 101 74 / 0.10);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 32px 32px 36px;
}
.funnel-card + .funnel-card { margin-top: 4px; }

.funnel-card-head { margin-bottom: 22px; }
.funnel-card-head h2 {
  font-size: 20px;
  margin: 0 0 6px;
}
.funnel-card-head p {
  font-size: 14.5px;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.55;
}

/* Numbered step header inside the report form */
.funnel-step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.funnel-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-green-dark);
  color: var(--brand-cream);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.funnel-step-head h2 { font-size: 19px; margin: 3px 0 5px; }
.funnel-step-head p {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.55;
}

/* --- Fields --- */
.funnel-form { display: flex; flex-direction: column; gap: 18px; }
.funnel-field { display: flex; flex-direction: column; gap: 7px; }
.funnel-field > span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}
.funnel-field > span small { font-weight: 500; color: var(--fg-muted); }

.funnel-field input,
.funnel-field textarea,
.funnel-field select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;            /* >=16px stops iOS Safari zoom-on-focus */
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.funnel-field textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.6;
}
.funnel-field input:focus,
.funnel-field textarea:focus,
.funnel-field select:focus {
  outline: none;
  border-color: var(--brand-green-dark);
  box-shadow: 0 0 0 3px rgb(56 101 74 / 0.14);
}
.funnel-field input::placeholder,
.funnel-field textarea::placeholder { color: #a0aaa4; }

.funnel-field-file input[type="file"] {
  font-size: 14px;
  padding: 10px 12px;
  min-height: 48px;
  cursor: pointer;
}
.funnel-field-file input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--brand-green-dark);
  border-radius: 8px;
  background: transparent;
  color: var(--brand-green-dark);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.funnel-field-file input[type="file"]::file-selector-button:hover {
  background: var(--brand-green-dark);
  color: #fff;
}

/* --- Consent boxes --- */
.funnel-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--brand-cream);
  border: 1px solid rgb(56 101 74 / 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg);
  cursor: pointer;
}
.funnel-consent + .funnel-consent { margin-top: 12px; }
.funnel-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand-green-dark);
  cursor: pointer;
}

/* --- Actions --- */
.funnel-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.funnel-actions .btn-primary { flex: 1 1 auto; }
.funnel-form > .btn-primary { width: 100%; }

/* --- Reassurance strip under the card --- */
.funnel-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 4px 8px;
}
.funnel-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--fg-muted);
}
.funnel-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-green-dark);
  flex-shrink: 0;
}

/* --- Result states (also injected by app.js / form.js) --- */
.result { margin-top: 16px; }
.result:empty { margin-top: 0; }
.result.success {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--brand-green-light);
  background: #f3f8f1; color: var(--brand-green-dark);
  border-radius: 12px; padding: 20px 22px; font-size: 14.5px;
}
.result.error {
  border: 1px solid #e7c3b1; background: #fdf3ef; color: #8a3a1e;
  border-radius: 10px; padding: 12px 16px; font-size: 14px;
}
.result.loading {
  border: 1px solid var(--border); background: var(--bg-subtle); color: var(--fg-muted);
  border-radius: 10px; padding: 12px 16px; font-size: 14px;
}
.result .status { font-weight: 700; margin: 0; font-size: 14px; }
.result h2 { margin: 2px 0 4px; font-size: 18px; }
.result p { margin: 0; }
.result-info { display: flex; flex-direction: column; gap: 4px; }
.result .btn-primary { align-self: flex-start; margin-top: 4px; }

/* --- Attachment preview (injected by form.js) --- */
.attachments-preview { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.attachment-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
}
.attachment-item.attachment-error {
  background: #fdf3ef;
  border-color: #e7c3b1;
}
.attachment-name { font-weight: 600; color: var(--fg); }
.attachment-meta { color: var(--fg-muted); font-size: 12.5px; }
.attachment-warning { color: #8a3a1e; font-size: 12.5px; font-weight: 600; }

.muted { color: var(--fg-muted); }
.muted-small { color: var(--fg-muted); font-size: 13px; }
.funnel code {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.88em;
  background: rgb(56 101 74 / 0.08);
  color: var(--brand-green-dark);
  padding: 1px 6px;
  border-radius: 5px;
}

/* Global input baseline — bigger hit targets, no iOS zoom.
   Page-specific rules (.landing-form-field, .funnel-field) win. */
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  outline: none;
}
input:focus { border-color: var(--brand-green-mid); box-shadow: 0 0 0 2px rgb(109 143 106 / 0.2); }
input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: var(--brand-green-dark); }

@media (max-width: 520px) {
  .funnel-card { padding: 24px 20px 28px; border-radius: 14px; }
  .funnel-actions { flex-direction: column-reverse; align-items: stretch; }
  .funnel-actions .btn { width: 100%; }
}


/* === Hero entrance animations === */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes growWidth {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

.landing-hero-content {
  animation: fadeSlideUp 0.7s ease-out 0.2s both;
}

.landing-hero h1 {
  animation: fadeSlideRight 0.8s ease-out 0.4s both;
}

.landing-hero-bar {
  animation: growWidth 0.6s ease-out 0.9s both;
}

.landing-hero-sub {
  animation: fadeSlideUp 0.7s ease-out 1.0s both;
}

.landing-hero-ctas {
  animation: fadeSlideUp 0.7s ease-out 1.2s both;
}

.landing-hero-trust {
  animation: fadeSlideUp 0.6s ease-out 1.5s both;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-content,
  .landing-hero h1,
  .landing-hero-bar,
  .landing-hero-sub,
  .landing-hero-ctas,
  .landing-hero-trust {
    animation: none;
  }
}

.landing-problem-deco {
  position: absolute;
  font-family: 'Georgia', serif;
  font-weight: 700;
  color: var(--brand-green-dark);
  pointer-events: none;
  line-height: 1;
}
.deco-1 {
  right: 12%;
  top: 18%;
  font-size: 80px;
  opacity: 0.05;
  transform: rotate(8deg);
}
.deco-2 {
  right: 4%;
  bottom: 25%;
  font-size: 140px;
  opacity: 0.035;
  transform: rotate(-18deg);
}
.deco-3 {
  right: 22%;
  bottom: 10%;
  font-size: 50px;
  opacity: 0.06;
  transform: rotate(15deg);
}

/* === Bento grid for solution section === */


}




/* === Cap page width for consistent look on all screens === */
body {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1921px) {
  body {
    box-shadow: 0 0 80px rgb(0 0 0 / 0.04);
  }
}

/* === Solution: 4 cards in a row === */
.solution-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.solution-card-4 {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.solution-card-4:hover {
  box-shadow: 0 8px 28px rgb(56 101 74 / 0.1);
  transform: translateY(-4px);
}
.solution-card-4-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--brand-cream);
  display: grid;
  place-items: center;
}
.solution-img-label {
  color: var(--fg-muted);
  font-size: 12px;
  padding: 12px;
  text-align: center;
}
.solution-card-4 h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin: 20px 20px 6px;
}
.solution-card-4 p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 20px 20px;
}
@media (max-width: 768px) {
  .solution-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .solution-grid-4 {
    grid-template-columns: 1fr;
  }
}


/* === How it works: curved path + illustrations === */
.landing-process-wrapper {
  position: relative;
  margin-top: 24px;
  padding-top: 0;
}
.landing-process-path {
  position: absolute;
  top: 21px;
  left: 5%;
  width: 90%;
  height: 60px;
  pointer-events: none;
  z-index: 1;
}
.landing-process-path path {
  fill: none;
  stroke: var(--brand-green-light);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  stroke-linecap: round;
}
.landing-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.landing-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}
.landing-process-step-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--brand-cream);
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 20px;
  border: 2px solid var(--brand-green-light);
}
.landing-process-step-img span {
  font-size: 11px;
  color: var(--fg-muted);
  padding: 8px;
  text-align: center;
}
.landing-process-step-num {
  display: none;
}
.landing-process-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 8px;
}
.landing-process-step p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0;
  max-width: 220px;
}
.landing-process-tabs {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  margin: 32px auto 0;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: auto;
}
.landing-process-tab {
  padding: 10px 28px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.landing-process-tab[aria-selected="true"] {
  background: var(--brand-green-dark);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgb(56 101 74 / 0.2);
}
.landing-process-tab:hover:not([aria-selected="true"]) {
  background: var(--bg-subtle);
  color: var(--fg);
}
.landing-process-panel {
  display: none;
}
.landing-process-panel[data-active="true"] {
  display: block;
}
@media (max-width: 768px) {
  .landing-process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .landing-process-path {
    display: none;
  }
  .landing-process-wrapper {
    padding-top: 24px;
  }
}
@media (max-width: 480px) {
  .landing-process-steps {
    grid-template-columns: 1fr;
  }
}

.landing-section .landing-process-tabs {
  display: inline-flex;
}
.landing-section .landing-container > .landing-process-tabs {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Process header: title left, tabs right */
.landing-process-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}
.landing-process-header-left {
  flex: 1;
}
.landing-process-header .landing-process-tabs {
  margin: 0;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .landing-process-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.landing-why .landing-container {
  max-width: 1400px;
}




.step-bg-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  font-weight: 800;
  color: var(--brand-green-dark);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* === Consistent typography across all sections === */
.landing-section-title,
.landing-problem h2,
.landing-why .landing-section-title,
.landing-final h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.landing-section-intro,
.landing-why-intro,
.landing-problem-body p,
.landing-final p,
.solution-card-4 p,
.landing-why-item p,
.landing-process-step p {
  font-size: 15px;
  line-height: 1.6;
}

.landing-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

/* === Scroll-triggered entrance animations === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Alignment fix: all sections same content width === */
.landing-problem-grid,
.landing-container,
.landing-final-grid,
.landing-why .landing-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Hero left content aligned to same grid */
.landing-hero-left {
  padding-left: max(64px, calc((100% - 1180px) / 2 + 32px));
}

/* 4K: center everything, hero included */
@media (min-width: 1921px) {
  .landing-hero {
    max-width: 1920px;
    margin: 0 auto;
  }
}

/* Step hashtag numbers */
.step-hashtag {
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.step-hashtag span {
  display: inline-block;
  font-size: 42px;
  font-weight: 800;
  color: var(--brand-green-dark);
  transform: rotate(-6deg);
  transition: transform 0.3s ease, font-size 0.3s ease;
  cursor: default;
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 8px;
}
.step-hashtag:hover span {
  transform: rotate(0deg) scale(1.2);
}
