/* AuditXP landing — CSS subset extracted from the app's styles.css.
   Only the marketing / legal / chrome rules are kept. */

* { box-sizing: border-box; }

:root {
  --bg: #f7f8fa;
  --bg-page: #ffffff;
  --card: #ffffff;
  --surface: #fafbfc;
  --canvas: #eceef2;
  --border: #e6e8ee;
  --border-strong: #d6d9e0;
  --text: #101322;
  --muted: #62687a;
  --faint: #8b90a0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --sev4: #dc2626;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 19, 34, 0.05), 0 1px 6px rgba(16, 19, 34, 0.04);
  --shadow-md: 0 2px 6px rgba(16, 19, 34, 0.05), 0 10px 28px rgba(16, 19, 34, 0.07);
  --shadow-lg: 0 4px 12px rgba(16, 19, 34, 0.06), 0 24px 60px rgba(16, 19, 34, 0.1);
}

html, body { height: 100%; margin: 0; }
body {
  font: 14px/1.55 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- brand ---------- */

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15px; color: var(--text); letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  background: var(--accent-grad);
  display: inline-flex; align-items: center; justify-content: center;
}
.logo .mark svg { display: block; }
.logo em { font-style: normal; color: var(--accent); }

/* ---------- shared chrome ---------- */

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar .spacer { flex: 1; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: var(--muted); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.topbar nav a:hover { color: var(--text); text-decoration: none; }
/* the landing carries 5 nav links — below tablet width they can't fit next to
   the CTA and the language menu; the footer repeats all of them */
@media (max-width: 900px) {
  .landing .topbar nav a[href^='#'] { display: none; }
}
@media (max-width: 560px) {
  .landing .topbar nav { display: none; }
}

.lang-switcher { position: relative; display: inline-block; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card);
  padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.lang-btn:hover { border-color: var(--border-strong); color: var(--text); }
.lang-btn .chev { font-size: 9px; opacity: 0.7; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  min-width: 160px; margin: 0; padding: 5px; list-style: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md);
}
.lang-menu a, .lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  border: 0; background: transparent; border-radius: 7px;
  padding: 7px 10px; font-size: 13px; color: var(--text); text-align: left; text-decoration: none;
}
.lang-menu a:hover, .lang-menu button:hover { background: var(--surface); text-decoration: none; }
.lang-menu .check { color: var(--accent); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 15px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-weight: 500;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.05s;
  text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.btn:hover { border-color: var(--border-strong); background: var(--surface); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--accent-grad); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn.large { padding: 12px 22px; font-size: 15px; border-radius: 11px; }

input[type='text'] {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px;
  font: inherit; background: #fff; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

/* ---------- landing ---------- */

.landing { background: var(--bg-page); }
.l-section { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.hero { text-align: center; padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto; height: 130%;
  background:
    radial-gradient(560px 300px at 30% 20%, rgba(79, 70, 229, 0.09), transparent 70%),
    radial-gradient(560px 300px at 70% 10%, rgba(124, 58, 237, 0.08), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.035em; margin: 0 auto 18px; max-width: 780px;
}
.hero .sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 32px; }
.hero-form {
  display: flex; gap: 10px; max-width: 560px; margin: 0 auto 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; box-shadow: var(--shadow-md);
}
.hero-form input { flex: 1; border: none; box-shadow: none !important; font-size: 15px; padding: 10px 12px; }
.hero-form input:focus { border: none; }
.hero .note { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  .hero-form { flex-direction: column; }
  .hero-form .btn { width: 100%; }
}

.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px;
  padding: 10px 0 70px;
}
.trust-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.trust-card .value { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.trust-card .label { color: var(--muted); font-size: 13px; margin-top: 4px; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin: 0 0 10px; }
.section-head p { color: var(--muted); font-size: 15.5px; margin: 0; }

.audience { padding: 70px 0; border-top: 1px solid var(--border); background: var(--surface); }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; max-width: 920px; margin: 0 auto; }
.aud-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.aud-card h3 { margin: 0; font-size: 18px; }
.aud-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.aud-card li { font-size: 14px; color: var(--muted); padding-left: 24px; position: relative; }
.aud-card li::before { content: '✓'; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.aud-card .btn { align-self: flex-start; }

.features { padding: 70px 0; border-top: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card .icon {
  width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: var(--accent); font-size: 17px;
}
.feature-card h3 { font-size: 15.5px; margin: 0 0 6px; }
.feature-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

.how { padding: 70px 0; border-top: 1px solid var(--border); background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; position: relative;
}
.step .num {
  width: 26px; height: 26px; border-radius: 999px; background: var(--accent-grad); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step h3 { font-size: 14.5px; margin: 0 0 5px; }
.step p { color: var(--muted); font-size: 12.5px; margin: 0; }

.pricing { padding: 70px 0; border-top: 1px solid var(--border); }
.pricing-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; max-width: 920px; margin: 0 auto; }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative;
  box-shadow: var(--shadow-sm);
}
.price-card.hot { border-color: var(--accent); box-shadow: var(--shadow-md); }
.price-card .plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; padding: 3px 12px; white-space: nowrap;
}
.price-card h3 { margin: 0; font-size: 16px; }
.price-card .price { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.price-card .price span { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price-card li { font-size: 13.5px; color: var(--muted); padding-left: 22px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }

.cta-band {
  margin: 0 auto 70px; border-radius: 22px; padding: 56px 32px; text-align: center;
  background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
.cta-band p { opacity: 0.85; margin: 0 0 26px; }
.cta-band .btn { background: #fff; color: var(--accent); border: none; font-weight: 700; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .inner {
  max-width: 1080px; margin: 0 auto; padding: 46px 24px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px;
}
.site-footer .tagline { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 260px; }
.site-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: var(--text); font-size: 13.5px; }
.site-footer .bottom {
  max-width: 1080px; margin: 0 auto; padding: 16px 24px 26px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px;
}
@media (max-width: 760px) { .site-footer .inner { grid-template-columns: 1fr 1fr; } }

/* ---------- legal / prose ---------- */

.legal-page { background: var(--bg-page); min-height: 100%; display: flex; flex-direction: column; }
.prose { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; flex: 1; width: 100%; }
.prose h1 { font-size: 30px; margin: 0 0 6px; }
.prose .updated { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.prose .disclaimer {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; color: var(--muted); font-size: 12.5px; margin: 14px 0 28px;
}
.prose h2 { font-size: 17px; margin: 28px 0 8px; }
.prose p { color: #3a4051; font-size: 14.5px; margin: 0; }

/* ---------- 404 ---------- */

.nf { min-height: 100%; display: flex; flex-direction: column; background: var(--bg-page); }
.nf-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.nf-code {
  font-size: 96px; font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf-main h1 { font-size: 22px; margin: 14px 0 6px; }
.nf-main p { color: var(--muted); margin: 0 0 24px; }
.nf-actions { display: flex; gap: 10px; }

/* ---------- cookie banner ---------- */

.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  width: min(720px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow-lg);
}
.cookie-banner .cookie-text { flex: 1; min-width: 260px; font-size: 13px; }
.cookie-banner .cookie-text b { font-size: 13.5px; }
.cookie-banner .cookie-text p { margin: 3px 0 0; color: var(--muted); }
.cookie-banner .cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
