/* ============================================================
   Peludnik — full stylesheet (non-critical; critical CSS is
   inlined in <head>). Dark-first, light theme via [data-theme].
   ============================================================ */

/* ---- Features / bento ---- */
.features { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary-dim); box-shadow: 0 18px 40px -24px rgba(0,0,0,.6); }
.card h3 { font-size: 1.2rem; margin: .9rem 0 .4rem; }
.card p { color: var(--text-muted); font-size: .98rem; }
.card.col-3 { grid-column: span 3; }
.card.col-2 { grid-column: span 2; }
.card.feature-hero { grid-column: span 6; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; padding: 0; }
.feature-hero .fh-copy { padding: 2.2rem; }
.feature-hero .fh-art { align-self: stretch; display: grid; place-items: center; padding: 1.6rem; min-height: 240px;
  background: radial-gradient(120% 120% at 80% 0%, rgba(16,185,129,.14), transparent 60%); border-left: 1px solid var(--border); }
.fh-risk { width: 100%; max-width: 320px; background: #fff; color: #0C0E14; border: 1px solid #EEF0F5;
  border-radius: 18px; padding: 1.1rem 1.25rem; box-shadow: 0 24px 50px -28px rgba(0,0,0,.6); }
.fh-risk-top { display: flex; justify-content: space-between; align-items: center;
  font-size: .68rem; letter-spacing: .07em; color: #6B7280; font-weight: 600; font-family: var(--font-display); }
.fh-risk-top b { color: #0C0E14; }
.fh-risk-level { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: #F87171; margin: .4rem 0 .6rem; }
.fh-seg { display: flex; gap: 3px; }
.fh-seg i { flex: 1; height: 8px; border-radius: 4px; background: #EEF0F5; }
.fh-seg .s-green{ background:#10B981; } .fh-seg .s-amber{ background:#F59E0B; }
.fh-seg .s-red{ background:#F87171; } .fh-seg .s-faint{ background:#F8C9C9; }
.fh-risk-scale { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .68rem; font-weight: 600; }
.fh-risk-scale span:first-child{ color:#10B981; } .fh-risk-scale span:last-child{ color:#F87171; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
}
.icon-badge svg { width: 24px; height: 24px; }
.badge-green { background: rgba(16,185,129,.12); color: var(--primary); }
.badge-amber { background: rgba(245,158,11,.12); color: var(--warning); }
.badge-red   { background: rgba(248,113,113,.12); color: var(--error); }

/* ---- How it works ---- */
.how { padding: clamp(3rem, 7vw, 6rem) 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #062e23; margin-bottom: 1rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.step p { color: var(--text-muted); font-size: .97rem; }

/* ---- Showcase / trends ---- */
.showcase { padding: clamp(3rem, 7vw, 6rem) 0; }
.phones { display: flex; gap: clamp(.5rem, 2vw, 1.5rem); justify-content: center; align-items: center; }
.phones img { width: min(30%, 268px); height: auto; border-radius: 34px;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); transition: transform .4s ease; }
.phones .ph-side { transform: translateY(26px) scale(.92); opacity: .95; }
.phones .ph-side:first-child { transform: translateY(26px) scale(.92) rotate(-4deg); }
.phones .ph-side:last-child { transform: translateY(26px) scale(.92) rotate(4deg); }
.phones .ph-center { z-index: 1; }
.phones:hover .ph-side:first-child { transform: translateY(18px) scale(.94) rotate(-2deg); }
.phones:hover .ph-side:last-child  { transform: translateY(18px) scale(.94) rotate(2deg); }
.trend-points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(2rem,5vw,3.5rem); }
.trend-points li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); }
.trend-points svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.trend-points span { color: var(--text-muted); }
.trend-points b { color: var(--text); font-weight: 600; }

/* ---- FAQ ---- */
.faq { padding: clamp(3rem, 7vw, 6rem) 0; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 600; font-size: 1.08rem; font-family: var(--font-display);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 1.5rem; transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding: 0 0 1.3rem; max-width: 65ch; line-height: 1.6; }

/* ---- Final CTA ---- */
.cta-final { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.cta-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(16,185,129,.18), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(245,158,11,.10), transparent 55%),
    var(--surface-elevated);
  padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center;
}
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-card p { color: var(--text-muted); max-width: 52ch; margin: 1rem auto 1.8rem; }

/* ---- Contact form ---- */
.contact { padding: clamp(3rem, 7vw, 6rem) 0; }
.contact-form {
  max-width: 600px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.2rem);
  display: grid; gap: 1.1rem;
}
.contact-form .field { display: grid; gap: .45rem; }
.contact-form label { font-size: .9rem; font-weight: 600; color: var(--text); font-family: var(--font-display); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
  padding: .75rem .9rem; transition: border-color .2s ease, box-shadow .2s ease;
}
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea { background: #fff; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B92A5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form .btn-primary { justify-content: center; padding: .85rem 1.3rem; }
.contact-form .btn-primary[disabled] { opacity: .6; cursor: progress; }
/* honeypot: hidden from humans, visible to bots */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: .92rem; margin: 0; min-height: 1.2em; }
.form-status.is-success { color: var(--primary); }
.form-status.is-error { color: var(--error); }

/* ---- Footer ---- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem; margin-top: 2rem;
  color: var(--text-muted); font-size: .92rem;
}
footer.site .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
footer.site h4 { color: var(--text); font-size: .95rem; margin-bottom: .9rem; font-family: var(--font-display); }
footer.site ul { list-style: none; display: grid; gap: .55rem; }
footer.site a { color: var(--text-muted); text-decoration: none; }
footer.site a:hover { color: var(--primary); }
footer.site .brand-col p { max-width: 34ch; margin: .8rem 0 0; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---- Section heads ---- */
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head .eyebrow {
  color: var(--primary); font-weight: 600; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; font-family: var(--font-display);
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: .6rem 0 .7rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.col-3, .card.col-2 { grid-column: span 1; }
  .card.feature-hero { grid-column: span 2; grid-template-columns: 1fr; }
  .feature-hero .fh-art { border-left: none; border-top: 1px solid var(--border); min-height: 220px; }
  .steps { grid-template-columns: 1fr; }
  .trend-points { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card.feature-hero { grid-column: span 1; }
  .phones .ph-side { display: none; }
  .phones .ph-center { width: min(72%, 300px); }
  footer.site .wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .seg.s-on { transform: none !important; }
}

/* ---- Cookie consent (gates Google Analytics; GDPR) ---- */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  padding: 1rem 1.1rem;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.2rem;
}
.cookie-consent__text {
  flex: 1 1 260px;
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.cookie-consent__text a { color: var(--text); }
.cookie-consent__actions {
  display: flex;
  gap: .55rem;
  margin-left: auto;
}
.cookie-consent__actions .btn { padding: .55rem 1.1rem; font-size: .9rem; }
