/* Material 3 Expressive: tonal blue palette, big shapes, spring motion */
:root {
  --p: #2F4BD9;
  --on-p: #FFFFFF;
  --pc: #DCE1FF;
  --on-pc: #00105C;
  --sc: #DFE3F7;
  --on-sc: #161C3A;
  --tc: #BFE9FF;
  --on-tc: #00212C;
  --s: #FAFAFF;
  --s-low: #F1F2FB;
  --s-mid: #EAECF8;
  --s-high: #E3E6F4;
  --s-highest: #DCDFEF;
  --on-s: #181B26;
  --on-sv: #434759;
  --ov: #C3C6DA;
  --navy: #0E1B6B;
  --navy-hi: #1B2E9C;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --eff: cubic-bezier(.2, 0, 0, 1);
  --font: "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --p-text: #2F4BD9;
  --nav-bg: rgba(234, 236, 248, .88);
  --pad: clamp(20px, 5vw, 72px);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --p: #3F5AF0;
  --p-text: #A9B8FF;
  --pc: #232F8F;
  --on-pc: #DDE1FF;
  --sc: #2B2F4D;
  --on-sc: #E0E2F9;
  --tc: #00506A;
  --on-tc: #C2EBFF;
  --s: #10121B;
  --s-low: #171A26;
  --s-mid: #1D2130;
  --s-high: #242839;
  --s-highest: #2C3144;
  --on-s: #E5E7F5;
  --on-sv: #B4B8CE;
  --ov: #444960;
  --navy: #0A1250;
  --navy-hi: #16257E;
  --nav-bg: rgba(36, 40, 57, .86);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

body {
  margin: 0;
  background: var(--s);
  color: var(--on-s);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--p);
  outline-offset: 3px;
}

button:focus-visible,
.btn:focus-visible,
.theme-btn:focus-visible,
.nav-menu-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--p);
}

@media (pointer: coarse) {
  :focus,
  :focus-visible,
  button:focus,
  button:focus-visible,
  .btn:focus,
  .btn:focus-visible,
  .theme-btn:focus,
  .theme-btn:focus-visible,
  .nav-menu-btn:focus,
  .nav-menu-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.shapes-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .98;
  font-stretch: 112%;
}

h2 {
  font-size: clamp(42px, 7vw, 108px);
}

p {
  margin: 0 0 1em;
  max-width: 58ch;
}

section {
  scroll-margin-top: 96px;
}

/* Inset panels with big corners */
.panel {
  margin: 12px;
  border-radius: clamp(32px, 5vw, 64px);
  padding: clamp(56px, 8vw, 120px) var(--pad);
  position: relative;
  overflow: hidden;
}

.panel.p-primary {
  background: var(--p);
  color: var(--on-p);
}

.panel.p-navy {
  background: var(--navy);
  color: #fff;
}

.panel.p-pc {
  background: var(--pc);
  color: var(--on-pc);
}

.panel.p-low {
  background: var(--s-low);
}

.panel.p-mid {
  background: var(--s-mid);
}

/* Buttons: pill that morphs to a rounded square when pressed */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 28px;
  background: var(--p);
  color: var(--on-p);
  font: 600 17px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: border-radius .4s var(--spring), background .2s, transform .4s var(--spring);
}

.btn:hover {
  background: color-mix(in srgb, var(--p) 88%, #000);
}

.btn:active {
  border-radius: 14px;
  transform: scale(.97);
}

.btn.xl {
  height: 72px;
  padding: 0 38px;
  border-radius: 36px;
  font-size: 20px;
}

.btn.xl:active {
  border-radius: 20px;
}

.btn.sm {
  height: 48px;
  padding: 0 22px;
  border-radius: 24px;
  font-size: 16px;
}

.btn.sm:active {
  border-radius: 12px;
}

.btn.tonal {
  background: var(--pc);
  color: var(--on-pc);
}

.btn.tonal:hover {
  background: color-mix(in srgb, var(--pc) 88%, var(--on-pc));
}

.btn.white {
  background: #fff;
  color: var(--p);
  transition: border-radius .4s var(--spring), background .2s, color .2s, transform .4s var(--spring);
}

.btn.white:hover {
  background: var(--pc);
  color: var(--on-pc);
}

.btn.outline {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 2px currentColor;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, .14);
}

.btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn svg.fill {
  fill: currentColor;
  stroke: none;
}

/* Floating navigation */
.nav {
  position: fixed;
  z-index: 30;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  height: 68px;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 34px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
  font-stretch: 112%;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 16px;
}

.nav li a:not(.btn) {
  display: block;
  padding: 10px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background .2s, border-radius .35s var(--spring);
}

.nav li a:not(.btn):hover {
  background: var(--pc);
  border-radius: 14px;
}

.nav .btn {
  height: 48px;
  padding: 0 22px;
}

.nav li a.active:not(.btn) {
  background: var(--pc);
  color: var(--on-pc);
}

/* Hero */
.hero {
  padding: 132px var(--pad) 64px;
  position: relative;
  z-index: 5;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 100px);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--p-text);
}

.hero p.lead {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(19px, 1.7vw, 23px);
  color: var(--on-sv);
  margin-bottom: 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px 0 12px;
  border-radius: 12px;
  background: var(--s-high);
  font-size: 15px;
  font-weight: 500;
}

.chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--p-text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip svg.fill {
  fill: var(--p-text);
  stroke: none;
}

@keyframes drift {
  to {
    transform: rotate(360deg);
  }
}

/* Phone */
.circ {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-radius .4s var(--spring), background .2s, transform .4s var(--spring);
}

.circ:hover {
  background: rgba(255, 255, 255, .24);
}

.circ:active {
  transform: scale(.92);
}

.circ svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.circ.play {
  width: 76px;
  height: 56px;
  border-radius: 28px;
  background: #fff;
}

.circ.play:hover {
  background: var(--pc);
}

.circ.play svg {
  fill: var(--p);
  width: 26px;
  height: 26px;
}

.is-playing .circ.play {
  border-radius: 16px;
}

.circ .i-pause {
  display: none;
}

.is-playing .circ .i-play {
  display: none;
}

.is-playing .circ .i-pause {
  display: block;
}

/* Wavy seek slider: draggable, keyboard friendly, flattens when paused */
.seek {
  position: relative;
  padding: 8px 0;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 14px;
}

.seek:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.wave {
  display: block;
  width: 100%;
  height: 28px;
  overflow: visible;
}

.wave .act {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wave .trk {
  stroke: rgba(255, 255, 255, .3);
  stroke-width: 6;
  stroke-linecap: round;
}

.wave .stp {
  fill: rgba(255, 255, 255, .7);
}

.wave .hnd {
  fill: #fff;
}

/* Split download button with menu */
.split {
  position: relative;
  display: inline-flex;
  gap: 2px;
}

.split .main {
  border-radius: 36px 8px 8px 36px;
}

.split .chev {
  width: 64px;
  padding: 0;
  justify-content: center;
  border-radius: 8px 36px 36px 8px;
}

.split .chev svg {
  transition: transform .45s var(--spring);
}

.split .chev[aria-expanded="true"] {
  border-radius: 36px;
}

.split .chev[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.menu {
  text-align: left;
  position: absolute;
  z-index: 15;
  top: calc(100% + 10px);
  left: 0;
  min-width: 330px;
  max-width: calc(100vw - 40px);
  padding: 8px;
  border-radius: 28px;
  background: var(--s-high);
  color: var(--on-s);
  box-shadow: 0 16px 44px -10px rgba(14, 27, 107, .4);
  transform-origin: top left;
  animation: pop .38s var(--spring);
}

.menu[hidden] {
  display: none;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.88) translateY(-8px);
  }
}

.menu a {
  display: block;
  padding: 13px 18px;
  border-radius: 20px;
  text-decoration: none;
  transition: background .2s, border-radius .4s var(--spring);
}

.menu a:hover,
.menu a:focus-visible {
  background: var(--pc);
  color: var(--on-pc);
  border-radius: 12px;
  outline: none;
}

.menu a strong {
  display: block;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}

.menu a span {
  display: block;
  font-size: 14px;
  opacity: .8;
}

@media (max-width: 520px) {
  .btn.xl {
    height: 64px;
    padding: 0 24px;
    font-size: 18px;
  }

  .split .chev {
    width: 56px;
    padding: 0;
  }
}

