.platform-picker { border-radius: 26px; overflow: hidden; border: 1px solid var(--outline); background: var(--surface); box-shadow: var(--shadow-lg); }
.creator-visual { position: relative; min-width: 0; width: 100%; max-width: 620px; justify-self: center; align-self: center; }
.creator-visual img { display: block; width: 100%; height: auto; border-radius: clamp(22px, 5vw, 44px); box-shadow: 0 18px 60px rgba(53, 23, 82, .12); }
.creator-chip { display: grid; place-items: center; position: absolute; height: 47px; width: 47px; border-radius: 15px; box-shadow: var(--shadow-lg); font-size: 25px; }
.creator-chip-heart { top: 9%; left: 9%; color: #a13150; background: #ffeded; animation: creator-float 3s ease-in-out 2; }
.creator-chip-play { right: 8%; bottom: 10%; color: #55128c; background: #f2e5ff; animation: creator-float 3.3s .35s ease-in-out 2; }
.section-picker h3::after { content: ''; display: block; width: 62px; height: 3px; border-radius: 4px; margin-top: 5px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.platform-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; background: #2a183c; }
.platform-switch button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; border: 0; border-radius: 18px; padding: 14px 6px; color: #f1e9fa; background: transparent; font: 600 1rem var(--font-display); cursor: pointer; transition: background .18s, color .18s; }
.platform-switch button:hover { background: #492e61; }
.platform-switch button[aria-pressed="true"] { background: #f7ecff; color: #4c176f; }
.platform-switch button:focus-visible, .platform-shortcut:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
.platform-main { padding: 18px; animation: enter-platform .26s ease-out both; }
.platform-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform-shortcut { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 79px; padding: 12px; border: 1px solid var(--outline); border-bottom-width: 3px; border-radius: 16px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.platform-shortcut:hover { transform: translateY(-2px); border-color: var(--blue); background: var(--blue-tint); }
.platform-shortcut strong { display: block; font: 700 1.2rem var(--font-display); line-height: 1.2; }
.platform-shortcut small { display: block; color: var(--muted); margin-top: 4px; }
.shortcut-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--blue-ink); background: var(--blue-tint); font-size: 20px; }
.shortcut-arrow { color: var(--muted); font-size: 20px; }
.platform-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; }
.more-platforms { margin-top: 20px; }
.more-platforms summary { font-weight: 700; cursor: pointer; }
.more-platforms .section-choices { margin-top: 16px; }
.automatic-panel { display: flex; align-items: center; gap: 18px; padding: clamp(18px, 4vw, 36px); background: var(--blue-tint); border-radius: 26px; border: 1px solid var(--outline); }
.automatic-mark { display: grid; place-items: center; flex: 0 0 54px; height: 54px; border-radius: 16px; color: var(--blue-ink); background: var(--surface); }
.automatic-mark .ms { font-size: 28px; }
.automatic-copy { flex: 1; }
.automatic-copy h2 { margin: 0 0 6px; }
.automatic-copy p { margin: 0; color: var(--muted); max-width: 60ch; }
#automatic-likes { scroll-margin-top: 72px; }
@keyframes enter-platform { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes creator-float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-9px) rotate(5deg); } }
@media (max-width: 570px) {
  .platform-switch button { flex-direction: column; gap: 4px; font-size: .79rem; padding: 10px 2px; }
  .platform-main { padding: 10px; }
  .platform-shortcuts { gap: 8px; }
  .platform-shortcut { gap: 6px; padding: 8px; }
  .platform-shortcut strong { font-size: 1rem; }
  .shortcut-symbol { width: 26px; height: 26px; font-size: 16px; }
  .shortcut-arrow { display: none; }
  .automatic-panel { flex-wrap: wrap; }
  .automatic-copy { flex-basis: calc(100% - 76px); }
  .creator-chip { width: 36px; height: 36px; border-radius: 11px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .platform-main, .creator-chip { animation: none; }
  .platform-switch button, .platform-shortcut { transition: none; }
  .platform-shortcut:hover { transform: none; }
}


/* Bring the platform picker closer to the top of the homepage. */
.hero { padding: 24px 0 12px; }
.hero-grid { gap: clamp(16px, 3vw, 40px); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.35rem); line-height: 1.08; margin: 12px 0; }
.hero .lead { font-size: clamp(.95rem, 1.45vw, 1.05rem); line-height: 1.5; margin: 0; }
.hero-cta { margin: 16px 0 12px; gap: 8px; }
.hero .creator-visual { max-width: 365px; }
.hero .creator-visual img { border-radius: 22px; }
.hero .paybar { margin-top: 14px; }
#services.section { padding-top: clamp(20px, 3vw, 32px); }
@media (max-width: 760px) {
  .hero { padding-top: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero .creator-visual { max-width: 240px; }
  .hero-cta { margin-bottom: 8px; }
}

.platform-switch { position: relative; grid-template-columns: repeat(var(--tab-count, 4), minmax(0, 1fr)); }
.platform-switch[data-count="1"] { --tab-count: 1; }
.platform-switch[data-count="2"] { --tab-count: 2; }
.platform-switch[data-count="3"] { --tab-count: 3; }
.platform-switch[data-count="4"] { --tab-count: 4; }
.platform-switch[data-index="0"] { --tab-index: 0; }
.platform-switch[data-from="0"] { --tab-from: 0; }
.platform-switch[data-index="1"] { --tab-index: 1; }
.platform-switch[data-from="1"] { --tab-from: 1; }
.platform-switch[data-index="2"] { --tab-index: 2; }
.platform-switch[data-from="2"] { --tab-from: 2; }
.platform-switch[data-index="3"] { --tab-index: 3; }
.platform-switch[data-from="3"] { --tab-from: 3; }

.platform-switch::before {
  content: ""; position: absolute; pointer-events: none; inset: 6px auto 6px 6px;
  width: calc((100% - 8px) / var(--tab-count, 4) - 4px);
  border-radius: 18px; background: #f7ecff;
  transform: translateX(calc(var(--tab-index, 0) * (100% + 4px)));
}
.platform-switch button { position: relative; }
.platform-switch button[aria-pressed="true"] { background: transparent; }
.platform-main { animation: platform-content-in .18s ease-out both; }
@keyframes platform-content-in { from { opacity: .55; } to { opacity: 1; } }
@keyframes platform-indicator-in {
  from { transform: translateX(calc(var(--tab-from, 0) * (100% + 4px))); }
}
@media (prefers-reduced-motion: no-preference) {
  .platform-switch::before { animation: platform-indicator-in .27s cubic-bezier(.2,.75,.25,1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .platform-main { animation: none; }
}
