:root {
  color-scheme: light dark;
  --background: #f7f7f9;
  --surface: #ffffff;
  --surface-soft: #f1f2f4;
  --text: #17181b;
  --text-muted: #4f535c;
  --line: #d9dce0;
  --link: #526700;
  --lime: #b6ee25;
  --teal: #148bbe;
  --magenta: #ee25b6;
  --ambient-send: rgb(238 37 182 / 9%);
  --ambient-receive: rgb(20 139 190 / 10%);
  --shadow: 0 16px 48px rgb(17 24 9 / 8%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.home-body {
  background:
    radial-gradient(ellipse 55rem 38rem at calc(50% + 14rem) 31rem, var(--ambient-send), transparent 100%),
    radial-gradient(ellipse 53rem 40rem at calc(50% + 31rem) 47rem, var(--ambient-receive), transparent 100%),
    var(--background);
  background-repeat: no-repeat;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.4rem;
  background: var(--text);
  color: var(--surface);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.page-content,
.site-footer {
  width: min(100% - 3rem, 74rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid rgb(238 37 182 / 24%);
  border-radius: 0.7rem;
  background: #10131a;
  box-shadow: 0 0 20px rgb(238 37 182 / 12%);
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.8rem, 2vw, 1.8rem);
}

.nav-link,
.language-switch summary {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 0.2em;
  text-underline-offset: 0.45em;
}

.language-switch {
  position: relative;
}

.language-switch summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

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

.language-switch summary::after {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0 0 0.15rem 0.5rem;
  transform: rotate(45deg);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
}

.language-switch[open] summary::after {
  transform: translateY(0.2rem) rotate(225deg);
}

.language-switch ul {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.8rem);
  right: 0;
  min-width: 10rem;
  margin: 0;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  list-style: none;
}

.language-switch li + li {
  margin-top: 0.15rem;
}

.language-switch li a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.4rem;
  color: var(--text);
  text-decoration: none;
}

.language-flag {
  display: inline-block;
  min-width: 1.3em;
  margin-left: 0.3rem;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: -0.05em;
}

.language-switch li a .language-flag {
  margin-left: 0;
}

.language-switch li a:hover,
.language-switch li a[aria-current="page"] {
  background: var(--surface-soft);
}

.theme-toggle {
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.theme-toggle .theme-icon {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #17181b;
}

.theme-toggle:hover {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--lime);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.page-content {
  padding-block: 3rem 5rem;
}

.hero {
  display: grid;
  min-height: 36rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: 3.5rem 4.5rem;
}

.hero-copy {
  max-width: 47rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-mark {
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 15px rgb(238 37 182 / 35%);
}

.eyebrow-mark-teal {
  background: var(--teal);
  box-shadow: 0 0 15px rgb(37 182 238 / 35%);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  font-weight: 760;
  letter-spacing: -0.065em;
}

.hero-intro,
.page-lead {
  max-width: 43rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--lime);
  color: #17181b;
}

.button-primary:hover {
  background: #c9f45f;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--text-muted);
}

.transfer-illustration {
  min-width: 0;
  padding: clamp(0.3rem, 1vw, 0.8rem);
  border: 1px solid rgb(238 37 182 / 22%);
  border-radius: 1.4rem;
  background:
    radial-gradient(ellipse at 27% 52%, rgb(238 37 182 / 17%), transparent 55%),
    radial-gradient(ellipse at 78% 53%, rgb(20 139 190 / 18%), transparent 57%),
    var(--surface);
  box-shadow: -22px 7px 65px rgb(238 37 182 / 10%), 22px 7px 65px rgb(20 139 190 / 12%);
}

.transfer-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.steps-section {
  padding-block: 4rem 4.5rem;
  border-top: 1px solid var(--line);
}

.steps-section > h2,
.support-section h2,
.honesty-note h2,
.contact-card h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  min-width: 0;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.step-number {
  display: block;
  margin-bottom: 1.15rem;
  color: var(--link);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.steps-list h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.steps-list p,
.honesty-note p,
.support-section p,
.policy-section p,
.contact-card p {
  color: var(--text-muted);
}

.honesty-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-left: 0.3rem solid var(--lime);
  border-radius: 0.75rem;
  background: var(--surface);
}

.notice-symbol {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--link);
  font-weight: 800;
}

.honesty-note h2 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

.honesty-note p {
  margin-bottom: 0.6rem;
}

.honesty-note a {
  font-weight: 700;
}

.support-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-block: 3rem 1rem;
  border-top: 1px solid var(--line);
}

