/* anonym.plus — Clean SaaS design system
   DM Sans · White/Green/Gray · Mobile-first */

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

:root {
  --black: #111;
  --white: #fff;
  --green: #1a5c3a;
  --green-dark: #144a2e;
  --gray-600: #555;
  --gray-400: #767676;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --red: #b91c1c;
  --red-light: #fef2f2;
  --red-border: #fecaca;
  --green-bg: #f0faf4;
  --green-border: #c8dece;
}

html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white); color: var(--black); line-height: 1.65; min-height: 100vh;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-size: 15px; font-weight: 400;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

/* ── NAV ────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 1.15rem; color: var(--black);
  text-decoration: none; display: flex; align-items: center; gap: .5rem;
  letter-spacing: -0.01em; flex-shrink: 0;
}
.nav-logo svg { width: 26px; height: 26px; }
.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a, .nav-links .nav-link {
  text-decoration: none; color: var(--gray-600); font-size: .875rem; font-weight: 500;
  transition: color .15s ease; white-space: nowrap;
  padding: .875rem .25rem; display: inline-flex; align-items: center; min-height: 48px;
}
.nav-links a:hover, .nav-links .nav-link:hover { color: var(--black); }
.nav-links a.active, .nav-links .nav-link.active { color: var(--black); }
.nav-cta {
  background: var(--green); color: var(--white) !important; padding: .5rem 1.25rem;
  border-radius: 9999px; font-weight: 600; transition: background .15s ease;
  font-size: .875rem; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; text-align: center; min-height: 48px;
}
.nav-cta:hover { background: var(--green-dark); }

/* Language switcher strip inside nav (localized pages) */
.lang-switcher {
  display: flex; justify-content: center; gap: .75rem;
  padding: .5rem 1rem; border-top: 1px solid var(--gray-200);
  font-size: .8125rem;
}
.lang-switcher a { color: var(--gray-400); text-decoration: none; font-weight: 500; }
.lang-switcher a:hover { color: var(--green); }
.lang-switcher a.active { color: var(--green); font-weight: 700; pointer-events: none; }

/* Hamburger toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: .75rem;
  color: var(--black); line-height: 0;
  min-width: 48px; min-height: 48px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ── PAGE HERO ──────────────────────────────────────────────────────────── */
.page-hero {
  padding: 8rem 2rem 3.5rem; text-align: center; position: relative;
  background: var(--black); color: var(--white);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.15;
  max-width: 700px; margin: 0 auto .75rem; color: var(--white);
}
.page-hero p {
  font-size: .95rem; color: rgba(255,255,255,.75); max-width: 520px;
  margin: 0 auto; line-height: 1.7; font-weight: 400;
}
.article-byline {
  font-size: .8rem !important; color: rgba(255,255,255,.5) !important;
  margin-top: .75rem !important; letter-spacing: .01em;
}
.article-byline a { color: rgba(255,255,255,.65); text-decoration: none; }
.article-byline a:hover { color: var(--white); }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  padding: 3rem 2rem; border-top: 1px solid var(--gray-200); text-align: center;
  margin-top: auto; background: var(--white);
}
footer p { font-size: .8rem; color: var(--gray-400); }
footer a { color: var(--gray-600); text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--black); }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 6px; font-weight: 600; font-size: .875rem;
  text-decoration: none; transition: background .15s ease, border-color .15s ease;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-secondary { background: var(--white); color: var(--black); border: 1px solid var(--gray-200); }
.btn-secondary:hover { border-color: var(--gray-400); background: var(--gray-100); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost {
  color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.15); background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--white); border-color: rgba(255,255,255,.3); }
.btn-outline { background: transparent; color: var(--gray-600); border: 1px solid var(--gray-200); }
.btn-outline:hover { color: var(--black); background: var(--gray-100); border-color: var(--gray-400); }
.btn-sm { padding: .6rem 1.25rem; font-size: .8125rem; }
.btn-block { display: block; width: 100%; }

/* ── CARDS ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 1.5rem;
}

/* ── FORMS ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .8125rem; color: var(--black); margin-bottom: .4rem;
  font-weight: 600;
}
.form-input {
  width: 100%; padding: .7rem .875rem; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 6px; color: var(--black);
  font-size: .875rem; transition: border-color .15s ease; font-family: inherit;
}
.form-input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,92,58,.08);
}
.form-input::placeholder { color: var(--gray-400); }

/* ── ALERTS ─────────────────────────────────────────────────────────────── */
.alert {
  border-radius: 6px; padding: .8rem 1rem; font-size: .8125rem;
  margin: 1rem 0; display: none; line-height: 1.6;
}
.alert-error { background: var(--red-light); border: 1px solid var(--red-border); color: var(--red); }
.alert-success { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }

