:root {
  color: #121337;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.4;
  --violet: #6429ee;
  --line: #c7cbfc;
  --gradient: linear-gradient(120deg, #883ef1, #1765ee);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 18% 21%, #e9e0ff, transparent 42%), radial-gradient(ellipse at 90% 10%, #dde6ff, transparent 37%), radial-gradient(ellipse at 80% 86%, #e5dbff, transparent 45%), #f4f4fd; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #5522d0; outline-offset: 4px; }
.skip, .sr { position: absolute; clip-path: inset(50%); }
.skip:focus { clip-path: none; background: white; z-index: 2; padding: 8px; }
.wrap { width: min(1220px, calc(100% - 36px)); margin: 10px auto 20px; }
.surface { background: linear-gradient(125deg, #ffffffce, #f5f4ffad); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 9px 20px #4146a61a, inset 0 0 14px #fff9; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 25px; flex-wrap: wrap; padding: 10px clamp(15px, 3vw, 40px); }
.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; font-size: clamp(1.2rem, 3vw, 1.85rem); font-weight: 820; letter-spacing: -.045em; }
.brand b { color: var(--violet); }
.logo { width: 41px; height: 29px; background: var(--gradient); border-radius: 8px; position: relative; display: grid; place-items: center; flex: none; }
.logo::after { content: ''; position: absolute; left: 6px; bottom: -5px; border-top: 7px solid #6348f4; border-right: 9px solid transparent; }
.logo i { width: 21px; height: 3px; border-radius: 4px; background: white; box-shadow: -2px -6px 0 #fff, -4px 6px 0 #fff; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 9px clamp(12px, 2vw, 28px); }
nav a, nav button:not(.action) { text-decoration: none; font-weight: 700; }
nav button:not(.action) { background: none; border: 0; padding: 0; }
nav a:hover, nav button:not(.action):hover { text-decoration: underline; }
.action { background: var(--gradient); color: white; border: 0; border-radius: 12px; padding: 8px 17px; font-weight: 750; }
.action:hover { filter: brightness(.89); }
.bar .action, .news-head .action { border-radius: 24px; }
.intro { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center; padding: 24px clamp(5px, 3vw, 40px) 28px; }
.intro::before { content: ''; position: absolute; inset: 0 25% 0 28%; background: repeating-radial-gradient(ellipse at 100% 100%, transparent 0 16px, #a5aefa45 17px 18px); mask-image: radial-gradient(ellipse, black, transparent 75%); pointer-events: none; z-index: -1; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.04; letter-spacing: -.045em; }
h1 { font-size: clamp(2rem, 4vw, 3.35rem); max-width: 620px; }
h1::after { content: ''; display: block; border-top: 4px solid #6a39ff; width: 145px; margin: 6px 0 9px; border-radius: 50%; }
.intro p { max-width: 420px; }
.ai { padding: 13px 16px; background: linear-gradient(120deg, #ffffffdc, #e8e6ffc2); }
.ai-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.ai-heading h2 { font-size: 1.35rem; }
.ai-heading h2 span, .symbol { color: var(--violet); }
.ai-heading small,.pill,.subhead span { background: #e4d6fc; border-radius: 20px; padding: 3px 10px; }
#assistant-form { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
#assistant-form input { border: 0; border-radius: 9px; width: 100%; min-width: 0; padding: 4px 8px; }
#assistant-form button { padding: 5px 12px; }
#answer:not(:empty) { margin: 8px 0 0; }
#answer button { border: 0; background: transparent; text-decoration: underline; padding: 0; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 3.7vw, 2.55rem); }
.section-title::after, .subhead::after { content: ''; flex: 1; min-width: 10px; height: 1px; background: #a7afff; }
.note { margin: 8px 0 12px; color: #454571; font-size: .875rem; }
.polls { display: grid; grid-template-columns: 1.08fr .92fr 1.08fr; gap: 12px; }
.poll { padding: 13px; display: grid; gap: 12px; grid-template-rows: 1fr auto; }
.poll-top { display: grid; grid-template-columns: minmax(0, 42%) 1fr; align-items: center; gap: 13px; }
.poll-top img { width: 100%; height: clamp(120px, 16vw, 205px); object-fit: cover; border-radius: 11px; }
.poll-top h3 { font-size: clamp(1.05rem, 2.1vw, 1.65rem); margin-bottom: 9px; }
.poll .pill { display: inline-block; font-size: .75rem; }
.news,#sobre,footer { margin-top: 29px; }
.news { padding: clamp(13px, 2vw, 23px); }
.news-head,.subhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.news-head h2 { flex: 1; min-width: 205px; }
.subhead { margin: 13px 0; color: #271280; font-weight: 650; }
.stories { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.story { display: grid; grid-template-rows: 1fr auto; overflow: hidden; padding: 0; text-align: left; background: #faf9ff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 5px 12px #443dc319; }
.story:first-child { grid-row: span 2; }
.story-image { position: relative; display: block; min-height: 130px; }
.story-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.story-image small { position: absolute; top: 7px; left: 7px; padding: 3px 7px; background: #121337ed; color: white; border-radius: 5px; }
.story-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-size: clamp(1.05rem, 2.2vw, 1.55rem); line-height: 1.12; letter-spacing: -.035em; }
.story:first-child .story-title { font-size: clamp(1.15rem, 2.7vw, 1.95rem); }
.story-title > span { display: grid; place-items: center; border-radius: 50%; background: #eae2ff; color: #5622df; width: 36px; height: 36px; flex: none; font-size: 27px; }
.story:hover .story-title { color: #5326c1; }
.profile { display: grid; grid-template-columns: minmax(105px, 23%) 1fr; align-items: stretch; gap: 20px; padding: 18px 26px; margin-top: 14px; }
.profile-photo { display: grid; place-items: center; min-height: 125px; border-radius: 12px; background: #e8dffd; color: #572ac5; font-weight: 700; text-align: center; }
.profile > div + div { border-left: 1px solid #a497f3; padding-left: 20px; }
.profile h3 { font-size: clamp(1.35rem, 2.8vw, 2.05rem); }
.profile .pill { display: inline-block; margin: 5px 0 8px; }
footer .brand { font-size: clamp(1.2rem, 2.6vw, 1.55rem); }
dialog { width: min(540px, calc(100% - 28px)); max-height: 85vh; border: 1px solid var(--line); border-radius: 18px; padding: 22px; color: inherit; }
dialog::backdrop { background: #18123c90; }
dialog h2 { margin: 8px 0 16px; font-size: 1.7rem; }
dialog p { margin: 10px 0; }
.close { text-align: right; }
.close button { border: 1px solid var(--line); border-radius: 8px; background: #f3efff; padding: 6px 12px; }
fieldset { border: 0; margin: 0 0 12px; padding: 0; }
fieldset label { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
input[type=radio] { accent-color: var(--violet); }
.tip { display: grid; justify-items: start; gap: 9px; }
textarea { width: 100%; min-height: 95px; border: 1px solid #9b92d9; border-radius: 8px; padding: 8px; }
@media (max-width: 820px) {
  .intro { gap: 15px; }
  .polls { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .poll-top { grid-template-columns: 1fr; align-content: start; }
  .poll-top img { height: 140px; object-position: center 29%; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 22px); }
  .intro,.stories,.polls { grid-template-columns: 1fr; }
  .stories { grid-template-rows: auto; }
  .story:first-child { grid-row: auto; }
  .story-image { min-height: 155px; }
  .story:first-child .story-image { min-height: 200px; }
  .poll-top { grid-template-columns: minmax(0, 34%) 1fr; align-items: center; }
  .poll-top img { height: 125px; }
  .profile { padding: 12px; gap: 10px; }
  .profile > div + div { padding-left: 10px; }
  .section-title { gap: 7px; }
}

.profile-photo { min-width: 0; padding: 8px; }
.profile-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 168px;
  border-radius: 9px;
  object-fit: contain;
}

.creator-name { text-decoration: none; }
.creator-name:hover { text-decoration: underline; }
.creator-link { display: inline-block; margin: 9px 0; text-decoration: none; }

.access-form { display: grid; gap: 9px; }
.access-form > label { font-weight: 700; }
.access-form > input {
  width: 100%; min-width: 0; padding: 9px 12px;
  border: 1px solid #9b92d9; border-radius: 8px;
}
.access-form .action, .access-actions .action { justify-self: start; }
.access-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.access-consent { display: flex; align-items: baseline; gap: 8px; }
.signup-chat {
  list-style: none; display: grid; gap: 8px; max-height: 26vh;
  overflow: auto; padding: 0 6px 0 0; margin: 12px 0;
}
.signup-chat li {
  justify-self: start; border-radius: 12px 12px 12px 3px;
  background: #eee7ff; padding: 8px 12px;
}
.signup-chat .signup-reply {
  justify-self: end; border-radius: 12px 12px 3px 12px; background: #e4ebff;
}

#demo-greeting:not(:empty) {
  margin-top: 12px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f6f2ff;
  font-weight: 700;
}

.poll-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: clamp(100px, 14vw, 175px);
  border-radius: 11px;
  background: #eee7ff;
  color: #6429ee;
  font-size: 1.5rem;
  font-weight: 800;
}
.poll-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.poll-visual-compact { width: 74px; height: 74px; min-height: 0; margin: 0 0 10px; }

/* Os cartões secundários das próximas enquetes recebem retratos verticais. */
.story:not(:first-child) .story-image {
  display: grid;
  place-items: center;
  min-height: 188px;
  padding: 34px 14px 12px;
  background: #eee9ff;
}
.story:not(:first-child) .story-image img {
  position: static;
  width: min(100%, 132px);
  height: 142px;
  object-fit: contain;
  border: 1px solid #d5cbee;
  border-radius: 12px;
  background: #f8f5ff;
}

.legal-page { max-width: 850px; margin-block: 24px; }
.legal-page nav { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 16px; }
.legal-document { padding: clamp(18px, 5vw, 40px); line-height: 1.6; }
.legal-document h1 { font-size: clamp(2rem, 6vw, 3rem); }
.legal-document h2 { font-size: 1.35rem; margin-top: 1.4em; }
.legal-document li + li { margin-top: .6em; }
.legal-page a { overflow-wrap: anywhere; }
