/* Inspector Coach: marketing + legal pages only. The logged-in app uses its own stylesheet. */

:root {
  --navy: #16323F;
  --navy-2: #1F4253;
  --navy-3: #0F2530;
  --red: #E31E24;
  --red-dark: #C0161B;
  --orange: #E8833A;
  --orange-soft: #F6B887;
  --gray: #6E6E6E;
  --gray-line: #DCE2E7;
  --bg: #F4F6F8;
  --white: #FFFFFF;
  --ink: #16323F;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);

  --wrap: 1140px;
  --gutter: 16px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  font-optical-sizing: auto;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: var(--step-4); letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  font: 600 var(--step-0)/1.2 var(--font);
  border-radius: 999px; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg); color: var(--navy); }
.btn-sm { min-height: 40px; padding: .45em 1em; font-size: var(--step--1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--gray-line);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); } }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--navy); line-height: 1.05; margin-right: auto; }
.logo-name { display: inline-flex; gap: .3em; align-items: baseline; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo-by { font-size: .72rem; color: var(--gray); white-space: nowrap; }

.nav-desktop { display: none; align-items: center; gap: 22px; }
.nav-desktop a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--navy); }
.nav-desktop a:hover { color: var(--red-dark); }
.lang { display: inline-flex; border: 1px solid var(--gray-line); border-radius: 999px; padding: 2px; font-size: .82rem; font-weight: 600; }
.lang a, .lang span { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--gray); }
.lang [aria-current="true"] { background: var(--navy); color: #fff; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--gray-line); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--navy); box-shadow: 0 -6px 0 var(--navy), 0 6px 0 var(--navy); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--r-md);
  box-shadow: 0 18px 40px -18px rgba(22,50,63,.35); padding: 8px; display: grid;
}
.menu-panel a { padding: 12px 12px; text-decoration: none; border-radius: var(--r-sm); font-weight: 500; }
.menu-panel a:hover { background: var(--bg); }
.menu-panel .lang { justify-self: start; margin: 8px 12px 6px; }

