/* ============================================================
   DocLex — Shared Stylesheet
   Palette: Racing Green + Antique Gold + Parchment
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --green-900: #0D2B1E;
  --green-800: #1B4332;   /* Racing Green — primary */
  --green-700: #2D6A4F;
  --green-100: #D8EAE0;
  --green-050: #EEF6F1;

  --gold-500:  #C8A96E;   /* Antique Gold — accent */
  --gold-300:  #E8D5A8;
  --gold-700:  #8B6914;

  --parchment: #F7F5F0;   /* Page background */
  --ink:       #1A1A18;   /* Body text */
  --ink-muted: #5A5A54;
  --ink-faint: #A8A89E;

  --white:     #FFFFFF;
  --border:    #D4D0C4;
  --shadow-sm: 0 1px 3px rgba(27,67,50,0.08);
  --shadow-md: 0 4px 16px rgba(27,67,50,0.12);
  --shadow-lg: 0 12px 40px rgba(27,67,50,0.16);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-width: 1160px;
  --nav-h:     64px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--green-800);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: .03em; text-transform: uppercase; color: var(--green-700); }
p  { color: var(--ink-muted); max-width: 68ch; }
small { font-size: 0.8125rem; color: var(--ink-faint); }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--green-800);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-100);
  opacity: 0.8;
  transition: opacity .2s;
}
.nav__links a:hover,
.nav__links a.active { opacity: 1; color: var(--gold-300); }
.nav__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-500);
  border: 1px solid var(--gold-500);
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: auto;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 4rem 0; }
.section--sm { padding: 2.5rem 0; }