/* Lyrics showcase */
.showcase h2 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0;
  font-stretch: 100%;
  line-height: 1.3;
  color: rgba(255, 255, 255, .85);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.lyrics {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .02em;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.lyric {
  --p: 0;
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font: 800 clamp(34px, 5.6vw, 96px)/1.04 var(--font);
  font-stretch: 112%;
  letter-spacing: -.04em;
  color: rgba(255, 255, 255, .34);
  transition: color .3s;
}

.lyric.past {
  color: rgba(255, 255, 255, .64);
}

.lyric.on {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(90deg, #fff calc(var(--p) * 1%), rgba(255, 255, 255, .34) calc(var(--p) * 1%));
}

.lyric:hover:not(.on) {
  color: rgba(255, 255, 255, .88);
}

.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 760px;
}

.bar .wave-wrap {
  flex: 1;
}

.bar .time {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.bar .circ.play {
  width: 96px;
  height: 72px;
  border-radius: 36px;
  flex: none;
}

.bar .circ.play svg {
  width: 32px;
  height: 32px;
}

.is-playing .bar .circ.play {
  border-radius: 20px;
}

.deco-1 {
  position: absolute;
  width: clamp(160px, 24vw, 340px);
  aspect-ratio: 1;
  right: -5%;
  top: -6%;
  background: rgba(255, 255, 255, .12);
  clip-path: url(#flower);
  animation: drift 50s linear infinite;
}

/* Feature explorer */

/* Features */
.explorer h2 {
  max-width: 12ch;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.f-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 300px;
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-radius .6s var(--spring), translate .5s var(--spring), scale .4s var(--spring);
}

/* Spotlight that follows the pointer across the card */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .55), transparent 65%);
  transition: opacity .4s var(--eff);
}

html[data-theme="dark"] .feature::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .14), transparent 65%);
}

.feature:nth-child(1) {
  --cb: var(--pc);
  background: var(--pc);
  color: var(--on-pc);
  border-radius: 56px 56px 56px 16px;
}

.feature:nth-child(2) {
  --cb: var(--tc);
  background: var(--tc);
  color: var(--on-tc);
  border-radius: 56px 56px 16px 56px;
}

.feature:nth-child(3) {
  --cb: var(--sc);
  background: var(--sc);
  color: var(--on-sc);
  border-radius: 56px 16px 56px 56px;
}

.feature:nth-child(4) {
  --cb: var(--p);
  background: var(--p);
  color: var(--on-p);
  border-radius: 16px 56px 56px 56px;
}

.feature:active {
  scale: .98;
  border-radius: 32px;
}

.feature .ico {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: currentColor;
  clip-path: url(#cookie);
  transition: transform .7s var(--spring);
}

.feature .ico svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--cb);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .7s var(--spring);
}

.feature h3 {
  font-size: clamp(30px, 3.6vw, 52px);
  margin-bottom: 10px;
  transition: transform .6s var(--spring);
}

/* Hover motion (mouse only, so touch screens don't get stuck states) */
@media (hover: hover) and (pointer: fine) {
  .feature:hover {
    border-radius: 40px;
    translate: 0 -6px;
  }

  .feature:hover::before {
    opacity: 1;
  }

  /* the cookie blooms and turns while the icon stays upright */
  .feature:hover .ico {
    transform: scale(1.14) rotate(24deg);
  }

  .feature:hover .ico svg {
    transform: rotate(-24deg);
  }

  .feature:hover h3 {
    transform: translateX(4px);
  }
}

/* keep the card's own hover transitions after the scroll reveal */
.js .feature.reveal {
  transition: opacity .6s var(--eff), transform .8s var(--spring), border-radius .6s var(--spring), translate .5s var(--spring), scale .4s var(--spring);
}

@media (prefers-reduced-motion: reduce) {

  .feature,
  .js .feature.reveal,
  .feature::before,
  .feature .ico,
  .feature .ico svg,
  .feature h3 {
    transition: none;
  }

  .feature:hover {
    translate: none;
  }

  .feature:hover .ico,
  .feature:hover .ico svg,
  .feature:hover h3 {
    transform: none;
  }
}

.feature p {
  margin: 0;
  opacity: .88;
  font-size: 18px;
}

@media (max-width: 700px) {
  .f-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 240px;
  }
}

/* Works with */
.works {
  padding: clamp(56px, 8vw, 120px) var(--pad);
  max-width: 1380px;
  margin: 0 auto;
}

.works h2 {
  max-width: 13ch;
  margin-bottom: 20px;
}

.works .sub {
  color: var(--on-sv);
  font-size: clamp(18px, 1.6vw, 21px);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.s-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.svc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 250px;
  padding: 26px;
  transition: border-radius .55s var(--spring), transform .4s var(--spring);
}

.svc.wide {
  grid-column: span 2;
}

.svc:hover {
  border-radius: 40px;
  transform: translateY(-4px);
}

.svc:nth-child(1) {
  --cb: var(--p);
  background: var(--p);
  color: var(--on-p);
  border-radius: 56px 56px 56px 16px;
}

.svc:nth-child(2) {
  --cb: var(--pc);
  background: var(--pc);
  color: var(--on-pc);
  border-radius: 56px 56px 16px 56px;
}

.svc:nth-child(3) {
  --cb: var(--tc);
  background: var(--tc);
  color: var(--on-tc);
  border-radius: 16px 56px 56px 56px;
}

.svc:nth-child(4) {
  --cb: var(--sc);
  background: var(--sc);
  color: var(--on-sc);
  border-radius: 56px 16px 56px 56px;
}

.svc:nth-child(5) {
  --cb: var(--s-high);
  background: var(--s-high);
  color: var(--on-s);
  border-radius: 56px 56px 16px 56px;
}

.svc:nth-child(6) {
  --cb: var(--pc);
  background: var(--pc);
  color: var(--on-pc);
  border-radius: 16px 56px 56px 56px;
}

.svc:nth-child(7) {
  --cb: var(--navy);
  background: var(--navy);
  color: #fff;
  border-radius: 56px 56px 56px 16px;
}

.svc:nth-child(7) {
  --cb: var(--navy);
}

.svc .logo {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  background: currentColor;
  clip-path: url(#cookie);
}

.svc:nth-child(even) .logo {
  clip-path: url(#flower);
}

.svc:nth-child(3n) .logo {
  clip-path: url(#clover);
}

/* Discord and Google Cast each get their own gentle shape so their glyphs never get pinched */
.svc .logo.sh5 {
  clip-path: url(#soft5);
}

.svc .logo.sh6 {
  clip-path: url(#soft6);
}

.svc .logo.sunny {
  clip-path: url(#sunny);
}

.svc .logo svg {
  width: 32px;
  height: 32px;
  fill: var(--cb);
}

.svc .logo svg.stroke {
  fill: none;
  stroke: var(--cb);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc h3 {
  overflow-wrap: anywhere;
  font-size: clamp(26px, 2.6vw, 38px);
  margin-bottom: 6px;
}

.svc p {
  margin: 0;
  opacity: .88;
  font-size: 17px;
}

@media (max-width: 960px) {
  .s-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .s-grid {
    grid-template-columns: 1fr;
  }

  .svc.wide {
    grid-column: auto;
  }

  .svc {
    min-height: 200px;
  }
}

/* Open source */
.oss-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  position: relative;
  z-index: 1;
}

.oss h2 {
  margin-bottom: 24px;
}

.oss p {
  color: #C9D3FF;
  margin-bottom: 28px;
}

.terminal {
  background: #07104A;
  border-radius: 36px 36px 36px 12px;
  padding: 26px;
  font: 500 15px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto;
}

.terminal .c {
  color: #9DB0FF;
}

.terminal .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  font-family: var(--font);
  font-size: 14px;
  color: #AFBDFF;
}

.terminal button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-radius .4s var(--spring), background .2s, transform .3s var(--spring);
}

.terminal button:hover {
  background: #E0E7FF;
}

.terminal button:active {
  border-radius: 10px;
  transform: scale(.96);
}

.deco-2 {
  position: absolute;
  width: clamp(180px, 28vw, 400px);
  aspect-ratio: 1;
  left: -8%;
  bottom: -22%;
  background: var(--navy-hi);
  clip-path: url(#cookie);
  animation: drift 60s linear infinite;
}

@media (max-width: 800px) {
  .oss-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .terminal {
    padding: 20px 16px;
    border-radius: 24px 24px 24px 10px;
    font-size: 13.5px;
  }

  .terminal .row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
  }

  .terminal .row span {
    font-size: 13px;
    line-height: 1.4;
  }

  .terminal button {
    width: 100%;
    height: 44px;
    border-radius: 22px;
    font-size: 15px;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 5fr) 7fr;
  gap: clamp(32px, 7vw, 120px);
  align-items: center;
}

.portrait {
  margin: 0;
  text-align: center;
}

.portrait .frame {
  aspect-ratio: 1;
  clip-path: url(#cookie);
  max-width: 440px;
  margin: 0 auto;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait figcaption {
  margin-top: 18px;
  font-weight: 700;
  font-size: 20px;
}

.portrait figcaption span {
  display: block;
  font-weight: 400;
  font-size: 15px;
  opacity: .8;
}

.about h2 {
  margin-bottom: 28px;
}

.about p {
  font-size: clamp(18px, 1.6vw, 21px);
}

.about .actions {
  margin: 28px 0 0;
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Community */
.community {
  padding: clamp(56px, 8vw, 120px) var(--pad);
  max-width: 1380px;
  margin: 0 auto;
}

.community h2 {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.c-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 260px;
  padding: 28px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-radius .6s var(--spring), translate .5s var(--spring), scale .4s var(--spring);
}

/* Spotlight that follows the pointer across the card */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .55), transparent 65%);
  transition: opacity .4s var(--eff);
}

html[data-theme="dark"] .card::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .14), transparent 65%);
}

.card:nth-child(1) {
  --cb: var(--pc);
  background: var(--pc);
  color: var(--on-pc);
  border-radius: 56px 56px 56px 16px;
}

.card:nth-child(2) {
  --cb: var(--tc);
  background: var(--tc);
  color: var(--on-tc);
  border-radius: 56px 56px 16px 56px;
}

.card:nth-child(3) {
  --cb: var(--sc);
  background: var(--sc);
  color: var(--on-sc);
  border-radius: 56px 16px 56px 56px;
}

.card:nth-child(4) {
  --cb: var(--p);
  background: var(--p);
  color: var(--on-p);
  border-radius: 16px 56px 56px 56px;
}

.card:active {
  scale: .98;
  border-radius: 32px;
}

.card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card .ico {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: currentColor;
  clip-path: url(#flower);
  transition: transform .7s var(--spring);
}

.card .ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--cb);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .7s var(--spring);
}

