/* SIPC — Simpósio Internacional de Psiquiatria Clínica
   Light Apple-style · white/gray + light blue + orange accents */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --white: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --blue: #2f7bc8;
  --blue-deep: #0a2a5e;
  --blue-wash: #eaf3fc;
  --orange: #f28c28;
  --orange-wash: #fdf1e4;
  --border: #e5e5ea;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(10, 42, 94, .07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

section[id] { scroll-margin-top: 72px; }

/* ===== top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-sipc {
  font-weight: 800; letter-spacing: .12em; font-size: 15px;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-divider { width: 1px; height: 16px; background: var(--border); }
.brand-full {
  font-size: 12px; color: var(--muted); letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-mec {
  height: 26px; width: auto; flex-shrink: 0;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.hero-mec { display: none; height: 24px; width: auto; margin: 0 auto 16px; }
.lang-toggle {
  display: flex; gap: 2px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  border: none; background: transparent; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 5px 10px; border-radius: 999px; transition: all .18s ease;
}
.lang-btn .flag { width: 18px; height: 13px; border-radius: 2.5px; display: block; }
.lang-btn.active { background: var(--white); color: var(--text); box-shadow: 0 1px 5px rgba(0,0,0,.12); }

/* ===== hero ===== */
.hero { padding: 42px 0 46px; text-align: center; background:
  radial-gradient(1000px 480px at 50% -140px, var(--blue-wash), transparent 70%), var(--bg); }
.hero-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(34px, 6.4vw, 62px); line-height: 1.08; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 18px;
}
.hero-title em { font-style: normal;
  background: linear-gradient(120deg, var(--blue-deep) 20%, var(--blue) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 2.4vw, 21px); color: var(--muted);
  max-width: 680px; margin: 0 auto 10px;
}
.hero-sub strong { color: var(--text); }
.hero-speakers { margin: 18px auto 6px; max-width: 780px; }
.hero-speakers img {
  width: 100%; height: auto; display: block;
}
.hero-speakers figcaption {
  font-size: 12.5px; color: var(--muted); letter-spacing: .04em; margin-top: 2px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px; margin: 22px 0 26px;
}
.meta-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.meta-item svg { width: 19px; height: 19px; color: var(--blue); flex-shrink: 0; }
.meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ===== credibility strip ===== */
.cred-strip {
  background: linear-gradient(135deg, #0a1e40 0%, var(--blue-deep) 100%);
  padding: 26px 0;
}
.cred-inner { text-align: center; }
.cred-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 16px;
}
.cred-logos { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.cred-mex { height: 30px; width: auto; }
.cred-pl { height: 44px; width: auto; opacity: .95; }
.cred-plus { color: rgba(255,255,255,.5); font-size: 20px; font-weight: 300; }

/* ===== buttons ===== */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 600; font-size: 16px; border-radius: 999px;
  padding: 14px 30px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(120deg, var(--blue) 0%, #3f8dd9 100%);
  color: #fff; box-shadow: 0 6px 20px rgba(47, 123, 200, .35);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(47, 123, 200, .48); }
.btn-ghost { background: var(--white); color: var(--blue-deep); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-outline { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }
.btn-block { display: block; width: 100%; }

/* ===== info strip ===== */
.info-strip { padding: 8px 0 34px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 14px;
  border-top: 3px solid var(--blue); transition: transform .25s ease, box-shadow .25s ease;
}
.info-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(10,42,94,.11); }
.info-card.accent-blue   { border-top-color: var(--blue); }
.info-card.accent-orange { border-top-color: var(--orange); }
.info-card.accent-deep   { border-top-color: var(--blue-deep); }
.info-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 21px; height: 21px; }
.accent-blue   .info-icon { background: var(--blue-wash);   color: var(--blue); }
.accent-orange .info-icon { background: var(--orange-wash); color: #c96e10; }
.accent-deep   .info-icon { background: #e8edf6;            color: var(--blue-deep); }
.info-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; letter-spacing: -.01em; }
.info-card p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ===== sections ===== */
.section { padding: 72px 0; }
.section-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4.4vw, 40px); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.15; margin-bottom: 16px;
}
.section-lead { font-size: 17px; color: var(--muted); max-width: 720px; margin-bottom: 36px; }