/* ── Page header (sub-pages) ────────────────────────────── */
.page-header {
  background: var(--green-800);
  padding: 3rem 0 2.5rem;
  border-bottom: 3px solid var(--gold-500);
}
.page-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.5rem;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p  { color: var(--green-100); opacity: 0.85; max-width: 56ch; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.card--elevated { box-shadow: var(--shadow-md); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.75rem 1.75rem;
  transition: background .2s, transform .1s, box-shadow .2s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(27,67,50,0.3);
}
.btn--primary:hover { background: var(--green-700); box-shadow: 0 4px 14px rgba(27,67,50,0.35); }

.btn--gold {
  background: var(--gold-500);
  color: var(--green-900);
  box-shadow: 0 2px 8px rgba(200,169,110,0.3);
}
.btn--gold:hover { background: #B8954E; }

.btn--outline {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--green-800);
}
.btn--outline:hover { background: var(--green-050); }

.btn--lg { font-size: 1.0625rem; padding: 1rem 2.25rem; }
.btn--sm { font-size: 0.8125rem; padding: 0.5rem 1rem; }

/* ── Upload zone ────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--green-700);
  background: var(--green-050);
}
.upload-zone__stamp {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--green-100);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  background: var(--green-050);
  transition: border-color .2s;
}
.upload-zone:hover .upload-zone__stamp { border-color: var(--green-700); }
.upload-zone__stamp svg { color: var(--green-800); }
.upload-zone h3 { font-family: var(--font-body); font-weight: 600; margin-bottom: 0.25rem; color: var(--green-800); }
.upload-zone p  { font-size: 0.875rem; color: var(--ink-faint); max-width: 36ch; margin: 0 auto 1.25rem; }
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}

/* ── File pill (after upload) ───────────────────────────── */
.file-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--green-050);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.file-pill__icon {
  width: 36px; height: 36px;
  background: var(--green-800);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.file-pill__name { font-weight: 500; color: var(--ink); }
.file-pill__size { color: var(--ink-faint); font-size: 0.8125rem; }
.file-pill__remove {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  padding: 4px;
  transition: color .15s;
}
.file-pill__remove:hover { color: #C0392B; }

/* ── Step indicator ─────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 80px;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: var(--border);
}
.step.done:not(:last-child)::after { background: var(--green-700); }
.step__circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-faint);
  z-index: 1;
  transition: all .2s;
}
.step.active .step__circle {
  border-color: var(--green-800);
  background: var(--green-800);
  color: var(--white);
}
.step.done .step__circle {
  border-color: var(--green-700);
  background: var(--green-700);
  color: var(--white);
}
.step__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: 0.4rem;
  text-align: center;
}
.step.active .step__label { color: var(--green-800); font-weight: 600; }
.step.done .step__label { color: var(--green-700); }

/* ── Form elements ──────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.form-control {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
select.form-control { cursor: pointer; }

/* ── Alert / notice ─────────────────────────────────────── */
.alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.alert--info {
  background: var(--green-050);
  border-left: 3px solid var(--green-700);
  color: var(--green-900);
}
.alert--warning {
  background: #FFFBEB;
  border-left: 3px solid #D97706;
  color: #78350F;
}
.alert--error {
  background: #FEF2F2;
  border-left: 3px solid #DC2626;
  color: #7F1D1D;
}
.upload-zone.zone--error {
  border-color: #DC2626;
  background: #FEF2F2;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-800);
  font-weight: 600;
}
.footer small { color: var(--ink-faint); }

/* ── Utilities ──────────────────────────────────────────── */
.text-gold   { color: var(--gold-500); }
.text-green  { color: var(--green-800); }
.text-muted  { color: var(--ink-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { padding: 0 1rem; }
  .nav__links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Language switcher ──────────────────────────────── */
.lang-switcher {
  position: relative;
  margin-left: 1rem;
}
.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: var(--green-100);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.3rem 0.625rem;
  cursor: pointer;
  transition: background .2s;
}
.lang-switcher__btn:hover { background: rgba(255,255,255,0.14); }
.lang-switcher__flag { font-size: 1rem; line-height: 1; }
.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
}
.lang-switcher:hover .lang-switcher__dropdown,
.lang-switcher__dropdown:hover { display: block; }
.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s;
  border-bottom: 1px solid var(--border);
}
.lang-switcher__option:last-child { border-bottom: none; }
.lang-switcher__option:hover { background: var(--green-050); }
.lang-switcher__option--active {
  background: var(--green-050);
  font-weight: 600;
  color: var(--green-800);
}
.lang-switcher__option--soon {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.lang-soon-tag {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 20px;
  padding: 1px 5px;
}

/* ── Hero (forside) ─────────────────────────────────── */
.hero {
  background: var(--green-800);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 900px 600px at 80% 50%, rgba(45,106,79,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(13,43,30,0.6) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 680px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1.75rem;
}
.hero__kicker-line { width: 32px; height: 1px; background: var(--gold-500); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero__lead {
  color: var(--green-100);
  opacity: 0.85;
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 54ch;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero__note { font-size: 0.8125rem; color: var(--green-100); opacity: 0.55; }

/* ── Gold rule ──────────────────────────────────────── */
.gold-rule {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500) 0%, var(--gold-300) 60%, transparent 100%);
}

/* ── How it works ───────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.how-step {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
}
.how-step:last-child { border-right: none; }
.how-step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-100);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.how-step h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--green-800); }
.how-step p  { font-size: 0.875rem; color: var(--ink-muted); max-width: 28ch; }
.how-step__tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-050);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ── Output cards ───────────────────────────────────── */
.output-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.output-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.output-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.output-card h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.output-card p  { font-size: 0.8125rem; max-width: none; }

/* ── Audience list ──────────────────────────────────── */
.audience-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.audience-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.audience-item:last-child { border-bottom: none; }
.audience-item:hover { background: var(--green-050); }
.audience-item__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); flex-shrink: 0; }
.audience-item__title { font-weight: 600; font-size: 0.9375rem; color: var(--green-800); min-width: 220px; }
.audience-item__desc  { font-size: 0.875rem; color: var(--ink-muted); }
.audience-item__tag   { margin-left: auto; font-size: 0.6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.tag--now  { background: #DCFCE7; color: #166534; }
.tag--soon { background: #FEF9C3; color: #854D0E; }

/* ── CTA banner ─────────────────────────────────────── */
.cta-banner {
  background: var(--green-800);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-banner p  { color: var(--green-100); opacity: .8; max-width: 52ch; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-step { border-right: none; border-bottom: 1px solid var(--border); }
  .how-step:last-child { border-bottom: none; }
  .output-grid { grid-template-columns: 1fr; }
  .audience-item__tag { display: none; }
  .audience-item__title { min-width: unset; }
  .cta-banner { padding: 2rem; }
  .hero h1 { font-size: 2.25rem; }
}
