@font-face {
  font-family: "Baloo2";
  src: url("assets/fonts/Baloo2-SemiBold.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Baloo2";
  src: url("assets/fonts/Baloo2-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Baloo2";
  src: url("assets/fonts/Baloo2-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka-Regular.ttf") format("truetype");
  font-weight: 400;
}

:root {
  --paper: #fdfcf9;
  --canvas: #f7f4f9;
  --ink: #100f19;
  --muted: #5f5a68;
  --line: rgba(16, 15, 25, 0.1);
  --purple: #9a83df;
  --purple-soft: #e9e3ff;
  --pink: #e837b3;
  --yellow: #ffe58d;
  --warm: #fbf7ef;
  --shadow: 0 26px 80px rgba(16, 15, 25, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Baloo2", "Fredoka", system-ui, sans-serif;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
}

.browser-frame {
  min-height: 100vh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(154, 131, 223, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(154, 131, 223, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 18% 24%, rgba(154, 131, 223, 0.22), transparent 28%), radial-gradient(circle at 74% 28%, rgba(255, 229, 141, 0.28), transparent 26%), var(--paper);
  background-size:
    70px 70px,
    70px 70px,
    auto,
    auto,
    auto;
  box-shadow: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 26px 76px 20px;
  background: rgba(253, 252, 249, 0.78);
  border-bottom: 1px solid rgba(16, 15, 25, 0.05);
  backdrop-filter: blur(18px);
}

.browser-frame > main {
  padding-top: 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo2", system-ui, sans-serif;
  font-size: 1.52rem;
  font-weight: 700;
}

.brand img {
  width: 28px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: rgba(16, 15, 25, 0.7);
  font-size: 0.88rem;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-family: "Baloo2", system-ui, sans-serif;
}

.primary-btn {
  border: 0;
  color: #fff;
  background: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.13);
}

.store-icon-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.store-icon-button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  background: #05050a;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(16, 15, 25, 0.08);
}

.store-icon-button img {
  display: block;
  object-fit: contain;
}

.app-store-button img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.play-store-button img {
  width: 40px;
  height: 40px;
  object-position: 52% 50%;
}

.secondary-btn {
  border: 1px solid rgba(16, 15, 25, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.hero-section {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 720px;
  padding: 76px 76px 56px;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 780px;
  margin-bottom: 50px
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-family: "Baloo2", system-ui, sans-serif;
  font-size: 0.9rem;
}

h1,
h2 {
  margin: 0;
  font-family: "Baloo2", "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3,
p {
  margin: 0;
}

.hero-copy > p:not(.eyebrow),
.section-heading p,
.split-heading p {
  color: rgba(16, 15, 25, 0.66);
  line-height: 1.55;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.floating-token {
  position: absolute;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.floating-token img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.token-a {
  left: 27%;
  top: 285px;
}

.token-b {
  right: 22%;
  top: 184px;
}

.hero-cards {
  position: relative;
  width: min(820px, 100%);
  height: 560px;
  margin-top: 58px;
}

.hero-mockup {
  position: absolute;
  overflow: hidden;
  width: 270px;
  height: 540px;
  padding: 10px;
  border-radius: 48px;
  background: var(--ink);
  box-shadow:
    0 30px 74px rgba(16, 15, 25, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-mockup::before {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 70px;
  height: 20px;
  border-radius: 999px;
  background: #05050a;
  content: "";
  transform: translateX(-50%);
}

.hero-mockup img {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  object-fit: cover;
  object-position: center top;
}

.left-card {
  left: 78px;
  bottom: 4px;
  z-index: 1;
  opacity: 0.72;
  transform: rotate(-11deg) scale(0.88);
}

.center-card {
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: 292px;
  height: 584px;
  transform: translateX(-50%);
}

.right-card {
  right: 78px;
  bottom: 4px;
  z-index: 1;
  opacity: 0.72;
  transform: rotate(11deg) scale(0.88);
}

.section {
  padding: 96px 76px;
}

.centered {
  display: grid;
  justify-items: center;
  max-width: 680px;
  margin: 0 auto 54px;
  text-align: center;
}

.centered p {
  max-width: 520px;
  margin-top: 16px;
}

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

.feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  min-height: 286px;
  align-content: end;
  gap: 18px;
  padding: 38px;
  border: 1px solid rgba(16, 15, 25, 0.07);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 28px 70px rgba(16, 15, 25, 0.08);
}

.feature-card::before,
.feature-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.feature-card::before {
  display: none;
}

.feature-card::after {
  right: 38px;
  bottom: 38px;
  z-index: 0;
  width: 72px;
  height: 7px;
  border-radius: 999px;
  background: var(--purple);
  opacity: 0.18;
}

.feature-card-search {
  grid-column: 1 / span 5;
}

.feature-card-favorites {
  grid-column: 6 / span 7;
}

.feature-card-tracking {
  grid-column: 1 / span 7;
}

.feature-card-languages {
  grid-column: 8 / span 5;
}

.feature-card > img {
  position: absolute;
  z-index: 1;
  top: 44px;
  right: 48px;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(16, 15, 25, 0.14));
}

.feature-card-search > img {
  top: 54px;
  right: 50px;
  width: 78px;
  height: 52px;
}

.feature-card-favorites > img {
  top: 44px;
  right: 58px;
  width: 68px;
  height: 68px;
}

.feature-card-tracking > img {
  top: 46px;
  right: 60px;
  width: 70px;
  height: 70px;
}

.feature-kicker {
  position: absolute;
  top: 38px;
  left: 38px;
  z-index: 1;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(16, 15, 25, 0.08);
  border-radius: 10px;
  color: rgba(16, 15, 25, 0.58);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.feature-copy {
  position: relative;
  z-index: 1;
  max-width: 92%;
}

.feature-card-favorites .feature-copy,
.feature-card-languages .feature-copy {
  max-width: 78%;
}

.feature-card h3,
.plan-card h3,
.accordion-list summary {
  font-family: "Baloo2", system-ui, sans-serif;
  font-size: 1.32rem;
  line-height: 1.05;
}

.feature-card p,
.accordion-list p,
.plan-card li,
.download-copy p,
.site-footer p {
  color: rgba(16, 15, 25, 0.62);
  line-height: 1.45;
}

.feature-card p {
  max-width: 620px;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.04rem;
  font-weight: 400;
}

.feature-detail {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  margin-top: 18px;
  padding: 0 13px;
  border: 1px solid rgba(16, 15, 25, 0.08);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  box-shadow: 0 12px 28px rgba(16, 15, 25, 0.05);
}

.soft-purple {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
}

.language-dropdown {
  position: absolute;
  z-index: 1;
  top: 36px;
  right: 36px;
  width: 210px;
}

.language-dropdown summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(16, 15, 25, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 34px rgba(16, 15, 25, 0.06);
  list-style: none;
  cursor: pointer;
}

.language-dropdown summary::-webkit-details-marker {
  display: none;
}

.language-current,
.language-menu span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 700;
}

.language-arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(16, 15, 25, 0.58);
  border-bottom: 2px solid rgba(16, 15, 25, 0.58);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.language-dropdown[open] .language-arrow {
  transform: translateY(2px) rotate(225deg);
}

.language-menu {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(16, 15, 25, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(16, 15, 25, 0.08);
  backdrop-filter: blur(14px);
}

.language-menu span {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 9px;
}

.language-menu span:hover {
  background: rgba(154, 131, 223, 0.1);
}

.language-dropdown img {
  width: 34px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  object-fit: cover;
}

.split-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.split-heading p {
  margin-top: 16px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.7fr);
  gap: 72px;
  align-items: center;
}

.accordion-list {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(16, 15, 25, 0.06);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 34px 90px rgba(16, 15, 25, 0.1);
}

.accordion-list details {
  border-radius: 26px;
  padding: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.accordion-list details[open] {
  background: rgba(247, 246, 249, 0.94);
  box-shadow: inset 0 0 0 1px rgba(16, 15, 25, 0.04);
}

.accordion-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  padding: 0 22px 0 26px;
  cursor: pointer;
  list-style: none;
}

.accordion-list summary::-webkit-details-marker {
  display: none;
}

.accordion-arrow {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: rgba(16, 15, 25, 0.07);
  color: rgba(16, 15, 25, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, background 0.2s ease;
}

.accordion-arrow::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.accordion-list details[open] .accordion-arrow {
  background-color: rgba(16, 15, 25, 0.08);
  transform: rotate(180deg);
}

.accordion-list p {
  max-width: 640px;
  margin: -8px 74px 28px 26px;
  color: rgba(16, 15, 25, 0.58);
  font-size: 1.02rem;
  line-height: 1.45;
}

.phone-scene {
  position: relative;
  min-height: 560px;
}

.phone-scene::before {
  position: absolute;
  inset: 86px 14px 18px;
  border-radius: 44px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 229, 141, 0.36), transparent 28%),
    radial-gradient(circle at 84% 34%, rgba(154, 131, 223, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.36);
  content: "";
  filter: blur(0.1px);
}

.screen-card {
  position: absolute;
  z-index: 1;
  width: 205px;
  height: 430px;
  overflow: hidden;
  border: 8px solid rgba(16, 15, 25, 0.88);
  border-radius: 36px;
  background: #fff;
  opacity: 0.34;
  box-shadow: 0 28px 70px rgba(16, 15, 25, 0.12);
}

.screen-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.screen-left {
  left: 10px;
  bottom: 46px;
  transform: rotate(-11deg);
}

.screen-right {
  right: 0;
  bottom: 70px;
  transform: rotate(12deg);
}

.phone-frame {
  position: absolute;
  right: 50%;
  bottom: 0;
  z-index: 3;
  width: 270px;
  height: 558px;
  padding: 10px;
  border-radius: 48px;
  background: var(--ink);
  transform: translateX(50%);
  box-shadow:
    0 34px 80px rgba(16, 15, 25, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
  object-position: center top;
}

.support-note {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 15, 25, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 52px rgba(16, 15, 25, 0.11);
  font-family: "Baloo2", "Fredoka", system-ui, sans-serif;
  backdrop-filter: blur(14px);
}

.support-note span {
  color: rgba(16, 15, 25, 0.48);
  font-size: 0.78rem;
}

.support-note strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}

.note-search {
  left: 2px;
  top: 118px;
  transform: rotate(-8deg);
}

.note-cart {
  right: 4px;
  top: 92px;
  transform: rotate(8deg);
}

.note-zone {
  right: 22px;
  bottom: 92px;
  transform: rotate(-4deg);
}

.plans-section {
  background: linear-gradient(180deg, transparent, rgba(245, 243, 252, 0.9));
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.plan-card {
  display: grid;
  gap: 18px;
  min-height: 360px;
  padding: 30px;
  border: 1px solid rgba(16, 15, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 70px rgba(16, 15, 25, 0.08);
}

.plan-card.featured {
  min-height: 430px;
  background: #ece6ff;
}

.plan-card > p {
  color: rgba(16, 15, 25, 0.48);
}

.plan-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card li::before {
  content: "•";
  margin-right: 8px;
  color: var(--purple);
}

.store-badge {
  display: inline-grid;
  width: auto;
  height: 44px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.store-badge img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
}

.community-section {
  min-height: 620px;
}

.quote-stack {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 620px) 48px;
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-height: 310px;
}

.quote-stack::before,
.quote-stack::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 230px;
  border: 1px solid rgba(16, 15, 25, 0.05);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.44);
  content: "";
  box-shadow: 0 24px 70px rgba(16, 15, 25, 0.06);
}

.quote-stack::before {
  transform: translate(-72%, -47%) rotate(-8deg);
}

.quote-stack::after {
  transform: translate(-28%, -49%) rotate(8deg);
}

.quote-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: 100%;
  min-height: 300px;
  padding: 44px 52px;
  border: 1px solid rgba(16, 15, 25, 0.07);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 229, 141, 0.28), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 237, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 32px 88px rgba(16, 15, 25, 0.11);
  text-align: center;
}

.quote-badge {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(16, 15, 25, 0.08);
  border-radius: 999px;
  color: rgba(16, 15, 25, 0.62);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 32px rgba(16, 15, 25, 0.06);
}

.quote-badge img {
  width: 24px;
  height: 30px;
  object-fit: contain;
}

.quote-card p {
  max-width: 520px;
  margin-top: 24px;
  font-family: "Baloo2", "Fredoka", system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.04;
}

.quote-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.quote-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(16, 15, 25, 0.08);
  border-radius: 999px;
  color: rgba(16, 15, 25, 0.64);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.quote-card footer {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  color: rgba(16, 15, 25, 0.5);
}

.quote-card footer strong {
  color: var(--ink);
  font-size: 1rem;
}

.round-arrow {
  position: relative;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(16, 15, 25, 0.07);
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 18px 42px rgba(154, 131, 223, 0.26);
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  gap: 50px;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
}

.download-copy h2 {
  max-width: 520px;
}

.download-copy p {
  max-width: 440px;
  margin-top: 16px;
}

.store-mark {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.store-mark img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #000;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.download-phone {
  justify-self: center;
  width: 250px;
  height: 520px;
  padding: 9px;
  border-radius: 42px;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(-12deg);
}

.download-phone img {
  width: 100%;
  height: 100%;
  border-radius: 33px;
  object-fit: cover;
  object-position: center top;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 70px 76px 80px;
  color: #fff;
  background: #05050a;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 270px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer small {
  color: rgba(255, 255, 255, 0.66);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.legal-body {
  background: var(--paper);
}

.legal-frame {
  min-height: 100vh;
  overflow: visible;
}

.legal-home-link {
  min-width: 104px;
}

.legal-body .site-header {
  padding-left: 76px;
  padding-right: 76px;
}

.legal-hero {
  display: grid;
  justify-items: center;
  padding-top: 72px;
  padding-bottom: 54px;
  text-align: center;
}

.legal-hero h1 {
  max-width: 860px;
  margin-top: 12px;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.legal-hero > p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(16, 15, 25, 0.64);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.5;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: min(1720px, calc(100% - 152px));
  margin: 0 auto 100px;
  padding: 0;
}

.legal-controls,
.legal-card {
  border: 1px solid rgba(16, 15, 25, 0.07);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 28px 78px rgba(16, 15, 25, 0.08);
}

.legal-controls {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 30px;
  height: fit-content;
  padding: 24px;
}

.legal-control-block {
  display: grid;
  gap: 12px;
}

.legal-select-field {
  display: grid;
  gap: 10px;
}

.control-label {
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 700;
}

.modern-select {
  position: relative;
  z-index: 1;
}

.modern-select.open {
  z-index: 30;
}

.modern-select-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 0 16px 0 18px;
  border: 1px solid rgba(16, 15, 25, 0.08);
  border-radius: 14px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 252, 0.9));
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 30px rgba(16, 15, 25, 0.05);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.modern-select-trigger:hover,
.modern-select.open .modern-select-trigger {
  border-color: rgba(154, 131, 223, 0.72);
  box-shadow:
    0 0 0 4px rgba(154, 131, 223, 0.14),
    0 14px 34px rgba(16, 15, 25, 0.06);
}

.modern-select-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(16, 15, 25, 0.58);
  border-bottom: 2px solid rgba(16, 15, 25, 0.58);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.modern-select.open .modern-select-chevron {
  transform: translateY(3px) rotate(225deg);
}

.modern-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(16, 15, 25, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 24px 58px rgba(16, 15, 25, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  backdrop-filter: blur(18px);
}

.legal-dropdown-spacer {
  display: none;
  height: 108px;
}

.modern-select.open + .legal-dropdown-spacer {
  display: block;
}

.modern-select[data-select="lang"].open + .legal-dropdown-spacer {
  height: 208px;
}

.modern-select.open .modern-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.modern-select-menu button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  color: rgba(16, 15, 25, 0.72);
  background: transparent;
  text-align: left;
  padding: 0 12px;
}

.modern-select-menu button:hover {
  color: var(--ink);
  background: rgba(154, 131, 223, 0.1);
}

.modern-select-menu button.active {
  color: #fff;
  background: var(--ink);
}

.legal-card {
  padding: 42px;
}

.updated {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 14px;
  border: 1px solid rgba(16, 15, 25, 0.08);
  border-radius: 12px;
  color: rgba(16, 15, 25, 0.56);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

#legal-content section + section {
  margin-top: 14px;
}

#legal-content section {
  padding: 24px 0;
  border-top: 1px solid rgba(16, 15, 25, 0.07);
}

#legal-content h2 {
  font-family: "Baloo2", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.08;
}

#legal-content p {
  max-width: 920px;
  margin-top: 10px;
  color: rgba(16, 15, 25, 0.7);
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .page-shell {
    width: 100%;
    padding: 0;
  }

  .site-header,
  .hero-section,
  .section,
  .site-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .browser-frame > main {
    padding-top: 178px;
  }

  .site-header,
  .support-layout,
  .download-section,
  .site-footer,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    width: calc(100% - 56px);
    margin-bottom: 72px;
  }

  .legal-controls {
    position: static;
  }

  .legal-hero {
    padding-top: 52px;
  }

  .nav-links {
    justify-content: start;
    overflow-x: auto;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-cards {
    height: auto;
    display: grid;
    gap: 12px;
  }

  .hero-mockup,
  .tilt-card,
  .left-card,
  .center-card,
  .right-card {
    position: static;
    width: min(230px, 100%);
    height: 460px;
    margin: 0 auto;
    opacity: 1;
    transform: none;
  }

  .feature-bento,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-search,
  .feature-card-favorites,
  .feature-card-tracking,
  .feature-card-languages,
  .feature-card.wide {
    grid-column: auto;
  }

  .feature-card {
    min-height: 270px;
    padding: 32px;
    border-radius: 18px;
  }

  .feature-card::before {
    display: none;
  }

  .feature-card > img {
    top: 34px;
    right: 34px;
    width: 54px;
    height: 54px;
    padding: 0;
  }

  .feature-card-search > img {
    top: 40px;
    right: 34px;
    width: 62px;
    height: 42px;
  }

  .feature-card-favorites > img,
  .feature-card-tracking > img {
    top: 34px;
    right: 34px;
    width: 54px;
    height: 54px;
  }

  .feature-kicker {
    top: 30px;
    left: 30px;
  }

  .feature-card-favorites .feature-copy,
  .feature-card-languages .feature-copy {
    max-width: 92%;
  }

  .language-dropdown {
    position: relative;
    top: auto;
    right: auto;
    width: min(230px, 100%);
    margin-bottom: 44px;
    transform: none;
  }

  .phone-scene {
    min-height: 460px;
  }

  .phone-frame {
    right: 50%;
    transform: translateX(50%);
  }

  .screen-card,
  .support-note,
  .ghost-card {
    display: none;
  }

  .quote-stack {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .quote-card {
    padding: 38px 34px;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
  }

  .browser-frame > main {
    padding-top: 206px;
  }

  .hero-section {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .hero-actions,
  .store-row {
    justify-content: center;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .legal-layout {
    width: calc(100% - 20px);
  }

  .legal-hero {
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .legal-card,
  .legal-controls {
    padding: 24px;
    border-radius: 18px;
  }

  .phone-frame,
  .download-phone {
    width: 210px;
    height: 440px;
  }

  .quote-stack {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .quote-stack::before,
  .quote-stack::after,
  .round-arrow {
    display: none;
  }

  .quote-card {
    min-height: auto;
    padding: 34px 24px;
    border-radius: 28px;
  }
}