/* ===== science ===== */
.science { background: var(--white); }
.science .section-kicker, .science .section-title { text-align: center; }
.science .section-lead { text-align: center; margin-left: auto; margin-right: auto; }
.science-stack { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; }
.science-card {
  border-radius: var(--radius); padding: 34px 32px;
}
.card-blue { background: var(--blue-wash); border-left: 4px solid var(--blue); }
.card-orange { background: var(--orange-wash); border-left: 4px solid var(--orange); }
.card-deep { background: #eef1f9; border-left: 4px solid var(--blue-deep); }
.science-pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.8);
}
.card-blue .science-pill { color: var(--blue-deep); }
.card-orange .science-pill { color: #b05c07; }
.card-deep .science-pill { color: var(--blue-deep); }
.science-card h3 {
  font-size: 30px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.sci-ic { width: 34px; height: 34px; flex-shrink: 0; }
.card-blue h3 { color: var(--blue-deep); }
.card-orange h3 { color: #8f4a05; }
.card-deep h3 { color: var(--blue-deep); }
.science-sub { font-size: 16px; color: #3c3c43; font-weight: 500; margin-bottom: 18px; }
.science-quote {
  background: rgba(255,255,255,.72); border-radius: 14px; padding: 18px 22px; margin: 0 0 18px;
}
.science-quote p { font-size: 17px; font-style: italic; font-weight: 600; color: var(--text); line-height: 1.45; }
.science-quote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--muted); }
.science-points { list-style: none; display: grid; gap: 9px; }
.science-points li { font-size: 14.5px; color: #3c3c43; padding-left: 24px; position: relative; }
.science-points li::before { content: "→"; position: absolute; left: 0; font-weight: 700; }
.card-blue .science-points li::before { color: var(--blue); }
.card-orange .science-points li::before { color: var(--orange); }
.card-deep .science-points li::before { color: var(--blue-deep); }
.science-callout {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 32px; text-align: center;
}
.science-callout h3 { font-size: 21px; font-weight: 800; color: var(--blue-deep); margin-bottom: 10px; letter-spacing: -.01em; }
.science-callout p { font-size: 15.5px; color: #3c3c43; max-width: 640px; margin: 0 auto; }
.science-more { font-size: 15.5px; color: var(--muted); padding: 4px 6px; }

/* ===== nassir ===== */
.nassir { background: var(--bg-alt); }
.nassir-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.nassir-photo {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow); aspect-ratio: 16/10;
}
.nassir-creds { list-style: none; margin: 18px 0 20px; display: grid; gap: 12px; }
.nassir-creds li {
  padding-left: 26px; position: relative; font-size: 15.5px; color: #3c3c43;
}
.nassir-creds li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px;
  border-radius: 50%; background: linear-gradient(120deg, var(--blue), var(--orange));
}
.nassir-note { font-size: 15px; color: var(--muted); font-style: italic; }

/* ===== speakers rail ===== */
.speakers { background: var(--white); padding-bottom: 84px; }
.drag-hint { display: none; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.profs-rail-wrap { margin-top: 34px; }
.profs-rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 6px 22px 22px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab; user-select: none;
}
.profs-rail.dragging { cursor: grabbing; }
.profs-rail.dragging .prof-card { pointer-events: none; }
.profs-rail::-webkit-scrollbar { display: none; }
.prof-card {
  flex: 0 0 290px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}
.prof-card:first-child { margin-left: auto; }
.prof-card:last-child { margin-right: auto; }
.prof-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(10,42,94,.14); }
.prof-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center top; display: block; }
.prof-body { padding: 20px 20px 24px; }
.prof-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.prof-cred { font-size: 13px; font-weight: 600; color: var(--blue); margin: 4px 0 12px; }
.prof-body ul { list-style: none; display: grid; gap: 7px; }
.prof-body li {
  font-size: 13.5px; color: var(--muted); padding-left: 18px; position: relative;
}
.prof-body li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--orange);
}

