/* Visual refinement. Existing content, section order and behavior stay authoritative. */
.mobile-style-slot { display: none; }
:root {
  --bg: #101014;
  --panel: #1c1921;
  --line: #33303a;
  --muted: #b2aeb9;
  --radius: 16px;
  --header: 72px;
  --action-pink: #d82c72;
}
::selection { background: #ed3d8755; color: #fff; }
html { scrollbar-color: #65515e #151317; }
input { caret-color: #ed3d87; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
.topbar { padding-inline: 32px; gap: 34px; background: #111014; border-bottom-color: #302631; }
.brand { font-size: 20px; letter-spacing: -.4px; }
.brand > .bi { color: #ed3d87; font-size: 27px; }
.style-tabs {
  align-self: center; height: 44px; gap: 3px; padding: 4px;
  background: #201a23; border: 1px solid #382a37; border-radius: 12px;
}
.style-tabs button { min-width: 90px; padding-inline: 15px; color: #bcb1bf; border-radius: 8px; }
.style-tabs button[aria-pressed=true] { background: #573047; color: #fff; }
.style-tabs button[aria-pressed=true]:after { display: none; }
.top-actions { gap: 12px; }
.button { min-height: 46px; border-radius: 11px; padding: 12px 24px; font-size: 13px; }
.primary, .chat-round, .filters button[aria-pressed=true] {
  background: linear-gradient(135deg, #d82c72, #b91c5e);
}
.primary { border-color: #f776aa77; box-shadow: 0 5px 14px #0004; }
.secondary { background: #1a171e; border-color: #4a3d48; }
.outlined { border-color: #b84c7c; background: #281b25; }
.button:hover { filter: brightness(1.08); }
.button-row .primary { min-width: 192px; }
.hero {
  margin: 24px auto 0; width: calc(100% - 64px); max-width: 1376px;
  height: 420px; border-radius: 18px; overflow: hidden;
  background-color: #23141f;
  background-image: url('../images/kales-hero-mobile.webp');
  background-size: auto 178%; background-position: right 10%;
  border: 1px solid #563344;
}
.hero:before {
  background: linear-gradient(90deg, #24151f 0%, #24151f 55%, #24151f9c 66%, #24151f1a 79%, transparent 90%);
}
.hero-copy { padding: 34px 48px; width: 100%; }
.hero h1 { font-size: clamp(46px, 4.45vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 19px; }
.hero p { color: #ddd2dc; font-size: 17px; line-height: 1.6; }
.hero .button-row { gap: 12px; margin: 25px 0 19px; }
.hero .outlined { border-color: #916379; background: #392532; }
.hero small { color: #bdb0bb; }
.section { padding: 34px 32px; }
.browse { padding-top: 32px; }
.section-heading { margin-bottom: 20px; align-items: center; }
h2 { font-size: 32px; letter-spacing: -.025em; }
.search { background: #1e1b23; border-color: #3c3340; border-radius: 12px; height: 48px; width: 380px; }
.search input { font-size: 13px; }
.search input::placeholder { color: #aca4b0; opacity: 1; }
.search:focus-within { border-color: #ed3d87; }
.filters { margin-bottom: 20px; gap: 9px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { padding: 10px 21px; background: #211c25; border-color: #3c303c; color: #d1c5d0; font-size: 13px; }
.filters button[aria-pressed=true] { border-color: #f87ab0; color: #fff; }
.character-grid { gap: 18px; }
.character-card {
  aspect-ratio: .68; border: 0; border-radius: 16px; background: #211820;
  box-shadow: 0 7px 18px #0003; outline: 1px solid #50404c66; outline-offset: -1px;
  transition: transform 200ms ease-out, outline-color 200ms ease-out;
}
.character-card > img { filter: brightness(1.06) contrast(1.025); transition: transform 350ms cubic-bezier(.2,.8,.2,1); }
.character-card:after { background: linear-gradient(180deg, transparent 35%, #1b11191a 48%, #1a1018b8 70%, #1b101af2 88%, #1b101a 100%); }
.character-copy { inset: auto 15px 14px; }
.character-copy h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.age { font-size: 13px; color: #e1c9d6; margin-left: 5px; }
.character-copy p {
  color: #e0d5de; font-size: 12px; line-height: 1.5; min-height: 36px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-bottom { margin-top: 13px; gap: 8px; }
.tags { gap: 5px; }
.tags li { font-size: 12px; padding: 4px 7px; border-radius: 7px; background: #ffffff13; color: #eee1e9; }
.character-card .chat-round { height: 44px; width: 44px; border: 1px solid #ffb2d277; }
.chat-round .bi { display: inline-block; transform: rotate(-35deg); font-size: 19px; }
.ai-label { right: 12px; top: 12px; background: #211921e6; padding: 4px 6px; font-size: 12px; border-radius: 6px; color: #f0e5ed; }
.character-card:focus-within { outline-color: #ff8dbb; }
.center { margin-top: 26px; }
.view-all { background: #281a25; border-color: #86445f; padding-inline: 30px; }
.creator { min-height: 275px; padding: 38px 40px; border-radius: 16px; border-color: #78475e; background-color: #341c2c; }
.creator h2 { font-size: 31px; max-width: 650px; }
.creator:before { background: linear-gradient(90deg,#301b29f5 0%,#301b29ef 40%,#301b2940 70%,transparent); }
.creator p { color: #d8bdce; margin-block: 14px 23px; }
.conversation { padding-block: 48px; gap: 52px; }
.chat-demo { border-color: #4a3646; border-radius: 16px; background: #19141c; box-shadow: none; }
.chat-demo-sidebar { background: #211a26; border-color: #392c3b; }
.chat-demo-sidebar .chat-active { background: #66304e; }
.chat-heading { border-color: #352a38; }
.bubble { background: #302732; color: #e8dae5; }
.bubble.sent { background: #aa235d; color: #fff; }
.demo-input { background: #251f2a; border-color: #433348; }
.feature > span { border-radius: 16px; background: #30202c; color: #f671ab; }
.feature h3 { font-size: 18px; }
.feature p { color: #bcaebb; }
.conversation-copy h2 { font-size: 34px; }
.category-grid { gap: 18px; }
.category { min-height: 185px; border-radius: 14px; border-color: #634057; background: #241a23; padding: 28px; }
.category img { width: 65%; transition: transform 350ms ease-out; }
.category:after { background: linear-gradient(90deg,#261a26fa 4%,#261a26ed 32%,#261a2670 55%,transparent 82%); }
.category strong { font-size: 22px; letter-spacing: -.02em; }
.category span span { color: #d2bdcd; }
.category > .bi { color: #f2adc9; font-size: 32px; }
.intro { border-color: #362b35; gap: 44px; padding-block: 42px; margin-top: 20px; }
.intro p { color: #bcb0bd; }
.photo-mosaic { gap: 12px; }
.photo-mosaic img { border-radius: 12px; object-position: center 15%; }
.faq { padding-block: 36px; }
.faq h2 { font-size: 27px; margin-bottom: 22px; }
.faq details { background: #1b171f; border-color: #3a2e3b; border-radius: 10px; margin-bottom: 9px; }
.faq details[open] { border-color: #735063; background: #231b26; }
.faq summary { min-height: 54px; padding-block: 16px; }
.faq details p { color: #c9bac9; }
.bottom-cta { border-radius: 16px; padding: 32px 38px; border: 1px solid #72445c; min-height: 152px; }
.bottom-cta h2 { font-size: 32px; }
footer.section { padding-top: 40px; padding-bottom: 40px; margin-top: 24px; border-top: 1px solid #312530; }
footer h3 { color: #f0dce8; }
footer nav a, footer nav button { color: #b9a7b6; }
@media (hover:hover) and (pointer:fine) {
 .character-card:hover { transform: translateY(-4px); outline-color: #e56a9e; }
 .character-card:hover > img { transform: scale(1.045); }
 .character-card:hover .chat-round .bi { transform: none; }
 .category:hover { border-color: #df76a3; }
 .category:hover img { transform: scale(1.04); }
}
@media (max-width:1250px) {
 .hero { width: calc(100% - 48px); background-position: right 10%; }
 .hero-copy { padding-inline: 36px; }
 .section { padding-inline: 24px; }
 .character-grid { gap: 14px; }
 .character-copy { inset: auto 12px 12px; }
 .character-copy h3 { font-size: 20px; }
 .creator h2 { max-width: 56%; }
 .conversation { gap: 30px; }
}
@media (max-width:1100px) {
 .hero { background-size: auto 155%; height: 405px; }
 .hero h1 { font-size: 52px; }
 .hero:before { background: linear-gradient(90deg,#24151f 0%,#24151ff0 32%,#24151f8a 55%,transparent 82%); }
 .search { width: 320px; }
 .section-heading h2 { max-width: none; font-size: 29px; }
 .character-copy h3 { font-size: 21px; }
 .conversation-copy h2 { font-size: 28px; }
 .category { padding: 23px; }
 .category strong { font-size: 20px; }
}
@media (max-width:900px) {
 :root { --header: 68px; }
 .topbar { padding-inline: 24px; gap: 20px; }
 .style-tabs { margin-left: 0; }
 .style-tabs button { min-width: 75px; }
 .hero { margin-top: 20px; height: 395px; background-size: auto 150%; }
 .hero-copy { padding-inline: 28px; }
 .hero h1 { font-size: 46px; }
 .hero p { font-size: 16px; max-width: 370px; }
 .creator { padding: 30px; }
 .creator h2 { font-size: 28px; max-width: 52%; }
 .conversation-copy h2 { font-size: 27px; }
 .feature { gap: 15px; }
 .feature > span { width: 48px; height: 48px; }
 .category > span { max-width: 68%; }
 .category strong { font-size: 20px; }
 .bottom-cta { padding: 28px; }
}
@media (max-width:600px) {
 :root { --header: 64px; }
 .topbar { padding-inline: 16px; gap: 6px; }
 .brand { font-size: 16px; }
 .topbar > .brand { font-size: 16px; }
 .brand > .bi { font-size: 24px; }
 .top-actions .button { padding-inline: 15px; font-size: 12px; min-height: 42px; }
 .topbar > .style-tabs { display: none; }
 .mobile-style-slot { display: flex; margin: 0 0 16px; }
 .mobile-style-slot .style-tabs {
   position: static; inset: auto; width: 236px; max-width: 100%; height: 46px;
   margin: 0; padding: 4px; gap: 4px; align-self: auto;
   border: 1px solid #44313f; border-radius: 11px; background: #1a161e;
 }
 .mobile-style-slot .style-tabs button {
   flex: 1; min-width: 0; min-height: 36px; padding: 7px 14px;
   border: 1px solid transparent; border-radius: 7px; font-size: 13px; color: #bcb1bf;
 }
 .mobile-style-slot .style-tabs button[aria-pressed=true] {
   background: #49283b; border-color: #8f486a; color: #fff;
 }
 main { padding-top: var(--header); }
 .hero {
   width: 100%; max-width: none; margin-top: 0; border: 0; border-radius: 0; height: 490px;
   background-size: cover; background-position: center top; background-color: #21151f;
 }
 .hero:before { background: linear-gradient(0deg,#101014 0%,#181019e8 22%,#18101980 43%,transparent 73%); }
 .hero-copy { padding: 0 22px 29px; }
 .hero h1 { font-size: 40px; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 13px; }
 .hero p { font-size: 15px; line-height: 1.55; max-width: 310px; }
 .hero .button-row { gap: 10px; margin-block: 20px 16px; }
 .hero .button { padding-inline: 16px; font-size: 12px; min-height: 46px; }
 .hero .button-row .primary { min-width: 0; }
 .hero small { color: #c7bac5; }
 .section { padding-inline: 18px; }
 .browse { padding-top: 24px; }
 .section-heading h2 { font-size: 28px; margin-bottom: 17px; }
 .search { height: 48px; width: 100%; }
 .search input { font-size: 12px; }
 .filters { margin-bottom: 17px; gap: 8px; }
 .filters button { padding-inline: 17px; font-size: 12px; }
 .character-grid { gap: 12px; }
 .character-card { aspect-ratio: .62; border-radius: 13px; }
 .character-copy { inset: auto 10px 11px; }
 .character-copy h3 { font-size: 19px; margin-bottom: 5px; }
 .age { font-size: 12px; margin-left: 2px; }
 .character-copy p { font-size: 12px; min-height: 36px; line-height: 1.45; }
 .card-bottom { margin-top: 9px; gap: 4px; }
 .tags { max-width: calc(100% - 48px); }
 .tags li { padding: 4px 6px; }
 .ai-label { top: 9px; right: 9px; padding: 3px 5px; }
 .creator { width: calc(100% - 36px); min-height: 345px; padding: 24px 22px; border-radius: 14px; }
 .creator h2 { max-width: 100%; font-size: 26px; }
 .creator:before { background: linear-gradient(0deg,#301b29 0%,#301b29f0 38%,#301b2955 72%,transparent); }
 .creator p { font-size: 13px; margin-block: 12px 18px; }
 .conversation { padding-block: 36px; gap: 28px; }
 .conversation-copy h2 { font-size: 29px; }
 .chat-demo { min-height: 385px; }
 .feature h3 { font-size: 17px; }
 .categories { padding-top: 22px; }
 .categories h2 { font-size: 27px; }
 .category { min-height: 165px; padding: 24px; }
 .category > span { max-width: 66%; }
 .category strong { font-size: 21px; }
 .intro { margin-top: 10px; padding-block: 30px; }
 .intro h2 { font-size: 29px; }
 .faq { padding-block: 30px; }
 .faq h2 { font-size: 23px; }
 .faq summary { font-size: 13px; }
 .bottom-cta { width: calc(100% - 36px); padding: 29px 23px; }
 .bottom-cta h2 { font-size: 28px; }
 footer.section { margin-top: 24px; padding-block: 32px; }
}

.skip-link{background:var(--action-pink)}
.chat-round .bi-send{transform:none}