/* ── LINKS ──────────────────────────────────────────────────────────────── */
.link { color: var(--green); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ── BADGES ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; padding: .2rem .625rem; border-radius: 9999px;
  font-size: .7rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
}
.badge-free { background: var(--gray-100); color: var(--gray-600); }
.badge-basic { background: #e8f0fe; color: #1a56db; }
.badge-pro { background: var(--green-bg); color: var(--green); }
.badge-expert { background: #fef3c7; color: #b45309; }
.badge-enterprise { background: var(--green-bg); color: var(--green); }

/* ── FEATURE TAGS ───────────────────────────────────────────────────────── */
.feature-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.feature-tag {
  padding: .25rem .625rem; border-radius: 6px; font-size: .7rem; font-weight: 500;
  background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200);
}

/* ── LAYOUT HELPERS ─────────────────────────────────────────────────────── */
.container-sm { max-width: 480px; margin: 0 auto; padding: 2rem; }
.container-md { max-width: 800px; margin: 0 auto; padding: 2rem; }
.container-lg { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-600); }
.text-xs { font-size: .75rem; }
.text-sm { font-size: .8125rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.hidden { display: none; }

/* ── DIVIDER ────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 1.5rem 0; }

/* ── INFO ROWS ──────────────────────────────────────────────────────────── */
.info-row {
  display: flex; justify-content: space-between; align-items: center; padding: .75rem 0;
  border-bottom: 1px solid var(--gray-200); font-size: .8125rem;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--gray-600); font-weight: 500; }
.info-value { color: var(--black); font-weight: 600; }

/* ── MACHINE CARDS ──────────────────────────────────────────────────────── */
.machine-card {
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 1rem 1.25rem; margin-bottom: .75rem;
  display: flex; justify-content: space-between; align-items: center;
}
.machine-name { font-size: .8125rem; font-weight: 600; color: var(--black); }
.machine-detail { font-size: .75rem; color: var(--gray-600); margin-top: .125rem; }
.machine-fp {
  font-family: 'Courier New', Courier, monospace; font-size: .7rem;
  color: var(--gray-400); margin-top: .125rem; font-variant-numeric: tabular-nums;
}

/* ── PRIVACY NOTE ───────────────────────────────────────────────────────── */
.privacy-note {
  color: var(--gray-400); font-size: .75rem; text-align: center;
  margin-top: 1.25rem; line-height: 1.6;
}

/* ── FINGERPRINT BOX ────────────────────────────────────────────────────── */
.fp-box {
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 1rem; text-align: center;
  font-size: 1rem; letter-spacing: .15em; color: var(--black); font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── PAGE CONTENT ───────────────────────────────────────────────────────── */
.page-content {
  padding: 3rem 2rem 4rem; background: var(--white);
  min-height: calc(100vh - 250px - 90px);
}

/* ── PAGE CENTERED ──────────────────────────────────────────────────────── */
.page-centered {
  min-height: 50vh; display: flex; align-items: flex-start; justify-content: center;
  padding: 3rem 2rem 4rem;
}

/* ── CONFIRMATION DIALOG ────────────────────────────────────────────────── */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(17,17,17,.4); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
  backdrop-filter: blur(4px);
}
.confirm-overlay.open { opacity: 1; pointer-events: auto; }
.confirm-dialog {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 1.5rem; max-width: 420px; width: 90vw;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.confirm-dialog h3 { font-size: 1.15rem; font-weight: 700; color: var(--black); margin-bottom: .5rem; }
.confirm-dialog p { font-size: .8125rem; color: var(--gray-600); margin-bottom: 1.25rem; line-height: 1.6; }

/* ── SECTION LABEL ──────────────────────────────────────────────────────── */
.section-label {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gray-400);
  margin-bottom: 1rem;
}
.section-label-light {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,.75);
  margin-bottom: 1rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    flex-direction: column; gap: 0; padding: 1rem 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    display: none;
  }
  nav.nav-open .nav-links { display: flex; }
  nav.nav-open:has(.lang-switcher) .nav-links { top: 103px; }
  .nav-links a, .nav-links .nav-link { padding: .75rem 2rem; font-size: .9375rem; min-height: 48px; display: flex; align-items: center; }
  .nav-links li { width: 100%; }
  .nav-cta { margin: .5rem 2rem; text-align: center; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .container-sm, .container-md, .container-lg { padding: 1rem; }
  .page-hero { padding: 7rem 1.5rem 2.5rem; }
  .page-hero h1 { font-size: 1.75rem; }
  .page-centered { padding: 2rem 1rem 3rem; }
}