/* ===== program timeline ===== */
.program { background: var(--bg-alt); }
.timeline { display: grid; gap: 14px; margin-top: 30px; max-width: 720px; }
.tl-item {
  display: grid; grid-template-columns: 64px 44px 1fr; gap: 16px; align-items: center;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px;
}
.tl-time {
  font-weight: 800; font-size: 17px; color: var(--text);
  letter-spacing: -.01em;
}
.tl-time-blue { color: var(--blue); }
.tl-time-orange { color: var(--orange); }
.tl-ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.tl-ic svg { width: 22px; height: 22px; }
.tl-ic-blue { background: var(--blue-wash); color: var(--blue); }
.tl-ic-orange { background: var(--orange-wash); color: #c96e10; }
.tl-body h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 3px; }
.tl-body p { font-size: 14.5px; color: var(--muted); }

/* ===== tickets ===== */
.tickets { background: var(--white); }
.tickets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 218px; }
.ticket-card {
  border: 1px solid var(--border); border-radius: 22px; padding: 34px 30px;
  background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative;
}
.ticket-mock {
  position: absolute; bottom: calc(100% - 74px); left: 50%; transform: translateX(-50%);
  width: min(430px, 96%); height: auto; object-fit: contain; pointer-events: none;
}
.ticket-mock-online {
  width: min(340px, 82%); bottom: calc(100% - 52px);
  filter: drop-shadow(0 18px 28px rgba(10, 30, 64, .18));
}
.ticket-card .ticket-tag, .ticket-card .ticket-price, .ticket-card .ticket-per { position: relative; z-index: 1; }
.ticket-headroom { height: 96px; }
.ticket-featured { border: 2px solid var(--blue); position: relative; }
.ticket-tag {
  display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
  background: var(--orange-wash); color: #b05c07; margin-bottom: 18px;
}
.ticket-tag-blue { background: var(--blue-wash); color: var(--blue-deep); }
.ticket-price { font-size: 54px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.ticket-price .cur { font-size: 22px; font-weight: 700; vertical-align: super; margin-right: 4px; color: var(--muted); }
.ticket-list { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.ticket-list li { font-size: 15px; color: #3c3c43; padding-left: 26px; position: relative; }
.ticket-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--blue);
}
.ticket-mec-li { font-weight: 600; }
.ticket-mec-li::before { color: var(--orange) !important; }
.ticket-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ===== faq ===== */
.faq { background: var(--bg-alt); }
.faq details {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; margin-top: 12px;
}
.faq summary {
  font-weight: 600; font-size: 16px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.faq-btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; }
.faq-btn::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 0 0-8.6 15.1L2 22l5.1-1.3A10 10 0 1 0 12 2Zm5.4 14.1c-.2.7-1.3 1.3-1.9 1.4-.5.1-1.1.1-1.8-.1-.4-.1-1-.3-1.7-.6-2.9-1.3-4.8-4.2-5-4.4-.1-.2-1.2-1.6-1.2-3s.7-2.1 1-2.4c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.4.2.5.8 1.9.8 2 .1.1.1.3 0 .5-.1.2-.2.3-.3.5-.2.2-.4.4-.5.5-.2.2-.4.4-.2.7.2.4.9 1.5 2 2.4 1.4 1.2 2.5 1.6 2.9 1.8.4.2.6.1.8-.1.2-.2.9-1 1.1-1.4.2-.4.5-.3.8-.2.3.1 2 .9 2.3 1.1.3.2.6.3.6.4.1.2.1.7-.1 1.3Z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 0 0-8.6 15.1L2 22l5.1-1.3A10 10 0 1 0 12 2Zm5.4 14.1c-.2.7-1.3 1.3-1.9 1.4-.5.1-1.1.1-1.8-.1-.4-.1-1-.3-1.7-.6-2.9-1.3-4.8-4.2-5-4.4-.1-.2-1.2-1.6-1.2-3s.7-2.1 1-2.4c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.4.2.5.8 1.9.8 2 .1.1.1.3 0 .5-.1.2-.2.3-.3.5-.2.2-.4.4-.5.5-.2.2-.4.4-.2.7.2.4.9 1.5 2 2.4 1.4 1.2 2.5 1.6 2.9 1.8.4.2.6.1.8-.1.2-.2.9-1 1.1-1.4.2-.4.5-.3.8-.2.3.1 2 .9 2.3 1.1.3.2.6.3.6.4.1.2.1.7-.1 1.3Z"/></svg>') center/contain no-repeat;
}