.support-section h2 {
  margin-bottom: 0.5rem;
}

.support-section p {
  margin-bottom: 0;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.privacy-page {
  max-width: 54rem;
  padding-top: clamp(3.5rem, 8vw, 7rem);
}

.page-heading {
  margin-bottom: 3.5rem;
}

.page-heading h1 {
  max-width: 15ch;
}

.policy-section {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin-bottom: 1rem;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.policy-section p {
  max-width: 48rem;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.contact-card {
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 0.8rem;
  border: 1px solid rgb(20 139 190 / 24%);
  background: var(--surface);
  box-shadow: 0 12px 45px rgb(20 139 190 / 8%);
}

.contact-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.contact-card p {
  margin-bottom: 0.5rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
}

.site-footer nav a {
  color: var(--text);
  font-weight: 650;
}

.coffee-support {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding-block: 0.6rem;
}

.coffee-support a {
  font-weight: 700;
}

.site-footer small {
  grid-column: 1 / -1;
}

@media (max-width: 850px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.8fr);
    gap: 2rem;
  }

}

@media (max-width: 650px) {
  .site-header,
  .page-content,
  .site-footer {
    width: min(100% - 2rem, 74rem);
  }

  .site-header {
    min-height: 4.5rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding-block: 0.8rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem 1rem;
  }

  .nav-link,
  .language-switch summary {
    font-size: 0.82rem;
  }

  .language-switch ul {
    right: 0;
  }

  .page-content {
    padding-block: 2rem 3.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
    padding-block: 2rem 3.2rem;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 4.2rem);
  }


  .steps-section {
    padding-block: 3rem;
  }

  .steps-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .steps-list li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: 0.8rem;
  }

  .step-number {
    grid-row: span 2;
    margin: 0.1rem 0 0;
  }

  .steps-list h3 {
    margin-bottom: 0.25rem;
  }

  .support-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 3rem;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer small {
    grid-column: auto;
  }
}

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

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b0b0d;
  --surface: #15171b;
  --surface-soft: #202329;
  --text: #f2f2f4;
  --text-muted: #c0c2c8;
  --line: #35373d;
  --link: #b6ee25;
  --teal: #25b6ee;
  --magenta: #ee25b6;
  --ambient-send: rgb(238 37 182 / 12%);
  --ambient-receive: rgb(37 182 238 / 12%);
  --shadow: 0 16px 48px rgb(0 0 0 / 28%);
}

:root[data-theme="dark"] .transfer-illustration {
  border-color: rgb(238 37 182 / 27%);
  background:
    radial-gradient(ellipse at 27% 52%, rgb(238 37 182 / 20%), transparent 55%),
    radial-gradient(ellipse at 78% 53%, rgb(37 182 238 / 20%), transparent 57%),
    var(--surface);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --background: #0b0b0d;
    --surface: #15171b;
    --surface-soft: #202329;
    --text: #f2f2f4;
    --text-muted: #c0c2c8;
    --line: #35373d;
    --link: #b6ee25;
    --teal: #25b6ee;
    --magenta: #ee25b6;
    --ambient-send: rgb(238 37 182 / 12%);
    --ambient-receive: rgb(37 182 238 / 12%);
    --shadow: 0 16px 48px rgb(0 0 0 / 28%);
  }

  .button-primary:hover {
    background: #c9f45f;
  }

  :root:not([data-theme]) .transfer-illustration {
    border-color: rgb(238 37 182 / 27%);
    background:
      radial-gradient(ellipse at 27% 52%, rgb(238 37 182 / 20%), transparent 55%),
      radial-gradient(ellipse at 78% 53%, rgb(37 182 238 / 20%), transparent 57%),
      var(--surface);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