.card .ico svg.fill {
  fill: var(--cb);
  stroke: none;
}

.card .go {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-radius .5s var(--spring), background .25s, transform .5s var(--spring);
}

.card:nth-child(4) .go {
  background: rgba(255, 255, 255, .2);
}

.card .go svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--spring), stroke .25s;
}

.card h3 {
  font-size: clamp(30px, 3.4vw, 48px);
  margin-bottom: 8px;
  transition: transform .6s var(--spring);
}

.card p {
  margin: 0;
  opacity: .85;
  font-size: 17px;
}

.upi-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 10px 10px 18px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .07);
  font-weight: 600;
  font-size: 17px;
  word-break: break-all;
}

html[data-theme="dark"] .upi-id {
  background: rgba(255, 255, 255, .08);
}

.upi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.upi-hint {
  margin: 12px 0 0;
  font-size: 14px;
  opacity: .8;
}

@media (hover: hover) and (pointer: fine) {
  .upi-open {
    display: none;
  }
}

/* Hover motion (mouse only, so touch screens don't get stuck states) */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-radius: 40px;
    translate: 0 -6px;
  }

  .card:hover::before {
    opacity: 1;
  }

  /* the flower blooms and turns while the icon stays upright */
  .card:hover .ico {
    transform: scale(1.14) rotate(24deg);
  }

  .card:hover .ico svg {
    transform: rotate(-24deg);
  }

  /* arrow button fills in, squares off, and the arrow shoots out and back in */
  .card:hover .go {
    border-radius: 16px;
    background: currentColor;
    transform: scale(1.08);
  }

  .card:hover .go svg {
    stroke: var(--cb);
    animation: arrow-shoot .6s var(--eff);
  }

  .card:hover h3 {
    transform: translateX(4px);
  }
}

@keyframes arrow-shoot {
  0% {
    transform: translate(0, 0);
  }

  45% {
    transform: translate(14px, -14px);
    opacity: 0;
  }

  46% {
    transform: translate(-14px, 14px);
    opacity: 0;
  }

  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

/* keep the card's own hover transitions after the scroll reveal */
.js .card.reveal {
  transition: opacity .6s var(--eff), transform .8s var(--spring), border-radius .6s var(--spring), translate .5s var(--spring), scale .4s var(--spring);
}

@media (prefers-reduced-motion: reduce) {

  .card,
  .js .card.reveal,
  .card::before,
  .card .ico,
  .card .ico svg,
  .card .go,
  .card .go svg,
  .card h3 {
    transition: none;
  }

  .card:hover {
    translate: none;
  }

  .card:hover .ico,
  .card:hover .ico svg,
  .card:hover .go,
  .card:hover h3 {
    transform: none;
  }

  .card:hover .go svg {
    transform: none;
    animation: none;
  }
}

@media (max-width: 700px) {
  .c-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 220px;
  }
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 7vw, 120px);
}

.faq h2 {
  align-self: start;
  position: sticky;
  top: 108px;
}

.acc {
  display: grid;
  gap: 4px;
}

details {
  background: var(--s-high);
  border-radius: 10px;
  transition: border-radius .5s var(--spring), background .25s;
}

details:first-child {
  border-radius: 32px 32px 10px 10px;
}

details:last-of-type {
  border-radius: 10px 10px 32px 32px;
}

details[open] {
  background: var(--pc);
  color: var(--on-pc);
  border-radius: 32px;
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  font-weight: 700;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.25;
  letter-spacing: -.01em;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  clip-path: url(#cookie);
  background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center / 22px no-repeat;
  filter: drop-shadow(0 4px 10px rgba(47, 75, 217, .24));
  transition: transform .5s var(--spring), filter .3s, background-color .25s;
}

details[open] summary::after {
  transform: rotate(180deg);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .2));
}

details p {
  padding: 0 26px 24px;
  margin: 0;
  max-width: 60ch;
}

.faq .more {
  margin-top: 24px;
  color: var(--on-sv);
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq h2 {
    position: static;
  }
}

/* Connected bottom stack:
   1. Top box (.faq): top corners curved, bottom corners flat (0)
   2. Middle box (.download, .thanks): NO curve (all 4 corners flat 0)
   3. Bottom box (.foot): top corners flat (0), bottom corners curved */
.faq {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 4px;
}

/* Download */
.download {
  text-align: left;
}

.download,
.thanks {
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 4px;
}

/* Standalone cards preceding the footer when no FAQ exists (e.g. roadmap.html) */
.cta-panel {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 4px;
}

.download h2 {
  font-size: clamp(64px, 14vw, 230px);
  line-height: .9;
  margin-bottom: clamp(28px, 4vw, 52px);
  position: relative;
  z-index: 1;
}

.download .actions,
.download .notes {
  position: relative;
  z-index: 1;
}

.download .notes {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .88);
}

.download .notes a {
  color: #fff;
  font-weight: 600;
}

.deco-3 {
  position: absolute;
  width: clamp(220px, 34vw, 520px);
  aspect-ratio: 1;
  right: -6%;
  bottom: -14%;
  background: rgba(255, 255, 255, .14);
  clip-path: url(#cookie);
  animation: drift 45s linear infinite;
}

.deco-4 {
  position: absolute;
  width: clamp(80px, 12vw, 170px);
  aspect-ratio: 1;
  right: 22%;
  top: 12%;
  background: var(--tc);
  clip-path: url(#clover);
  animation: drift 22s linear infinite reverse;
}

/* Footer: top has no curve (flat in middle meeting card above), bottom has curve */
.foot {
  margin: 0 12px 12px;
  border-radius: 0 0 clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px);
  background: var(--s-low);
  padding: clamp(28px, 4vw, 40px) var(--pad) clamp(20px, 2.8vw, 26px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.2vw, 36px);
}

.foot-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}

/* Expressive brand lockup */
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--on-s);
  padding: 6px 16px 6px 6px;
  border-radius: 24px;
  background: transparent;
  transition: background .25s, transform .4s var(--spring), border-radius .4s var(--spring);
}

.foot-brand:hover {
  background: color-mix(in srgb, var(--pc) 45%, transparent);
  border-radius: 16px;
  transform: translateY(-2px);
}

.foot-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--pc);
  box-shadow: 0 4px 12px rgba(47, 75, 217, .12);
  transition: transform .5s var(--spring), box-shadow .3s;
}

.foot-brand:hover .foot-brand-icon {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 6px 18px rgba(47, 75, 217, .22);
}

.foot-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foot-brand-text {
  display: grid;
  gap: 3px;
  text-align: left;
}

.foot-brand-title {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.025em;
  font-stretch: 112%;
  line-height: 1.1;
  color: var(--on-s);
}

.foot-brand-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--on-sv);
  letter-spacing: -.01em;
  line-height: 1;
}

