@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --app: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f5f5f5;
  --line: #e8e8e8;
  --line-strong: #dcdcdc;
  --content: #303030;
  --content-soft: #50555c;
  --content-muted: #6a6a6a;
  --accent: #5b226f;
  --accent-tint: #efe9f1;
  --accent-solid: #5b226f;
  --on-accent: #ffffff;
  --positive: #237a3f;
  --danger: #c0262d;
  --hero-from: #58266f;
  --hero-to: #73329a;
  --hero-ink: #ffffff;
  --hero-soft: #eadcf2;
  --device: #1b1822;
  --shadow: 0 24px 60px rgba(41, 12, 56, 0.22);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.12);
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --app: #14121a;
  --surface: #1e1b26;
  --surface-muted: #292633;
  --line: #35313f;
  --line-strong: #4a4558;
  --content: #f3f1f7;
  --content-soft: #d8d4e0;
  --content-muted: #b3aebe;
  --accent: #d9b8eb;
  --accent-tint: #2c2534;
  --positive: #4dbd6c;
  --danger: #ff8a8f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.45);
}

:root[data-theme='light'] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --app: #14121a;
    --surface: #1e1b26;
    --surface-muted: #292633;
    --line: #35313f;
    --line-strong: #4a4558;
    --content: #f3f1f7;
    --content-soft: #d8d4e0;
    --content-muted: #b3aebe;
    --accent: #d9b8eb;
    --accent-tint: #2c2534;
    --positive: #4dbd6c;
    --danger: #ff8a8f;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scrollbar-color: var(--line-strong) var(--app);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--app);
  color: var(--content);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) ::selection {
    color: #2b1238;
  }
}

:root[data-theme='dark'] ::selection {
  color: #2b1238;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}

h3 {
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.lead {
  color: var(--content-soft);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  max-width: 34rem;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  background: var(--accent-solid);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 100;
  text-decoration: none;
  font-weight: 500;
}

.skip:focus {
  top: 12px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--content);
}

.brand img {
  display: block;
  width: 142px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding-inline: 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.15s, background-color 0.15s, box-shadow 0.2s var(--ease);
}

.btn:active {
  opacity: 0.8;
}

.btn-solid {
  background: var(--accent-solid);
  color: var(--on-accent);
}

.btn-solid:hover {
  background: #4a1b5b;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(91, 34, 111, 0.22);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.stores a {
  display: block;
  border-radius: 9px;
  transition: transform 0.2s var(--ease);
}

.stores a:hover {
  transform: translateY(-2px);
}

.stores a:focus-visible {
  box-shadow: 0 10px 24px rgba(22, 8, 28, 0.18);
}

.stores img {
  height: 52px;
  width: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--app);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--content-soft);
  font-weight: 500;
  font-size: 0.9688rem;
}

.nav a:hover {
  color: var(--accent);
}

.nav .btn {
  color: var(--on-accent);
}

.nav .btn:hover {
  color: var(--on-accent);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(165deg, var(--hero-from), var(--hero-to));
  color: var(--hero-ink);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  background-image: linear-gradient(115deg, transparent 0 48%, rgba(255,255,255,.22) 48.2% 48.45%, transparent 48.7%), linear-gradient(25deg, transparent 0 70%, rgba(255,255,255,.12) 70.2% 70.45%, transparent 70.7%);
  background-size: 520px 520px, 680px 680px;
  background-position: 12% 12%, 78% 18%;
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  padding-top: clamp(56px, 9vw, 112px);
}

.hero-copy {
  align-self: center;
  padding-bottom: clamp(48px, 8vw, 112px);
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero .lead {
  color: var(--hero-soft);
  margin-top: 24px;
}

.hero .stores {
  margin-top: 36px;
}

.hero-note {
  margin-top: 16px;
  color: var(--hero-soft);
  font-size: 0.9375rem;
}

.hero-visual {
  height: clamp(420px, 50vw, 700px);
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.device {
  width: min(100%, 380px);
  background: var(--device);
  border-radius: 48px;
  padding: 11px;
  align-self: flex-start;
  box-shadow: var(--shadow);
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 38px;
  background: #fafafa;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual .device {
    animation: rise 0.9s var(--ease) both;
  }

  @keyframes rise {
    from {
      transform: translateY(56px);
    }
  }
}

/* Month timeline */
.month-head {
  max-width: 44rem;
}

.month-head h2 {
  margin-bottom: 20px;
}

.month {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(32px, 7vw, 96px);
  margin-top: clamp(40px, 6vw, 72px);
  align-items: start;
}

.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 0 0 clamp(56px, 12vh, 140px) clamp(76px, 9vw, 112px);
}

