/* ResiPaket landing: charcoal + amber, box-and-radar DNA, Outfit/JetBrains self-hosted */
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-var.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-var.ttf") format("truetype-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #1B1E23;
  --bg-2: #232830;
  --bg-3: #14171C;
  --amber: #E8A33D;
  --amber-deep: #C8871F;
  --ink: #F7F9FC;
  --dim: #8A94A6;
  --line: rgba(247, 249, 252, 0.12);
  --line-soft: rgba(247, 249, 252, 0.07);
  --font-d: "Outfit", system-ui, sans-serif;
  --font-b: "Outfit", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  font-weight: 450;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}
a { color: inherit; }
code {
  font-family: var(--font-m);
  font-size: 0.85em;
  color: var(--amber);
  background: rgba(232, 163, 61, 0.1);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

h1, h2, h3 { font-family: var(--font-d); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.sec-sub { color: var(--dim); margin-top: 12px; max-width: 520px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--amber); color: var(--bg); }
.btn-amber:hover { background: #F0B35C; }
.btn-ink { background: var(--bg); color: var(--ink); }
.btn-ink:hover { background: var(--bg-2); }
.btn-line { border-color: rgba(247, 249, 252, 0.4); color: var(--ink); }
.btn-line:hover { background: rgba(247, 249, 252, 0.07); border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 30, 35, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-weight: 800; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand-avatar { border-radius: 8px; display: block; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  text-decoration: none; opacity: 0.75;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-menu-cta { display: none; }
.burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 0; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer;
}
.burger span { width: 22px; height: 3px; background: var(--ink); border-radius: 2px; }

/* ---------- hero (charcoal, radar glow) ---------- */
.hero {
  background:
    radial-gradient(640px 420px at 82% 12%, rgba(232, 163, 61, 0.12), transparent 70%),
    var(--bg);
  color: var(--ink);
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px; align-items: center;
}
.eyebrow {
  font-family: var(--font-m); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; margin-bottom: 22px; color: var(--amber);
}
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; color: var(--amber); }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.14em; background: var(--amber); border-radius: 3px; opacity: 0.5;
}
.lede {
  margin-top: 26px; font-size: 1.08rem; font-weight: 450;
  max-width: 460px; color: var(--dim);
}
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-mark { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-radar {
  width: min(340px, 76vw); color: var(--amber);
}
.hero-radar svg { width: 100%; height: auto; display: block; }
.hero-radar .arc { animation: ping 3.6s ease-in-out infinite; }
.hero-radar .a2 { animation-delay: 0.5s; }
.hero-radar .a3 { animation-delay: 1s; }
@keyframes ping { 0%, 100% { opacity: 0.3; } 45% { opacity: 1; } }
.hero-note {
  font-family: var(--font-m); font-weight: 700; font-size: 1.15rem;
  margin-top: 10px; color: var(--ink);
}
.hero-note span { font-weight: 400; font-size: 0.8rem; display: block; text-align: center; color: var(--dim); }

/* ---------- stats band (amber, charcoal text) ---------- */
.stats { background: var(--amber); color: var(--bg); padding: 40px 0; }
.stats-in {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(24px, 5vw, 70px); flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-num {
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1;
}
.stat-cap {
  font-family: var(--font-m); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(27, 30, 35, 0.72); text-align: center;
}
.stat-div { width: 2px; height: 56px; background: rgba(27, 30, 35, 0.22); }

/* ---------- features (numbered rows) ---------- */
.features { padding: clamp(64px, 9vw, 110px) 0; }
.feat-list { list-style: none; margin-top: 44px; }
.feat-list li {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.feat-list li:last-child { border-bottom: 1px solid var(--line); }
.feat-no { font-family: var(--font-m); font-weight: 700; color: var(--amber); font-size: 0.95rem; }
.feat-list h3 { font-size: 1.25rem; margin-bottom: 6px; }
.feat-list p { color: var(--dim); max-width: 640px; }

/* ---------- compare ---------- */
.compare { padding: 0 0 clamp(64px, 9vw, 110px); }
.cmp-wrap { margin-top: 40px; position: relative; }
.cmp-wrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 64px;
  border-radius: 0 11px 11px 0; pointer-events: none;
  background: linear-gradient(to right, rgba(35, 40, 48, 0), var(--bg-2) 80%);
  opacity: 0; transition: opacity 0.2s ease;
}
.cmp-wrap.has-scroll:not(.at-end)::after { opacity: 1; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.cmp-hint {
  display: none; margin-top: 10px;
  font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--dim);
  transition: opacity 0.2s ease;
}
.cmp-hint.gone { opacity: 0; }
.cmp-table {
  width: 100%; min-width: 820px;
  border-collapse: separate; border-spacing: 0;
  font-size: 0.93rem;
}
.cmp-table thead th:first-child, .cmp-table th[scope="row"] {
  position: sticky; left: 0; z-index: 2; background: var(--bg-2);
  box-shadow: inset -1px 0 0 var(--line);
}
.cmp-table th, .cmp-table td {
  padding: 15px 18px; text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.cmp-table thead th {
  font-family: var(--font-d); font-size: 0.95rem; font-weight: 800;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cmp-table tbody th[scope="row"] {
  font-weight: 600; font-size: 0.85rem;
  color: var(--dim); white-space: nowrap;
}
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: 0; }
/* ResiPaket column: amber block, charcoal text */
.cmp-table th.hot, .cmp-table td.hot {
  background: var(--amber); color: var(--bg);
  border-left: 2px solid var(--amber); border-right: 2px solid var(--amber);
}
.cmp-table thead th.hot {
  border-top: 2px solid var(--amber);
  border-radius: 8px 8px 0 0;
  position: relative;
}
.cmp-table tbody tr:last-child td.hot { border-bottom: 2px solid var(--amber); border-radius: 0 0 8px 8px; }
.cmp-table td { color: rgba(247, 249, 252, 0.78); }
.cmp-table td.hot { color: var(--bg); }
.cmp-table td.hot strong { color: var(--bg); }
.cmp-src { margin-top: 14px; font-size: 0.8rem; color: var(--dim); font-family: var(--font-m); }

/* ---------- pricing (deeper charcoal break) ---------- */
.pricing { background: var(--bg-3); padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pricing .sec-sub { color: var(--dim); }
.price-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cur-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
}
.cur-btn {
  font-family: var(--font-m); font-weight: 700; font-size: 0.85rem;
  padding: 10px 18px; border: 0; background: transparent;
  color: var(--ink); cursor: pointer;
}
.cur-btn.on { background: var(--amber); color: var(--bg); }
.price-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin-top: 44px;
}
.plan {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 22px; display: flex; flex-direction: column;
  background: var(--bg-2);
}
.plan h3 { font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber); }
.plan .tag {
  align-self: flex-start;
  font-family: var(--font-m); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--amber); color: var(--bg);
  padding: 4px 10px; border-radius: 5px; margin-bottom: 14px;
}
.price { margin: 14px 0 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .cur { font-family: var(--font-d); font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; }
.price small { font-family: var(--font-m); font-size: 0.72rem; color: var(--dim); }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan li {
  padding: 9px 0 9px 24px; position: relative;
  font-size: 0.9rem; color: rgba(247, 249, 252, 0.85);
  border-bottom: 1px solid var(--line-soft);
}
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
}
.plan .btn { text-align: center; }
.plan.featured { border-color: var(--amber); }
.pay-note { margin-top: 26px; font-family: var(--font-m); font-size: 0.78rem; color: var(--dim); }

/* ---------- faq ---------- */
.faq { padding: clamp(64px, 9vw, 110px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  font-family: var(--font-d); font-weight: 700; font-size: 1.02rem;
  padding: 20px 34px 20px 0; cursor: pointer; list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px;
  font-family: var(--font-m); font-weight: 700; font-size: 1.2rem; color: var(--amber);
}
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p { padding: 0 40px 22px 0; color: var(--dim); }
.faq-list a { color: var(--amber); font-weight: 600; }

/* ---------- final CTA (amber bookend) ---------- */
.final {
  background: var(--amber); color: var(--bg);
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative; overflow: hidden; text-align: center;
}
.final-radar {
  position: absolute; width: 560px;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: rgba(27, 30, 35, 0.1); pointer-events: none;
}
.final-radar .arc { animation: none; }
.final-radar svg { width: 100%; height: auto; }
.final-inner { position: relative; }
.final h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 34px; }
.final .handle { margin-top: 22px; font-family: var(--font-m); font-weight: 700; }
.final .handle a { text-decoration: none; border-bottom: 2px solid var(--bg); }
.support-line { margin-top: 26px; font-family: var(--font-m); font-size: 0.78rem; opacity: 0.85; }
.support-line a { font-weight: 700; }
.fine-print { margin-top: 14px; font-family: var(--font-m); font-size: 0.68rem; opacity: 0.6; }

/* ---------- mobile ---------- */
@media (max-width: 1000px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .wrap {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  /* nav: brand + burger only; CTA lives inside the dropdown so the
     burger can never be pushed off-screen on narrow phones */
  .nav-in { gap: 14px; }
  .nav-cta { display: none; }
  .burger { display: flex; width: 44px; height: 44px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; gap: 0; align-items: stretch;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
    padding: 6px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 16px 28px; font-size: 1rem; }
  .nav-menu-cta {
    display: block; margin: 12px 20px 4px; text-align: center;
  }

  /* hero: copy first; mark becomes a clipped watermark behind it */
  .hero { position: relative; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-mark { position: absolute; inset: 0; pointer-events: none; }
  .hero-radar {
    position: absolute; top: -4%; right: -18%;
    width: min(260px, 70vw); opacity: 0.14;
  }
  .hero-note { display: none; }

  /* stats: 2x2 grid, hide dividers */
  .stats-in { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .stat-div { display: none; }
  .stat-num { font-size: 2.2rem; }

  /* compare: narrower label column so ResiPaket + a slice of the next
     tool are visible - the cut-off column is the scroll affordance */
  .cmp-table { min-width: 620px; font-size: 0.86rem; }
  .cmp-table th, .cmp-table td { padding: 12px; }
  .cmp-table thead th:first-child, .cmp-table th[scope="row"] {
    width: 118px; max-width: 118px;
    white-space: normal; font-size: 0.78rem;
  }
  .cmp-hint { display: block; }

  .feat-list li { grid-template-columns: 52px 1fr; gap: 14px; padding: 22px 0; }
  .price-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 420px) {
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-radar .arc { animation: none; }
  html { scroll-behavior: auto; }
}
