/* Monyqa static site — brand tokens from lib/app/theme.dart */

@font-face {
  font-family: "PulpDisplay";
  src: url("../assets/fonts/PulpDisplay-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --primary: #f85d0d;
  --secondary: #ffa46a;
  --income: #4caf6b;
  --scaffold: #f7f7f7;
  --surface: #ffffff;
  --on-surface: #262626;
  --on-surface-variant: #6b6b6b;
  --primary-container: #ffe8dc;
  --outline-variant: #c7c7c7;
  --shadow: rgba(0, 0, 0, 0.08);

  --header-bg: rgba(247, 247, 247, 0.92);
  --hero-gradient-start: #ffffff;
  --hero-gradient-end: #ffe8dc;
  --footer-bg: #ffffff;
}

[data-theme="dark"] {
  --scaffold: #141210;
  --surface: #1e1b19;
  --on-surface: #f3eee9;
  --on-surface-variant: #b5a99f;
  --primary-container: #3c2a20;
  --outline-variant: #3f3934;
  --shadow: rgba(0, 0, 0, 0.4);

  --header-bg: rgba(20, 18, 16, 0.92);
  --hero-gradient-start: #1e1b19;
  --hero-gradient-end: #3c2a20;
  --footer-bg: #1e1b19;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --scaffold: #141210;
    --surface: #1e1b19;
    --on-surface: #f3eee9;
    --on-surface-variant: #b5a99f;
    --primary-container: #3c2a20;
    --outline-variant: #3f3934;
    --shadow: rgba(0, 0, 0, 0.4);

    --header-bg: rgba(20, 18, 16, 0.92);
    --hero-gradient-start: #1e1b19;
    --hero-gradient-end: #3c2a20;
    --footer-bg: #1e1b19;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PulpDisplay", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--on-surface);
  background: var(--scaffold);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--outline-variant);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--on-surface);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-size: 1.05rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--surface);
}

.lang-switch-btn {
  border: none;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  font: inherit;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.lang-switch-btn:hover {
  color: var(--primary);
}

.lang-switch-btn.is-active {
  color: var(--primary);
}

.lang-switch-sep {
  color: var(--outline-variant);
  font-size: 0.75rem;
  user-select: none;
}

[data-lang-block]:not(.is-active) {
  display: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--on-surface-variant);
  font-size: 0.925rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
  text-decoration: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--surface);
  color: var(--on-surface);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

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

/* Hero */

.hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(
    180deg,
    var(--hero-gradient-start) 0%,
    var(--hero-gradient-end) 100%
  );
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo img {
  width: 112px;
  height: 112px;
  margin-bottom: 1.25rem;
}

.hero-logo h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tagline {
  margin: 0;
  color: var(--income);
  font-size: 1.125rem;
  font-weight: 500;
}

.hero-copy p {
  margin: 0 0 1rem;
  color: var(--on-surface-variant);
  font-size: 1.05rem;
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-surface);
  font-size: 0.825rem;
  font-weight: 500;
}

/* Sections */

section {
  padding: 2.5rem 0;
}

.section-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.section-subtitle {
  margin: 0 0 1.5rem;
  color: var(--on-surface-variant);
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 22px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: var(--primary-container);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-icon.income {
  color: var(--income);
}

/* Legal pages */

.legal-page {
  padding: 2rem 0 3rem;
}

.legal-page h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--on-surface-variant);
  font-size: 0.925rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--on-surface);
}

.legal-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-section p,
.legal-section li {
  color: var(--on-surface-variant);
}

.legal-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 0.35rem;
}

.lang-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--outline-variant);
}

.lang-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.lang-label {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  background: var(--primary-container);
  color: var(--on-surface);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice-box {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--primary);
  background: var(--primary-container);
}

.notice-box p {
  margin: 0;
  color: var(--on-surface);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0;
  background: var(--footer-bg);
  border-top: 1px solid var(--outline-variant);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--on-surface);
  font-weight: 600;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--on-surface-variant);
  font-size: 0.925rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 0.85rem;
}

/* Mobile nav */

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