/* ===========================================================
   BeeAI42 — Inteligência que Aproxima
   Identidade: preto (#0A0A0A), amarelo (#FFB627), branco
   =========================================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg:        #FFFFFF;
  --bg-soft:   #FAFAF7;
  --bg-dark:   #0A0A0A;
  --bg-dark-2: #141414;
  --ink:       #0A0A0A;
  --ink-soft:  #3A3A3A;
  --ink-mute:  #6C6C6C;
  --line:      #E8E8E5;
  --line-dark: #232323;

  --accent:    #FFB627;
  --accent-2:  #FFC857;
  --accent-deep:#E89B0F;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(10,10,10,.06);
  --shadow:    0 12px 32px rgba(10,10,10,.08);
  --shadow-lg: 0 30px 60px rgba(10,10,10,.16);

  --container:  1200px;
  --gutter:     clamp(20px, 4vw, 40px);

  --font-heading: 'Space Grotesk', 'Inter', sans-serif;

  --t-fast: .2s ease;
  --t:       .35s cubic-bezier(.2,.7,.2,1);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw + .5rem, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3vw + .5rem, 3rem); }
h3 { font-size: clamp(1.3rem, 1.5vw + .5rem, 1.6rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.text-accent { color: var(--accent); }

/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 8vw, 120px);
}
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: var(--bg-dark);
  color: #EDEDED;
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #FFFFFF; }
.section--dark p { color: #B8B8B8; }

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section__title { margin-bottom: .6em; }
.section__lead { font-size: 1.1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255,182,39,.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow--light { background: rgba(255,182,39,.18); color: var(--accent); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,182,39,.25);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn--sm  { padding: 10px 18px; font-size: .88rem; }
.btn--full{ width: 100%; }

.btn--primary {
  background: var(--accent);
  color: #0A0A0A;
  box-shadow: 0 10px 24px -8px rgba(255,182,39,.65);
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(255,182,39,.8);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.section--dark .btn--ghost { color: #FFFFFF; border-color: #FFFFFF; }
.btn--ghost:hover {
  background: var(--ink);
  color: #FFFFFF;
}
.section--dark .btn--ghost:hover { background: #FFFFFF; color: var(--ink); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: #0A0A0A;
}

/* ---------- HEADER / NAV ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(0);
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
  background: transparent;
}
.header.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__mark { display: inline-flex; }
.brand__text strong { font-weight: 700; }
.brand__accent {
  color: var(--accent);
  margin-left: 4px;
  font-weight: 700;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list {
  display: flex;
  gap: 28px;
}
.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t-fast);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(60px, 10vw, 110px) clamp(60px, 9vw, 100px);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255,182,39,.18), transparent 60%),
    radial-gradient(700px 600px at 0% 100%, rgba(255,182,39,.08), transparent 70%),
    #FFFFFF;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .6;
}
.hex-pattern { width: 100%; height: 100%; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__title {
  margin-bottom: 20px;
}
.hero__lead {
  font-size: clamp(1.05rem, 1vw + .6rem, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__chips li {
  font-size: .82rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #FFFFFF;
}

/* Honeycomb visual */
.hero__visual { display: flex; justify-content: center; }
.comb {
  position: relative;
  width: min(420px, 92%);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  transform: rotate(-6deg);
}
.comb__cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  color: var(--ink);
  background: #FFFFFF;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
}
.comb__cell--1 { background: var(--accent); animation-delay: 0s; }
.comb__cell--2 { animation-delay: .4s; }
.comb__cell--3 { background: var(--ink); color: #FFFFFF; animation-delay: .8s; }
.comb__cell--4 { animation-delay: 1.2s; }
.comb__cell--5 { background: var(--accent); animation-delay: 1.6s; }
.comb__cell--center {
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  animation-delay: .2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- STATS ---------- */
.stats {
  background: var(--bg-dark);
  color: #FFFFFF;
  padding-block: clamp(40px, 5vw, 60px);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw + 1rem, 3.4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: .92rem;
  color: #B8B8B8;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ---------- PRODUCTS ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.product {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  overflow: hidden;
}
.product::before {
  content: '';
  position: absolute;
  inset: -2px auto auto -2px;
  width: 80px; height: 80px;
  background: radial-gradient(circle at 0 0, rgba(255,182,39,.25), transparent 70%);
  pointer-events: none;
}
.product:hover {
  transform: translateY(-4px);
  border-color: rgba(255,182,39,.4);
  box-shadow: 0 30px 60px -20px rgba(255,182,39,.18);
}
.product__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.product__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: rgba(255,182,39,.12);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.product__name {
  font-size: 2rem;
  margin: 0;
  color: #FFFFFF;
}
.product__tag {
  margin: 4px 0 0;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.product__desc {
  color: #C4C4C4;
  font-size: 1.02rem;
  margin-bottom: 24px;
}
.product__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 28px;
}
.product__features li {
  font-size: .92rem;
  color: #DADADA;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.check {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-heading);
}

/* ---------- SERVIÇOS ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.service {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--line);
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.service__num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.service__title {
  font-size: 1.45rem;
  margin-bottom: 14px;
}
.service__desc { font-size: 1rem; }
.service__list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.service__list li {
  font-size: .94rem;
  color: var(--ink-soft);
  position: relative;
  padding-left: 22px;
}
.service__list li::before {
  content: '⬢';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .85em;
  top: 2px;
}

/* ---------- AUDIENCE ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}
.audience__card {
  background: #FFFFFF;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--t), box-shadow var(--t);
}
.audience__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.audience__card--featured {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
  transform: scale(1.03);
}
.audience__card--featured h3 { color: #FFFFFF; }
.audience__card--featured p  { color: #C4C4C4; }
.audience__hex {
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.audience__card h3 { margin-bottom: 10px; font-size: 1.2rem; }

/* ---------- SOBRE ---------- */
.sobre {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.sobre__text p { color: #B8B8B8; font-size: 1.05rem; }

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.value {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 18px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.value strong {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: .02em;
}
.value span { color: #B8B8B8; font-size: .9rem; line-height: 1.5; }

/* Honeycomb decorative grid */
.honey {
  position: relative;
  width: min(380px, 90%);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.honey__cell {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255,182,39,.15), rgba(255,182,39,.04));
  border: 1px solid rgba(255,182,39,.25);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}
.honey__cell:nth-child(2),
.honey__cell:nth-child(5) {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
}
.honey__cell:nth-child(7) {
  background: rgba(255,182,39,.08);
}

/* ---------- CTA / CONTATO ---------- */
.cta { background: linear-gradient(180deg, var(--bg-soft), #FFFFFF); }
.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.cta__contacts {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.cta__contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-family: var(--font-heading);
  font-weight: 500;
}
.cta__contacts a:hover { color: var(--accent-deep); }
.cta__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #0A0A0A;
  border-radius: 50%;
  font-size: 1.1rem;
}

.cta__form {
  background: #FFFFFF;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .85rem;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: #FFFFFF;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-family: 'Inter', sans-serif;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,182,39,.18);
}
.form__note {
  font-size: .82rem;
  color: var(--ink-mute);
  margin: 0;
  text-align: center;
}
.form__note a { color: var(--accent-deep); text-decoration: underline; }
.form__success {
  background: rgba(255,182,39,.15);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  font-size: .92rem;
  text-align: center;
  margin: 0;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-dark);
  color: #B8B8B8;
  padding-top: 64px;
  padding-bottom: 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand--footer .brand__text { color: #FFFFFF; }
.footer__tag {
  margin-top: 14px;
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: .98rem;
}
.footer__col h4 {
  color: #FFFFFF;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a {
  font-size: .94rem;
  color: #B8B8B8;
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: .85rem;
}
.footer__bottom p { margin: 0; color: #8A8A8A; }
.footer__credit {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--t-fast);
}
.footer__credit:hover { color: var(--accent-2); text-decoration: underline; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero__inner,
  .sobre,
  .cta__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 360px; margin: 0 auto; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .products,
  .services { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .audience__card--featured { transform: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    background: #FFFFFF;
    padding: 28px var(--gutter) 32px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform var(--t);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list {
    flex-direction: column;
    gap: 4px;
  }
  .nav__link {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav__link::after { display: none; }
  .nav__cta { align-self: stretch; text-align: center; }
  .nav__toggle { display: flex; }

  .product__features { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ---------- LEGAL PAGES ---------- */
.legal {
  padding-block: clamp(60px, 8vw, 100px);
  background: var(--bg-soft);
}
.legal__container {
  max-width: 820px;
  margin: 0 auto;
  background: #FFFFFF;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.legal h1 {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem);
  margin-bottom: 8px;
}
.legal__updated {
  color: var(--ink-mute);
  font-size: .9rem;
  margin-bottom: 32px;
  font-family: var(--font-heading);
}
.legal h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.legal h3 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
}
.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 1rem;
}
.legal ul, .legal ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.legal ul li, .legal ol li {
  list-style: disc;
  margin-bottom: 6px;
}
.legal ol li { list-style: decimal; }
.legal a { color: var(--accent-deep); text-decoration: underline; }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--ink);
}
.legal__back:hover { color: var(--accent-deep); }

/* ---------- MODAL WHATSAPP ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.65);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}
.modal__panel {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: popIn .3s cubic-bezier(.2,.7,.2,1);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  transition: background var(--t-fast);
}
.modal__close:hover { background: var(--bg-soft); }
.modal__icon {
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.modal__title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.modal__lead {
  color: var(--ink-soft);
  font-size: .98rem;
  margin-bottom: 20px;
}
.modal__preview {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
  max-height: 220px;
  overflow-y: auto;
  margin: 0 0 20px;
}
.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.modal__actions .btn { flex: 1; min-width: 140px; }
.modal__note {
  font-size: .82rem;
  color: var(--ink-mute);
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 540px) {
  .modal__actions { flex-direction: column; }
  .modal__actions .btn { width: 100%; }
}

/* ---------- ACCESSIBILITY / MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
