/* Lebenslaufy — shared site styles */

:root {
  --navy: #16233f;
  --navy-light: #1e3864;
  --red: #d52b1e;
  --red-light: #ff6b57;
  --gold: #e8b84b;
  --bg: #ffffff;
  --bg-muted: #f5f6f8;
  --text: #1a1d24;
  --text-muted: #5b6270;
  --border: #e4e6ea;
  --radius: 10px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.brand .flag {
  width: 20px;
  height: 14px;
  background: var(--red);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}
.brand .flag::before, .brand .flag::after {
  content: "";
  position: absolute;
  background: #fff;
}
.brand .flag::before { top: 5px; left: 4px; right: 4px; height: 4px; }
.brand .flag::after { left: 8px; right: 8px; top: 2px; bottom: 2px; width: 4px; margin: 0 auto; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 500;
}
nav.main-nav a { color: var(--text); position: relative; }
nav.main-nav a:hover { color: var(--navy-light); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Compact language switch used in the header, next to the nav */
.lang-switch-mini {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch-mini button {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}
.lang-switch-mini button.active { background: var(--navy); color: #fff; }

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 76px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg) 78%);
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.hero::before {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--red-light), transparent 70%);
  top: -180px;
  right: -120px;
}
.hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  top: -60px;
  left: -160px;
  opacity: 0.25;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(213, 43, 30, 0.08);
  border: 1px solid rgba(213, 43, 30, 0.15);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  animation: fadeUp 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: fadeUp 0.6s ease 0.05s both;
}
.hero p.lead {
  font-size: 1.22rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.15s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 35, 63, 0.55); }
.btn-primary:hover { background: var(--navy-light); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(22, 35, 63, 0.6); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--navy); text-decoration: none; transform: translateY(-1px); }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-store .store-icon { font-size: 1.3rem; line-height: 1; }
.btn-store .store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-store .store-text small { font-size: 0.68rem; font-weight: 500; opacity: 0.8; }
.btn-store.apple { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 35, 63, 0.55); }
.btn-store.apple:hover { background: var(--navy-light); text-decoration: none; transform: translateY(-1px); }
.btn-store.android {
  background: var(--bg-muted);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: default;
  opacity: 0.85;
}
.btn-store.android:hover { text-decoration: none; transform: none; }
.btn-store.android .badge-soon {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(213, 43, 30, 0.12);
  color: var(--red);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 4px;
}
.store-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Trust strip under hero */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 44px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }

/* Feature grid */
.section { padding: 72px 0; }
.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  font-weight: 800;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(22, 35, 63, 0.28);
  border-color: rgba(22, 35, 63, 0.16);
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.band {
  position: relative;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(232, 184, 75, 0.18), transparent 55%);
  pointer-events: none;
}
.band .section-title, .band h2 { color: #fff; }
.band .section-subtitle { color: rgba(255,255,255,0.78); }

/* Legal / content pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.doc h1 { color: var(--navy); font-size: 2rem; margin-bottom: 4px; }
.doc .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.doc h2 { color: var(--navy); font-size: 1.2rem; margin-top: 40px; }
.doc p, .doc li { color: var(--text); }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 56px 0; }
.lang-switch {
  display: inline-flex;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: 999px;
}
.lang-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-muted);
}
.lang-switch a.active { background: var(--navy); color: #fff; }
.lang-switch a.active:hover { text-decoration: none; }

/* Web CV demo generator */
.try-box {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.try-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.try-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.form-field input, .form-field textarea {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 64px; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(30, 56, 100, 0.12);
}
.try-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.try-actions button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
#tryStatus { font-size: 0.85rem; margin-top: 10px; min-height: 1.2em; }
#tryStatus.ok { color: #1e5e34; }
#tryStatus.err { color: #8a271e; }

@media (max-width: 640px) {
  .try-grid { grid-template-columns: 1fr; }
}

/* Verify tool */
.verify-box {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.verify-box input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-bottom: 14px;
}
.verify-box button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.verify-box button:hover { background: var(--navy-light); }
#result { margin-top: 22px; }
.result-card {
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 0.95rem;
}
.result-ok { background: #e7f6ec; border: 1px solid #bfe6cb; color: #1e5e34; }
.result-bad { background: #fdecea; border: 1px solid #f3c2bd; color: #8a271e; }
.result-card dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 0.9rem; }
.result-card dt { font-weight: 600; opacity: 0.75; }
.result-card dd { margin: 0; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-muted);
}
footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}
footer.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site-footer nav a { color: var(--text-muted); }
footer.site-footer nav a:hover { color: var(--navy); }

/* Mobile hamburger toggle — hidden on desktop, shown only under 640px */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 12px;
    box-shadow: 0 12px 24px -16px rgba(22, 35, 63, 0.3);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  nav.main-nav a:last-child { border-bottom: none; }

  .header-actions { gap: 10px; }

  .hero { padding: 64px 0 48px; }
}

/* Offsets anchor-linked sections so their heading doesn't hide under the
   sticky header when jumped to via a nav link like #features or #try-it. */
#features, #try-it {
  scroll-margin-top: 80px;
}