.foot-group,
.foot-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.foot-group .btn.foot-btn,
.foot-actions .btn.foot-btn {
  height: 56px;
  padding: 0 22px 0 8px;
  border-radius: 8px;
  font: 600 16px/1 var(--font);
  gap: 12px;
  background: var(--pc);
  color: var(--on-pc);
  border: 0;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-radius .45s var(--spring), background .2s, transform .4s var(--spring);
}

.foot-group .foot-btn:first-child,
.foot-actions .foot-btn:first-child {
  border-radius: 28px 8px 8px 28px;
}

.foot-group .foot-btn:last-child,
.foot-actions .foot-btn:last-child {
  border-radius: 8px 28px 28px 8px;
}

.foot-group .foot-btn:only-child,
.foot-actions .foot-btn:only-child {
  border-radius: 28px;
}

.foot-group .foot-btn:hover,
.foot-actions .foot-btn:hover {
  border-radius: 14px;
  background: color-mix(in srgb, var(--pc) 84%, var(--on-pc));
  color: var(--on-pc);
}

.foot-group .foot-btn:first-child:hover,
.foot-actions .foot-btn:first-child:hover {
  border-radius: 28px 14px 14px 28px;
}

.foot-group .foot-btn:last-child:hover,
.foot-actions .foot-btn:last-child:hover {
  border-radius: 14px 28px 28px 14px;
}

.foot-group .foot-btn:only-child:hover,
.foot-actions .foot-btn:only-child:hover {
  border-radius: 24px;
}

.foot-group .foot-btn:active,
.foot-actions .foot-btn:active {
  transform: scale(.97);
}

.foot-btn .badge {
  --bs: 42px;
  width: var(--bs);
  height: var(--bs);
  border-radius: 0;
  flex: none;
  display: grid;
  place-items: center;
  clip-path: url(#cookie);
  background: var(--p);
  color: var(--on-p);
  transition: transform .6s var(--spring);
}

.foot-btn:nth-child(2) .badge {
  clip-path: url(#flower);
}

.foot-btn:nth-child(3) .badge {
  clip-path: url(#clover);
}

.foot-btn:nth-child(4) .badge {
  clip-path: url(#hex);
}

.foot-btn .badge svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: transparent;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .6s var(--spring), fill .25s;
}

.foot-btn:hover .badge {
  transform: rotate(80deg);
}

.foot-btn:hover .badge svg {
  transform: rotate(-80deg) scale(1.12);
  fill: #fff;
}

/* Footer bottom bar: copyright strictly at bottom right */
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid color-mix(in srgb, var(--ov) 35%, transparent);
}

.foot-bottom .foot-note {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-sv);
  margin: 0;
}

.foot-bottom .foot-copy {
  margin: 0 0 0 auto;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-sv);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .foot-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .foot-group,
  .foot-actions {
    width: 100%;
    gap: 4px;
  }

  .foot-group .btn.foot-btn,
  .foot-actions .btn.foot-btn,
  .foot-group .foot-btn:first-child,
  .foot-actions .foot-btn:first-child,
  .foot-group .foot-btn:last-child,
  .foot-actions .foot-btn:last-child {
    border-radius: 24px;
    flex: 1 1 calc(50% - 4px);
    justify-content: flex-start;
  }

  .foot-group .foot-btn:hover,
  .foot-actions .foot-btn:hover,
  .foot-group .foot-btn:first-child:hover,
  .foot-actions .foot-btn:first-child:hover,
  .foot-group .foot-btn:last-child:hover,
  .foot-actions .foot-btn:last-child:hover {
    border-radius: 16px;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .foot-bottom .foot-copy {
    margin-left: 0;
    text-align: left;
  }
}

/* Scroll reveal disabled: content displays immediately */
.reveal,
.js .reveal,
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .circ,
  .card,
  .tab,
  details,
  summary::after {
    transition: none;
  }
}

/* Showcase buttons (Material 3 Expressive): star, profile, support.
   Built from the site's own tokens, shapes and spring motion. */

