/**
 * Author: Andrey Morozov
 * Confidential. Proprietary IAM Protect visual system.
 *
 * Implements the responsive consumer landing design for IAM Protect. The file
 * owns layout, typography, states, accessibility and mobile adaptation; it
 * intentionally contains no product logic or third-party asset dependencies.
 */

:root {
  --canvas: #020a13;
  --canvas-soft: #06111d;
  --surface: #08131f;
  --surface-strong: #0b1825;
  --text: #f5f7fb;
  --muted: #a7b0bd;
  --dim: #6f7c8c;
  --line: rgba(156, 178, 202, 0.25);
  --line-strong: rgba(156, 178, 202, 0.42);
  --accent: #1de0df;
  --accent-soft: rgba(29, 224, 223, 0.12);
  --warning: #f2aa30;
  --warning-soft: rgba(242, 170, 48, 0.14);
  --success: #6ee7a8;
  --container: 1400px;
  --radius: 10px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 9%, rgba(25, 122, 156, 0.08), transparent 28%),
    var(--canvas);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
svg { display: block; }
.container { width: min(calc(100% - 80px), var(--container)); margin: 0 auto; }
.section { padding: 128px 0; border-top: 1px solid rgba(156, 178, 202, 0.14); }
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 1000; transform: translateY(-160%);
  padding: 12px 18px; background: var(--accent); color: #001015; font-weight: 700;
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative; z-index: 50; height: 96px; border-bottom: 1px solid rgba(156, 178, 202, 0.12);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 54px; }
.brand { flex: none; font-size: 29px; font-weight: 750; letter-spacing: -0.04em; }
.brand span { color: var(--accent); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 52px; }
.main-nav a { color: #d7dde6; font-size: 15px; transition: color 180ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent); }
.header-cta {
  min-height: 48px; display: inline-flex; align-items: center; padding: 0 22px;
  border: 1px solid var(--accent); border-radius: 6px; color: var(--accent); font-weight: 650;
}
.menu-button { display: none; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 8px; background: none; }
.menu-button span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--accent); }

.hero { min-height: 820px; padding: 84px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(470px, 0.88fr) minmax(600px, 1.28fr); gap: 54px; align-items: center; }
.hero-copy h1 { margin: 0; font-size: clamp(58px, 4.7vw, 74px); line-height: 1.04; letter-spacing: -0.055em; }
.hero-copy h1 span { display: block; white-space: nowrap; }
.hero-copy > p { max-width: 560px; margin: 32px 0 0; color: var(--muted); font-size: 20px; line-height: 1.7; }
.hero-actions { max-width: 470px; margin-top: 42px; display: grid; gap: 14px; }
.button {
  min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  border: 1px solid transparent; border-radius: 6px; padding: 0 24px; font-weight: 700;
  transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .plan-link:focus-visible, summary:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button-primary { background: var(--accent); color: #00141a; }
.button-primary:hover { background: #58f0ee; }
.button-secondary { border-color: var(--accent); background: transparent; color: var(--accent); }
.button-secondary:hover { background: var(--accent-soft); }

.prompt-lab { border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(5, 15, 25, 0.64); box-shadow: 0 36px 90px rgba(0, 0, 0, 0.22); }
.lab-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.lab-header h2 { margin: 0; font-size: 17px; }
.local-status { color: var(--muted); font-size: 13px; }
.local-status i, .retention-note i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--success); }
.lab-body { padding: 24px; }
.lab-body > label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px; font-weight: 650; }
#prompt-input, .protected-block pre {
  width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 7px; background: #06101a;
  color: #edf1f6; font-family: var(--mono); font-size: 14px; line-height: 1.7;
}
#prompt-input { min-height: 145px; resize: vertical; padding: 18px; }
.scan-controls { margin: 12px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scan-controls span { color: var(--dim); font-family: var(--mono); font-size: 12px; }
.scan-button { min-height: 44px; padding: 0 18px; font-size: 13px; }
.protected-block { border-top: 1px solid var(--line); padding-top: 20px; }
.protected-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 650; }
.protected-head strong { color: var(--warning); }
.protected-block pre { min-height: 118px; padding: 18px; white-space: pre-wrap; }
.protected-block.is-safe .protected-head strong { color: var(--success); }
.route-row { margin-top: 18px; display: grid; grid-template-columns: 160px 1fr; gap: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 7px; }
.route-row span { display: block; margin-bottom: 5px; color: var(--dim); font-size: 12px; }
.route-row strong { color: var(--accent); font-size: 21px; }
.route-row p { margin: 0; align-self: center; color: var(--muted); font-size: 13px; line-height: 1.5; }

