/* ===========================================================
   IA Clean — shared stylesheet (tokens, header, footer, buttons,
   ad slots, prose). Page-specific layout lives inline per page.
   =========================================================== */

:root {
  --bg: #f3f5f3;
  --surface: #ffffff;
  --ink: #12181a;
  --muted: #5b6664;
  --line: #dbe2de;
  --accent: #1f6f5c;
  --accent-ink: #14483c;
  --accent-soft: #e4efea;
  --flag: #b8441a;
  --flag-soft: #f5e6de;
  --radius: 14px;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1,
h2,
h3,
.display {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
section {
  padding: 88px 0;
}
@media (max-width: 720px) {
  section {
    padding: 56px 0;
  }
  .wrap {
    padding: 0 20px;
  }
}

/* ---------- header / responsive nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 14px;
  height: 14px;
}
.brand img {
  height: auto;
}
@media (max-width: 480px) {
  .brand img {
    width: 150px !important;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a.nav-cta {
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-links a.active-link {
  color: var(--ink);
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 7px 13px;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  font-size: inherit;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--bg);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.menu-toggle .bars {
  width: 16px;
  height: 11px;
  position: relative;
}
.menu-toggle .bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.6px;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    top 0.2s ease;
}
.menu-toggle .bars span:nth-child(1) {
  top: 0;
}
.menu-toggle .bars span:nth-child(2) {
  top: 5px;
}
.menu-toggle .bars span:nth-child(3) {
  top: 10px;
}
.menu-toggle.active .bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.menu-toggle.active .bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -20px rgba(18, 24, 26, 0.25);
    padding: 10px 20px 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.25s ease,
      opacity 0.2s ease,
      padding 0.25s ease;
  }
  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    padding: 14px 20px 20px;
  }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.98rem;
  }
  .nav-links a.nav-cta {
    text-align: center;
    margin-top: 8px;
    border-bottom: none;
  }
  .lang-toggle {
    align-self: flex-start;
    margin-top: 12px;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  font-family: "Inter", sans-serif;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- ad slots ---------- */
.ad-slot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) {
  .ad-slot {
    padding: 0 20px;
  }
}
.ad-slot-inner {
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  position: relative;
  overflow: hidden;
}
.ad-slot-inner.rect {
  min-height: 250px;
  max-width: 300px;
  margin: 0 auto;
}
.ad-slot-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: absolute;
  top: 8px;
  left: 10px;
}
.ad-slot .adsbygoogle {
  display: block;
  width: 100%;
  height: 100%;
}
.ad-band {
  padding: 22px 0;
}
.ad-band.top {
  padding: 22px 0 0;
}

/* ---------- section heads / kicker ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}
.section-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1.02rem;
}
.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 10px;
}

/* ---------- page banner (for About / Privacy / Terms / Contact) ---------- */
.page-banner {
  padding: 64px 0 48px;
  text-align: center;
}
.page-banner .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.page-banner .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.page-banner h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.08;
}
.page-banner p.lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- prose (About / Privacy / Terms) ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 44px;
  margin-bottom: 14px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 1.1rem;
  margin-top: 26px;
  margin-bottom: 10px;
}
.prose p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 14px;
  line-height: 1.7;
}
.prose ul,
.prose ol {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  padding-left: 22px;
  margin: 0 0 14px;
}
.prose li {
  margin-bottom: 6px;
}
.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong {
  color: var(--ink);
}
.prose .updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 36px;
  display: block;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  color: var(--ink);
  font-style: italic;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.value-list li {
  display: flex;
  gap: 14px;
}
.value-list .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.value-list .check svg {
  width: 12px;
  height: 12px;
}
.value-list b {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 3px;
}
.value-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- contact form ---------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row {
  margin-bottom: 18px;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}
.contact-direct {
  text-align: center;
  margin-bottom: 36px;
}
.contact-direct a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.05rem;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
}

/* ---------- footer ---------- */
footer {
  padding: 40px 0 44px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-note {
  color: var(--muted);
  font-size: 0.84rem;
}