@media (min-width: 940px) {
  .nav-desktop { display: flex; }
  .menu { display: none; }
}
@media (max-width: 939px) { .header-cta { display: none; } }
@media (min-width: 400px) and (max-width: 939px) { .header-cta { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { background: var(--bg); padding: 40px 0 56px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 45%; height: 520px;
  background: radial-gradient(closest-side, rgba(232,131,58,.18), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; position: relative; }
@media (min-width: 900px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; } }
.hero h1 { max-width: 15ch; }
.hero-sub { font-size: var(--step-1); color: #34505D; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }
.trust { font-size: var(--step--1); color: var(--gray); margin: 0; }
.trust strong { color: var(--navy); font-weight: 600; }

/* Phone mock */
.stage { position: relative; display: flex; justify-content: center; padding: 8px 0 72px; }
.phone {
  width: 300px; max-width: 86vw;
  background: var(--navy-3); border-radius: 44px; padding: 12px;
  box-shadow: 0 40px 70px -30px rgba(22,50,63,.55), inset 0 0 0 2px #2c4b5a;
}
.screen { background: #fff; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; min-height: 520px; }
.screen-top { background: var(--navy); color: #fff; padding: 22px 16px 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-weight: 700; color: var(--navy); flex: none; }
.screen-top b { display: block; font-size: .92rem; }
.screen-top small { color: #C9D6DC; font-size: .74rem; }
.chat { padding: 14px 12px; display: grid; gap: 10px; flex: 1; background: var(--bg); align-content: start; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: .84rem; line-height: 1.4; }
.msg .who { display: block; font-size: .7rem; font-weight: 600; margin-bottom: 2px; }
.msg-owner { background: #fff; border: 1px solid var(--gray-line); border-bottom-left-radius: 4px; justify-self: start; }
.msg-owner .who { color: var(--gray); }
.msg-you { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.msg-you .who { color: var(--orange-soft); }
.screen-bottom { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--gray-line); background: #fff; }
.mic { width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; }
.screen-bottom span { font-size: .78rem; color: var(--gray); }
.wave { display: flex; gap: 3px; align-items: center; margin-left: auto; }
.wave i { width: 3px; border-radius: 2px; background: var(--orange); height: 10px; }
.wave i:nth-child(2) { height: 18px; } .wave i:nth-child(3) { height: 12px; } .wave i:nth-child(4) { height: 20px; } .wave i:nth-child(5) { height: 8px; }

.score-card {
  position: absolute; right: max(0px, calc(50% - 230px)); bottom: 0;
  width: 200px; background: #fff; border-radius: var(--r-md); padding: 14px 16px;
  box-shadow: 0 24px 44px -20px rgba(22,50,63,.45); border: 1px solid var(--gray-line);
  animation: rise .7s .5s cubic-bezier(.2,.8,.2,1) both;
}
.score-card .num { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--navy); }
.score-card .num small { font-size: .9rem; color: var(--gray); font-weight: 600; letter-spacing: 0; }
.score-card p { font-size: .78rem; margin: 8px 0 0; color: #34505D; line-height: 1.35; }
.score-card .tip { border-left: 3px solid var(--orange); padding-left: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .score-card { position: relative; right: auto; margin: -40px auto 0; width: 260px; } .stage { flex-direction: column; align-items: center; padding-bottom: 8px; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-alt { background: var(--bg); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark a { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: #34505D; font-size: var(--step-1); margin: 0; }
.section-dark .section-head p { color: #C9D6DC; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
  background: var(--navy); color: #fff;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 58px; right: -28px; height: 2px; background: var(--gray-line); }
.steps li:last-child::after { display: none; }
@media (max-width: 1039px) { .steps li::after { display: none; } }
.steps p { color: #34505D; margin: 0; }
.levels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.levels span { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--gray-line); }

/* Scenarios */
.scenarios { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .scenarios { grid-template-columns: repeat(3, minmax(0, 1fr)); } .scenarios li:first-child, .scenarios li:last-child { grid-column: span 2; } }
.scenarios li { background: #fff; border-radius: var(--r-md); padding: 18px 18px 20px; border: 1px solid var(--gray-line); display: flex; flex-direction: column; gap: 12px; }
.scenarios .quote {
  align-self: flex-start; position: relative; background: var(--navy); color: #fff;
  padding: 8px 14px; border-radius: 14px 14px 14px 4px; font-size: .9rem; line-height: 1.35;
}
.scenarios h3 { margin: 0; font-size: 1.05rem; }
.scenarios li:first-child .quote { background: var(--red); }

/* Rubric */
.rubric-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 900px) { .rubric-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.report { background: var(--navy-2); border-radius: var(--r-lg); padding: 24px 20px; border: 1px solid #2c5466; }
@media (min-width: 560px) { .report { padding: 32px; } }
.report-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.report-head span { color: #C9D6DC; font-size: .9rem; }
.report-total { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.report-total small { font-size: 1rem; color: #C9D6DC; font-weight: 600; letter-spacing: 0; }
.rubric { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rubric li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: .95rem; }
.rubric .bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.rubric .bar i { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.rubric b { font-variant-numeric: tabular-nums; color: var(--orange-soft); }
.report-note { margin: 22px 0 0; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255,255,255,.07); font-size: .92rem; color: #E3EBEF; }
.report-note strong { color: #fff; }

.compliance { margin-top: 32px; padding: 22px 20px; border-radius: var(--r-md); border: 1px solid #2c5466; }
.compliance h3 { color: #fff; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: #E3EBEF; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2316323F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Pricing */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  background: var(--navy); color: #fff; border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 24px;
}
.promo p { margin: 0; font-size: var(--step-1); max-width: 46ch; }
.promo code { font-family: inherit; font-weight: 800; color: var(--orange-soft); letter-spacing: .04em; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; } }
.plan { background: #fff; border: 1px solid var(--gray-line); border-radius: var(--r-lg); padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.plan-featured { border: 2px solid var(--navy); }
.plan h3 { font-size: var(--step-2); margin-bottom: 4px; }
.badge { position: absolute; top: -13px; right: 20px; background: var(--orange); color: var(--navy); font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 999px; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 8px 0 2px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--gray); letter-spacing: 0; }
.plan .equiv { color: var(--gray); font-size: .9rem; margin: 0 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.renewal { max-width: 860px; margin-top: 22px; padding: 16px 18px; background: #fff; border-radius: var(--r-md); border-left: 4px solid var(--orange); font-size: .95rem; }
.renewal p { margin: 0 0 6px; }
.renewal p:last-child { margin: 0; }

/* FAQ */
.faq { max-width: 780px; border-top: 1px solid var(--gray-line); }
.faq details { border-bottom: 1px solid var(--gray-line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: var(--step-1); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: #34505D; max-width: 66ch; }

/* Closing CTA */
.closing { text-align: left; }
.closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.closing h2 { margin: 0; max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: #C9D6DC; padding: 40px 0 32px; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer p { margin: 0 0 8px; }
.disclaimer { margin-top: 20px !important; padding-top: 18px; border-top: 1px solid #24414F; font-size: .84rem; }

/* ---------- Legal pages ---------- */
.legal-header .header-row { gap: 10px; }
.back { font-size: .92rem; font-weight: 500; white-space: nowrap; }
.legal { padding: 40px 0 72px; background: var(--white); }
.prose { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); }
.prose h1 { font-size: var(--step-3); margin-bottom: .3em; }
.prose .meta { color: var(--gray); font-size: .92rem; margin-bottom: 1.6em; }
.prose .alt-lang { display: inline-block; margin-bottom: 1.6em; font-size: .95rem; padding: 8px 14px; background: var(--bg); border-radius: var(--r-sm); }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { line-height: 1.65; color: #23404C; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .summary { background: var(--bg); border-left: 4px solid var(--orange); padding: 16px 18px; border-radius: 0 var(--r-md) var(--r-md) 0; margin-bottom: 1.6em; }
.prose .summary p:last-child, .prose .summary ul:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--gray-line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose a { word-break: break-word; }
.rubric .bar i.w70 { width: 70%; } .rubric .bar i.w80 { width: 80%; } .rubric .bar i.w90 { width: 90%; }