/* ===== final cta ===== */
.final-cta {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 90%);
  text-align: center;
}
.final-inner h2 {
  color: #fff; font-size: clamp(24px, 4vw, 36px); font-weight: 700;
  letter-spacing: -.02em; max-width: 760px; margin: 0 auto 28px;
}
.final-cta .btn-primary {
  background: #fff; color: var(--blue-deep); box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

/* ===== footer ===== */
.footer { background: var(--bg); padding: 40px 0 56px; text-align: center; }
.footer-brand { font-size: 15px; }
.footer-links { margin-top: 10px; font-size: 13.5px; }
.footer-links a { color: var(--blue); text-decoration: none; }
.footer-copy { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ===== reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== mobile ===== */
@media (max-width: 860px) {
  .nassir-feature { grid-template-columns: 1fr; gap: 26px; }
  .info-grid { grid-template-columns: 1fr; }
  .science-grid { grid-template-columns: 1fr; }
  .ticket-mock { width: min(340px, 94%); bottom: calc(100% - 60px); }
  .ticket-mock-online { width: min(300px, 88%); bottom: calc(100% - 46px); }
  .ticket-headroom { height: 78px; }
  .tickets-grid { grid-template-columns: 1fr; gap: 190px; margin-top: 200px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 16px 0 40px; }
  .topbar-mec { height: 22px; }
  .cred-logos { gap: 18px; }
  .cred-mex { height: 24px; }
  .cred-pl { height: 36px; }
  .hero-meta { gap: 10px; margin: 18px 0 22px; }
  .meta-item { font-size: 13.5px; }
  .meta-item svg { width: 17px; height: 17px; }
  .meta-sep { display: none; }
  .info-card { padding: 15px 16px; gap: 12px; }
  .info-icon { width: 36px; height: 36px; }
  .brand-full { display: none; }
  .brand-divider { display: none; }
  .drag-hint { display: block; }
  .profs-rail { padding: 6px 18px 18px; }
  .prof-card { flex-basis: 260px; }
  .btn { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .tl-item { grid-template-columns: 46px 38px 1fr; gap: 10px; padding: 14px 14px; }
  .tl-ic { width: 38px; height: 38px; }
  .tl-time { font-size: 14.5px; }
  .science-card { padding: 24px 20px; }
  .science-card h3 { font-size: 24px; }
  .sci-ic { width: 27px; height: 27px; }
  .science-quote p { font-size: 15px; }
  .science-callout { padding: 22px 18px; }
  .science-callout h3 { font-size: 18px; }
  .ticket-mock { width: min(320px, 96%); bottom: calc(100% - 54px); }
  .ticket-mock-online { width: min(280px, 90%); bottom: calc(100% - 42px); }
  .ticket-headroom { height: 66px; }
  .tickets-grid { gap: 175px; margin-top: 185px; }
  .section { padding: 56px 0; }
}

/* ===== popup pré-checkout (estilo claro SIPC) ===== */
#sipc-popup-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(10, 30, 64, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
#sipc-popup-overlay.ativo { display: flex; }
#sipc-popup-box {
  position: relative; width: 100%; max-width: 460px;
  background: var(--white); border: 1px solid var(--border); border-radius: 22px;
  padding: clamp(28px, 5vw, 40px) clamp(22px, 5vw, 36px);
  box-shadow: 0 32px 80px rgba(10, 30, 64, .35);
  animation: sipcSlideUp .32s cubic-bezier(.22,.9,.36,1) both;
  border-top: 4px solid var(--blue);
}
@keyframes sipcSlideUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
#sipc-popup-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; transition: background .18s;
}
#sipc-popup-close:hover { background: #e8e8ed; }
#sipc-popup-kicker {
  text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 6px;
}
#sipc-popup-title {
  text-align: center; font-size: clamp(18px, 2vw, 21px); font-weight: 800;
  color: var(--text); line-height: 1.3; margin-bottom: 20px; letter-spacing: -.01em;
}
#sipc-popup-form { display: flex; flex-direction: column; gap: 12px; }
#sipc-popup-form input[type="text"],
#sipc-popup-form input[type="email"],
#sipc-popup-form input[type="tel"] {
  width: 100%; height: 50px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-size: 15px; font-family: inherit;
  padding: 0 16px; outline: none; transition: border-color .18s, background .18s;
}
#sipc-popup-form input::placeholder { color: var(--muted); }
#sipc-popup-form input:focus { border-color: var(--blue); background: var(--white); }
#sipc-popup-btn {
  margin-top: 4px; height: 54px; width: 100%; border: none; border-radius: 999px;
  background: var(--blue); color: #fff; font-family: inherit;
  font-size: 15.5px; font-weight: 700; letter-spacing: .01em; cursor: pointer;
  transition: background .2s, transform .2s;
}
#sipc-popup-btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
#sipc-popup-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
#sipc-popup-lgpd { margin-top: 12px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.45; }
#sipc-popup-msg { display: none; text-align: center; padding: 14px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-top: 10px; }
#sipc-popup-msg.ok { display: block; background: rgba(20, 160, 90, .1); color: #0f8a4c; border: 1px solid rgba(20, 160, 90, .25); }
#sipc-popup-msg.erro { display: block; background: rgba(220, 60, 60, .08); color: #c0392b; border: 1px solid rgba(220, 60, 60, .2); }

