:root {
  --green-900: #13301f;
  --green-800: #1f4d3a;
  --green-700: #2a6a4f;
  --green-100: #e3ede6;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --ink: #1c2420;
  --ink-soft: #4b5751;
  --line: #ddd6c6;
  --accent: #c9853a;
  --radius: 14px;
  --max: 1120px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green-700); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--green-900);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.75rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--green-800); color: var(--paper); }
.btn-primary:hover { background: var(--green-900); }
.btn-ghost { border-color: var(--green-800); color: var(--green-800); }
.btn-ghost:hover { background: var(--green-800); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--green-900); }
.btn-light:hover { background: var(--green-100); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-900);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.1;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:not(.btn):hover { color: var(--green-700); }
.nav .btn { padding: 0.6em 1.1em; font-size: 0.92rem; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }

/* Hero */
.hero { padding: 96px 0 88px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--ink-soft); }

.status-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px -24px rgba(19, 48, 31, 0.35);
}
.status-card h3 { font-size: 1.05rem; margin-bottom: 18px; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.status-row span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green-700);
  white-space: nowrap;
}
.status-row span:last-child::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3aa66a;
  box-shadow: 0 0 0 3px rgba(58, 166, 106, 0.18);
}
.status-foot { margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-soft); }

/* Problems */
.problems { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.problem {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
}
.problem h3 { font-size: 1.1rem; }
.problem p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.problems .closer {
  margin: 40px 0 0;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--green-900);
}

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
}
.service .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--green-100);
  color: var(--green-800);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--green-700);
  border-bottom: 2.5px solid var(--green-700);
  transform: rotate(-45deg);
}
.platforms {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.platforms span.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

/* Steps */
.steps-section { background: var(--green-900); color: #d9e4dc; }
.steps-section h2, .steps-section h3 { color: var(--paper); }
.steps-section .eyebrow { color: #9cc7ad; }
.steps-section .lede { color: #b9cbbf; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--green-900);
  font-weight: 700;
  margin-bottom: 16px;
}
.step p { margin: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
}
.plan.featured { border: 2px solid var(--green-800); box-shadow: 0 20px 44px -28px rgba(19, 48, 31, 0.5); }
.plan .badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--green-800);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 { margin-bottom: 4px; }
.plan .for { color: var(--ink-soft); font-size: 0.95rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 20px; }
.price strong {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1;
}
.price span { color: var(--ink-soft); }
.plan dl { margin: 0 0 24px; font-size: 0.95rem; }
.plan dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.plan dt { color: var(--ink-soft); }
.plan dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.plan .includes { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 24px; }
.plan .btn { margin-top: auto; }
.plan-note { margin-top: 24px; font-size: 0.92rem; color: var(--ink-soft); }

.projects-head { margin: 72px 0 28px; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.project .from { font-size: 0.85rem; color: var(--ink-soft); }
.project .amount {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 2px 0 12px;
}
.project p { color: var(--ink-soft); font-size: 0.97rem; }
.project .meta { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--green-700); }

/* Promise */
.promise { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.promise-item h3 { font-size: 1.15rem; }
.promise-item p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
.promise-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.promise-item .icon svg { width: 22px; height: 22px; stroke: var(--green-800); }

/* FAQ */
.faq-list { max-width: 820px; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green-700);
  flex: none;
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { color: var(--ink-soft); padding-right: 32px; }

/* CTA */
.cta { padding: 0 0 96px; }
.cta-box {
  background: var(--green-800);
  color: #dbe7df;
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.cta-box h2 { color: var(--paper); }
.contact-intro { transition: opacity 0.2s; }
.contact-intro.is-loading { opacity: 0; }
.topic-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #bfe6cc;
  text-decoration: none;
}
.topic-back:hover { text-decoration: underline; }
.topic-back[hidden] { display: none; }
.cta-alt { margin-top: 24px; font-size: 0.95rem; }
.cta-alt a.email { color: var(--paper); font-weight: 600; overflow-wrap: anywhere; }

.contact-form { display: grid; gap: 16px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--paper);
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 11px 13px;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn { justify-self: start; cursor: pointer; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.95rem; }
.form-status.is-ok { color: #bfe6cc; font-weight: 600; }
.form-status.is-error { color: #ffd2a8; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--ink-soft); }

/* App store check page */
.check-hero { padding-bottom: 32px; }
.check-hero .wrap { grid-template-columns: 1fr; max-width: var(--max); }
.check-hero h1 { max-width: 16em; }
.check-section { padding-top: 24px; }
.check-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.checker {
  display: grid;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}
.checker h2 { font-size: 1.6rem; margin: 0; }
.checker fieldset { border: 0; margin: 0; padding: 0; }
.checker legend, .checker-q label { font-weight: 600; margin-bottom: 10px; display: block; }
.checker-q { display: grid; gap: 4px; }
.checker-q[hidden] { display: none; }
.checker-q .optional { margin-top: 12px; }
.checker-q .optional span { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.choice-row { display: grid; gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}
.choice:has(input:checked) { border-color: var(--green-800); background: var(--green-100); }
.choice input { accent-color: var(--green-800); width: 18px; height: 18px; margin: 0; }
.checker select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
}
.checker select:focus { outline: none; border-color: var(--accent); }
.checker-hint { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

.results { display: grid; gap: 16px; position: sticky; top: 92px; }
.results .btn { justify-self: start; }
.result {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.result h3 { font-size: 1.2rem; margin-bottom: 8px; }
.result p { margin: 0; color: var(--ink-soft); }
.result-empty { border-left-color: var(--line); border-style: dashed; }
.result-ok { border-left-color: #3aa66a; }
.result-soon { border-left-color: var(--accent); }
.result-risk { border-left-color: #b8432f; }
.result-unknown { border-left-color: var(--green-700); }
.result-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: var(--green-100);
  color: var(--green-800);
}
.result-soon .result-badge { background: #f6e5cf; color: #7a4a14; }
.result-risk .result-badge { background: #f6dcd6; color: #8a2b1b; }
.results-foot { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

.rules-section .source { margin: 16px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.light-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.light-steps .step { background: var(--paper); border-color: var(--line); }
.light-steps .step h3 { color: var(--green-900); }
.light-steps .step p { color: var(--ink-soft); }
.cta-simple { align-items: center; }

/* Homepage app callout */
.app-callout {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--green-100);
  border: 1px solid #c8dccf;
}
.app-callout p { margin: 0; max-width: 40em; }
.app-callout strong { color: var(--green-900); }

/* Security alert banner (homepage) */
.site-banner { background: var(--green-900); color: #e4ede7; font-size: 0.93rem; }
.site-banner[hidden] { display: none; }
.site-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.site-banner p { margin: 0; }
.site-banner strong { color: #ffd2a8; }
.site-banner a { color: var(--paper); font-weight: 600; white-space: nowrap; }
.banner-close {
  flex: none;
  background: none;
  border: 0;
  color: #e4ede7;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.banner-close:hover { background: rgba(255, 255, 255, 0.1); }

/* Security alert pages */
.alert-hero { padding: 64px 0 40px; }
.alert-hero h1 { max-width: 18em; }
.crumbs { margin: 0 0 16px; font-size: 0.9rem; }
.crumbs a { color: var(--ink-soft); }
.alert-meta { margin: 16px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.alert-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.alert-status.is-exploited { background: #f6dcd6; color: #8a2b1b; }
.alert-status.is-ongoing { background: #f6e5cf; color: #7a4a14; }
.alert-status.is-resolved { background: var(--green-100); color: var(--green-800); }

.alert-body-section { padding-top: 16px; }
.alert-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.alert-article { grid-column: 1; grid-row: 1; max-width: 720px; }
.alert-article h2 { font-size: 1.6rem; margin-top: 40px; }
.alert-article h2:first-child { margin-top: 0; }
.alert-article .note {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.95rem;
}
.glance {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 92px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.glance h2 { font-size: 1.15rem; }
.glance dl { margin: 0 0 20px; font-size: 0.92rem; }
.glance dl div { padding: 10px 0; border-top: 1px solid var(--line); }
.glance dt { color: var(--ink-soft); font-size: 0.82rem; }
.glance dd { margin: 2px 0 0; font-weight: 600; }
.glance .btn { width: 100%; }
.glance-note { margin: 10px 0 0; font-size: 0.82rem; color: var(--ink-soft); text-align: center; }

.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.verdict { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.verdict.is-likely { border-top-color: #b8432f; }
.verdict.is-unlikely { border-top-color: #3aa66a; }
.verdict h3 { font-size: 1.05rem; }
.verdict ul { margin: 0; padding-left: 18px; font-size: 0.95rem; color: var(--ink-soft); }
.verdict li { margin-bottom: 8px; }
.steps-list { padding-left: 22px; }
.steps-list li { margin-bottom: 12px; }
.sources { padding-left: 18px; font-size: 0.93rem; }
.sources li { margin-bottom: 8px; }

.alert-list-section { padding-top: 8px; }
.alert-list { display: grid; gap: 20px; max-width: 820px; }
.alert-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.alert-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.alert-card-top .alert-status { margin-bottom: 0; }
.alert-date { font-size: 0.88rem; color: var(--ink-soft); }
.alert-card h2 { font-size: 1.4rem; margin-top: 12px; }
.alert-card h2 a { color: var(--green-900); text-decoration: none; }
.alert-card h2 a:hover { text-decoration: underline; }
.alert-card p { color: var(--ink-soft); }
.alert-card .alert-who { margin: 0; font-size: 0.93rem; color: var(--ink); }

.disclaimer { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .problem-grid, .promise-grid { grid-template-columns: 1fr 1fr; }
  .plans, .projects { grid-template-columns: 1fr; max-width: 520px; }
  .plan .for { min-height: 0; }
  .cta-box { grid-template-columns: 1fr; padding: 40px; }
  .check-layout { grid-template-columns: 1fr; }
  .results { position: static; }
  .alert-layout { grid-template-columns: 1fr; gap: 32px; }
  .glance { grid-column: 1; grid-row: auto; position: static; }
  .alert-article { grid-row: auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .nav a:not(.btn) { display: none; }
  .service-grid, .steps, .light-steps, .verdict-grid { grid-template-columns: 1fr; }
  .service { padding: 28px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .problem-grid, .promise-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-box { padding: 32px 24px; }
  .contact-form .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
  .checker { padding: 24px 20px; }
  .results .btn { justify-self: stretch; }
}