@media (min-width: 900px) {
  .js .step:not(.is-active) .day {
    opacity: 0.4;
  }

  .js .step:not(.is-active) h3 {
    color: var(--content-muted);
  }
}

.day,
.step h3 {
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}

.step::before {
  content: '';
  position: absolute;
  left: clamp(26px, 3.2vw, 40px);
  top: 18px;
  bottom: -18px;
  width: 2px;
  background: var(--line-strong);
}

.step:last-child::before {
  display: none;
}

.step::after {
  content: '';
  position: absolute;
  left: clamp(19px, 2.5vw, 33px);
  top: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--app);
  border: 3px solid var(--accent);
}

.step.is-active::after {
  background: var(--accent);
}

.day {
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

.day small {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--content-muted);
  margin-right: 8px;
}

.step h3 {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  margin-bottom: 12px;
}

.step p {
  color: var(--content-soft);
  max-width: 30rem;
}

.step-shot {
  display: none;
}

.stage {
  position: sticky;
  top: 88px;
}

.stage .device {
  position: relative;
  width: min(100%, 340px, calc((100svh - 150px) * 0.46));
  margin-inline: auto;
}

.stage .device img {
  display: block;
}

.stage .device img + img {
  position: absolute;
  inset: 11px;
  width: calc(100% - 22px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}

.stage .device img.is-on {
  opacity: 1;
  transform: none;
}

.stage .device img:first-child:not(.is-on) {
  visibility: hidden;
}

@media (max-width: 899px) {
  .month {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    display: none;
  }

  .step-shot {
    display: block;
    margin-top: 28px;
  }

  .step-shot .device {
    width: min(100%, 300px);
    border-radius: 40px;
    padding: 9px;
  }

  .step-shot .device img {
    border-radius: 32px;
  }
}

/* Where the money goes */
.where {
  background: var(--surface-muted);
}

.where .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}

.where h2 {
  margin-bottom: 36px;
}

.points {
  display: grid;
  gap: 28px;
}

.points h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.points p {
  color: var(--content-soft);
  max-width: 32rem;
}

.points em {
  font-style: normal;
  color: var(--content);
  font-weight: 500;
}

.where figure {
  margin: 0;
}

.where figure img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.where figcaption {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--content-muted);
}

@media (max-width: 899px) {
  .where .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Coming next */
.next {
  background: var(--accent-tint);
}

.next-head {
  max-width: 40rem;
}

.next-head h2 {
  margin-bottom: 16px;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 6vw, 64px);
}

.next-item {
  padding-right: clamp(0px, 3vw, 40px);
}

.next-item + .next-item {
  padding-left: clamp(0px, 3vw, 40px);
  border-left: 1px solid var(--line-strong);
}

.next-item:last-child {
  padding-right: 0;
}

.next-item svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}

.next-item h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  margin-bottom: 12px;
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-solid);
  color: var(--on-accent);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.next-item p {
  color: var(--content-soft);
  max-width: 28rem;
}

.next-item em {
  font-style: normal;
  color: var(--content);
  font-weight: 500;
}

@media (max-width: 900px) {
  .next-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .next-item,
  .next-item:last-child {
    padding-right: 0;
  }

  .next-item + .next-item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding-top: 40px;
  }
}

/* Data */
.data-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
}

.data-list {
  display: grid;
  gap: 32px;
}

.data-list h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.data-list p {
  color: var(--content-soft);
  max-width: 34rem;
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* FAQ */
.faq {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.faq .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 96px);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 16px;
  font-weight: 500;
  font-size: 1.125rem;
}

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

.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details p {
  color: var(--content-soft);
  padding-bottom: 22px;
  max-width: 38rem;
}

@media (max-width: 899px) {
  .data-grid,
  .faq .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact */
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.contact h2 {
  margin-bottom: 20px;
}

.mail-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.mail-list span {
  display: block;
  font-size: 0.875rem;
  color: var(--content-muted);
}

.mail-list a {
  font-weight: 500;
  text-underline-offset: 4px;
  color: var(--accent);
  overflow-wrap: anywhere;
}

form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
  display: grid;
  gap: 18px;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: block;
  font-size: 0.875rem;
  color: var(--content-soft);
  margin-bottom: 4px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--content);
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

input[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--danger);
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--danger);
}

.field-error.show {
  display: block;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  display: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 500;
  font-size: 0.9688rem;
}

.status.show {
  display: block;
}

.status.ok {
  background: color-mix(in srgb, var(--positive) 14%, transparent);
  color: var(--positive);
}