/* Shape badge: scalloped container that turns on hover, icon stays upright */
.badge {
  --bs: 48px;
  flex: none;
  width: var(--bs);
  height: var(--bs);
  display: grid;
  place-items: center;
  clip-path: url(#cookie);
  transition: transform .6s var(--spring);
}

.badge svg {
  width: 24px;
  height: 24px;
  transition: transform .6s var(--spring), fill .25s;
}

/* 1. Star on GitHub: connected button group, like the download split button */
.star-group {
  /* fixed colours: the group always sits on the navy panel, in light and dark theme */
  --sg-p: #2F4BD9;
  --sg-c: #DCE1FF;
  --sg-on: #00105C;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
}

.star-group .btn {
  transition: border-radius .45s var(--spring), background .2s, transform .4s var(--spring);
}

.star-group .star-main {
  gap: 14px;
  padding: 0 34px 0 12px;
  border-radius: 36px 8px 8px 36px;
  background: #fff;
  color: var(--sg-p);
}

.star-group:not(.has-count) .star-main {
  border-radius: 36px;
}

.star-group .star-main:hover {
  border-radius: 36px 14px 14px 36px;
  background: var(--sg-c);
  color: var(--sg-p);
}

.star-group:not(.has-count) .star-main:hover {
  border-radius: 24px;
}

.star-main .badge {
  --bs: 48px;
  background: var(--sg-p);
}

.star-main .badge svg {
  stroke: #fff;
  fill: transparent;
}

.star-main:hover .badge {
  transform: rotate(80deg);
}

.star-main:hover .badge svg {
  transform: rotate(-80deg) scale(1.12);
  fill: #fff;
}

.star-group .star-count {
  padding: 0 30px 0 26px;
  border-radius: 8px 36px 36px 8px;
  background: var(--sg-c);
  color: var(--sg-on);
  font-variant-numeric: tabular-nums;
}

.star-group .star-count[hidden] {
  display: none;
}

.star-group .star-count:hover {
  background: #fff;
  color: var(--sg-p);
  border-radius: 14px 36px 36px 14px;
}

.star-count svg {
  width: 20px;
  height: 20px;
}

/* Hero variant: sits on the page surface, so it follows the light/dark theme */
.star-group.surface .star-main {
  background: var(--pc);
  color: var(--on-pc);
}

.star-group.surface .star-main:hover {
  background: color-mix(in srgb, var(--pc) 84%, var(--on-pc));
  color: var(--on-pc);
}

.star-group.surface .star-main .badge {
  background: var(--p);
}

.star-group.surface .star-count {
  background: var(--sc);
  color: var(--on-sc);
}

.star-group.surface .star-count:hover {
  background: color-mix(in srgb, var(--sc) 84%, var(--on-sc));
  color: var(--on-sc);
}

/* APK download totals under the star button */
/* open-source column is narrow: keep the pill beside the button on wide screens, wrap on small ones */
.oss .star-wrap {
  flex-wrap: nowrap;
}

@media (max-width: 1240px) {
  .oss .star-wrap {
    flex-wrap: wrap;
  }
}

.dl-stats {
  display: flex;
}

.dl-stats[hidden] {
  display: none;
}

.dl-stats .stat {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: border-radius .45s var(--spring), background .2s;
}

.dl-stats .stat:hover {
  border-radius: 14px;
}

.dl-stats .stat b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dl-stats svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-stats.top {
  justify-content: center;
  margin: -6px 0 26px;
}

/* Total downloads pill: same family as the Download button (cookie badge + two-line label) */
.dl-stats.top .stat {
  flex: none;
  height: 56px;
  gap: 12px;
  padding: 0 26px 0 8px;
  border-radius: 28px;
  background: var(--pc);
  color: var(--on-pc);
  animation: pop .55s var(--spring);
  transition: border-radius .45s var(--spring), background .2s;
}

.dl-stats.top .stat:hover {
  border-radius: 18px;
  background: color-mix(in srgb, var(--pc) 86%, var(--on-pc));
}

.dl-stats .badge {
  --bs: 40px;
  background: var(--p);
}

.dl-stats .badge svg {
  width: 19px;
  height: 19px;
  stroke: #fff;
}

.dl-stats.top .stat:hover .badge {
  transform: scale(1.1);
}

.dl-stats .num {
  display: grid;
  gap: 4px;
  text-align: left;
}

.dl-stats .num b {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.dl-stats .num small {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  opacity: .75;
}

@media (prefers-reduced-motion: reduce) {

  .dl-stats .stat,
  .dl-stats .badge {
    transition: none;
    animation: none !important;
  }
}

/* 2. View profile: filled primary with avatar and an arrow that morphs */
.btn.profile-btn {
  height: 64px;
  gap: 14px;
  padding: 0 8px 0 8px;
  border-radius: 32px;
}

.btn.profile-btn:hover {
  border-radius: 22px;
}

.profile-btn .av {
  width: 48px;
  height: 48px;
  flex: none;
  clip-path: url(#cookie);
  background: var(--pc);
  transition: transform .5s var(--spring);
}

.profile-btn .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--eff);
}

/* photo stays upright: the frame pops, the picture slowly pushes in */
.profile-btn:hover .av {
  transform: scale(1.1);
}

.profile-btn:hover .av img {
  transform: scale(1.14);
}

.profile-btn:active .av {
  transform: scale(.94);
}

.profile-btn .pt {
  display: grid;
  gap: 4px;
  text-align: left;
}

.profile-btn .pt small {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  opacity: .78;
}

.profile-btn .go {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transition: border-radius .45s var(--spring), background .2s;
}

.btn.profile-btn .go svg {
  transition: transform .45s var(--spring);
}

.profile-btn:hover .go {
  border-radius: 16px;
  background: rgba(255, 255, 255, .28);
}

.profile-btn:hover .go svg {
  transform: translate(2px, -2px);
}

.profile-btn:active .go {
  border-radius: 12px;
}

/* 3. Support the project: tertiary tonal with a clover badge */
.btn.support-btn {
  height: 64px;
  gap: 14px;
  padding: 0 30px 0 8px;
  border-radius: 32px;
  background: var(--tc);
  color: var(--on-tc);
}

.btn.support-btn:hover {
  background: color-mix(in srgb, var(--tc) 82%, var(--on-tc));
  border-radius: 22px;
}

/* flower-shaped badge: it blooms (scales up) and the heart fills in, no spinning */
.support-btn .badge {
  clip-path: url(#flower);
  background: var(--on-tc);
  transition: transform .5s var(--spring);
}

.support-btn .badge svg {
  stroke: var(--tc);
  fill: transparent;
}

.support-btn:hover .badge {
  transform: scale(1.12);
}

.support-btn:hover .badge svg {
  transform: scale(1.12);
  fill: var(--tc);
}

.support-btn:active .badge {
  transform: scale(.92);
}

@media (max-width: 520px) {
  .star-group .star-main {
    padding-right: 26px;
  }

  .star-group .star-count {
    padding: 0 22px 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .badge,
  .badge svg,
  .profile-btn .av,
  .profile-btn .av img,
  .profile-btn .go,
  .profile-btn .go svg,
  .star-group .btn {
    transition: none;
  }
}

/* Download for Android: icon badge + two-line label, animated arrow */
/* two stacked arrows 14 units apart slide down together, so the loop is seamless */
@keyframes dl-drop {
  from {
    transform: translateY(0)
  }

  to {
    transform: translateY(14px)
  }
}

.dl-badge {
  --bs: 52px;
  transition: transform .5s var(--spring);
}

.dl-badge svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.dl-txt {
  display: grid;
  gap: 5px;
  text-align: left;
}

.dl-txt b {
  font-weight: 700;
  line-height: 1;
}

.dl-txt small {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  opacity: .78;
}

/* hero split button: left shows latest v release tag, right has direct download */
.split {
  display: inline-flex;
  gap: 2px;
  position: relative;
  align-items: stretch;
}

.split .dl-ver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 72px;
  min-height: 72px;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 0 24px 0 28px;
  border-radius: 36px 8px 8px 36px;
  background: var(--p);
  color: var(--on-p);
  text-decoration: none;
  transition: border-radius .45s var(--spring), background .2s, transform .4s var(--spring);
}

.split .dl-ver:hover {
  border-radius: 36px 14px 14px 36px;
  background: color-mix(in srgb, var(--p) 86%, #000);
}

.split .dl-ver-txt {
  display: grid;
  gap: 3px;
  text-align: left;
}

.split .dl-ver-txt small {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.split .dl-ver-txt b {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.split .dl-os-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: inherit;
  letter-spacing: .02em;
  white-space: nowrap;
}

.split .dl-main {
  width: 72px;
  height: 72px;
  min-height: 72px;
  box-sizing: border-box;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 36px 36px 8px;
  background: var(--p);
  color: var(--on-p);
  transition: border-radius .45s var(--spring), background .2s, transform .4s var(--spring);
}

.split .dl-main:hover {
  border-radius: 14px 36px 36px 14px;
  background: color-mix(in srgb, var(--p) 86%, #000);
}

.dl-main .dl-badge {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.dl-main:hover .dl-badge,
.dl-cta:hover .dl-badge {
  transform: scale(1.08);
}

.dl-main:hover .dl-badge .ar,
.dl-main:focus-visible .dl-badge .ar,
.dl-cta:hover .dl-badge .ar,
.dl-cta:focus-visible .dl-badge .ar {
  animation: dl-drop .9s cubic-bezier(.6, 0, .3, 1) infinite;
}

/* closing call to action, extra large */
.btn.white.xl.dl-cta {
  height: 88px;
  gap: 18px;
  padding: 0 44px 0 14px;
  border-radius: 44px;
  background: #fff;
  color: #2F4BD9;
  transition: border-radius .45s var(--spring), background .2s, transform .4s var(--spring);
}

.btn.white.xl.dl-cta:hover {
  background: #DCE1FF;
  border-radius: 28px;
}

.btn.white.xl.dl-cta:active {
  border-radius: 20px;
  transform: scale(.97);
}

.dl-cta .dl-badge {
  --bs: 64px;
  background: #2F4BD9;
  color: #fff;
}

.dl-cta .dl-badge svg {
  width: 30px;
  height: 30px;
}

.dl-cta .dl-txt b {
  font-size: 24px;
}

.dl-cta .dl-txt small {
  font-size: 14px;
}

@media (max-width: 520px) {
  .split {
    width: 100%;
    max-width: 440px;
    align-items: stretch;
  }

  .split .dl-ver,
  .split .dl-main {
    height: 64px;
    min-height: 64px;
    box-sizing: border-box;
  }

  .split .dl-ver {
    flex: 1;
    padding: 0 14px 0 18px;
    border-radius: 32px 8px 8px 32px;
  }

  .split .dl-ver:hover {
    border-radius: 32px 14px 14px 32px;
  }

  .split .dl-ver-txt small {
    font-size: 11px;
  }

  .split .dl-ver-txt b {
    font-size: 16px;
  }

  .split .dl-os-tag {
    font-size: 10px;
    padding: 2px 6px;
  }

  .split .dl-main {
    flex: none;
    width: 64px;
    padding: 0;
    justify-content: center;
    border-radius: 8px 32px 32px 8px;
  }

  .split .dl-main:hover {
    border-radius: 14px 32px 32px 14px;
  }

  .split .dl-badge {
    --bs: 46px;
  }

  .split .dl-txt b {
    font-size: 16px;
  }

  .split .dl-txt small {
    font-size: 12px;
  }

  .btn.white.xl.dl-cta {
    height: 76px;
    padding: 0 28px 0 12px;
    gap: 14px;
  }

  .dl-cta .dl-badge {
    --bs: 52px;
  }

  .dl-cta .dl-txt b {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .dl-badge,
  .split .dl-main,
  .split .dl-ver,
  .btn.white.xl.dl-cta {
    transition: none;
  }

  .dl-main .dl-badge .ar,
  .dl-cta .dl-badge .ar {
    animation: none !important;
  }
}

/* Theme button: same pill language as the nav links, badge glides across, label swaps */
.nav li {
  display: flex;
  align-items: center;
}

.theme-btn {
  display: block;
  --soft: cubic-bezier(0.3, 1.2, 0.5, 1);
  position: relative;
  flex: none;
  width: 112px;
  height: 44px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--pc);
  color: var(--on-pc);
  font: 600 16px/1 var(--font);
  cursor: pointer;
  transition: border-radius 0.45s var(--spring), background 0.2s, transform 0.4s var(--spring);
}

@media (hover: hover) and (pointer: fine) {
  .theme-btn:hover {
    border-radius: 14px;
    background: color-mix(in srgb, var(--pc) 84%, var(--on-pc));
  }

  .theme-btn:hover .tb-shape {
    transform: rotate(calc(var(--r) + 60deg));
  }
}

.theme-btn:active {
  border-radius: 12px;
  transform: scale(0.96);
}

.theme-btn:focus {
  outline: none;
}

.tb-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--soft);
}

.tb-shape {
  --r: 0deg;
  position: absolute;
  inset: 0;
  background: var(--p);
  clip-path: url(#cookie);
  transform: rotate(var(--r));
  transition: transform 0.7s var(--soft);
}

.tb-badge svg {
  position: absolute;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s var(--soft), opacity 0.25s;
}

.tb-badge .i-moon {
  opacity: 0;
  transform: rotate(-80deg) scale(0.3);
}

.tb-label {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tb-label span {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s, transform 0.5s var(--eff);
}

.tb-label .l-light {
  left: 44px;
  right: 6px;
}

.tb-label .l-dark {
  left: 6px;
  right: 44px;
  opacity: 0;
  transform: translateX(-14px);
}

html[data-theme="dark"] .tb-badge {
  transform: translateX(68px);
}

html[data-theme="dark"] .tb-shape {
  --r: 180deg;
}

html[data-theme="dark"] .tb-badge .i-sun {
  opacity: 0;
  transform: rotate(80deg) scale(0.3);
}

html[data-theme="dark"] .tb-badge .i-moon {
  opacity: 1;
  transform: none;
}

html[data-theme="dark"] .tb-label .l-light {
  opacity: 0;
  transform: translateX(14px);
}

html[data-theme="dark"] .tb-label .l-dark {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  .theme-btn,
  .tb-badge,
  .tb-shape,
  .tb-badge svg,
  .tb-label span {
    transition: none;
  }
}

/* Mobile & Nav dropdown menu */
.nav li.nav-drop {
  display: flex;
}

/* Menu button: expressive 6-cookie shape, no outer box, morphs into close on open */
.nav-menu-btn {
  --mb-soft: cubic-bezier(0.34, 1.35, 0.64, 1);
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.4s var(--spring);
}

@media (hover: hover) and (pointer: fine) {
  .nav-menu-btn:hover {
    transform: scale(1.05);
  }

  .nav-menu-btn:hover .mb-shape {
    background: color-mix(in srgb, var(--pc) 85%, var(--on-pc));
  }
}

.nav-menu-btn:focus {
  outline: none;
}

.nav-menu-btn:active {
  transform: scale(0.95);
}

.mb-shape {
  position: absolute;
  inset: 0;
  background: var(--pc);
  clip-path: url(#cookie6);
  transform: rotate(0deg);
  transition: transform 0.5s var(--spring), background 0.25s;
}

.nav-menu-btn[aria-expanded="true"] .mb-shape {
  background: var(--p);
  transform: rotate(60deg);
}

.mb-icon {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--on-pc);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s, transform 0.4s var(--spring);
}

.nav-menu-btn[aria-expanded="true"] .mb-icon {
  stroke: #fff;
}

.mb-icon .line {
  transform-origin: 12px 12px;
  transition: transform 0.38s cubic-bezier(0.34, 1.35, 0.64, 1), opacity 0.2s ease;
}

.mb-icon .line-1 {
  transform: translateY(-5px);
}

.mb-icon .line-2 {
  transform: translateY(0);
  opacity: 1;
}

.mb-icon .line-3 {
  transform: translateY(5px);
}

.nav-menu-btn[aria-expanded="true"] .line-1 {
  transform: translateY(0) rotate(45deg);
}

.nav-menu-btn[aria-expanded="true"] .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav-menu-btn[aria-expanded="true"] .line-3 {
  transform: translateY(0) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu-btn,
  .mb-shape,
  .mb-icon,
  .mb-icon .line {
    transition: none !important;
  }
}

.nav .menu.nav-menu {
  left: auto;
  right: 0;
  top: calc(100% + 12px);
  transform-origin: top right;
  animation: nm-pop .32s var(--spring);
}

@keyframes nm-pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Nav dropdown menu: expressive floating container with organic corners */
.nav .nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(340px, calc(100vw - 32px));
  min-width: 0;
  padding: 12px;
  border-radius: 36px 14px 36px 36px;
  background: color-mix(in srgb, var(--s) 92%, transparent);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid color-mix(in srgb, var(--on-s) 12%, transparent);
  box-shadow: 0 20px 48px -12px rgba(14, 27, 107, 0.28), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nav .nav-menu[hidden] {
  display: none;
}

.nav .nav-menu a.card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 14px 16px;
  background: var(--cb);
  color: var(--cc);
  font-weight: normal;
  text-decoration: none;
  transition: opacity .18s ease, filter .18s ease;
}

.nav .nav-menu a.card:hover,
.nav .nav-menu a.card:focus,
.nav .nav-menu a.card:active {
  transform: none !important;
  scale: 1 !important;
  translate: none !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 0.9;
}

.nav .nav-menu a.card:nth-child(1) {
  --cb: var(--pc);
  --cc: var(--on-pc);
  border-radius: 28px 28px 10px 28px;
}

.nav .nav-menu a.card:nth-child(2) {
  --cb: var(--tc);
  --cc: var(--on-tc);
  border-radius: 28px 28px 28px 10px;
}

.nav .nav-menu a.card:nth-child(3) {
  --cb: var(--sc);
  --cc: var(--on-sc);
  border-radius: 10px 28px 28px 28px;
}

.nav .nav-menu a.card .top {
  display: contents;
}

.nav .nav-menu a.card .ico {
  order: 0;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: currentColor;
  clip-path: url(#cookie6);
  transition: none;
}

.nav .nav-menu a.card:hover .ico,
.nav .nav-menu a.card:focus .ico {
  transform: none !important;
  scale: none !important;
}

.nav .nav-menu a.card .ico svg {
  width: 20px;
  height: 20px;
  stroke: var(--cb);
  fill: none;
  stroke-width: 2.2;
}

.nav .nav-menu a.card > div:not(.top) {
  order: 1;
  flex: 1;
  min-width: 0;
}

.nav .nav-menu a.card .go {
  order: 2;
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  opacity: 1;
  transition: background .18s ease;
}

.nav .nav-menu a.card:hover .go,
.nav .nav-menu a.card:focus .go {
  transform: none !important;
  background: rgba(0, 0, 0, 0.14);
}

.nav .nav-menu a.card .go svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.nav .nav-menu a.card h3 {
  margin: 0 0 2px;
  font: 700 17px/1.2 var(--font);
  letter-spacing: -.01em;
  color: inherit;
}

.nav .nav-menu a.card p {
  margin: 0;
  max-width: none;
  font-size: 13px;
  line-height: 1.35;
  opacity: .85;
  color: inherit;
}

/* ==========================================================================
   Roadmap Components & Styles
   ========================================================================== */

/* Hero expressive buttons */
.hero-btn {
  height: 72px;
  gap: 14px;
  padding: 0 32px 0 10px;
  border-radius: 36px;
  font-size: 20px;
  font-weight: 600;
  transition: border-radius .45s var(--spring), background .2s, transform .4s var(--spring);
}

.hero-btn:hover {
  border-radius: 22px;
}

.hero-btn.main .badge {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.hero-btn.tonal .dl-badge {
  background: var(--p);
  color: #fff;
}

.hero-btn:hover .dl-badge {
  transform: scale(1.08) !important;
}

.hero-btn:hover .dl-badge .ar,
.hero-btn:focus-visible .dl-badge .ar {
  animation: dl-drop .9s cubic-bezier(.6, 0, .3, 1) infinite;
}

/* Available now: Web GitHub CTA */
.btn.xl.gh-cta {
  height: 72px;
  gap: 14px;
  padding: 0 32px 0 10px;
  border-radius: 36px;
  background: var(--p);
  color: #fff;
  font-size: 20px;
  transition: border-radius .45s var(--spring), background .2s, transform .4s var(--spring);
}

.btn.xl.gh-cta:hover {
  background: color-mix(in srgb, var(--p) 88%, #000);
  border-radius: 22px;
}

.btn.xl.gh-cta:active {
  border-radius: 18px;
  transform: scale(.97);
}

.gh-cta .badge {
  --bs: 52px;
  background: #fff;
  color: var(--p);
}

.gh-cta .badge svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Contribute panel buttons */
.cta-action-btn {
  gap: 14px;
  padding: 0 32px 0 12px;
  height: 68px;
  border-radius: 34px;
  transition: border-radius .45s var(--spring), background .2s, color .2s, transform .4s var(--spring);
}

.cta-action-btn:hover {
  border-radius: 22px;
}

.cta-action-btn .badge {
  --bs: 48px;
}

.btn.white.cta-action-btn {
  background: #fff;
  color: var(--p);
}

.btn.white.cta-action-btn:hover {
  background: var(--pc);
  color: var(--on-pc);
}

.btn.white.cta-action-btn .badge {
  background: var(--p);
  color: #fff;
}

.btn.outline.cta-action-btn .badge {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

/* Rotating badges on hover */
.gh-cta:hover .badge,
.hero-btn.main:hover .badge,
.cta-action-btn:hover .badge {
  transform: rotate(80deg);
}

.gh-cta:hover .badge svg,
.hero-btn.main:hover .badge svg,
.cta-action-btn:hover .badge svg {
  transform: rotate(-80deg) scale(1.12);
}

/* Status indicator badge */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: color-mix(in srgb, currentColor 13%, transparent);
  color: inherit;
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Available now section */
.avail h2 {
  margin-bottom: clamp(28px, 4vw, 56px);
  position: relative;
  z-index: 1;
}

.av-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.av-grid .av {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 440px;
  padding: clamp(24px, 3vw, 40px);
  transition: border-radius .55s var(--spring), transform .4s var(--spring);
}

.av-grid .av:hover {
  border-radius: 40px;
  transform: translateY(-4px);
}

.av-grid .av:nth-child(1) {
  --cb: var(--p);
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-radius: 56px 56px 56px 16px;
}

.av-grid .av:nth-child(2) {
  --cb: #fff;
  background: #fff;
  color: var(--p);
  border-radius: 56px 56px 16px 56px;
}

.av-grid .av .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.av-grid .av .ico {
  width: 76px;
  height: 76px;
  flex: none;
  display: grid;
  place-items: center;
  background: currentColor;
  clip-path: url(#cookie);
}

.av-grid .av:nth-child(2) .ico {
  clip-path: url(#flower);
}

.av-grid .av .ico svg {
  width: 36px;
  height: 36px;
  fill: var(--cb);
}

.av-grid .av .ico svg.stroke {
  fill: none;
  stroke: var(--cb);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.av-grid .av h3 {
  font-size: clamp(52px, 7.4vw, 112px);
  line-height: .92;
  margin-bottom: 14px;
}

.av-grid .av .by {
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 12px;
}

.av-grid .av .by a {
  text-underline-offset: 4px;
}

.av-grid .av p {
  opacity: .92;
  font-size: 18px;
  margin-bottom: 24px;
}

.deco-r {
  position: absolute;
  width: clamp(200px, 30vw, 460px);
  aspect-ratio: 1;
  right: -8%;
  top: -20%;
  background: rgba(255, 255, 255, .1);
  clip-path: url(#cookie);
  animation: drift 60s linear infinite;
}

@media (max-width: 860px) {
  .av-grid {
    grid-template-columns: 1fr;
  }

  .av-grid .av {
    min-height: 360px;
  }
}

/* Roadmap intro & lanes */
.intro {
  padding: clamp(56px, 8vw, 120px) var(--pad) 0;
  max-width: 1380px;
  margin: 0 auto;
}

.intro h2 {
  max-width: 12ch;
  margin-bottom: 20px;
}

.intro p {
  color: var(--on-sv);
  font-size: clamp(18px, 1.6vw, 21px);
}

.lane {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--pad) 0;
}

.lane + .lane {
  padding-top: 12px;
}

/* Platform cards */
.p-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.plat {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  min-height: 340px;
  padding: 28px;
  transition: border-radius .55s var(--spring), transform .4s var(--spring);
}

.plat:nth-child(n+4) {
  grid-column: span 3;
}

.plat:hover {
  border-radius: 40px;
  transform: translateY(-4px);
}

.plat:nth-child(1) {
  --cb: var(--pc);
  background: var(--pc);
  color: var(--on-pc);
  border-radius: 56px 56px 56px 16px;
}

.plat:nth-child(2) {
  --cb: var(--tc);
  background: var(--tc);
  color: var(--on-tc);
  border-radius: 56px 56px 16px 56px;
}

.plat:nth-child(3) {
  --cb: var(--sc);
  background: var(--sc);
  color: var(--on-sc);
  border-radius: 16px 56px 56px 56px;
}

.plat:nth-child(4) {
  --cb: var(--pc);
  background: var(--pc);
  color: var(--on-pc);
  border-radius: 56px 16px 56px 56px;
}

.plat:nth-child(5) {
  --cb: var(--tc);
  background: var(--tc);
  color: var(--on-tc);
  border-radius: 56px 56px 56px 16px;
}

.plat .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.plat .ico {
  width: 64px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
  background: currentColor;
  clip-path: url(#cookie);
}

.plat:nth-child(2) .ico {
  clip-path: url(#flower);
}

.plat:nth-child(3) .ico {
  clip-path: url(#clover);
}

.plat:nth-child(5) .ico {
  clip-path: url(#flower);
}

.plat .ico svg {
  width: 30px;
  height: 30px;
  fill: var(--cb);
}

.plat .ico svg.stroke {
  fill: none;
  stroke: var(--cb);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plat h3 {
  font-size: clamp(34px, 3.6vw, 52px);
  margin-bottom: 10px;
}

.plat p {
  opacity: .88;
  font-size: 17px;
  margin-bottom: 22px;
}

.plat .cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 8px 0 22px;
  border-radius: 26px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: border-radius .5s var(--spring), background .2s, scale .4s var(--spring);
}

.plat .cta:hover {
  border-radius: 18px;
  background: color-mix(in srgb, currentColor 22%, transparent);
}

.plat .cta:active {
  scale: .96;
  border-radius: 14px;
}

.plat .cta .go {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: currentColor;
  overflow: hidden;
  transition: border-radius .5s var(--spring), transform .5s var(--spring);
}

.plat .cta .go svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cb);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plat .cta:hover .go {
  border-radius: 12px;
  transform: scale(1.08);
}

.plat .cta:hover .go svg {
  animation: rb-shoot .6s var(--eff);
}

.note {
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px var(--pad) 0;
  color: var(--on-sv);
}

@media (max-width: 960px) {
  .p-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plat,
  .plat:nth-child(n+4) {
    grid-column: auto;
  }

  .plat:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .p-grid {
    grid-template-columns: 1fr;
  }

  .plat:nth-child(5) {
    grid-column: auto;
  }

  .plat {
    min-height: 280px;
  }
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 7vw, 120px);
}

.how h2 {
  align-self: start;
  position: sticky;
  top: 108px;
}

.steps {
  display: grid;
  gap: 4px;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 26px;
  background: var(--s-high);
  border-radius: 10px;
  transition: border-radius .5s var(--spring), background .25s;
}

.step:first-child {
  border-radius: 32px 32px 10px 10px;
}

.step:last-child {
  border-radius: 10px 10px 32px 32px;
}

.step:hover {
  border-radius: 32px;
  background: var(--pc);
  color: var(--on-pc);
}

.step .num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--p);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  clip-path: url(#cookie);
}

.step h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 4px 0 6px;
}

.step p {
  margin: 0;
  opacity: .86;
}

@media (max-width: 860px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .how h2 {
    position: static;
  }
}

/* CTA panel */
.cta-panel h2 {
  max-width: 14ch;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-panel p {
  color: #C9D3FF;
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.cta-panel .actions {
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  margin: 0;
}

.deco-c {
  position: absolute;
  width: clamp(200px, 30vw, 440px);
  aspect-ratio: 1;
  right: -6%;
  top: -18%;
  background: var(--navy-hi);
  clip-path: url(#flower);
  animation: drift 55s linear infinite;
}

/* Roadmap buttons: badge + two-line label */
.rbtn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 30px 0 8px;
  border-radius: 36px;
  text-decoration: none;
  font: 600 19px/1.15 var(--font);
  transition: border-radius .5s var(--spring), background .2s, translate .5s var(--spring), scale .4s var(--spring);
}

.rbtn:hover {
  border-radius: 24px;
  translate: 0 -4px;
}

.rbtn:active {
  border-radius: 18px;
  scale: .97;
}

.rbtn:focus-visible {
  outline: 3px solid var(--p);
  outline-offset: 3px;
}

.cta-panel .rbtn:focus-visible,
.av-grid .av:nth-child(1) .rbtn:focus-visible {
  outline-color: #fff;
}

.rbtn .rb {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  transition: transform .6s var(--spring);
}

.rbtn .rb svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .6s var(--spring), fill .25s;
}

.rbtn .tx {
  display: grid;
  gap: 6px;
  text-align: left;
}

.rbtn .tx small {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  opacity: .75;
}

.rbtn:hover .rb {
  transform: scale(1.1);
}

.s-cookie { clip-path: url(#cookie); }
.s-flower { clip-path: url(#flower); }
.s-hex { clip-path: url(#hex); }

.t-main { background: var(--p); color: var(--on-p); }
.t-main:hover { background: color-mix(in srgb, var(--p) 86%, #000); }
.t-main .rb { background: #fff; }
.t-main .rb svg { stroke: var(--p); }

.t-tonal { background: var(--pc); color: var(--on-pc); }
.t-tonal:hover { background: color-mix(in srgb, var(--pc) 84%, var(--on-pc)); }
.t-tonal .rb { background: var(--p); }
.t-tonal .rb svg { stroke: #fff; }

.t-white { background: #fff; color: #2F4BD9; }
.t-white:hover { background: #DCE1FF; }
.t-white .rb { background: #2F4BD9; }
.t-white .rb svg { stroke: #fff; }

.t-blue { background: #2F4BD9; color: #fff; }
.t-blue:hover { background: #3F5AF0; }
.t-blue .rb { background: #fff; }
.t-blue .rb svg { stroke: #2F4BD9; }
.t-blue .rb svg.fill { fill: #2F4BD9; stroke: none; }

.t-cyan { background: #BFE9FF; color: #00212C; }
.t-cyan:hover { background: color-mix(in srgb, #BFE9FF 80%, #00212C); }
.t-cyan .rb { background: #00212C; }
.t-cyan .rb svg { stroke: #BFE9FF; }

.a-plus:hover .rb svg { transform: rotate(180deg) scale(1.1); }
.a-turn:hover .rb { transform: rotate(60deg); }
.a-turn:hover .rb svg { transform: rotate(-60deg) scale(1.1); }
.a-drop:hover .rb svg .ar { animation: rb-drop .75s var(--eff); }
.a-fly:hover .rb svg { fill: #fff; animation: rb-fly .75s var(--eff); }
.a-rot:hover .rb { transform: rotate(80deg); }
.a-rot:hover .rb svg { transform: rotate(-80deg) scale(1.12); }

@keyframes rb-drop {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(14px);
    opacity: 0;
  }
  46% {
    transform: translateY(-14px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes rb-fly {
  0% {
    transform: translate(0, 0);
  }
  45% {
    transform: translate(20px, -20px);
    opacity: 0;
  }
  46% {
    transform: translate(-20px, 20px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes rb-shoot {
  0% { transform: translate(0, 0); }
  45% { transform: translate(12px, -12px); opacity: 0; }
  46% { transform: translate(-12px, 12px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

@media (max-width: 640px) {
  .actions .rbtn { width: 100%; }
  .rbtn { min-height: 68px; padding: 0 22px 0 8px; font-size: 18px; }
  .rbtn .rb { width: 52px; height: 52px; }
}

@media (hover: none) {
  .rbtn:hover { translate: none; }
}

/* ==========================================================================
   Support & Sponsor Components & Styles
   ========================================================================== */

/* Ways to give section */
.ways {
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
}

.ways h2 {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.ways .c-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ways .card {
  min-height: 320px;
}

.ways div.card:hover {
  translate: none;
}

@media (max-width: 960px) {
  .ways .c-grid {
    grid-template-columns: 1fr;
  }

  .ways .card {
    min-height: 240px;
  }
}

/* UPI Payment Styles */
.upi-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 10px 10px 18px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .07);
  font-weight: 600;
  font-size: 17px;
  word-break: break-all;
}

html[data-theme="dark"] .upi-id {
  background: rgba(255, 255, 255, .08);
}

.upi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.upi-hint {
  margin: 12px 0 0;
  font-size: 14px;
  opacity: .8;
}

@media (hover: hover) and (pointer: fine) {
  .upi-open {
    display: none;
  }
}

/* Free / Other ways to help */
.free h2 {
  font-size: clamp(38px, 6vw, 92px);
  margin-bottom: 28px;
  max-width: 14ch;
}

.free p {
  font-size: clamp(18px, 1.6vw, 21px);
  color: rgba(255, 255, 255, .88);
  margin-bottom: 32px;
}

.help {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.hbtn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 72px;
  padding: 0 30px 0 8px;
  border-radius: 36px;
  text-decoration: none;
  font: 600 19px/1 var(--font);
  white-space: nowrap;
  transition: border-radius .5s var(--spring), background .2s, translate .5s var(--spring), scale .4s var(--spring);
}

.hbtn:hover {
  border-radius: 24px;
  translate: 0 -4px;
}

.hbtn:active {
  border-radius: 18px;
  scale: .97;
}

.hbtn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.hbtn .hb {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  transition: transform .6s var(--spring);
}

.hbtn .hb svg {
  width: 26px;
  height: 26px;
  fill: transparent;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .6s var(--spring), fill .25s;
}

.hbtn .tx {
  display: grid;
  gap: 6px;
  text-align: left;
}

.hbtn .tx small {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  opacity: .75;
}

/* Star: connected pair */
.hstar {
  display: inline-flex;
  gap: 2px;
}

.hstar .hbtn:hover {
  translate: none;
}

.hstar-main {
  border-radius: 36px 8px 8px 36px;
  background: #fff;
  color: #2F4BD9;
}

.hstar:not(.has-count) .hstar-main {
  border-radius: 36px;
}

.hstar-main:hover {
  border-radius: 36px 14px 14px 36px;
  background: #DCE1FF;
}

.hstar:not(.has-count) .hstar-main:hover {
  border-radius: 24px;
}

.hstar-main .hb {
  background: #2F4BD9;
  clip-path: url(#cookie);
}

.hstar-main .hb svg {
  stroke: #fff;
}

.hstar-main:hover .hb {
  transform: rotate(80deg);
}

.hstar-main:hover .hb svg {
  transform: rotate(-80deg) scale(1.12);
  fill: #fff;
}

.hstar-count {
  padding: 0 28px 0 24px;
  border-radius: 8px 36px 36px 8px;
  background: #DCE1FF;
  color: #00105C;
}

.hstar-count[hidden] {
  display: none;
}

.hstar-count:hover {
  border-radius: 14px 36px 36px 14px;
  background: #fff;
  color: #2F4BD9;
}

.hstar-count b {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* Bug report button */
.hbug {
  background: #BFE9FF;
  color: #00212C;
}

.hbug:hover {
  background: color-mix(in srgb, #BFE9FF 80%, #00212C);
}

.hbug .hb {
  background: #00212C;
  clip-path: url(#hex);
}

.hbug .hb svg {
  width: 28px;
  height: 28px;
  stroke: #BFE9FF;
  stroke-width: 2;
}

.hbug:hover .hb {
  transform: scale(1.1);
}

.hbug:hover .hb svg {
  animation: wiggle .7s var(--eff);
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-16deg); }
  40% { transform: rotate(14deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(6deg); }
}

/* Telegram group button */
.htg {
  background: #2F4BD9;
  color: #fff;
}

.htg:hover {
  background: #3F5AF0;
}

.htg .hb {
  background: #fff;
  clip-path: url(#flower);
}

.htg .hb svg {
  stroke: #2F4BD9;
}

.htg:hover .hb {
  transform: scale(1.12);
}

.htg:hover .hb svg {
  fill: #2F4BD9;
  animation: fly .75s var(--eff);
}

@keyframes fly {
  0% { transform: translate(0, 0); }
  45% { transform: translate(20px, -20px); opacity: 0; }
  46% { transform: translate(-20px, 20px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

@media (max-width: 640px) {
  .help { flex-direction: column; }
  .hbtn { width: 100%; }
  .hstar { display: flex; }
  .hstar-main { flex: 1; width: auto; }
  .hstar-count { flex: none; width: auto; }
}

@media (hover: none) {
  .hbtn:hover { translate: none; }
}

/* Thank you section */
.thanks h2 {
  font-size: clamp(64px, 14vw, 230px);
  line-height: .9;
  margin-bottom: clamp(28px, 4vw, 52px);
  position: relative;
  z-index: 1;
}

.thanks p,
.thanks .actions {
  position: relative;
  z-index: 1;
}

.thanks p {
  color: rgba(255, 255, 255, .9);
  font-size: clamp(18px, 1.6vw, 21px);
}

.thanks p a {
  color: #fff;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .deco-r,
  .deco-c,
  .deco-3,
  .deco-4 {
    animation: none !important;
  }

  .plat,
  .av-grid .av,
  .plat .cta,
  .step,
  .rbtn,
  .rbtn .rb,
  .rbtn .rb svg,
  .cta .go,
  .hbtn,
  .hbtn .hb,
  .hbtn .hb svg {
    transition: none;
  }

  .rbtn:hover,
  .hbtn:hover,
  a.card:hover {
    translate: none;
  }

  .rbtn:hover .rb,
  .rbtn:hover .rb svg,
  .cta:hover .go,
  .hbtn:hover .hb,
  .hbtn:hover .hb svg,
  .card:hover .ico,
  .card:hover .ico svg,
  .card:hover h3,
  a.card:hover .go,
  a.card:hover .go svg {
    transform: none;
    animation: none;
  }

  .rbtn:hover .rb svg .ar,
  .cta:hover .go svg {
    animation: none;
  }

  .btn,
  .card,
  details,
  summary::after,
  .theme-btn,
  .tb-badge,
  .tb-shape,
  .tb-badge svg,
  .tb-label span {
    transition: none;
  }
}