.section-heading { max-width: 970px; }
.section-heading h2, .audience h2, .faq h2, .access h2 { margin: 0; font-size: clamp(42px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -0.045em; }
.section-heading p { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.how { padding-top: 36px; padding-bottom: 60px; }
.how-grid { margin-top: 54px; display: grid; grid-template-columns: minmax(340px, 0.78fr) minmax(620px, 1.5fr); gap: 66px; align-items: center; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 142px; display: grid; grid-template-columns: 74px 1fr; gap: 24px; padding: 0 0 34px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: 61px; bottom: 0; width: 1px; background: var(--accent); }
.step-number { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 19px; }
.steps h3 { margin: 6px 0 12px; color: var(--accent); font-size: 18px; letter-spacing: 0.03em; text-transform: uppercase; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.flow-panel { position: relative; min-height: 390px; display: grid; grid-template-columns: 1.05fr 42px 0.72fr 44px 1fr; align-items: center; gap: 12px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.flow-source, .destination { border: 1px solid var(--line-strong); border-radius: 7px; background: #06101a; padding: 22px; }
.flow-source b, .destination b { color: var(--accent); font-size: 13px; }
.flow-source p { margin: 18px 0 0; color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.55; }
.flow-source mark { background: var(--warning-soft); color: var(--warning); }
.flow-arrow { color: var(--dim); font-size: 34px; text-align: center; }
.local-check { aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 16px; border: 1px solid var(--accent); border-radius: 7px; color: var(--accent); text-align: center; font-size: 12px; }
.local-check span { width: 74px; height: 74px; border: 1px solid var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 16px var(--accent-soft); }
.flow-branches { display: grid; gap: 62px; }
.flow-branches i { display: block; width: 100%; border-top: 1px solid var(--accent); }
.flow-destinations { display: grid; gap: 18px; }
.destination { min-height: 112px; display: grid; gap: 11px; }
.destination span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.destination.external { border-color: rgba(242, 170, 48, 0.55); }
.destination.external b { color: var(--warning); }
.retention-note { position: absolute; left: 34px; bottom: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.retention-note i { background: var(--accent); }

.audience { padding-top: 60px; }
.audience h2 { font-size: clamp(36px, 4vw, 58px); }
.audience-list { margin-top: 54px; border-top: 1px solid var(--line); }
.audience-list article { min-height: 94px; display: grid; grid-template-columns: 80px minmax(220px, 0.75fr) 1.5fr; gap: 30px; align-items: center; border-bottom: 1px solid var(--line); }
.audience-list span { color: var(--dim); font-family: var(--mono); }
.audience-list h3 { margin: 0; color: var(--accent); font-size: 19px; }
.audience-list p { margin: 0; color: var(--muted); line-height: 1.6; }

.pricing { padding-top: 72px; }
.pricing-heading { max-width: 1050px; }
.pricing-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-plan { min-height: 460px; display: flex; flex-direction: column; padding: 30px 28px; border-right: 1px solid var(--line); }
.price-plan:last-child { border-right: 0; }
.price-plan.featured { box-shadow: inset 0 3px 0 var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 32%); }
.price-plan h3 { margin: 0; color: var(--accent); font-size: 15px; letter-spacing: 0.04em; }
.price { min-height: 90px; margin-top: 24px; font-size: clamp(35px, 3vw, 50px); font-weight: 700; letter-spacing: -0.05em; white-space: nowrap; }
.price small { color: var(--muted); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.price-plan ul { flex: 1; margin: 0; padding: 28px 0; border-top: 1px solid var(--line); list-style: none; }
.price-plan li { position: relative; margin: 0 0 20px; padding-left: 23px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.price-plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.plan-link { min-height: 50px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 6px; color: var(--accent); font-size: 14px; font-weight: 650; }
.plan-link:hover { background: var(--accent-soft); }
.pricing-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.pricing-note::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent); }
.trust-rail { margin-top: 40px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.trust-rail h3 { margin: 0; font-size: 27px; line-height: 1.35; }
.trust-rail ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; }
.trust-rail li { min-height: 72px; display: flex; align-items: center; padding: 0 24px; border-left: 1px solid var(--line); color: var(--muted); line-height: 1.5; }

.faq { padding-top: 64px; padding-bottom: 48px; }
.faq-list { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 26px; color: var(--text); font-size: 17px; font-weight: 650; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 980px; margin: 0; padding: 0 74px 22px 26px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.access { padding-top: 40px; }
.access-band { display: grid; grid-template-columns: 0.75fr 1.4fr; gap: 70px; align-items: center; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.access h2 { font-size: clamp(40px, 4.2vw, 62px); }
.access h2 + p { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; }
.form-row label { position: relative; }
.form-row label > span { position: absolute; left: 16px; top: 10px; color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.form-row input, .form-row select { width: 100%; height: 60px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text); padding: 20px 15px 4px; }
.form-row select { padding-right: 38px; }
.form-row .button { min-width: 210px; }
.consent { margin-top: 20px; display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.consent a, .form-status { color: var(--accent); }
.form-note, .form-status { margin: 14px 0 0; font-size: 12px; line-height: 1.5; }
.form-note { color: var(--dim); }

.footer { padding: 50px 0 42px; border-top: 1px solid var(--line); }
.footer-main { display: flex; justify-content: space-between; gap: 40px; align-items: center; }
.footer .brand { font-size: 23px; }
.iam-legal-links { display: flex; flex-wrap: wrap; gap: 20px 34px; justify-content: flex-end; color: var(--muted); font-size: 13px; }
.iam-legal-links a:hover { color: var(--accent); }
.iam-legal-summary { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.iam-legal-notice { max-width: 1180px; margin: 0; color: var(--dim); font-size: 12px; line-height: 1.7; }
.iam-legal-notice a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.analytics-privacy-note { max-width: var(--container); margin: 24px auto 0; color: var(--dim); font-size: 11px; }
.analytics-privacy-note__control { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline; }

@media (max-width: 1120px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .main-nav { gap: 26px; }
  .hero-grid, .how-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .hero-copy { max-width: 760px; }
  .prompt-lab { max-width: 860px; }
  .flow-panel { min-height: 420px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-plan:nth-child(2) { border-right: 0; }
  .price-plan:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .access-band { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .section { padding: 88px 0; }
  .site-header { height: 76px; }
  .header-inner { justify-content: space-between; }
  .brand { font-size: 24px; }
  .menu-button { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; left: 24px; right: 24px; top: 68px; display: none; margin: 0;
    padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #07121e;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
  }
  .main-nav.is-open { display: grid; }
  .main-nav a { min-height: 48px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 0; padding: 64px 0 78px; }
  .hero-grid { gap: 52px; }
  .hero-copy h1 { font-size: clamp(44px, 12.8vw, 54px); line-height: 1.06; }
  .hero-copy h1 span { white-space: nowrap; }
  .hero-copy > p { margin-top: 26px; font-size: 18px; line-height: 1.65; }
  .hero-actions { margin-top: 34px; }
  .button { min-height: 56px; }
  .lab-header { align-items: flex-start; flex-direction: column; padding: 20px; }
  .local-status { margin-top: -12px; }
  .lab-body { padding: 18px; }
  #prompt-input { min-height: 200px; font-size: 13px; }
  .scan-controls { align-items: stretch; flex-direction: column; }
  .scan-controls span { order: 2; text-align: right; }
  .route-row { grid-template-columns: 1fr; }
  .section-heading h2, .audience h2, .faq h2, .access h2 { font-size: 40px; }
  .how-grid { margin-top: 52px; }
  .steps li { grid-template-columns: 64px 1fr; gap: 18px; }
  .step-number { width: 54px; height: 54px; }
  .steps li:not(:last-child)::after { left: 26px; top: 54px; }
  .flow-panel { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .flow-arrow { transform: rotate(90deg); }
  .local-check { width: 150px; margin: 0 auto; }
  .flow-branches { display: none; }
  .flow-destinations { grid-template-columns: 1fr; }
  .retention-note { position: static; margin-top: 6px; }
  .audience-list article { grid-template-columns: 50px 1fr; gap: 12px 18px; padding: 24px 0; }
  .audience-list p { grid-column: 2; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-plan { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .price-plan:last-child { border-bottom: 0; }
  .price { min-height: 70px; }
  .price-plan ul { min-height: 180px; }
  .trust-rail { grid-template-columns: 1fr; padding: 28px 22px; }
  .trust-rail ul { grid-template-columns: 1fr; }
  .trust-rail li { min-height: 58px; padding: 0; border-left: 0; border-top: 1px solid var(--line); }
  .faq summary { min-height: 84px; padding: 0 18px; font-size: 16px; }
  .faq details p { padding: 0 58px 24px 18px; font-size: 14px; }
  .access { padding-top: 18px; }
  .access-band { gap: 38px; padding-top: 46px; padding-bottom: 46px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .button { width: 100%; }
  .footer-main { align-items: flex-start; flex-direction: column; }
  .iam-legal-links { justify-content: flex-start; flex-direction: column; gap: 18px; }
}

@media (max-width: 370px) {
  .hero-copy h1 { font-size: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