/* ===== card de abertura (Pedro moderador) ===== */
.card-open { background: linear-gradient(180deg,#f7fafe,#eef4fb); border-left: 4px solid var(--blue-deep,#0a2a5e); }
.open-head { display: flex; align-items: center; gap: 18px; }
.open-face {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 84px;
  border: 3px solid #fff; box-shadow: 0 2px 12px rgba(10,42,94,.18);
}
.open-name { margin: 6px 0 0; font-size: .95rem; font-weight: 600; color: var(--blue-deep,#0a2a5e); }
.card-open h3 { margin: 4px 0 0; }
.card-open .science-sub { margin-top: 14px; }

/* ===== ilustração pequena nos cards ===== */
.sci-img {
  width: 92px; height: 92px; float: right; margin: -6px 0 8px 16px;
  border-radius: 14px; background: #fff;
}
.card-teal { background: #eef7f6; border-left: 4px solid #128c7e; }
.card-teal .science-pill { color: #0d6d62; }
@media (max-width: 640px) {
  .sci-img { width: 68px; height: 68px; margin-left: 12px; }
  .open-face { width: 68px; height: 68px; flex-basis: 68px; }
}

/* ===== campo de telefone com DDI fixo ===== */
.sipc-tel-wrap { display: flex; gap: 8px; align-items: stretch; }
#sipc-ddi {
  flex: 0 0 auto; width: 104px; border-radius: 12px;
  border: 1px solid var(--border, #d2d2d7); background: #fff;
  padding: 0 8px; font-size: .95rem; font-weight: 600;
  color: var(--fg, #1d1d1f); cursor: pointer; font-family: inherit;
}
#sipc-ddi:focus { outline: none; border-color: var(--blue, #2f7bc8); box-shadow: 0 0 0 3px rgba(47,123,200,.15); }
.sipc-tel-wrap input[type="tel"] { flex: 1 1 auto; min-width: 0; }
@media (max-width: 380px) { #sipc-ddi { width: 92px; font-size: .88rem; } }


/* ===== feedback ao vivo do telefone ===== */
#sipc-popup-form input[type="tel"].tel-ok {
  border-color: #34a853;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334a853' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 15px;
  padding-right: 34px !important;
}
#sipc-popup-form input[type="tel"].tel-erro { border-color: #d93025; }
#sipc-tel-dica {
  margin: -4px 0 0; min-height: 1.1em; font-size: .82rem; line-height: 1.3;
  color: #d93025; text-align: left;
}
#sipc-tel-dica:empty { min-height: 0; }