.status.fail {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}

.form-note {
  font-size: 0.875rem;
  color: var(--content-muted);
}

@media (max-width: 899px) {
  .contact .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Closing call */
.closing {
  background: linear-gradient(165deg, var(--hero-from), var(--hero-to));
  color: var(--hero-ink);
  text-align: center;
}

.closing h2 {
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 16ch;
  margin-inline: auto;
}

.closing p {
  color: var(--hero-soft);
  margin: 20px auto 0;
  max-width: 30rem;
}

.closing .stores {
  justify-content: center;
  margin-top: 36px;
}

/* Footer */
.site-footer {
  padding-block: 48px;
  background: #17131b;
  border-top: 1px solid #302936;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #eee8f2;
  text-decoration: none;
  font-size: 0.9688rem;
}

.site-footer nav a:hover {
  color: #d9b8eb;
}

.copy {
  font-size: 0.875rem;
  color: #b3aebe;
  width: 100%;
}

/* Legal page */
.legal {
  padding-block: clamp(48px, 8vw, 96px);
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}

.legal .updated {
  color: var(--content-muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
}

.legal p,
.legal li {
  color: var(--content-soft);
}

.legal p {
  margin-bottom: 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--content);
  font-weight: 500;
}

.legal .table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
}

.legal table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9688rem;
}

.legal th,
.legal td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--content-soft);
}

.legal th {
  color: var(--content);
  font-weight: 500;
  border-bottom-color: var(--line-strong);
}

.legal ol {
  margin: 0 0 14px;
  padding-left: 1.5rem;
  list-style: lower-alpha;
}

.legal a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.legal .back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.legal-note {
  margin-top: 56px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--accent-tint);
  color: var(--content);
}

/* Responsive header and hero */
@media (max-width: 899px) {
  .nav a:not(.btn) {
    display: none;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding-bottom: 40px;
  }

  .hero-visual {
    height: clamp(360px, 92vw, 520px);
  }

  .device {
    width: min(78%, 320px);
  }
}

@media (max-width: 420px) {
  .stores img {
    height: 46px;
  }
}

/* Gentle section reveal; content remains visible when JavaScript is unavailable. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .next-item,
  .data-list > div,
  .faq details,
  .contact .mail-list li {
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
  }

  .next-item:hover,
  .data-list > div:hover {
    transform: translateY(-3px);
  }

  .faq details:hover {
    border-color: var(--accent);
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--content-soft);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
}

.theme-toggle .icon-sun,
:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

/* Due-expense notification */
.alerts .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}

.alerts h2 {
  margin-bottom: 36px;
}

.alerts figure {
  margin: 0;
}

.alerts figcaption {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--content-muted);
}

.push {
  display: flex;
  gap: 14px;
  max-width: 26rem;
  margin-inline: auto;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.push-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
}

.push-text {
  min-width: 0;
  flex: 1;
}

.push-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--content-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.push-title {
  margin-top: 4px;
  font-weight: 700;
  color: var(--content);
}

.push-body {
  margin-top: 2px;
  font-size: 0.9688rem;
  color: var(--content-soft);
}

@media (max-width: 899px) {
  .alerts .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Logo variant by theme: light wordmark on dark, dark wordmark on light */
.brand .logo-on-dark {
  display: none;
}

:root[data-theme='dark'] .brand .logo-on-dark {
  display: block;
}

:root[data-theme='dark'] .brand .logo-on-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand .logo-on-dark {
    display: block;
  }

  :root:not([data-theme='light']) .brand .logo-on-light {
    display: none;
  }
}

/* The footer is dark in both themes */
.site-footer .brand .logo-on-dark {
  display: block;
}

.site-footer .brand .logo-on-light {
  display: none;
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--content-soft);
  font: inherit;
  font-size: 0.9063rem;
  font-weight: 500;
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-toggle .chevron {
  width: 16px;
  height: 16px;
}

.flag {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 11rem;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--content);
  font: inherit;
  font-size: 0.9688rem;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover {
  background: var(--surface-muted);
}

.lang-menu button[aria-current='true'] {
  font-weight: 700;
  color: var(--accent);
}

/* Legal pages carry one block per language; the page language decides which shows */
.legal [data-l] {
  display: none;
}

html[lang='pt-BR'] .legal [data-l='pt'],
html[lang='en'] .legal [data-l='en'],
html[lang='es'] .legal [data-l='es'] {
  display: block;
}

@media (max-width: 899px) {
  .nav {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .nav .btn {
    display: none;
  }
}
